From 11ebcd17fecc0df246ee0c38f7f6371a90de282a Mon Sep 17 00:00:00 2001 From: Cyril Date: Mon, 18 Mar 2024 19:39:11 -0600 Subject: [PATCH] more move shield backlight enabling to board --- config/boards/shields/rev1350/boards/nice_nano_v2.conf | 1 + config/boards/shields/rev1350/boards/nine_nano_v2.overlay | 4 ---- config/boards/shields/rev1350/rev1350.conf | 1 - config/boards/shields/rev1350/rev1350.overlay | 1 + 4 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 config/boards/shields/rev1350/boards/nice_nano_v2.conf diff --git a/config/boards/shields/rev1350/boards/nice_nano_v2.conf b/config/boards/shields/rev1350/boards/nice_nano_v2.conf new file mode 100644 index 0000000..0947584 --- /dev/null +++ b/config/boards/shields/rev1350/boards/nice_nano_v2.conf @@ -0,0 +1 @@ +CONFIG_ZMK_BACKLIGHT=y diff --git a/config/boards/shields/rev1350/boards/nine_nano_v2.overlay b/config/boards/shields/rev1350/boards/nine_nano_v2.overlay index 9c78117..d59a2e4 100644 --- a/config/boards/shields/rev1350/boards/nine_nano_v2.overlay +++ b/config/boards/shields/rev1350/boards/nine_nano_v2.overlay @@ -21,10 +21,6 @@ }; / { - chosen { - zmk,backlight = &backlight; - }; - backlight: pwmleds { compatible = "pwm-leds"; pwm_led_0 { diff --git a/config/boards/shields/rev1350/rev1350.conf b/config/boards/shields/rev1350/rev1350.conf index 0947584..e69de29 100644 --- a/config/boards/shields/rev1350/rev1350.conf +++ b/config/boards/shields/rev1350/rev1350.conf @@ -1 +0,0 @@ -CONFIG_ZMK_BACKLIGHT=y diff --git a/config/boards/shields/rev1350/rev1350.overlay b/config/boards/shields/rev1350/rev1350.overlay index 3ecd43a..f03b4d0 100644 --- a/config/boards/shields/rev1350/rev1350.overlay +++ b/config/boards/shields/rev1350/rev1350.overlay @@ -10,6 +10,7 @@ chosen { zmk,kscan = &kscan0; zmk,matrix_transform = &default_transform; + zmk,backlight = &backlight; }; default_transform: keymap_transform_0 {