From c99931e3af40e3ff6c88e8132d21a6cf11b4147d Mon Sep 17 00:00:00 2001 From: 1218 <98438916+a741725193@users.noreply.github.com> Date: Sat, 5 Oct 2024 04:14:14 +0800 Subject: [PATCH] Update sofle_right.dts --- config/boards/arm/sofle/sofle_right.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/boards/arm/sofle/sofle_right.dts b/config/boards/arm/sofle/sofle_right.dts index 8ad9fef..c5d91d0 100644 --- a/config/boards/arm/sofle/sofle_right.dts +++ b/config/boards/arm/sofle/sofle_right.dts @@ -47,6 +47,12 @@ compatible = "zmk,battery-nrf-vddh"; // init-delay-ms = <50>; }; +backlight: pwmleds { + compatible = "pwm-leds"; + pwm_led_0 { + pwms = <&pwm0 0 PWM_MSEC(10) PWM_POLARITY_NORMAL>; + }; + }; }; &default_transform { @@ -90,3 +96,9 @@ }; }; }; +&pwm0 { + status = "okay"; + pinctrl-0 = <&pwm0_default>; + pinctrl-1 = <&pwm0_sleep>; + pinctrl-names = "default", "sleep"; +};