dts: esp32s3: add LEDC device
Add LEDC device for esp32s3 Update PWM LED binding Remove invalid comment from driver source file Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
This commit is contained in:
parent
bfdaa9ad61
commit
ed0d242bb7
@ -98,6 +98,8 @@ Current Zephyr's ESP32-S3-DevKitM board supports the following features:
|
||||
+------------+------------+-------------------------------------+
|
||||
| TRNG | on-chip | entropy |
|
||||
+------------+------------+-------------------------------------+
|
||||
| LEDC | on-chip | pwm |
|
||||
+------------+------------+-------------------------------------+
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
|
||||
@ -12,6 +12,7 @@ supported:
|
||||
- counter
|
||||
- watchdog
|
||||
- entropy
|
||||
- pwm
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
|
||||
@ -235,7 +235,6 @@ static int pwm_led_esp32_get_cycles_per_sec(const struct device *dev,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* period_cycles is not used, set frequency on menuconfig instead. */
|
||||
static int pwm_led_esp32_set_cycles(const struct device *dev, uint32_t channel_idx,
|
||||
uint32_t period_cycles,
|
||||
uint32_t pulse_cycles, pwm_flags_t flags)
|
||||
|
||||
@ -109,13 +109,13 @@ child-binding:
|
||||
- 15
|
||||
|
||||
description: |
|
||||
The esp32 has 8 low speed channel and 8 high speed channels.
|
||||
The ESP32 has 8 low speed channel and 8 high speed channels.
|
||||
The low speed channel are mapped from channel 0 to 7, and the high speed are mapped from
|
||||
channel 8 to 15.
|
||||
|
||||
High speed channels are only available in the esp32 SoC. Esp32s2 has only 8 available
|
||||
channels, and esp32c3 has 6. In these SoCs there is no differentiation between low or high
|
||||
speed.
|
||||
High speed channels are only available in the ESP32 SoC. ESP32S2 and ESP32S3 have 8
|
||||
available channels, and ESP32C3 has 6. In these SoCs there is no differentiation between
|
||||
low or high speed.
|
||||
|
||||
timer:
|
||||
type: int
|
||||
|
||||
@ -258,5 +258,13 @@
|
||||
reg = <0x6003507c 0x4>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
ledc0: ledc@60019000 {
|
||||
compatible = "espressif,esp32-ledc";
|
||||
#pwm-cells = <3>;
|
||||
reg = <0x60019000 DT_SIZE_K(4)>;
|
||||
clocks = <&rtc ESP32_LEDC_MODULE>;
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user