refactor: consolidate power nodes

This commit is contained in:
honorless 2024-11-17 16:02:21 -05:00
parent b85964cf00
commit 9a013fe0eb
No known key found for this signature in database
GPG Key ID: 1B48A311ABE8DA4D
3 changed files with 11 additions and 28 deletions

View File

@ -19,11 +19,22 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
zmk,kscan = &kscan0; zmk,kscan = &kscan0;
zmk,battery = &vbatt;
zmk,underglow = &led_strip; zmk,underglow = &led_strip;
zmk,matrix-transform = &default_transform; zmk,matrix-transform = &default_transform;
zmk,backlight = &backlight; zmk,backlight = &backlight;
}; };
vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
};
EXT_POWER {
compatible = "zmk,ext-power-generic";
control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
init-delay-ms = <50>;
};
left_encoder: encoder_left { left_encoder: encoder_left {
compatible = "alps,ec11"; compatible = "alps,ec11";
a-gpios = <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; a-gpios = <&gpio1 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;

View File

@ -8,9 +8,6 @@
#include "corne.dtsi" #include "corne.dtsi"
/{ /{
chosen {
zmk,battery = &vbatt;
};
kscan0: kscan { kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix"; compatible = "zmk,kscan-gpio-matrix";
@ -34,17 +31,6 @@
; ;
}; };
ext-power {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
init-delay-ms = <50>;
};
vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
};
}; };
&left_encoder { &left_encoder {

View File

@ -7,9 +7,6 @@
#include "corne.dtsi" #include "corne.dtsi"
/{ /{
chosen {
zmk,battery = &vbatt;
};
kscan0: kscan { kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix"; compatible = "zmk,kscan-gpio-matrix";
@ -34,17 +31,6 @@
; ;
}; };
ext-power {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
init-delay-ms = <50>;
};
vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
init-delay-ms = <50>;
};
}; };
&default_transform { &default_transform {