File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
tests/drivers/pwm/pwm_gpio_loopback/socs Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* SPDX-License-Identifier: Apache-2.0
3
3
*
4
- * Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
4
+ * Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
5
5
*/
6
6
7
7
#include <zephyr/dt-bindings/pwm/pwm.h>
12
12
zephyr,user {
13
13
/* GPIO input pins order must match PWM pinctrl config */
14
14
gpios = <&gpio0 2 ESP32_GPIO_PIN_OUT_EN>,
15
- <&gpio0 3 ESP32_GPIO_PIN_OUT_EN>;
15
+ <&gpio0 3 ESP32_GPIO_PIN_OUT_EN>,
16
+ <&gpio0 4 ESP32_GPIO_PIN_OUT_EN>,
17
+ <&gpio0 5 ESP32_GPIO_PIN_OUT_EN>;
16
18
17
19
pwms = <&ledc0 0 160000 PWM_POLARITY_NORMAL>,
18
- <&ledc0 5 80000 PWM_POLARITY_INVERTED>;
20
+ <&ledc0 5 80000 PWM_POLARITY_INVERTED>,
21
+ <&ledc0 9 1000000 PWM_POLARITY_NORMAL>,
22
+ <&ledc0 10 1000000 PWM_POLARITY_INVERTED>;
19
23
};
20
24
};
21
25
22
26
&pinctrl {
23
27
ledc0_default: ledc0_default {
24
28
group1 {
25
29
pinmux = <LEDC_CH0_GPIO2>,
26
- <LEDC_CH5_GPIO3>;
30
+ <LEDC_CH5_GPIO3>,
31
+ <LEDC_CH9_GPIO4>,
32
+ <LEDC_CH10_GPIO5>;
27
33
input-enable;
28
34
};
29
35
};
45
51
reg = <0x5>;
46
52
timer = <1>;
47
53
};
54
+
55
+ /* HS channel */
56
+ channel9@9 {
57
+ reg = <0x9>;
58
+ timer = <0>;
59
+ };
60
+
61
+ /* share same timer with ch9 */
62
+ channel10@a {
63
+ reg = <0xa>;
64
+ timer = <0>;
65
+ };
48
66
};
You can’t perform that action at this time.
0 commit comments