File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
boards/microchip/sam/sam_e54_xpro Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 13
13
<PB24D_SERCOM2_PAD1>;
14
14
};
15
15
};
16
+
17
+ tcc0_pwm_default: tcc0_pwm_default {
18
+ group1 {
19
+ pinmux = <PC18F_TCC0_WO2>;
20
+ };
21
+ };
16
22
};
Original file line number Diff line number Diff line change 19
19
zephyr,sram = &sram0;
20
20
zephyr,flash = &flash0;
21
21
};
22
+
23
+ aliases {
24
+ pwm-led0 = &pwm_led0;
25
+ };
26
+
27
+ pwmleds {
28
+ compatible = "pwm-leds";
29
+
30
+ pwm_led0: pwm_led_0 {
31
+ status = "okay";
32
+ pwms = <&tcc0 2 PWM_MSEC(20) 0>;
33
+ };
34
+ };
22
35
};
23
36
24
37
&flash0 {
60
73
pinctrl-0 = <&sercom2_uart_default>;
61
74
pinctrl-names = "default";
62
75
};
76
+
77
+ &tcc0 {
78
+ compatible = "microchip,tcc-g1-pwm";
79
+ status = "okay";
80
+ #pwm-cells = <3>;
81
+ pinctrl-0 = <&tcc0_pwm_default>;
82
+ pinctrl-names = "default";
83
+ max-bit-width = <24>;
84
+ prescaler = <8>;
85
+ channels = <6>;
86
+ };
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ flash: 1024
11
11
ram : 256
12
12
supported :
13
13
- pinctrl
14
+ - pwm
14
15
- shell
15
16
- uart
16
17
vendor : microchip
You can’t perform that action at this time.
0 commit comments