Skip to content

Commit

Permalink
remove deprecated label devicetree property
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisandreae committed Dec 8, 2023
1 parent 0061a7c commit 7bfb48f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
2 changes: 0 additions & 2 deletions app/boards/arm/glove80/glove80.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

magic: magic_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "MAGIC_HOLD_TAP";
#binding-cells = <2>;
flavor = "tap-preferred";
tapping-term-ms = <200>;
Expand All @@ -42,7 +41,6 @@

macros {
rgb_ug_status_macro: rgb_ug_status_macro_0 {
label = "RGB_UG_STATUS";
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
Expand Down
6 changes: 0 additions & 6 deletions app/boards/arm/glove80_v0/glove80_v0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(3,6) RC(4,6) RC(5,6) RC(5,7

kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";

diode-direction = "row2col";
debounce-press-ms = <1>;
Expand Down Expand Up @@ -61,7 +60,6 @@ RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(3,6) RC(4,6) RC(5,6) RC(5,7
status = "okay";
cdc_acm_uart: cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};

Expand All @@ -76,11 +74,9 @@ RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(3,6) RC(4,6) RC(5,6) RC(5,7
#size-cells = <1>;

sd_partition: partition@0 {
label = "softdevice";
reg = <0x00000000 0x00026000>;
};
code_partition: partition@26000 {
label = "code_partition";
reg = <0x00026000 0x000c6000>;
};

Expand All @@ -94,12 +90,10 @@ RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(3,6) RC(4,6) RC(5,6) RC(5,7
* if enabled.
*/
storage_partition: partition@ec000 {
label = "storage";
reg = <0x000ec000 0x00008000>;
};

boot_partition: partition@f4000 {
label = "adafruit_boot";
reg = <0x000f4000 0x0000c000>;
};
};
Expand Down
9 changes: 2 additions & 7 deletions app/boards/arm/glove80_v0/glove80_v0_lh.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,27 @@

power_led_backlight: pwmleds {
compatible = "pwm-leds";
label = "Backlight LEDs";
pwm_led_0 {
pwms = <&pwm0 0 PWM_USEC(20) PWM_POLARITY_NORMAL>;
label = "Power Led Backlight";
};
};

ext-power {
// Node name must match original "EXT_POWER" label to preserve user settings.
EXT_POWER {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; /**[SC] WS2812_CE */
init-delay-ms = <10>;
};

vbatt: vbatt-divider {
compatible = "zmk,battery-voltage-divider";
label = "BATTERY";
io-channels = <&adc 5>;
output-ohms = <820000>; /** Double check that this is right */
full-ohms = <(1500000 + 820000)>;
};

vbatt-vddh {
compatible = "zmk,battery-nrf-vddh";
label = "BATTERY-VDDH";
};

/*
Expand Down Expand Up @@ -88,7 +84,6 @@
pinctrl-names = "default", "sleep";
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812C-2020";

/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
Expand Down
10 changes: 2 additions & 8 deletions app/boards/arm/glove80_v0/glove80_v0_rh.dts
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,32 @@
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
label = "Red LED";
};
};

power_led_backlight: pwmleds {
compatible = "pwm-leds";
label = "Backlight LEDs";
pwm_led_0 {
pwms = <&pwm0 0 PWM_USEC(20) PWM_POLARITY_NORMAL>;
label = "Power Led Backlight";
};
};

ext-power {
// Node name must match original "EXT_POWER" label to preserve user settings.
EXT_POWER {
compatible = "zmk,ext-power-generic";
label = "EXT_POWER";
control-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; /**[SC] WS2812_CE */
init-delay-ms = <10>;
};

vbatt: vbatt-divider {
compatible = "zmk,battery-voltage-divider";
label = "BATTERY";
io-channels = <&adc 5>;
output-ohms = <820000>; /** Double check that this is right */
full-ohms = <(1500000 + 820000)>;
};

vbatt-vddh {
compatible = "zmk,battery-nrf-vddh";
label = "BATTERY-VDDH";
};
};

Expand All @@ -69,7 +64,6 @@
pinctrl-names = "default", "sleep";
led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812C-2020";

/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
Expand Down

0 comments on commit 7bfb48f

Please sign in to comment.