File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
boards/arm/gd32e103v_eval Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1111 pinmux = <USART0_TX_PA9_NORMP>, <USART0_RX_PA10_NORMP>;
1212 };
1313 };
14+
15+ pwm0_default: pwm0_default {
16+ group1 {
17+ pinmux = <TIMER0_CH0_PA8_OUT_NORMP>;
18+ };
19+ };
1420};
Original file line number Diff line number Diff line change 5555 };
5656 };
5757
58+ pwmleds {
59+ compatible = "pwm-leds";
60+
61+ /* NOTE: bridge TIMER0_CH0 (PA8) and LED1 (PC0) */
62+ pwm_led: pwm_led {
63+ pwms = <&pwm0 0 PWM_POLARITY_NORMAL>;
64+ };
65+ };
66+
5867 aliases {
5968 led0 = &led2;
6069 led1 = &led3;
6170 sw0 = &user_key;
71+ pwm-led0 = &pwm_led;
6272 };
6373};
6474
8898 pinctrl-0 = <&usart0_default>;
8999 pinctrl-names = "default";
90100};
101+
102+ &timer0 {
103+ status = "okay";
104+
105+ pwm0: pwm {
106+ status = "okay";
107+ pinctrl-0 = <&pwm0_default>;
108+ pinctrl-names = "default";
109+ };
110+ };
You can’t perform that action at this time.
0 commit comments