diff --git a/boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts b/boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts index 1a2f8be10d8..7110bbda200 100644 --- a/boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts +++ b/boards/ti/lp_em_cc2340r5/lp_em_cc2340r5.dts @@ -11,6 +11,7 @@ #include "boosterpack_connector.dtsi" #include "lp_em_cc2340r5-pinctrl.dtsi" #include +#include #include / { @@ -31,6 +32,8 @@ sw0 = &btn0; sw1 = &btn1; watchdog0 = &wdt0; + pwm-led0 = &pwm_green; + pwm-led1 = &pwm_red; }; leds { @@ -47,6 +50,20 @@ }; }; + pwmleds { + compatible = "pwm-leds"; + + pwm_green: pwm_led_0 { + pwms = <&pwm6 0 1000 PWM_POLARITY_NORMAL>; + label = "Green PWM LED"; + }; + + pwm_red: pwm_led_1 { + pwms = <&pwm5 0 1000 PWM_POLARITY_NORMAL>; + label = "Red PWM LED"; + }; + }; + keys { compatible = "gpio-keys"; @@ -106,3 +123,25 @@ &adc0_ch8>; pinctrl-names = "default"; }; + +&lgpt1 { + clk-prescale = <0>; + status = "okay"; +}; + +&lgpt2 { + clk-prescale = <0>; + status = "okay"; +}; + +&pwm5 { + pinctrl-0 = <&pwm5_default>; + pinctrl-names = "default"; + status = "okay"; +}; + +&pwm6 { + pinctrl-0 = <&pwm6_default>; + pinctrl-names = "default"; + status = "okay"; +};