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 1313 <PB24D_SERCOM2_PAD1>;
1414 };
1515 };
16+
17+ tcc0_pwm_default: tcc0_pwm_default {
18+ group1 {
19+ pinmux = <PC18F_TCC0_WO2>;
20+ };
21+ };
1622};
Original file line number Diff line number Diff line change 1919 zephyr,sram = &sram0;
2020 zephyr,flash = &flash0;
2121 };
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+ };
2235};
2336
2437&flash0 {
6073 pinctrl-0 = <&sercom2_uart_default>;
6174 pinctrl-names = "default";
6275};
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
1111ram : 256
1212supported :
1313 - pinctrl
14+ - pwm
1415 - shell
1516 - uart
1617vendor : microchip
You can’t perform that action at this time.
0 commit comments