diff --git a/config/boards/shields/rev1350/Kconfig.defconfig b/config/boards/shields/rev1350/Kconfig.defconfig index db224ef..75d26e2 100644 --- a/config/boards/shields/rev1350/Kconfig.defconfig +++ b/config/boards/shields/rev1350/Kconfig.defconfig @@ -6,8 +6,6 @@ if SHIELD_REV1350 config ZMK_KEYBOARD_NAME default "rev1350" -endif # SHIELD_REV1350 - if ZMK_BACKLIGHT config PWM @@ -17,3 +15,5 @@ config LED_PWM default y endif # ZMK_BACKLIGHT + +endif # SHIELD_REV1350 diff --git a/config/boards/shields/rev1350/boards/nice_nano_v2.overlay b/config/boards/shields/rev1350/boards/nice_nano_v2.overlay new file mode 100644 index 0000000..cd6d214 --- /dev/null +++ b/config/boards/shields/rev1350/boards/nice_nano_v2.overlay @@ -0,0 +1,30 @@ +&pinctrl { + // Other pinctrl definitions for other hardware + pwm0_default: pwm0_default { + group1 { + psels = ; + }; + }; + pwm0_sleep: pwm0_sleep { + group1 { + psels = ; + low-power-enable; + }; + }; +}; + +&pwm0 { + status = "okay"; + pinctrl-0 = <&pwm0_default>; + pinctrl-1 = <&pwm0_sleep>; + pinctrl-names = "default", "sleep"; +}; + +/ { + backlight: pwmleds { + compatible = "pwm-leds"; + pwm_led_0 { + pwms = <&pwm0 0 PWM_MSEC(10) PWM_POLARITY_NORMAL>; + }; + }; +} \ No newline at end of file diff --git a/config/boards/shields/rev1350/rev1350.overlay b/config/boards/shields/rev1350/rev1350.overlay index f1ec36c..f03b4d0 100644 --- a/config/boards/shields/rev1350/rev1350.overlay +++ b/config/boards/shields/rev1350/rev1350.overlay @@ -12,12 +12,6 @@ zmk,matrix_transform = &default_transform; zmk,backlight = &backlight; }; - backlight: pwmleds { - compatible = "pwm-leds"; - pwm_led_0 { - pwms = <&pwm0 0 PWM_MSEC(10) PWM_POLARITY_NORMAL>; - }; - }; default_transform: keymap_transform_0 { compatible = "zmk,matrix-transform"; @@ -57,25 +51,3 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(5,0) RC(5,1) RC(5,2) RC(5,3) ; }; }; - -&pinctrl { - // Other pinctrl definitions for other hardware - pwm0_default: pwm0_default { - group1 { - psels = ; - }; - }; - pwm0_sleep: pwm0_sleep { - group1 { - psels = ; - low-power-enable; - }; - }; -}; - -&pwm0 { - status = "okay"; - pinctrl-0 = <&pwm0_default>; - pinctrl-1 = <&pwm0_sleep>; - pinctrl-names = "default", "sleep"; -};