From 3871603d3db43977683f4f16ca58550eccaffd64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Sun, 15 Jan 2023 08:51:56 +0100 Subject: [PATCH] Remove deprecated labels in Devicetree --- boards/arm/mppt_1210_hus/mppt_1210_hus.dts | 3 --- boards/arm/mppt_1210_hus/mppt_1210_hus_0_4_0.overlay | 2 -- boards/arm/mppt_2420_hc/mppt_2420_hc.dts | 3 --- boards/arm/mppt_2420_hc/mppt_2420_hc_0_2_0.overlay | 6 ------ boards/arm/mppt_2420_hpx/mppt_2420_hpx.dts | 5 ----- boards/arm/mppt_2420_lc/mppt_2420_lc.dts | 5 ----- boards/arm/mppt_2420_rc/mppt_2420_rc.dts | 3 --- boards/arm/nucleo_g474re/nucleo_g474re.dts | 4 ---- boards/arm/pwm_2420_lus/pwm_2420_lus.dts | 4 ---- dts/bindings/outputs.yaml | 4 ---- tests/boards/native_posix.overlay | 4 ---- 11 files changed, 43 deletions(-) diff --git a/boards/arm/mppt_1210_hus/mppt_1210_hus.dts b/boards/arm/mppt_1210_hus/mppt_1210_hus.dts index 7efc1de..a5e4de7 100644 --- a/boards/arm/mppt_1210_hus/mppt_1210_hus.dts +++ b/boards/arm/mppt_1210_hus/mppt_1210_hus.dts @@ -60,19 +60,16 @@ compatible = "outputs"; load { - label = "Load output"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; current-max = <10>; kconfig-flag; /* make node visible in Kconfig */ }; usb-pwr { - label = "USB charging port enable"; gpios = <&gpiob 10 GPIO_ACTIVE_HIGH>; }; boot0 { - label = "BOOT0 pin trigger"; gpios = <&gpiob 12 GPIO_ACTIVE_HIGH>; }; }; diff --git a/boards/arm/mppt_1210_hus/mppt_1210_hus_0_4_0.overlay b/boards/arm/mppt_1210_hus/mppt_1210_hus_0_4_0.overlay index b2a5be7..2f9a2a9 100644 --- a/boards/arm/mppt_1210_hus/mppt_1210_hus_0_4_0.overlay +++ b/boards/arm/mppt_1210_hus/mppt_1210_hus_0_4_0.overlay @@ -44,12 +44,10 @@ load { gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; - label = "Load enable"; }; usb-pwr { gpios = <&gpiob 12 GPIO_ACTIVE_HIGH>; - label = "USB charging port enable"; }; /delete-node/ v-solar; diff --git a/boards/arm/mppt_2420_hc/mppt_2420_hc.dts b/boards/arm/mppt_2420_hc/mppt_2420_hc.dts index 4038a26..8cb3380 100644 --- a/boards/arm/mppt_2420_hc/mppt_2420_hc.dts +++ b/boards/arm/mppt_2420_hc/mppt_2420_hc.dts @@ -50,19 +50,16 @@ compatible = "outputs"; load { - label = "Load output"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; charge_pump { - label = "Charge pump for HS MOSFET drivers"; pwms = <&pwm8 2 200000 PWM_POLARITY_NORMAL>; /* 200 us period = 5 kHz */ }; can_en { - label = "CAN disable / standby"; gpios = <&gpiob 11 GPIO_ACTIVE_LOW>; }; }; diff --git a/boards/arm/mppt_2420_hc/mppt_2420_hc_0_2_0.overlay b/boards/arm/mppt_2420_hc/mppt_2420_hc_0_2_0.overlay index 8660d2f..9868765 100644 --- a/boards/arm/mppt_2420_hc/mppt_2420_hc_0_2_0.overlay +++ b/boards/arm/mppt_2420_hc/mppt_2420_hc_0_2_0.overlay @@ -18,7 +18,6 @@ &spi2 { w25q80dv: w25q80dv@0 { compatible = "jedec,spi-nor"; - label = "W25Q80DV"; reg = <0>; spi-max-frequency = <4000000>; size = <0x800000>; /* bits */ @@ -41,14 +40,12 @@ /* bootloader slot: 32 KiB */ boot_partition: partition@0 { - label = "mcuboot"; reg = <0x00000000 0x8000>; read-only; }; /* application image slot: 96 KiB */ slot0_partition: partition@8000 { - label = "image-0"; reg = <0x00008000 0x18000>; }; }; @@ -62,19 +59,16 @@ /* backup slot: 96 KiB */ slot1_partition: partition@0 { - label = "image-1"; reg = <0x00000000 0x18000>; }; /* swap slot: 96 KiB */ scratch_partition: partition@18000 { - label = "image-scratch"; reg = <0x00018000 0x00018000>; }; /* remaining 832 KiB of SPI flash used as storage */ storage_partition: partition@30000 { - label = "storage"; reg = <0x00030000 0x000D0000>; }; }; diff --git a/boards/arm/mppt_2420_hpx/mppt_2420_hpx.dts b/boards/arm/mppt_2420_hpx/mppt_2420_hpx.dts index f30577b..a9e385e 100644 --- a/boards/arm/mppt_2420_hpx/mppt_2420_hpx.dts +++ b/boards/arm/mppt_2420_hpx/mppt_2420_hpx.dts @@ -44,26 +44,22 @@ compatible = "outputs"; pwm_switch { - label = "PWM power switch (solar panel)"; pwms = <&pwm3 2 (20*1000*1000) PWM_POLARITY_NORMAL>; /* 20 ms period = 50 Hz */ current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; load { - label = "Load output"; gpios = <&gpiob 15 GPIO_ACTIVE_LOW>; current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; charge_pump { - label = "Charge pump for HS MOSFET drivers"; pwms = <&pwm8 1 200000 PWM_POLARITY_NORMAL>; /* 200 us period = 5 kHz */ }; hv-out { - label = "HV output sense and enable switch"; gpios = <&gpiob 12 GPIO_ACTIVE_LOW>; }; }; @@ -217,7 +213,6 @@ /* Set 4Kb of storage at the end of the 128Kb of flash */ storage_partition: partition@1f000 { - label = "storage"; reg = <0x0001f000 0x00001000>; }; }; diff --git a/boards/arm/mppt_2420_lc/mppt_2420_lc.dts b/boards/arm/mppt_2420_lc/mppt_2420_lc.dts index a64a844..31e6d9d 100644 --- a/boards/arm/mppt_2420_lc/mppt_2420_lc.dts +++ b/boards/arm/mppt_2420_lc/mppt_2420_lc.dts @@ -49,29 +49,24 @@ compatible = "outputs"; load { - label = "Load output"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; uext_en { - label = "UEXT enable"; gpios = <&gpioc 14 GPIO_ACTIVE_LOW>; }; can_en { - label = "CAN disable / standby"; gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; }; aux_en { - label = "5V output enable"; gpios = <&gpiob 12 GPIO_ACTIVE_HIGH>; }; vbus_en { - label = "CAN bus power supply enable"; gpios = <&gpioc 15 GPIO_ACTIVE_LOW>; }; }; diff --git a/boards/arm/mppt_2420_rc/mppt_2420_rc.dts b/boards/arm/mppt_2420_rc/mppt_2420_rc.dts index 281e9ba..309e1d4 100644 --- a/boards/arm/mppt_2420_rc/mppt_2420_rc.dts +++ b/boards/arm/mppt_2420_rc/mppt_2420_rc.dts @@ -44,12 +44,10 @@ compatible = "outputs"; can_en { - label = "CAN disable / standby"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; }; hv-out { - label = "HV output sense and enable switch"; gpios = <&gpiob 12 GPIO_ACTIVE_LOW>; }; }; @@ -190,7 +188,6 @@ /* Set 4Kb of storage at the end of the 128Kb of flash */ storage_partition: partition@1f000 { - label = "storage"; reg = <0x0001f000 0x00001000>; }; }; diff --git a/boards/arm/nucleo_g474re/nucleo_g474re.dts b/boards/arm/nucleo_g474re/nucleo_g474re.dts index b799f7f..34e8986 100644 --- a/boards/arm/nucleo_g474re/nucleo_g474re.dts +++ b/boards/arm/nucleo_g474re/nucleo_g474re.dts @@ -52,7 +52,6 @@ compatible = "outputs"; can_en { - label = "CAN disable / standby"; gpios = <&gpiob 11 GPIO_ACTIVE_LOW>; }; }; @@ -95,7 +94,6 @@ gpio_keys { compatible = "gpio-keys"; user_button: button { - label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; }; }; @@ -118,7 +116,6 @@ interrupt-names = "master", "tima", "timb", "timc", "timd", "time", "flt", "timf"; status = "okay"; - label = "HRTIM_1"; }; /* below nodes are required until following PR is merged: @@ -261,7 +258,6 @@ /* Set 2Kb of storage at the end of the 128Kb of flash */ storage_partition: partition@1f800 { - label = "storage"; reg = <0x0001f800 0x00000800>; }; }; diff --git a/boards/arm/pwm_2420_lus/pwm_2420_lus.dts b/boards/arm/pwm_2420_lus/pwm_2420_lus.dts index 440d4d3..c5c20eb 100644 --- a/boards/arm/pwm_2420_lus/pwm_2420_lus.dts +++ b/boards/arm/pwm_2420_lus/pwm_2420_lus.dts @@ -64,7 +64,6 @@ compatible = "outputs"; pwm_switch { - label = "PWM power switch (solar panel)"; pwms = <&pwm3 4 (20*1000*1000) PWM_POLARITY_NORMAL>; /* 20 ms period = 50 Hz */ // Current reduced to 15A. Increase to 20A PCB max values // only if attached to a big heat sink. @@ -73,19 +72,16 @@ }; load { - label = "Load output"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; current-max = <15>; kconfig-flag; /* make node visible in Kconfig */ }; usb-pwr { - label = "USB charging port disable"; gpios = <&gpiob 5 GPIO_ACTIVE_LOW>; }; boot0 { - label = "BOOT0 pin trigger"; gpios = <&gpiob 12 GPIO_ACTIVE_HIGH>; }; }; diff --git a/dts/bindings/outputs.yaml b/dts/bindings/outputs.yaml index 952192f..28d11e0 100644 --- a/dts/bindings/outputs.yaml +++ b/dts/bindings/outputs.yaml @@ -20,10 +20,6 @@ child-binding: current-max: type: int description: Maximum current of driven power switch (A) - label: - type: string - required: true - description: Human readable string describing the device (used by Zephyr for API name) kconfig-flag: type: boolean description: This value can be checked by Kconfig parser using dt_node_has_bool_prop function diff --git a/tests/boards/native_posix.overlay b/tests/boards/native_posix.overlay index dc85731..3dfc5e8 100644 --- a/tests/boards/native_posix.overlay +++ b/tests/boards/native_posix.overlay @@ -47,28 +47,24 @@ compatible = "outputs"; pwm_switch { - label = "PWM power switch (solar panel)"; pwms = <&pwm3 2 (20*1000*1000) 0>; /* 20 ms period = 50 Hz */ current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; load { - label = "Load output"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; current-max = <20>; kconfig-flag; /* make node visible in Kconfig */ }; can_en { - label = "CAN disable / standby"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; }; adc1: adc1 { compatible = "zephyr,dummy-adc"; - label = "ADC_1"; #io-channel-cells = <1>; };