File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 13
13
slew-rate = "fast";
14
14
};
15
15
};
16
+
17
+ pinmux_tpm0: pinmux_tpm0 {
18
+ group0 {
19
+ pinmux = <TPM0_CH0_PTA21>,
20
+ <TPM0_CH1_PTA20>,
21
+ <TPM0_CH2_PTA19>;
22
+ drive-strength = "low";
23
+ slew-rate = "fast";
24
+ };
25
+ };
16
26
};
Original file line number Diff line number Diff line change 13
13
14
14
aliases {
15
15
led0 = &blue_led;
16
+ blue-pwm-led = &blue_pwm_led;
17
+ green-pwm-led = &green_pwm_led;
18
+ red-pwm-led = &red_pwm_led;
16
19
};
17
20
18
21
chosen {
30
33
gpios = <&gpioc 1 GPIO_ACTIVE_LOW>;
31
34
};
32
35
};
36
+
37
+ pwmleds {
38
+ compatible = "pwm-leds";
39
+ blue_pwm_led: pwm_led_0 {
40
+ pwms = <&tpm0 1 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
41
+ };
42
+ green_pwm_led: pwm_led_1 {
43
+ pwms = <&tpm0 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
44
+ };
45
+ red_pwm_led: pwm_led_2 {
46
+ pwms = <&tpm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
47
+ };
48
+ };
33
49
};
34
50
35
51
&gpioc {
65
81
&fmu {
66
82
status = "okay";
67
83
};
84
+
85
+ &tpm0 {
86
+ status = "okay";
87
+ pinctrl-0 = <&pinmux_tpm0>;
88
+ pinctrl-names = "default";
89
+ };
You can’t perform that action at this time.
0 commit comments