diff --git a/boards/arc/em_starterkit/board.dtsi b/boards/arc/em_starterkit/board.dtsi index 643bb9eeb1f..e80ee0eea30 100644 --- a/boards/arc/em_starterkit/board.dtsi +++ b/boards/arc/em_starterkit/board.dtsi @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: Apache-2.0 */ +#include + / { aliases { led0 = &led0; @@ -63,36 +65,43 @@ /* gpio flags need validation */ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { /* gpio flags need validation */ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "Push button switch 2"; + zephyr,code = ; }; switch0: switch_0 { /* gpio flags need validation */ gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 1"; + zephyr,code = ; }; switch1: switch_1 { /* gpio flags need validation */ gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 2"; + zephyr,code = ; }; switch2: switch_2 { /* gpio flags need validation */ gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 3"; + zephyr,code = ; }; switch3: switch_3 { /* gpio flags need validation */ gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 4"; + zephyr,code = ; }; }; diff --git a/boards/arc/emsdp/board.dtsi b/boards/arc/emsdp/board.dtsi index b417e30e971..e2be4ad2356 100644 --- a/boards/arc/emsdp/board.dtsi +++ b/boards/arc/emsdp/board.dtsi @@ -1,5 +1,7 @@ /* SPDX-License-Identifier: Apache-2.0 */ +#include + / { aliases { led0 = &led0; @@ -58,21 +60,25 @@ /* gpio flags need validation */ gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 1"; + zephyr,code = ; }; switch1: switch_1 { /* gpio flags need validation */ gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 2"; + zephyr,code = ; }; switch2: switch_2 { /* gpio flags need validation */ gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 3"; + zephyr,code = ; }; switch3: switch_3 { /* gpio flags need validation */ gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; label = "DIP SW1 - Switch 4"; + zephyr,code = ; }; }; diff --git a/boards/arm/96b_argonkey/96b_argonkey.dts b/boards/arm/96b_argonkey/96b_argonkey.dts index 05920213cf8..a7c02dcb881 100644 --- a/boards/arm/96b_argonkey/96b_argonkey.dts +++ b/boards/arm/96b_argonkey/96b_argonkey.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Tocoding Argonkey 96boards"; @@ -36,6 +37,7 @@ user_button: button { label = "User"; gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/96b_carbon/96b_carbon.dts b/boards/arm/96b_carbon/96b_carbon.dts index f5bf90cdd4f..d94c67dc79d 100644 --- a/boards/arm/96b_carbon/96b_carbon.dts +++ b/boards/arm/96b_carbon/96b_carbon.dts @@ -8,6 +8,7 @@ #include #include #include "96b_lscon.dtsi" +#include / { model = "Seeed Studio Carbon 96boards"; @@ -42,6 +43,7 @@ user_button: button { label = "User"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/96b_neonkey/96b_neonkey.dts b/boards/arm/96b_neonkey/96b_neonkey.dts index df65000ebf5..e96a1e8aa83 100644 --- a/boards/arm/96b_neonkey/96b_neonkey.dts +++ b/boards/arm/96b_neonkey/96b_neonkey.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Tocoding Neonkey 96boards"; @@ -44,6 +45,7 @@ user_button: button_0 { label = "User"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/96b_nitrogen/96b_nitrogen.dts b/boards/arm/96b_nitrogen/96b_nitrogen.dts index a9cdaeb3c1c..d5bac1cd6d3 100644 --- a/boards/arm/96b_nitrogen/96b_nitrogen.dts +++ b/boards/arm/96b_nitrogen/96b_nitrogen.dts @@ -8,6 +8,7 @@ #include #include "96b_lscon.dtsi" #include "96b_nitrogen-pinctrl.dtsi" +#include / { model = "Seeed Studio Nitrogen 96board"; @@ -52,6 +53,7 @@ /* gpio flags need validation */ gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; label = "User Push Button"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez.dts b/boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez.dts index 10627da0b75..80281ae098d 100644 --- a/boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez.dts +++ b/boards/arm/96b_stm32_sensor_mez/96b_stm32_sensor_mez.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics 96Boards STM32 Sensor Mezzanine board"; @@ -40,6 +41,7 @@ user_button: button { label = "Key"; gpios = <&gpiod 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/actinius_icarus/actinius_icarus_common.dtsi b/boards/arm/actinius_icarus/actinius_icarus_common.dtsi index 6673e23e029..ab0839205bf 100644 --- a/boards/arm/actinius_icarus/actinius_icarus_common.dtsi +++ b/boards/arm/actinius_icarus/actinius_icarus_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "actinius_icarus_common-pinctrl.dtsi" +#include / { model = "Actinius Icarus IoT Dev Board"; @@ -59,6 +60,7 @@ button0: button_0 { gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/actinius_icarus_bee/actinius_icarus_bee_common.dtsi b/boards/arm/actinius_icarus_bee/actinius_icarus_bee_common.dtsi index 2e13b3a2f31..0bc57cd205a 100644 --- a/boards/arm/actinius_icarus_bee/actinius_icarus_bee_common.dtsi +++ b/boards/arm/actinius_icarus_bee/actinius_icarus_bee_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "actinius_icarus_bee_common-pinctrl.dtsi" +#include / { model = "Actinius Icarus Bee"; @@ -59,6 +60,7 @@ button0: button_0 { gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/actinius_icarus_som_dk/actinius_icarus_som_dk_common.dtsi b/boards/arm/actinius_icarus_som_dk/actinius_icarus_som_dk_common.dtsi index 13e863777a0..317b0d153b7 100644 --- a/boards/arm/actinius_icarus_som_dk/actinius_icarus_som_dk_common.dtsi +++ b/boards/arm/actinius_icarus_som_dk/actinius_icarus_som_dk_common.dtsi @@ -5,6 +5,7 @@ */ #include "actinius_icarus_som_dk_common-pinctrl.dtsi" #include +#include / { model = "Actinius Icarus SoM DK"; @@ -40,6 +41,7 @@ button0: button_0 { gpios = <&gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts b/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts index 391e2dd1d7a..5024f43fd81 100644 --- a/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts +++ b/boards/arm/adafruit_feather_nrf52840/adafruit_feather_nrf52840.dts @@ -8,6 +8,7 @@ #include #include "feather_connector.dtsi" #include "adafruit_feather_nrf52840-pinctrl.dtsi" +#include / { model = "Adafruit Feather nRF52840 Express"; @@ -42,6 +43,7 @@ button0: button_0 { gpios = <&gpio1 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch"; + zephyr,code = ; }; }; diff --git a/boards/arm/adafruit_itsybitsy_nrf52840/adafruit_itsybitsy_nrf52840.dts b/boards/arm/adafruit_itsybitsy_nrf52840/adafruit_itsybitsy_nrf52840.dts index 51b19964972..6e827388aef 100644 --- a/boards/arm/adafruit_itsybitsy_nrf52840/adafruit_itsybitsy_nrf52840.dts +++ b/boards/arm/adafruit_itsybitsy_nrf52840/adafruit_itsybitsy_nrf52840.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "adafruit_itsybitsy_nrf52840-pinctrl.dtsi" +#include / { model = "Adafruit ItsyBitsy nRF52840 Express"; @@ -37,6 +38,7 @@ button0: button_0 { gpios = <&gpio0 29 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch"; + zephyr,code = ; }; }; diff --git a/boards/arm/arduino_giga_r1/arduino_giga_r1.dtsi b/boards/arm/arduino_giga_r1/arduino_giga_r1.dtsi index a4fbc9957b7..ee7eb1229fc 100644 --- a/boards/arm/arduino_giga_r1/arduino_giga_r1.dtsi +++ b/boards/arm/arduino_giga_r1/arduino_giga_r1.dtsi @@ -5,6 +5,7 @@ */ #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -24,6 +25,7 @@ compatible = "gpio-keys"; user_button: button_0 { gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/arduino_nicla_sense_me/arduino_nicla_sense_me.dts b/boards/arm/arduino_nicla_sense_me/arduino_nicla_sense_me.dts index c4b08c7107e..ada4c76441c 100644 --- a/boards/arm/arduino_nicla_sense_me/arduino_nicla_sense_me.dts +++ b/boards/arm/arduino_nicla_sense_me/arduino_nicla_sense_me.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "arduino_nicla_sense_me-pinctrl.dtsi" +#include / { model = "Arduino Nicla Sense ME"; @@ -18,6 +19,7 @@ label = "user button"; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; status = "okay"; + zephyr,code = ; }; }; diff --git a/boards/arm/arty/dts/arty_a7_arm_designstart.dtsi b/boards/arm/arty/dts/arty_a7_arm_designstart.dtsi index 0d4f1270588..0f51819e180 100644 --- a/boards/arm/arty/dts/arty_a7_arm_designstart.dtsi +++ b/boards/arm/arty/dts/arty_a7_arm_designstart.dtsi @@ -6,6 +6,7 @@ #include #include +#include / { chosen { @@ -105,34 +106,42 @@ sw0: sw0 { gpios = <&gpio0_2 0 GPIO_ACTIVE_HIGH>; label = "SW0"; + zephyr,code = ; }; sw1: sw1 { gpios = <&gpio0_2 1 GPIO_ACTIVE_HIGH>; label = "SW1"; + zephyr,code = ; }; sw2: sw2 { gpios = <&gpio0_2 2 GPIO_ACTIVE_HIGH>; label = "SW2"; + zephyr,code = ; }; sw3: sw3 { gpios = <&gpio0_2 3 GPIO_ACTIVE_HIGH>; label = "SW3"; + zephyr,code = ; }; btn0: btn0 { gpios = <&gpio1_2 0 GPIO_ACTIVE_HIGH>; label = "BTN0"; + zephyr,code = ; }; btn1: btn1 { gpios = <&gpio1_2 1 GPIO_ACTIVE_HIGH>; label = "BTN1"; + zephyr,code = ; }; btn2: btn2 { gpios = <&gpio1_2 2 GPIO_ACTIVE_HIGH>; label = "BTN2"; + zephyr,code = ; }; btn3: btn3 { gpios = <&gpio1_2 3 GPIO_ACTIVE_HIGH>; label = "BTN3"; + zephyr,code = ; }; }; diff --git a/boards/arm/atsamc21n_xpro/atsamc21n_xpro.dts b/boards/arm/atsamc21n_xpro/atsamc21n_xpro.dts index 98ab04162a0..e1d64e9124d 100644 --- a/boards/arm/atsamc21n_xpro/atsamc21n_xpro.dts +++ b/boards/arm/atsamc21n_xpro/atsamc21n_xpro.dts @@ -8,6 +8,7 @@ #include #include "atsamc21n_xpro-pinctrl.dtsi" +#include / { model = "SAM C21N Xplained Pro"; @@ -49,6 +50,7 @@ user_button: button_0 { gpios = <&portb 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "User Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/atsamd20_xpro/atsamd20_xpro.dts b/boards/arm/atsamd20_xpro/atsamd20_xpro.dts index 3e5e960dca7..6c57b739d9a 100644 --- a/boards/arm/atsamd20_xpro/atsamd20_xpro.dts +++ b/boards/arm/atsamd20_xpro/atsamd20_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsamd20_xpro-pinctrl.dtsi" +#include / { model = "SAM D20 Xplained Pro"; @@ -38,6 +39,7 @@ user_button: button_0 { gpios = <&porta 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/atsamd21_xpro/atsamd21_xpro.dts b/boards/arm/atsamd21_xpro/atsamd21_xpro.dts index 3b341fc0ce4..628ebbf9885 100644 --- a/boards/arm/atsamd21_xpro/atsamd21_xpro.dts +++ b/boards/arm/atsamd21_xpro/atsamd21_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsamd21_xpro-pinctrl.dtsi" +#include / { model = "SAM D21 Xplained Pro"; @@ -47,6 +48,7 @@ user_button: button_0 { gpios = <&porta 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/atsame54_xpro/atsame54_xpro.dts b/boards/arm/atsame54_xpro/atsame54_xpro.dts index 83f735234b2..79beb0dfe70 100644 --- a/boards/arm/atsame54_xpro/atsame54_xpro.dts +++ b/boards/arm/atsame54_xpro/atsame54_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsame54_xpro-pinctrl.dtsi" +#include / { model = "SAM E54 Xplained Pro"; @@ -47,6 +48,7 @@ button0: button_0 { gpios = <&portb 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/atsaml21_xpro/atsaml21_xpro.dts b/boards/arm/atsaml21_xpro/atsaml21_xpro.dts index 29b5e149458..0e03a7e96f4 100644 --- a/boards/arm/atsaml21_xpro/atsaml21_xpro.dts +++ b/boards/arm/atsaml21_xpro/atsaml21_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsaml21_xpro-pinctrl.dtsi" +#include / { model = "SAM L21 Xplained Pro"; @@ -46,6 +47,7 @@ user_button: button_0 { gpios = <&porta 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/atsamr21_xpro/atsamr21_xpro.dts b/boards/arm/atsamr21_xpro/atsamr21_xpro.dts index 29d942aa79c..a94621730eb 100644 --- a/boards/arm/atsamr21_xpro/atsamr21_xpro.dts +++ b/boards/arm/atsamr21_xpro/atsamr21_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsamr21_xpro-pinctrl.dtsi" +#include / { model = "SAM R21 Xplained Pro"; @@ -48,6 +49,7 @@ user_button: button_0 { gpios = <&porta 28 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; diff --git a/boards/arm/atsamr34_xpro/atsamr34_xpro.dts b/boards/arm/atsamr34_xpro/atsamr34_xpro.dts index 19236c406e0..3e3abee6b2e 100644 --- a/boards/arm/atsamr34_xpro/atsamr34_xpro.dts +++ b/boards/arm/atsamr34_xpro/atsamr34_xpro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "atsamr34_xpro-pinctrl.dtsi" +#include / { model = "SAM R34 Xplained Pro"; @@ -46,6 +47,7 @@ user_button: button_0 { gpios = <&porta 28 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts b/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts index 64bf6fc4db0..1f1e8f2c7b6 100644 --- a/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts +++ b/boards/arm/az3166_iotdevkit/az3166_iotdevkit.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "MXChip AZ3166 IoT Developer Kit"; @@ -80,11 +81,13 @@ button_a: button_a { gpios = <&gpioa 4 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>; label = "Button A"; + zephyr,code = ; }; button_b: button_b { gpios = <&gpioa 10 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>; label = "Button B"; + zephyr,code = ; }; }; diff --git a/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts b/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts index 734db554969..8d16c99edd9 100644 --- a/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts +++ b/boards/arm/b_g474e_dpow1/b_g474e_dpow1.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "B-G474E-DPOW1 Discovery board"; @@ -44,22 +45,27 @@ joystick_sel: button0 { label = "JOYSTICK_SEL"; gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joystick_left: button1 { label = "JOYSTICK_LEFT"; gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joystick_down: button2 { label = "JOYSTICK_DOWN"; gpios = <&gpioc 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joystick_right: button3 { label = "JOYSTICK_RIGHT"; gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joystick_up: button4 { label = "JOYSTICK_UP"; gpios = <&gpiob 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts b/boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts index 5c400c25791..0365865cbf1 100644 --- a/boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts +++ b/boards/arm/b_l072z_lrwan1/b_l072z_lrwan1.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics B-L072Z-LRWAN1 Discovery kit"; @@ -44,6 +45,7 @@ user_button: button_0 { label = "Push button switch"; gpios = <&gpiob 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts b/boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts index 210b5a242ea..da66cb53ada 100644 --- a/boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts +++ b/boards/arm/b_l4s5i_iot01a/b_l4s5i_iot01a.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics B-L4S5I-IOT01A discovery kit"; @@ -39,6 +40,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi index 4c85d494400..a38b391ba9b 100644 --- a/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi +++ b/boards/arm/b_u585i_iot02a/b_u585i_iot02a-common.dtsi @@ -7,6 +7,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -26,6 +27,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/bbc_microbit/bbc_microbit.dts b/boards/arm/bbc_microbit/bbc_microbit.dts index 1f0e3cb248a..417093ec9ce 100644 --- a/boards/arm/bbc_microbit/bbc_microbit.dts +++ b/boards/arm/bbc_microbit/bbc_microbit.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "bbc_microbit-pinctrl.dtsi" +#include / { model = "BBC Micro:bit"; @@ -37,11 +38,13 @@ buttonA: button_0 { label = "BTN_A"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; buttonB: button_1 { label = "BTN_B"; gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts b/boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts index 111486a90a8..d802907c973 100644 --- a/boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts +++ b/boards/arm/bbc_microbit_v2/bbc_microbit_v2.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "bbc_microbit_v2-pinctrl.dtsi" +#include / { model = "BBC Micro:bit V2"; @@ -37,11 +38,13 @@ buttonA: button_0 { label = "BTN_A"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; buttonB: button_1 { label = "BTN_B"; gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/beagle_bcf/beagleconnect_freedom.dts b/boards/arm/beagle_bcf/beagleconnect_freedom.dts index c0a6d843813..3f6fcafaa21 100644 --- a/boards/arm/beagle_bcf/beagleconnect_freedom.dts +++ b/boards/arm/beagle_bcf/beagleconnect_freedom.dts @@ -9,6 +9,7 @@ #include #include "beagleconnect_freedom-pinctrl.dtsi" +#include #define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP) @@ -38,6 +39,7 @@ compatible = "gpio-keys"; button0: button_0 { gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_common.dtsi b/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_common.dtsi index d47034b67b6..5e339e6d1ca 100644 --- a/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_common.dtsi +++ b/boards/arm/bl5340_dvk/bl5340_dvk_cpuapp_common.dtsi @@ -5,6 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "bl5340_dvk_cpuapp_common-pinctrl.dtsi" +#include / { chosen { @@ -25,26 +26,31 @@ boot_button0: boot_button { gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; label = "Bootloader button (S4)"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio_exp0 0 GPIO_ACTIVE_LOW>; label = "Push button switch 1 (S1)"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio_exp0 1 GPIO_ACTIVE_LOW>; label = "Push button switch 2 (S2)"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio_exp0 2 GPIO_ACTIVE_LOW>; label = "Push button switch 3 (S9)"; + zephyr,code = ; }; button4: button_4 { gpios = <&gpio_exp0 3 GPIO_ACTIVE_LOW>; label = "Push button switch 4 (S10)"; + zephyr,code = ; }; }; diff --git a/boards/arm/bl652_dvk/bl652_dvk.dts b/boards/arm/bl652_dvk/bl652_dvk.dts index d524ac0daa2..5569f1323c0 100644 --- a/boards/arm/bl652_dvk/bl652_dvk.dts +++ b/boards/arm/bl652_dvk/bl652_dvk.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "bl652_dvk-pinctrl.dtsi" +#include / { model = "Laird BL652 DVK"; @@ -41,10 +42,12 @@ button1: button_1 { gpios = <&gpio0 11 GPIO_PULL_UP>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 15 GPIO_PULL_UP>; label = "Push button switch 2"; + zephyr,code = ; }; }; diff --git a/boards/arm/bl653_dvk/bl653_dvk.dts b/boards/arm/bl653_dvk/bl653_dvk.dts index f25e42c2622..ceb91aeb96f 100644 --- a/boards/arm/bl653_dvk/bl653_dvk.dts +++ b/boards/arm/bl653_dvk/bl653_dvk.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "bl653_dvk-pinctrl.dtsi" +#include / { model = "Laird BL653 Dev Kit"; @@ -50,18 +51,22 @@ button1: button_1 { gpios = <&gpio0 11 GPIO_PULL_UP>; label = "Push button switch 1 (SW1)"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 12 GPIO_PULL_UP>; label = "Push button switch 2 (SW2)"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 24 GPIO_PULL_UP>; label = "Push button switch 3 (SW9)"; + zephyr,code = ; }; button4: button_4 { gpios = <&gpio0 22 GPIO_PULL_UP>; label = "Push button switch 4 (SW10)"; + zephyr,code = ; }; }; diff --git a/boards/arm/bl654_dvk/bl654_dvk.dts b/boards/arm/bl654_dvk/bl654_dvk.dts index c43c5fab493..b99435696d1 100644 --- a/boards/arm/bl654_dvk/bl654_dvk.dts +++ b/boards/arm/bl654_dvk/bl654_dvk.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "bl654_dvk-pinctrl.dtsi" +#include / { model = "Laird BL654 Dev Kit"; @@ -50,18 +51,22 @@ button1: button_1 { gpios = <&gpio0 11 GPIO_PULL_UP>; label = "Push button switch 1 (SW1)"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 12 GPIO_PULL_UP>; label = "Push button switch 2 (SW2)"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 24 GPIO_PULL_UP>; label = "Push button switch 3 (SW9)"; + zephyr,code = ; }; button4: button_4 { gpios = <&gpio0 25 GPIO_PULL_UP>; label = "Push button switch 4 (SW10)"; + zephyr,code = ; }; }; diff --git a/boards/arm/bl654_sensor_board/bl654_sensor_board.dts b/boards/arm/bl654_sensor_board/bl654_sensor_board.dts index fafd22d2521..1c2949ee2e8 100644 --- a/boards/arm/bl654_sensor_board/bl654_sensor_board.dts +++ b/boards/arm/bl654_sensor_board/bl654_sensor_board.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "bl654_sensor_board-pinctrl.dtsi" +#include / { model = "Laird BL654 Sensor Board"; @@ -37,6 +38,7 @@ button1: button_1 { gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; label = "Push button switch 1 (SW1)"; + zephyr,code = ; }; }; diff --git a/boards/arm/black_f407ve/black_f407ve.dts b/boards/arm/black_f407ve/black_f407ve.dts index 5ea58801fdc..6a76109ce84 100644 --- a/boards/arm/black_f407ve/black_f407ve.dts +++ b/boards/arm/black_f407ve/black_f407ve.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "black_f407ve board"; @@ -38,14 +39,17 @@ user_button_0: K0 { label = "Key K0"; gpios = <&gpioe 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: K1 { label = "Key K1"; gpios = <&gpioe 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_UP: K_UP { label = "Key WK_UP"; gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/black_f407zg_pro/black_f407zg_pro.dts b/boards/arm/black_f407zg_pro/black_f407zg_pro.dts index af72aae4ec8..45a311c5030 100644 --- a/boards/arm/black_f407zg_pro/black_f407zg_pro.dts +++ b/boards/arm/black_f407zg_pro/black_f407zg_pro.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "black_f407zg_pro board"; @@ -38,14 +39,17 @@ user_button_0: K0 { label = "Key K0"; gpios = <&gpiob 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: K1 { label = "Key K1"; gpios = <&gpiob 8 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_UP: K_UP { label = "Key WK_UP"; gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/blackpill_f401cc/blackpill_f401cc.dts b/boards/arm/blackpill_f401cc/blackpill_f401cc.dts index 9b9c66eee49..6b8db4dda52 100644 --- a/boards/arm/blackpill_f401cc/blackpill_f401cc.dts +++ b/boards/arm/blackpill_f401cc/blackpill_f401cc.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "WeAct Studio Black Pill V3.0 Board"; @@ -32,6 +33,7 @@ user_button: button { label = "KEY"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/blackpill_f401ce/blackpill_f401ce.dts b/boards/arm/blackpill_f401ce/blackpill_f401ce.dts index 86912f8af0e..12682be3ec4 100644 --- a/boards/arm/blackpill_f401ce/blackpill_f401ce.dts +++ b/boards/arm/blackpill_f401ce/blackpill_f401ce.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "WeAct Studio Black Pill V3.0 Board"; @@ -32,6 +33,7 @@ user_button: button { label = "KEY"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/blackpill_f411ce/blackpill_f411ce.dts b/boards/arm/blackpill_f411ce/blackpill_f411ce.dts index bb1569bf67f..c2a1e8337af 100644 --- a/boards/arm/blackpill_f411ce/blackpill_f411ce.dts +++ b/boards/arm/blackpill_f411ce/blackpill_f411ce.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include +#include / { model = "WeAct Studio Black Pill V2.0 Board"; @@ -33,6 +34,7 @@ user_button: button { label = "KEY"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/blueclover_plt_demo_v2_nrf52832/blueclover_plt_demo_v2_nrf52832.dts b/boards/arm/blueclover_plt_demo_v2_nrf52832/blueclover_plt_demo_v2_nrf52832.dts index 9dfdbc33a25..cf7dd7a52de 100644 --- a/boards/arm/blueclover_plt_demo_v2_nrf52832/blueclover_plt_demo_v2_nrf52832.dts +++ b/boards/arm/blueclover_plt_demo_v2_nrf52832/blueclover_plt_demo_v2_nrf52832.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "blueclover_plt_demo_v2_nrf52832-pinctrl.dtsi" +#include / { model = "Blue Clover PLT Demo Board V2"; @@ -28,10 +29,12 @@ button0: button_0 { gpios = <&gpio0 26 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 21 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/bt510/bt510.dts b/boards/arm/bt510/bt510.dts index 3e308917792..74818be0d7c 100644 --- a/boards/arm/bt510/bt510.dts +++ b/boards/arm/bt510/bt510.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "bt510-pinctrl.dtsi" +#include / { model = "Laird Sentrius BT510 Sensor"; @@ -41,10 +42,12 @@ button0: button_0 { gpios = <&gpio1 10 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1 (SW1)"; + zephyr,code = ; }; tm0: tm_0 { gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Test mode (TM)"; + zephyr,code = ; }; }; diff --git a/boards/arm/bt610/bt610.dts b/boards/arm/bt610/bt610.dts index 294a47c0f7c..3c047a50fcd 100644 --- a/boards/arm/bt610/bt610.dts +++ b/boards/arm/bt610/bt610.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "bt610-pinctrl.dtsi" +#include / { model = "Laird BT610 Sensor"; @@ -55,10 +56,12 @@ button1: button_1 { gpios = <&gpio0 24 GPIO_PULL_UP>; label = "Boot button switch 1 (SW1)"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio1 1 GPIO_PULL_UP>; label = "Tamper switch 2 (SW2)"; + zephyr,code = ; }; }; diff --git a/boards/arm/cc1352p1_launchxl/cc1352p1_launchxl.dts b/boards/arm/cc1352p1_launchxl/cc1352p1_launchxl.dts index a265a1a012c..2e6b6193e66 100644 --- a/boards/arm/cc1352p1_launchxl/cc1352p1_launchxl.dts +++ b/boards/arm/cc1352p1_launchxl/cc1352p1_launchxl.dts @@ -9,6 +9,7 @@ #include #include "../cc1352r1_launchxl/boosterpack_connector.dtsi" #include "cc1352p1_launchxl-pinctrl.dtsi" +#include / { model = "TI CC1352P1 LaunchXL"; @@ -73,10 +74,12 @@ btn0: btn_0 { gpios = <&gpio0 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; label = "Push button 1"; + zephyr,code = ; }; btn1: btn_1 { gpios = <&gpio0 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; label = "Push button 2"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts b/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts index ec94714217e..dd48944cc0f 100644 --- a/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts +++ b/boards/arm/cc1352r1_launchxl/cc1352r1_launchxl.dts @@ -9,6 +9,7 @@ #include #include "boosterpack_connector.dtsi" #include "cc1352r1_launchxl-pinctrl.dtsi" +#include #define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP) @@ -49,10 +50,12 @@ btn0: btn_0 { gpios = <&gpio0 15 BTN_GPIO_FLAGS>; label = "Push button 1"; + zephyr,code = ; }; btn1: btn_1 { gpios = <&gpio0 14 BTN_GPIO_FLAGS>; label = "Push button 2"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cc1352r_sensortag/cc1352r_sensortag.dts b/boards/arm/cc1352r_sensortag/cc1352r_sensortag.dts index b4d3b54e8eb..179efb3c096 100644 --- a/boards/arm/cc1352r_sensortag/cc1352r_sensortag.dts +++ b/boards/arm/cc1352r_sensortag/cc1352r_sensortag.dts @@ -10,6 +10,7 @@ #include #include "../cc1352r1_launchxl/boosterpack_connector.dtsi" #include "cc1352r_sensortag-pinctrl.dtsi" +#include #define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP) @@ -59,10 +60,12 @@ btn0: btn_0 { gpios = <&gpio0 15 BTN_GPIO_FLAGS>; label = "Push button 1"; + zephyr,code = ; }; btn1: btn_1 { gpios = <&gpio0 14 BTN_GPIO_FLAGS>; label = "Push button 2"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts b/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts index 648fb96c1c4..0245c43f622 100644 --- a/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts +++ b/boards/arm/cc26x2r1_launchxl/cc26x2r1_launchxl.dts @@ -9,6 +9,7 @@ #include #include "boosterpack_connector.dtsi" #include "cc26x2r1_launchxl-pinctrl.dtsi" +#include #define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP) @@ -48,10 +49,12 @@ btn0: btn_0 { gpios = <&gpio0 13 BTN_GPIO_FLAGS>; label = "Push button 1"; + zephyr,code = ; }; btn1: btn_1 { gpios = <&gpio0 14 BTN_GPIO_FLAGS>; label = "Push button 2"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cc3220sf_launchxl/cc3220sf_launchxl.dts b/boards/arm/cc3220sf_launchxl/cc3220sf_launchxl.dts index ad3e0f2155b..39fccf64304 100644 --- a/boards/arm/cc3220sf_launchxl/cc3220sf_launchxl.dts +++ b/boards/arm/cc3220sf_launchxl/cc3220sf_launchxl.dts @@ -5,6 +5,7 @@ #include #include "boosterpack_connector.dtsi" #include "cc3220sf_launchxl-pinctrl.dtsi" +#include / { model = "TI CC3220SF LaunchXL"; @@ -52,11 +53,13 @@ sw2: button_0 { gpios = <&gpioa2 6 GPIO_ACTIVE_HIGH>; label = "Push button switch 2"; + zephyr,code = ; }; /* Push button 3 */ sw3: button_1 { gpios = <&gpioa1 5 GPIO_ACTIVE_HIGH>; label = "Push button switch 3"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cc3235sf_launchxl/cc3235sf_launchxl.dts b/boards/arm/cc3235sf_launchxl/cc3235sf_launchxl.dts index 5851ece300b..f1c08f915d8 100644 --- a/boards/arm/cc3235sf_launchxl/cc3235sf_launchxl.dts +++ b/boards/arm/cc3235sf_launchxl/cc3235sf_launchxl.dts @@ -8,6 +8,7 @@ #include #include "cc3235sf_launchxl-pinctrl.dtsi" +#include / { model = "TI CC3235SF LaunchXL"; @@ -55,11 +56,13 @@ sw2: button_0 { gpios = <&gpioa2 6 GPIO_ACTIVE_HIGH>; label = "Push button switch 2"; + zephyr,code = ; }; /* Push button 3 */ sw3: button_1 { gpios = <&gpioa1 5 GPIO_ACTIVE_HIGH>; label = "Push button switch 3"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_common.dtsi b/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_common.dtsi index 8b6e0e55200..33fdba4d865 100644 --- a/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_common.dtsi +++ b/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160_common.dtsi @@ -5,6 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "circuitdojo_feather_nrf9160_common-pinctrl.dtsi" +#include / { model = "Circuit Dojo nRF9160 Feather"; @@ -36,6 +37,7 @@ button0: button_0 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Switch 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts b/boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts index de1aede5009..fc78324c803 100644 --- a/boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts +++ b/boards/arm/colibri_imx7d_m4/colibri_imx7d_m4.dts @@ -8,6 +8,7 @@ #include #include "colibri_imx7d_m4-pinctrl.dtsi" +#include / { model = "TORADEX Colibri IMX7D board"; @@ -38,6 +39,7 @@ user_switch_1: user_sw_1 { gpios = <&gpio2 26 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; label = "User SW1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi index 9d58a32a658..437ea9ad225 100644 --- a/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi +++ b/boards/arm/cy8ckit_062_ble/cy8ckit_062_ble_common.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { aliases { led0 = &user_led; @@ -24,6 +26,7 @@ user_bt: button_0 { label = "SW_0"; gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/cy8ckit_062_wifi_bt/cy8ckit_062_wifi_bt_m0.dts b/boards/arm/cy8ckit_062_wifi_bt/cy8ckit_062_wifi_bt_m0.dts index eac9b4e1279..6496dcca734 100644 --- a/boards/arm/cy8ckit_062_wifi_bt/cy8ckit_062_wifi_bt_m0.dts +++ b/boards/arm/cy8ckit_062_wifi_bt/cy8ckit_062_wifi_bt_m0.dts @@ -8,6 +8,7 @@ /dts-v1/; #include +#include / { model = "cy8ckit_062_wifi_bt_m0 with a Cypress PSoC6 SoC"; @@ -40,6 +41,7 @@ user_bt: button_0 { label = "SW_0"; gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w-common.dtsi b/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w-common.dtsi index 27380c68788..3676cdbb471 100644 --- a/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w-common.dtsi +++ b/boards/arm/cy8cproto_062_4343w/cy8cproto_062_4343w-common.dtsi @@ -3,6 +3,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { aliases { led0 = &user_led; @@ -23,6 +25,7 @@ user_bt: button_0 { label = "SW_0"; gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/cy8cproto_063_ble/cy8cproto_063_ble.dts b/boards/arm/cy8cproto_063_ble/cy8cproto_063_ble.dts index 449ed03abf3..228fdeae613 100644 --- a/boards/arm/cy8cproto_063_ble/cy8cproto_063_ble.dts +++ b/boards/arm/cy8cproto_063_ble/cy8cproto_063_ble.dts @@ -9,6 +9,7 @@ #include #include #include "cy8cproto_063_ble-pinctrl.dtsi" +#include / { model = "CY8CPROTO-063-BLE PSoCâ„¢ 6 BLE Prototyping Kit"; @@ -44,6 +45,7 @@ user_bt: button_0 { label = "SW_0"; gpios = <&gpio_prt0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev.dts b/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev.dts index 6e5f9a7d308..75510faf4a6 100644 --- a/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev.dts +++ b/boards/arm/decawave_dwm1001_dev/decawave_dwm1001_dev.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "decawave_dwm1001_dev-pinctrl.dtsi" +#include / { model = "Decawave DWM1001-DEV"; @@ -57,6 +58,7 @@ button0: button_0 { gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/degu_evk/degu_evk.dts b/boards/arm/degu_evk/degu_evk.dts index 3ed997c516a..caa134752e0 100644 --- a/boards/arm/degu_evk/degu_evk.dts +++ b/boards/arm/degu_evk/degu_evk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "degu_evk-pinctrl.dtsi" +#include / { model = "Degu Evaluation Kit"; @@ -46,14 +47,17 @@ button0: button_0 { gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW3"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio1 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW4"; + zephyr,code = ; }; }; diff --git a/boards/arm/disco_l475_iot1/disco_l475_iot1.dts b/boards/arm/disco_l475_iot1/disco_l475_iot1.dts index 86504d2fb1e..ca3e9520ca9 100644 --- a/boards/arm/disco_l475_iot1/disco_l475_iot1.dts +++ b/boards/arm/disco_l475_iot1/disco_l475_iot1.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics B-L475E-IOT01Ax board"; @@ -39,6 +40,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/ebyte_e73_tbb_nrf52832/ebyte_e73_tbb_nrf52832.dts b/boards/arm/ebyte_e73_tbb_nrf52832/ebyte_e73_tbb_nrf52832.dts index 01251730f4f..9fa240cb5ae 100644 --- a/boards/arm/ebyte_e73_tbb_nrf52832/ebyte_e73_tbb_nrf52832.dts +++ b/boards/arm/ebyte_e73_tbb_nrf52832/ebyte_e73_tbb_nrf52832.dts @@ -9,6 +9,7 @@ /dts-v1/; #include #include "ebyte_e73_tbb_nrf52832-pinctrl.dtsi" +#include / { model = "EBYTE E73-TBB NRF52832"; @@ -49,10 +50,12 @@ button0: button_0 { gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button SW1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button SW2"; + zephyr,code = ; }; }; diff --git a/boards/arm/efm32gg_sltb009a/efm32gg_sltb009a.dts b/boards/arm/efm32gg_sltb009a/efm32gg_sltb009a.dts index 082ebb25d3d..1ff034899db 100644 --- a/boards/arm/efm32gg_sltb009a/efm32gg_sltb009a.dts +++ b/boards/arm/efm32gg_sltb009a/efm32gg_sltb009a.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs EFM32GG SLTB009A board"; @@ -44,10 +45,12 @@ button0: button_0 { gpios = <&gpiod 5 GPIO_ACTIVE_HIGH>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>; label = "User Push Button 1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts b/boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts index 0cceed52437..a45d13f7183 100644 --- a/boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts +++ b/boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a.dts @@ -8,6 +8,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs EFM32GG SLWSTK6121A board"; @@ -47,11 +48,13 @@ /* gpio flags need validation */ gpios = <&gpiod 6 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiod 8 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/efm32gg_stk3701a/efm32gg_stk3701a.dts b/boards/arm/efm32gg_stk3701a/efm32gg_stk3701a.dts index 41f54a4d910..970cbafa1a2 100644 --- a/boards/arm/efm32gg_stk3701a/efm32gg_stk3701a.dts +++ b/boards/arm/efm32gg_stk3701a/efm32gg_stk3701a.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs EFM32GG STK3701A board"; @@ -46,11 +47,13 @@ /* gpio flags need validation */ gpios = <&gpioc 8 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/efm32hg_slstk3400a/efm32hg_slstk3400a.dts b/boards/arm/efm32hg_slstk3400a/efm32hg_slstk3400a.dts index 25a28cc3a4a..01c1f4d7766 100644 --- a/boards/arm/efm32hg_slstk3400a/efm32hg_slstk3400a.dts +++ b/boards/arm/efm32hg_slstk3400a/efm32hg_slstk3400a.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs EFM32HG SLSTK3400A board"; @@ -44,11 +45,13 @@ /* gpio flags need validation */ gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpioc 10 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi b/boards/arm/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi index b59d45931ea..cb0209f8e4a 100644 --- a/boards/arm/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi +++ b/boards/arm/efm32pg_stk3401a/efm32pg_stk3401a_common.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { model = "Silicon Labs EFM32PG STK3401A board"; @@ -41,11 +43,13 @@ /* gpio flags need validation */ gpios = <&gpiof 6 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiof 7 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi b/boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi index dc966f6716f..0a2ad797644 100644 --- a/boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi +++ b/boards/arm/efm32pg_stk3402a/efm32pg_stk3402a_common.dtsi @@ -6,6 +6,8 @@ */ #include "efm32pg_stk3402a-pinctrl.dtsi" +#include + / { model = "Silicon Labs EFM32PG STK3402A board"; @@ -45,11 +47,13 @@ /* gpio flags need validation */ gpios = <&gpiof 6 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiof 7 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efm32wg_stk3800/efm32wg_stk3800.dts b/boards/arm/efm32wg_stk3800/efm32wg_stk3800.dts index e955a281bb3..a5d06c4af1b 100644 --- a/boards/arm/efm32wg_stk3800/efm32wg_stk3800.dts +++ b/boards/arm/efm32wg_stk3800/efm32wg_stk3800.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs EFM32WG STK3800 board"; @@ -44,11 +45,13 @@ /* gpio flags need validation */ gpios = <&gpiob 9 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiob 19 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/efr32_radio/efr32_radio.dtsi b/boards/arm/efr32_radio/efr32_radio.dtsi index 584799ef33f..a82081de469 100644 --- a/boards/arm/efr32_radio/efr32_radio.dtsi +++ b/boards/arm/efr32_radio/efr32_radio.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { chosen { zephyr,console = &usart0; @@ -41,11 +43,13 @@ /* gpio flags need validation */ gpios = <&gpiof 6 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiof 7 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efr32_radio/efr32_radio_brd4180a.dts b/boards/arm/efr32_radio/efr32_radio_brd4180a.dts index a65dee27e90..0687b206adb 100644 --- a/boards/arm/efr32_radio/efr32_radio_brd4180a.dts +++ b/boards/arm/efr32_radio/efr32_radio_brd4180a.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs BRD4180A (Mighty Gecko Radio Board)"; @@ -46,11 +47,13 @@ /* gpio flags need validation */ gpios = <&gpiod 2 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiod 3 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efr32_radio/efr32_radio_brd4187c.dts b/boards/arm/efr32_radio/efr32_radio_brd4187c.dts index cebc0919d12..bf2a48d7ed9 100644 --- a/boards/arm/efr32_radio/efr32_radio_brd4187c.dts +++ b/boards/arm/efr32_radio/efr32_radio_brd4187c.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silicon Labs BRD4187C (Mighty Gecko Radio Board)"; @@ -45,10 +46,12 @@ button0: button_0 { gpios = <&gpiob GECKO_PIN(1) GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpiob GECKO_PIN(3) GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efr32_thunderboard/thunderboard.dtsi b/boards/arm/efr32_thunderboard/thunderboard.dtsi index 236e8ec479b..31387b87609 100644 --- a/boards/arm/efr32_thunderboard/thunderboard.dtsi +++ b/boards/arm/efr32_thunderboard/thunderboard.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { chosen { zephyr,bt-c2h-uart = &usart1; @@ -26,6 +28,7 @@ button0: button_0 { gpios = <&gpiob GECKO_PIN(1) GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts b/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts index 84723ba6cd5..1a746d53e61 100644 --- a/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts +++ b/boards/arm/efr32mg_sltb004a/efr32mg_sltb004a.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Silabs EFR32MG SLTB004A board (aka Thunderboard Sense 2)"; @@ -48,11 +49,13 @@ /* gpio flags need validation */ gpios = <&gpiod 14 GPIO_ACTIVE_LOW>; label = "User Push Button 0"; + zephyr,code = ; }; button1: button_1 { /* gpio flags need validation */ gpios = <&gpiod 15 GPIO_ACTIVE_LOW>; label = "User Push Button 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/efr32xg24_dk2601b/efr32xg24_dk2601b.dts b/boards/arm/efr32xg24_dk2601b/efr32xg24_dk2601b.dts index 2b0df08cfd3..36e72ad59bd 100644 --- a/boards/arm/efr32xg24_dk2601b/efr32xg24_dk2601b.dts +++ b/boards/arm/efr32xg24_dk2601b/efr32xg24_dk2601b.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Silicon Labs BRD2601B (Mighty Gecko Radio Board)"; @@ -45,9 +46,11 @@ compatible = "gpio-keys"; button0: button_0 { gpios = <&gpiob GECKO_PIN(2) GPIO_ACTIVE_LOW>; + zephyr,code = ; }; button1: button_1 { gpios = <&gpiob GECKO_PIN(3) GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/faze/faze.dts b/boards/arm/faze/faze.dts index 919b984d67a..7184e444454 100644 --- a/boards/arm/faze/faze.dts +++ b/boards/arm/faze/faze.dts @@ -8,6 +8,7 @@ #include #include +#include #include "faze-pinctrl.dtsi" @@ -35,8 +36,9 @@ /* Handle the USB_SLEEP GPIO as a button. */ usb_sleep_button: button_0 { - gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; + gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; label = "USB sleep button"; + zephyr,code = ; }; }; diff --git a/boards/arm/frdm_k22f/frdm_k22f.dts b/boards/arm/frdm_k22f/frdm_k22f.dts index 342e3f9555a..7804af1056d 100644 --- a/boards/arm/frdm_k22f/frdm_k22f.dts +++ b/boards/arm/frdm_k22f/frdm_k22f.dts @@ -9,6 +9,7 @@ #include #include #include "frdm_k22f-pinctrl.dtsi" +#include / { model = "NXP Freedom MK22F board"; @@ -75,10 +76,12 @@ user_button_2: button_0 { label = "User SW2"; gpios = <&gpioc 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_1 { label = "User SW3"; gpios = <&gpiob 17 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/frdm_k64f/frdm_k64f.dts b/boards/arm/frdm_k64f/frdm_k64f.dts index 0dee133c330..ec6a0fdf84e 100644 --- a/boards/arm/frdm_k64f/frdm_k64f.dts +++ b/boards/arm/frdm_k64f/frdm_k64f.dts @@ -4,6 +4,7 @@ #include #include "frdm_k64f-pinctrl.dtsi" +#include / { model = "NXP Freedom MK64F board"; @@ -50,10 +51,12 @@ user_button_2: button_0 { label = "User SW2"; gpios = <&gpioc 6 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_1 { label = "User SW3"; gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/frdm_k82f/frdm_k82f.dts b/boards/arm/frdm_k82f/frdm_k82f.dts index 503ebedf2cd..a60a32d01d8 100644 --- a/boards/arm/frdm_k82f/frdm_k82f.dts +++ b/boards/arm/frdm_k82f/frdm_k82f.dts @@ -10,6 +10,7 @@ #include #include #include "frdm_k82f-pinctrl.dtsi" +#include / { model = "NXP Kinetis K82 Freedom Board"; @@ -79,10 +80,12 @@ user_button_0: button_0 { label = "User SW2"; gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: button_1 { label = "User SW3"; gpios = <&gpioc 6 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/frdm_kl25z/frdm_kl25z.dts b/boards/arm/frdm_kl25z/frdm_kl25z.dts index d12b961a2c7..0f272c00da5 100644 --- a/boards/arm/frdm_kl25z/frdm_kl25z.dts +++ b/boards/arm/frdm_kl25z/frdm_kl25z.dts @@ -4,6 +4,7 @@ #include #include "frdm_kl25z-pinctrl.dtsi" +#include / { model = "NXP Freedom KL25Z board"; @@ -46,10 +47,12 @@ user_button_0: button_0 { label = "User SW0"; gpios = <&gpioa 16 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: button_1 { label = "User SW1"; gpios = <&gpioa 17 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/frdm_kw41z/frdm_kw41z.dts b/boards/arm/frdm_kw41z/frdm_kw41z.dts index a47147ebafc..b9c5051145f 100644 --- a/boards/arm/frdm_kw41z/frdm_kw41z.dts +++ b/boards/arm/frdm_kw41z/frdm_kw41z.dts @@ -4,6 +4,7 @@ #include #include "frdm_kw41z-pinctrl.dtsi" +#include / { model = "NXP Freedom KW41Z board"; @@ -71,10 +72,12 @@ user_button_3: button_0 { label = "User SW3"; gpios = <&gpioc 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_4: button_1 { label = "User SW4"; gpios = <&gpioc 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32e103v_eval/gd32e103v_eval.dts b/boards/arm/gd32e103v_eval/gd32e103v_eval.dts index b9f7074fcd2..1811736fb04 100644 --- a/boards/arm/gd32e103v_eval/gd32e103v_eval.dts +++ b/boards/arm/gd32e103v_eval/gd32e103v_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32e103v_eval-pinctrl.dtsi" +#include / { model = "GigaDevice gd32e103v Evaluation Kit"; @@ -45,14 +46,17 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key: user_key { label = "USER_KEY1"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32e507v_start/gd32e507v_start.dts b/boards/arm/gd32e507v_start/gd32e507v_start.dts index 897f3c2d99d..4da44f66ff5 100644 --- a/boards/arm/gd32e507v_start/gd32e507v_start.dts +++ b/boards/arm/gd32e507v_start/gd32e507v_start.dts @@ -7,6 +7,7 @@ #include #include "gd32e507v_start-pinctrl.dtsi" +#include / { model = "GigaDevice GD32E507V-START"; @@ -32,6 +33,7 @@ user_key: user_key { label = "USER_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32e507z_eval/gd32e507z_eval.dts b/boards/arm/gd32e507z_eval/gd32e507z_eval.dts index 74adcfa1979..6f7140ca17f 100644 --- a/boards/arm/gd32e507z_eval/gd32e507z_eval.dts +++ b/boards/arm/gd32e507z_eval/gd32e507z_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32e507z_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32E507Z-EVAL"; @@ -40,22 +41,27 @@ key_a: key_a { label = "KEY_A"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_b: key_b { label = "KEY_B"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_c: key_c { label = "KEY_C"; gpios = <&gpiof 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_d: key_d { label = "KEY_D"; gpios = <&gpiof 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_cet: key_cet { label = "KEY_CET"; gpios = <&gpiof 15 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f403z_eval/gd32f403z_eval.dts b/boards/arm/gd32f403z_eval/gd32f403z_eval.dts index 94ec2af673b..f2ff8bd1efc 100644 --- a/boards/arm/gd32f403z_eval/gd32f403z_eval.dts +++ b/boards/arm/gd32f403z_eval/gd32f403z_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32f403z_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F403Z Evaluation Kit"; @@ -45,18 +46,22 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key1: user_key1 { label = "USER_KEY1"; gpios = <&gpiof 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key2: user_key2 { label = "USER_KEY2"; gpios = <&gpiof 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f407v_start/gd32f407v_start.dts b/boards/arm/gd32f407v_start/gd32f407v_start.dts index 98d87f3c6b9..f8df275d830 100644 --- a/boards/arm/gd32f407v_start/gd32f407v_start.dts +++ b/boards/arm/gd32f407v_start/gd32f407v_start.dts @@ -7,6 +7,7 @@ #include #include "gd32f407v_start-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F407V-START"; @@ -31,6 +32,7 @@ user_key: user_key { label = "USER_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f450i_eval/gd32f450i_eval.dts b/boards/arm/gd32f450i_eval/gd32f450i_eval.dts index 93c189c279a..01dd5ff86de 100644 --- a/boards/arm/gd32f450i_eval/gd32f450i_eval.dts +++ b/boards/arm/gd32f450i_eval/gd32f450i_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32f450i_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F450I-EVAL"; @@ -41,14 +42,17 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key: user_key { label = "USER_KEY"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f450v_start/gd32f450v_start.dts b/boards/arm/gd32f450v_start/gd32f450v_start.dts index c1d926b4576..803ff1a9709 100644 --- a/boards/arm/gd32f450v_start/gd32f450v_start.dts +++ b/boards/arm/gd32f450v_start/gd32f450v_start.dts @@ -7,6 +7,7 @@ #include #include "gd32f450v_start-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F450V-START"; @@ -31,6 +32,7 @@ user_key: user_key { label = "USER_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f450z_eval/gd32f450z_eval.dts b/boards/arm/gd32f450z_eval/gd32f450z_eval.dts index 9ff910f13da..b40cbb54c79 100644 --- a/boards/arm/gd32f450z_eval/gd32f450z_eval.dts +++ b/boards/arm/gd32f450z_eval/gd32f450z_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32f450z_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F450Z-EVAL"; @@ -41,14 +42,17 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key: user_key { label = "USER_KEY"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32f470i_eval/gd32f470i_eval.dts b/boards/arm/gd32f470i_eval/gd32f470i_eval.dts index 690de4e8765..792533b63ac 100644 --- a/boards/arm/gd32f470i_eval/gd32f470i_eval.dts +++ b/boards/arm/gd32f470i_eval/gd32f470i_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32f470i_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32F470I-EVAL"; @@ -41,14 +42,17 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_key: user_key { label = "USER_KEY"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/gd32l233r_eval/gd32l233r_eval.dts b/boards/arm/gd32l233r_eval/gd32l233r_eval.dts index be482810391..31348d14920 100644 --- a/boards/arm/gd32l233r_eval/gd32l233r_eval.dts +++ b/boards/arm/gd32l233r_eval/gd32l233r_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32l233r_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32L233R Evaluation Kit"; @@ -45,10 +46,12 @@ wakeup_key: wakeup_key { label = "WAKEUP_KEY"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; tamper_key: tamper_key { label = "TAMPER_KEY"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/google_twinkie_v2/google_twinkie_v2.dts b/boards/arm/google_twinkie_v2/google_twinkie_v2.dts index 7a35f217f84..e8f359e0fd0 100644 --- a/boards/arm/google_twinkie_v2/google_twinkie_v2.dts +++ b/boards/arm/google_twinkie_v2/google_twinkie_v2.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Google Twinkie V2"; @@ -38,6 +39,7 @@ */ dfu_detect: dfudetect { gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/holyiot_yj16019/holyiot_yj16019.dts b/boards/arm/holyiot_yj16019/holyiot_yj16019.dts index 33e9304defa..99796210fa8 100644 --- a/boards/arm/holyiot_yj16019/holyiot_yj16019.dts +++ b/boards/arm/holyiot_yj16019/holyiot_yj16019.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "holyiot_yj16019-pinctrl.dtsi" +#include / { model = "Holyiot YJ-16019"; @@ -31,6 +32,7 @@ button0: button_0 { gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; label = "Push button switch"; + zephyr,code = ; }; }; diff --git a/boards/arm/legend/legend.dts b/boards/arm/legend/legend.dts index a7a7b58d381..521b85e092c 100644 --- a/boards/arm/legend/legend.dts +++ b/boards/arm/legend/legend.dts @@ -9,6 +9,7 @@ #include #include #include +#include / { chosen { @@ -28,14 +29,17 @@ brd_id0: brd_id_0 { label = "BRD_ID_0"; gpios = <&gpioc 13 0>; + zephyr,code = ; }; brd_id1: brd_id_1 { label = "BRD_ID_1"; gpios = <&gpioc 14 0>; + zephyr,code = ; }; brd_id2: brd_id_2 { label = "BRD_ID_2"; gpios = <&gpioc 15 0>; + zephyr,code = ; }; }; diff --git a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts index 2a20b6b456f..35f8f8e6174 100644 --- a/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts +++ b/boards/arm/lora_e5_dev_board/lora_e5_dev_board.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Seeed Studio LoRa-E5 Dev Board"; @@ -33,12 +34,14 @@ boot_button: button_0 { label = "SW1"; gpios = <&gpiob 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button: button_1 { label = "SW2"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* user_button can be disconnected, using J14 (D0) */ + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso11u68/lpcxpresso11u68.dts b/boards/arm/lpcxpresso11u68/lpcxpresso11u68.dts index 5eded3adda4..680b662e0c4 100644 --- a/boards/arm/lpcxpresso11u68/lpcxpresso11u68.dts +++ b/boards/arm/lpcxpresso11u68/lpcxpresso11u68.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include "lpcxpresso11u68-pinctrl.dtsi" @@ -34,10 +35,12 @@ isp_button: button_0 { gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; label = "ISP enable button"; + zephyr,code = ; }; wake_up_button: button_1 { gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; label = "Wake-up button"; + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso51u68/lpcxpresso51u68.dts b/boards/arm/lpcxpresso51u68/lpcxpresso51u68.dts index d0fd43a9f67..a32342fcf5d 100644 --- a/boards/arm/lpcxpresso51u68/lpcxpresso51u68.dts +++ b/boards/arm/lpcxpresso51u68/lpcxpresso51u68.dts @@ -8,6 +8,7 @@ #include #include "lpcxpresso51u68-pinctrl.dtsi" +#include / { model = "NXP LPCXPRESSO51U68 board"; @@ -51,14 +52,17 @@ btn_wk: button_0 { label = "Wakeup button"; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; isp0_button: button_1 { label = "ISP0 button"; gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; isp1_button: button_2 { label = "ISP1 button"; gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/lpcxpresso54114/lpcxpresso54114_m4.dts b/boards/arm/lpcxpresso54114/lpcxpresso54114_m4.dts index 57c346bbf0a..797c0a7f0d1 100644 --- a/boards/arm/lpcxpresso54114/lpcxpresso54114_m4.dts +++ b/boards/arm/lpcxpresso54114/lpcxpresso54114_m4.dts @@ -8,6 +8,7 @@ #include #include "lpcxpresso54114.dtsi" +#include / { model = "NXP LPCXpresso54114 board"; @@ -32,14 +33,17 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio0 31 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_3: button_2 { label = "User SW3"; gpios = <&gpio0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/lpcxpresso55s06/lpcxpresso55s06_common.dtsi b/boards/arm/lpcxpresso55s06/lpcxpresso55s06_common.dtsi index c4db6718238..03633b468dc 100644 --- a/boards/arm/lpcxpresso55s06/lpcxpresso55s06_common.dtsi +++ b/boards/arm/lpcxpresso55s06/lpcxpresso55s06_common.dtsi @@ -6,6 +6,7 @@ */ #include "lpcxpresso55s06-pinctrl.dtsi" +#include / { chosen { @@ -51,14 +52,17 @@ btn_wk: button_0 { label = "Wakeup button"; gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; btn_usr: button_1 { label = "User button"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; btn_isp: button_2 { label = "ISP button"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso55s16/lpcxpresso55s16_common.dtsi b/boards/arm/lpcxpresso55s16/lpcxpresso55s16_common.dtsi index 5b58a132b75..b1e152e74c9 100644 --- a/boards/arm/lpcxpresso55s16/lpcxpresso55s16_common.dtsi +++ b/boards/arm/lpcxpresso55s16/lpcxpresso55s16_common.dtsi @@ -5,6 +5,7 @@ */ #include "lpcxpresso55s16-pinctrl.dtsi" +#include / { chosen { @@ -50,14 +51,17 @@ btn_wk: button_0 { label = "Wakeup button"; gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; btn_usr: button_1 { label = "USR button"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; btn_isp: button_2 { label = "ISP button"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso55s28/lpcxpresso55s28.dts b/boards/arm/lpcxpresso55s28/lpcxpresso55s28.dts index 28fd94003c6..7f311be98db 100644 --- a/boards/arm/lpcxpresso55s28/lpcxpresso55s28.dts +++ b/boards/arm/lpcxpresso55s28/lpcxpresso55s28.dts @@ -8,6 +8,7 @@ #include #include "lpcxpresso55s28_common.dtsi" +#include / { model = "NXP LPCXpresso55S28 board"; @@ -34,14 +35,17 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio1 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_3: button_2 { label = "User SW3"; gpios = <&gpio1 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/lpcxpresso55s36/lpcxpresso55s36.dts b/boards/arm/lpcxpresso55s36/lpcxpresso55s36.dts index 8b761f5cab1..98713617fdb 100644 --- a/boards/arm/lpcxpresso55s36/lpcxpresso55s36.dts +++ b/boards/arm/lpcxpresso55s36/lpcxpresso55s36.dts @@ -8,6 +8,7 @@ #include #include "lpcxpresso55s36-pinctrl.dtsi" +#include / { model = "NXP LPCXpresso55S36 board"; @@ -54,10 +55,12 @@ btn_wk: button_0 { label = "Wakeup button"; gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; btn_usr: button_1 { label = "USR button"; gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0.dts b/boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0.dts index d53a1a68af4..050d625013f 100644 --- a/boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0.dts +++ b/boards/arm/lpcxpresso55s69/lpcxpresso55s69_cpu0.dts @@ -9,6 +9,7 @@ #include #include "lpcxpresso55s69.dtsi" #include +#include / { model = "NXP LPCXpresso55S69 board"; @@ -48,14 +49,17 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio0 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio1 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_3: button_2 { label = "User SW3"; gpios = <&gpio1 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/lpcxpresso55s69/lpcxpresso55s69_ns.dts b/boards/arm/lpcxpresso55s69/lpcxpresso55s69_ns.dts index cdca9f26d5f..0491958f9e0 100644 --- a/boards/arm/lpcxpresso55s69/lpcxpresso55s69_ns.dts +++ b/boards/arm/lpcxpresso55s69/lpcxpresso55s69_ns.dts @@ -8,6 +8,7 @@ #include #include "lpcxpresso55s69.dtsi" +#include / { model = "NXP LPCXpresso55S69 board"; @@ -39,14 +40,17 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_2 { label = "User SW3"; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/mg100/mg100.dts b/boards/arm/mg100/mg100.dts index a605c4131eb..512ca901010 100644 --- a/boards/arm/mg100/mg100.dts +++ b/boards/arm/mg100/mg100.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "mg100-pinctrl.dtsi" +#include / { model = "MG100"; @@ -44,6 +45,7 @@ button1: button_1 { gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch"; + zephyr,code = ; }; }; diff --git a/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts b/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts index ebf18d0575e..7409f08ff97 100644 --- a/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts +++ b/boards/arm/mikroe_clicker_2/mikroe_clicker_2.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "MikroE clicker 2 for STM32"; @@ -37,10 +38,12 @@ user_button_0: key_0 { label = "Key PE0"; gpios = <&gpioe 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: key_1 { label = "Key K1"; gpios = <&gpioe 10 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1010_evk/mimxrt1010_evk.dts b/boards/arm/mimxrt1010_evk/mimxrt1010_evk.dts index 6cb04d26429..71f755bacde 100644 --- a/boards/arm/mimxrt1010_evk/mimxrt1010_evk.dts +++ b/boards/arm/mimxrt1010_evk/mimxrt1010_evk.dts @@ -9,6 +9,7 @@ #include #include "mimxrt1010_evk-pinctrl.dtsi" +#include / { model = "NXP MIMXRT1010-EVK board"; @@ -40,6 +41,7 @@ user_button: button-1 { label = "User SW4"; gpios = <&gpio2 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts b/boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts index d535567ef68..a3df588c9af 100644 --- a/boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts +++ b/boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts @@ -8,6 +8,7 @@ #include #include "mimxrt1015_evk-pinctrl.dtsi" +#include / { model = "NXP MIMXRT1015-EVK board"; @@ -39,6 +40,7 @@ user_button: button-1 { label = "User SW4"; gpios = <&gpio2 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts b/boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts index 453537a72ea..4f8d3b803c6 100644 --- a/boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts +++ b/boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts @@ -8,6 +8,7 @@ #include #include "mimxrt1020_evk-pinctrl.dtsi" +#include / { model = "NXP MIMXRT1020-EVK board"; @@ -49,6 +50,7 @@ user_button: button-1 { label = "User SW4"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts b/boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts index cde9f6e41d1..164e7cdb654 100644 --- a/boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts +++ b/boards/arm/mimxrt1024_evk/mimxrt1024_evk.dts @@ -8,6 +8,7 @@ #include #include "mimxrt1024_evk-pinctrl.dtsi" +#include / { model = "NXP MIMXRT1024-EVK board"; @@ -53,6 +54,7 @@ user_button: button-1 { label = "User SW4"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/mimxrt1040_evk/mimxrt1040_evk.dts b/boards/arm/mimxrt1040_evk/mimxrt1040_evk.dts index 6872592af4a..6e9a9c4c2bb 100644 --- a/boards/arm/mimxrt1040_evk/mimxrt1040_evk.dts +++ b/boards/arm/mimxrt1040_evk/mimxrt1040_evk.dts @@ -8,6 +8,7 @@ #include #include "mimxrt1040_evk-pinctrl.dtsi" +#include / { model = "NXP MIMXRT1040-EVK board"; @@ -47,6 +48,7 @@ user_button: button_0 { label = "User SW8"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts b/boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts index d8ef3126d2c..666a6c351ec 100644 --- a/boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts +++ b/boards/arm/mimxrt1050_evk/mimxrt1050_evk.dts @@ -9,6 +9,7 @@ #include #include "mimxrt1050_evk-pinctrl.dtsi" #include +#include / { model = "NXP MIMXRT1050-EVK board"; @@ -56,6 +57,7 @@ user_button: button_0 { label = "User SW8"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts b/boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts index ad24991d5e3..7be0f49b2cd 100644 --- a/boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts +++ b/boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts @@ -9,6 +9,7 @@ #include #include "mimxrt1060_evk-pinctrl.dtsi" #include +#include / { model = "NXP MIMXRT1060-EVK board"; @@ -63,6 +64,7 @@ user_button: button-1 { label = "User SW8"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1064_evk/mimxrt1064_evk.dts b/boards/arm/mimxrt1064_evk/mimxrt1064_evk.dts index 92e7644403c..42c036a959e 100644 --- a/boards/arm/mimxrt1064_evk/mimxrt1064_evk.dts +++ b/boards/arm/mimxrt1064_evk/mimxrt1064_evk.dts @@ -9,6 +9,7 @@ #include #include "mimxrt1064_evk-pinctrl.dtsi" #include +#include / { model = "NXP MIMXRT1064-EVK board"; @@ -64,6 +65,7 @@ user_button: button-1 { label = "User SW8"; gpios = <&gpio5 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1160_evk/mimxrt1160_evk.dtsi b/boards/arm/mimxrt1160_evk/mimxrt1160_evk.dtsi index 724dc04176a..02d09138e75 100644 --- a/boards/arm/mimxrt1160_evk/mimxrt1160_evk.dtsi +++ b/boards/arm/mimxrt1160_evk/mimxrt1160_evk.dtsi @@ -5,6 +5,7 @@ */ #include "mimxrt1160_evk-pinctrl.dtsi" +#include / { aliases { @@ -28,6 +29,7 @@ user_button: button-1 { label = "User SW7"; gpios = <&gpio13 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt1170_evk/mimxrt1170_evk.dtsi b/boards/arm/mimxrt1170_evk/mimxrt1170_evk.dtsi index c54fd468966..4d3b193e5dc 100644 --- a/boards/arm/mimxrt1170_evk/mimxrt1170_evk.dtsi +++ b/boards/arm/mimxrt1170_evk/mimxrt1170_evk.dtsi @@ -5,6 +5,7 @@ */ #include "mimxrt1170_evk-pinctrl.dtsi" +#include / { aliases { @@ -35,6 +36,7 @@ user_button: button-1 { label = "User SW7"; gpios = <&gpio13 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts b/boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts index fc43e988ef0..e65106d87d6 100644 --- a/boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts +++ b/boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include "mimxrt595_evk_cm33-pinctrl.dtsi" @@ -44,10 +45,12 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33.dts b/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33.dts index f0ef3136266..245e9833c3e 100644 --- a/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33.dts +++ b/boards/arm/mimxrt685_evk/mimxrt685_evk_cm33.dts @@ -8,6 +8,7 @@ #include #include +#include #include "mimxrt685_evk_cm33-pinctrl.dtsi" @@ -48,10 +49,12 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps2_an385/mps2_an385.dts b/boards/arm/mps2_an385/mps2_an385.dts index 4dca6703b30..e0046f4dff1 100644 --- a/boards/arm/mps2_an385/mps2_an385.dts +++ b/boards/arm/mps2_an385/mps2_an385.dts @@ -4,6 +4,7 @@ #include #include +#include / { compatible = "arm,mps2"; @@ -43,10 +44,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps2_an521/mps2_an521.dts b/boards/arm/mps2_an521/mps2_an521.dts index 3c83cf5a4a1..d69228b235a 100644 --- a/boards/arm/mps2_an521/mps2_an521.dts +++ b/boards/arm/mps2_an521/mps2_an521.dts @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "arm,mps2"; @@ -55,10 +56,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps2_an521/mps2_an521_ns.dts b/boards/arm/mps2_an521/mps2_an521_ns.dts index ae44631af51..80e235244a1 100644 --- a/boards/arm/mps2_an521/mps2_an521_ns.dts +++ b/boards/arm/mps2_an521/mps2_an521_ns.dts @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "arm,mps2"; @@ -47,10 +48,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps2_an521/mps2_an521_remote.dts b/boards/arm/mps2_an521/mps2_an521_remote.dts index e830a6b4ce4..a52b88ff447 100644 --- a/boards/arm/mps2_an521/mps2_an521_remote.dts +++ b/boards/arm/mps2_an521/mps2_an521_remote.dts @@ -9,6 +9,7 @@ #include #include #include +#include / { compatible = "arm,mps2"; @@ -47,10 +48,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps3_an547/mps3_an547.dts b/boards/arm/mps3_an547/mps3_an547.dts index b1c2cd97fa1..53168a4de2d 100644 --- a/boards/arm/mps3_an547/mps3_an547.dts +++ b/boards/arm/mps3_an547/mps3_an547.dts @@ -9,6 +9,7 @@ #include #include +#include #include / { @@ -79,10 +80,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mps3_an547/mps3_an547_ns.dts b/boards/arm/mps3_an547/mps3_an547_ns.dts index 97f3f4ffdb3..ac6531441eb 100644 --- a/boards/arm/mps3_an547/mps3_an547_ns.dts +++ b/boards/arm/mps3_an547/mps3_an547_ns.dts @@ -8,6 +8,7 @@ #include #include +#include #include / { @@ -46,10 +47,12 @@ user_button_0: button_0 { label = "USERPB0"; gpios = <&gpio_button 0>; + zephyr,code = ; }; user_button_1: button_1 { label = "USERPB1"; gpios = <&gpio_button 1>; + zephyr,code = ; }; }; diff --git a/boards/arm/mr_canhubk3/mr_canhubk3.dts b/boards/arm/mr_canhubk3/mr_canhubk3.dts index 4dd535ed337..f472eb0fe1c 100644 --- a/boards/arm/mr_canhubk3/mr_canhubk3.dts +++ b/boards/arm/mr_canhubk3/mr_canhubk3.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include #include #include "mr_canhubk3-pinctrl.dtsi" @@ -56,10 +57,12 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpiod_l 15 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; user_button_2: button_1 { label = "User SW2"; gpios = <&gpioa_h 9 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts b/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts index 80d6ea3a8f4..077eb4a1657 100644 --- a/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts +++ b/boards/arm/nrf21540dk_nrf52840/nrf21540dk_nrf52840.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "nrf21540dk_nrf52840-pinctrl.dtsi" +#include / { model = "Nordic nRF21540 DK NRF52840"; @@ -57,18 +58,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf51_ble400/nrf51_ble400.dts b/boards/arm/nrf51_ble400/nrf51_ble400.dts index 8ce8809ce00..71b9847422f 100644 --- a/boards/arm/nrf51_ble400/nrf51_ble400.dts +++ b/boards/arm/nrf51_ble400/nrf51_ble400.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf51_ble400-pinctrl.dtsi" +#include / { model = "Waveshare BLE400"; @@ -63,11 +64,13 @@ button0: button_0 { gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; /* Push button switch 1 KEY2 */ button1: button_1 { gpios = <&gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf51_vbluno51/nrf51_vbluno51.dts b/boards/arm/nrf51_vbluno51/nrf51_vbluno51.dts index 9cabf2910a2..e0441183a99 100644 --- a/boards/arm/nrf51_vbluno51/nrf51_vbluno51.dts +++ b/boards/arm/nrf51_vbluno51/nrf51_vbluno51.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf51_vbluno51-pinctrl.dtsi" +#include / { model = "VNG VBLUno51 BLE board"; @@ -44,6 +45,7 @@ /* gpio flags need validation */ gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; label = "Button"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nrf51dk_nrf51422/nrf51dk_nrf51422.dts b/boards/arm/nrf51dk_nrf51422/nrf51dk_nrf51422.dts index 491e777a4a7..cf18877f017 100644 --- a/boards/arm/nrf51dk_nrf51422/nrf51dk_nrf51422.dts +++ b/boards/arm/nrf51dk_nrf51422/nrf51dk_nrf51422.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf51dk_nrf51422-pinctrl.dtsi" +#include / { model = "Nordic nRF51 DK NRF51422"; @@ -55,18 +56,22 @@ button0: button_0 { gpios = <&gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52832_mdk/nrf52832_mdk.dts b/boards/arm/nrf52832_mdk/nrf52832_mdk.dts index 6a6faf6583d..348a5b79745 100644 --- a/boards/arm/nrf52832_mdk/nrf52832_mdk.dts +++ b/boards/arm/nrf52832_mdk/nrf52832_mdk.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "nrf52832_mdk-pinctrl.dtsi" +#include / { model = "nRF52832-MDK Micro Dev Kit"; @@ -61,6 +62,7 @@ button0: button_0 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts b/boards/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts index ae6273b9d39..f70d6649aa8 100644 --- a/boards/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts +++ b/boards/arm/nrf52833dk_nrf52820/nrf52833dk_nrf52820.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52833dk_nrf52820-pinctrl.dtsi" +#include / { model = "Nordic nRF52833 DK NRF52820"; @@ -55,18 +56,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts b/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts index ad7f9dfa57b..0d1725d5bbb 100644 --- a/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts +++ b/boards/arm/nrf52833dk_nrf52833/nrf52833dk_nrf52833.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52833dk_nrf52833-pinctrl.dtsi" +#include / { model = "Nordic nRF52833 DK NRF52833"; @@ -56,18 +57,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840_blip/nrf52840_blip.dts b/boards/arm/nrf52840_blip/nrf52840_blip.dts index 840035f17eb..112d22799bc 100644 --- a/boards/arm/nrf52840_blip/nrf52840_blip.dts +++ b/boards/arm/nrf52840_blip/nrf52840_blip.dts @@ -10,6 +10,7 @@ /dts-v1/; #include #include "nrf52840_blip-pinctrl.dtsi" +#include / { model = "Electronut Labs Blip"; @@ -47,6 +48,7 @@ button0: button_0 { gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840_mdk/nrf52840_mdk.dts b/boards/arm/nrf52840_mdk/nrf52840_mdk.dts index 2cc3979f41b..0ed4addb069 100644 --- a/boards/arm/nrf52840_mdk/nrf52840_mdk.dts +++ b/boards/arm/nrf52840_mdk/nrf52840_mdk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52840_mdk-pinctrl.dtsi" +#include / { model = "nRF52840-MDK Dev Kit"; @@ -61,6 +62,7 @@ button0: button_0 { gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840_mdk_usb_dongle/nrf52840_mdk_usb_dongle.dts b/boards/arm/nrf52840_mdk_usb_dongle/nrf52840_mdk_usb_dongle.dts index 49fa8337da1..616af71443c 100644 --- a/boards/arm/nrf52840_mdk_usb_dongle/nrf52840_mdk_usb_dongle.dts +++ b/boards/arm/nrf52840_mdk_usb_dongle/nrf52840_mdk_usb_dongle.dts @@ -9,6 +9,7 @@ /dts-v1/; #include #include "nrf52840_mdk_usb_dongle-pinctrl.dtsi" +#include / { model = "nRF52840 MDK USB Dongle"; @@ -60,6 +61,7 @@ reset_button: button_0 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "reset button"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840_papyr/nrf52840_papyr.dts b/boards/arm/nrf52840_papyr/nrf52840_papyr.dts index 1e15adb82ff..acbb09d2df2 100644 --- a/boards/arm/nrf52840_papyr/nrf52840_papyr.dts +++ b/boards/arm/nrf52840_papyr/nrf52840_papyr.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52840_papyr-pinctrl.dtsi" +#include / { model = "Papyr"; @@ -60,6 +61,7 @@ button0: button_0 { gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts b/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts index 89d164b4769..eb99beca22f 100644 --- a/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts +++ b/boards/arm/nrf52840dk_nrf52811/nrf52840dk_nrf52811.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52840dk_nrf52811-pinctrl.dtsi" +#include / { model = "Nordic nRF52840 DK NRF52811"; @@ -55,18 +56,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts index bc87fa7077d..ba5d94738a6 100644 --- a/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts +++ b/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52840dk_nrf52840-pinctrl.dtsi" +#include / { model = "Nordic nRF52840 DK NRF52840"; @@ -56,18 +57,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts b/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts index 0d5d098ee3e..f17ecb8e18a 100644 --- a/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts +++ b/boards/arm/nrf52840dongle_nrf52840/nrf52840dongle_nrf52840.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "nrf52840dongle_nrf52840-pinctrl.dtsi" +#include / { model = "Nordic nRF52840 Dongle NRF52840"; @@ -63,6 +64,7 @@ button0: button_0 { gpios = <&gpio1 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52_adafruit_feather/nrf52_adafruit_feather.dts b/boards/arm/nrf52_adafruit_feather/nrf52_adafruit_feather.dts index 95bea9846f6..4412d3c492d 100644 --- a/boards/arm/nrf52_adafruit_feather/nrf52_adafruit_feather.dts +++ b/boards/arm/nrf52_adafruit_feather/nrf52_adafruit_feather.dts @@ -9,6 +9,7 @@ #include #include "feather_connector.dtsi" #include "nrf52_adafruit_feather-pinctrl.dtsi" +#include / { model = "nRF52 Adafruit Feather"; @@ -64,6 +65,7 @@ button0: button_0 { gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Button"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nrf52_sparkfun/nrf52_sparkfun.dts b/boards/arm/nrf52_sparkfun/nrf52_sparkfun.dts index 9ba04799278..618bd670ad1 100644 --- a/boards/arm/nrf52_sparkfun/nrf52_sparkfun.dts +++ b/boards/arm/nrf52_sparkfun/nrf52_sparkfun.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "nrf52_sparkfun-pinctrl.dtsi" +#include / { model = "Sparkfun nRF52832 Breakout"; @@ -44,6 +45,7 @@ /* gpio flags need validation */ gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Button"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nrf52_vbluno52/nrf52_vbluno52.dts b/boards/arm/nrf52_vbluno52/nrf52_vbluno52.dts index e3a0ffa3a4b..8b276c5fed7 100644 --- a/boards/arm/nrf52_vbluno52/nrf52_vbluno52.dts +++ b/boards/arm/nrf52_vbluno52/nrf52_vbluno52.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52_vbluno52-pinctrl.dtsi" +#include / { model = "VNG VBLUno52 BLE 5.0 board"; @@ -43,6 +44,7 @@ /* gpio flags need validation */ gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; label = "Button"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nrf52dk_nrf52805/nrf52dk_nrf52805.dts b/boards/arm/nrf52dk_nrf52805/nrf52dk_nrf52805.dts index 887d9021467..29257e7a0b2 100644 --- a/boards/arm/nrf52dk_nrf52805/nrf52dk_nrf52805.dts +++ b/boards/arm/nrf52dk_nrf52805/nrf52dk_nrf52805.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf52dk_nrf52805-pinctrl.dtsi" +#include / { model = "Nordic nRF52 DK NRF52805"; @@ -48,18 +49,22 @@ button0: button_0 { label = "Push button switch 0"; gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button1: button_1 { label = "Push button switch 1"; gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button2: button_2 { label = "Push button switch 2"; gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button3: button_3 { label = "Push button switch 3"; gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts b/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts index b831d7373c7..823a3db7f7e 100644 --- a/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts +++ b/boards/arm/nrf52dk_nrf52810/nrf52dk_nrf52810.dts @@ -9,6 +9,7 @@ /dts-v1/; #include #include "nrf52dk_nrf52810-pinctrl.dtsi" +#include / { model = "Nordic nRF52 DK NRF52810"; @@ -50,18 +51,22 @@ button0: button_0 { label = "Push button switch 0"; gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button1: button_1 { label = "Push button switch 1"; gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button2: button_2 { label = "Push button switch 2"; gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; button3: button_3 { label = "Push button switch 3"; gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts b/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts index f747f1b7a56..3002a1841c9 100644 --- a/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts +++ b/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "nrf52dk_nrf52832-pinctrl.dtsi" +#include / { model = "Nordic nRF52 DK NRF52832"; @@ -56,18 +57,22 @@ button0: button_0 { gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_shared.dtsi b/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_shared.dtsi index 15cbd575f12..cbf7f62a88f 100644 --- a/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_shared.dtsi +++ b/boards/arm/nrf5340_audio_dk_nrf5340/nrf5340_audio_dk_nrf5340_shared.dtsi @@ -1,3 +1,5 @@ +#include + / { leds: leds { compatible = "gpio-leds"; @@ -44,22 +46,27 @@ button_1_vol_dn: button_1_vol_dn { gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button_2_vol_up: button_2_vol_up { gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 3"; + zephyr,code = ; }; button4: button_4 { gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 4"; + zephyr,code = ; }; button5: button_5 { gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 5"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi b/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi index d7e9d38cde1..e3029b45df3 100644 --- a/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi +++ b/boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "nrf5340_cpuapp_common-pinctrl.dtsi" +#include / { @@ -50,18 +51,22 @@ button0: button_0 { gpios = <&gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 3"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 4"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts b/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts index fe79f77e947..f142744debd 100644 --- a/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts +++ b/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nrf5340dk_nrf5340_cpunet-pinctrl.dtsi" +#include / { model = "Nordic NRF5340 DK NRF5340 Network"; @@ -51,18 +52,22 @@ button0: button_0 { gpios = <&gpio0 23 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 3"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 4"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf9160_innblue21/nrf9160_innblue21_common.dtsi b/boards/arm/nrf9160_innblue21/nrf9160_innblue21_common.dtsi index 813ff571af7..0abfd4d6b9c 100644 --- a/boards/arm/nrf9160_innblue21/nrf9160_innblue21_common.dtsi +++ b/boards/arm/nrf9160_innblue21/nrf9160_innblue21_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "nrf9160_innblue21_common-pinctrl.dtsi" +#include / { model = "innblue v21 Dev Kit"; @@ -42,6 +43,7 @@ button0: button_0 { gpios = <&gpio0 31 GPIO_PULL_UP>; label = "Button 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf9160_innblue22/nrf9160_innblue22_common.dtsi b/boards/arm/nrf9160_innblue22/nrf9160_innblue22_common.dtsi index 33096f3ab0a..4582f975f5d 100644 --- a/boards/arm/nrf9160_innblue22/nrf9160_innblue22_common.dtsi +++ b/boards/arm/nrf9160_innblue22/nrf9160_innblue22_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "nrf9160_innblue22_common-pinctrl.dtsi" +#include / { model = "innblue v22 Dev Kit"; @@ -42,6 +43,7 @@ button0: button_0 { gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Button 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dtsi b/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dtsi index 80e4c9c7ad9..a31b37017d5 100644 --- a/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dtsi +++ b/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "nrf9160dk_nrf9160_common-pinctrl.dtsi" +#include / { model = "Nordic nRF9160 DK NRF9160"; @@ -54,18 +55,22 @@ button0: button_0 { gpios = <&gpio0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Switch 1"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Switch 2"; + zephyr,code = ; }; }; diff --git a/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi b/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi index 7d1df4fab58..1dee5b1b1a3 100644 --- a/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi +++ b/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "nrf9161dk_nrf9161_common-pinctrl.dtsi" +#include / { model = "Nordic nRF9161 DK NRF9161"; @@ -47,18 +48,22 @@ button0: button_0 { gpios = <&gpio0 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 3"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 4"; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_c031c6/nucleo_c031c6.dts b/boards/arm/nucleo_c031c6/nucleo_c031c6.dts index 0d0d68b4598..5f536c3e1d6 100644 --- a/boards/arm/nucleo_c031c6/nucleo_c031c6.dts +++ b/boards/arm/nucleo_c031c6/nucleo_c031c6.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32C031C6-NUCLEO board"; @@ -42,6 +43,7 @@ label = "user button"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; status = "okay"; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f030r8/nucleo_f030r8.dts b/boards/arm/nucleo_f030r8/nucleo_f030r8.dts index d10a5c439c0..c703985b0cb 100644 --- a/boards/arm/nucleo_f030r8/nucleo_f030r8.dts +++ b/boards/arm/nucleo_f030r8/nucleo_f030r8.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F030R8-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts index 45069f13841..70460fb134b 100644 --- a/boards/arm/nucleo_f070rb/nucleo_f070rb.dts +++ b/boards/arm/nucleo_f070rb/nucleo_f070rb.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics NUCLEO-F070RB board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f091rc/nucleo_f091rc.dts b/boards/arm/nucleo_f091rc/nucleo_f091rc.dts index c975ba202eb..b69b41a96dd 100644 --- a/boards/arm/nucleo_f091rc/nucleo_f091rc.dts +++ b/boards/arm/nucleo_f091rc/nucleo_f091rc.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F091RC-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f103rb/nucleo_f103rb.dts b/boards/arm/nucleo_f103rb/nucleo_f103rb.dts index 9cae21bfef1..2215c67f5fc 100644 --- a/boards/arm/nucleo_f103rb/nucleo_f103rb.dts +++ b/boards/arm/nucleo_f103rb/nucleo_f103rb.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F103RB-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f207zg/nucleo_f207zg.dts b/boards/arm/nucleo_f207zg/nucleo_f207zg.dts index c3d9fb7aeee..044ea2c32a0 100644 --- a/boards/arm/nucleo_f207zg/nucleo_f207zg.dts +++ b/boards/arm/nucleo_f207zg/nucleo_f207zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F207ZG-NUCLEO board"; @@ -58,6 +59,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f302r8/nucleo_f302r8.dts b/boards/arm/nucleo_f302r8/nucleo_f302r8.dts index a35261f889c..ec31aa98582 100644 --- a/boards/arm/nucleo_f302r8/nucleo_f302r8.dts +++ b/boards/arm/nucleo_f302r8/nucleo_f302r8.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F302R8-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f303re/nucleo_f303re.dts b/boards/arm/nucleo_f303re/nucleo_f303re.dts index 95020a3f073..5a0fa9e45e6 100644 --- a/boards/arm/nucleo_f303re/nucleo_f303re.dts +++ b/boards/arm/nucleo_f303re/nucleo_f303re.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F303RE-NUCLEO board"; @@ -35,6 +36,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f334r8/nucleo_f334r8.dts b/boards/arm/nucleo_f334r8/nucleo_f334r8.dts index 83d8bd18149..b98720667f0 100644 --- a/boards/arm/nucleo_f334r8/nucleo_f334r8.dts +++ b/boards/arm/nucleo_f334r8/nucleo_f334r8.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F334R8-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f401re/nucleo_f401re.dts b/boards/arm/nucleo_f401re/nucleo_f401re.dts index 06039ac5232..11f81dec242 100644 --- a/boards/arm/nucleo_f401re/nucleo_f401re.dts +++ b/boards/arm/nucleo_f401re/nucleo_f401re.dts @@ -10,6 +10,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F401RE-NUCLEO board"; @@ -43,6 +44,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f410rb/nucleo_f410rb.dts b/boards/arm/nucleo_f410rb/nucleo_f410rb.dts index c6024f4c233..b97a9118cf8 100644 --- a/boards/arm/nucleo_f410rb/nucleo_f410rb.dts +++ b/boards/arm/nucleo_f410rb/nucleo_f410rb.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F410RB-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f411re/nucleo_f411re.dts b/boards/arm/nucleo_f411re/nucleo_f411re.dts index 1a9a3ef3b8c..4ddc2d72440 100644 --- a/boards/arm/nucleo_f411re/nucleo_f411re.dts +++ b/boards/arm/nucleo_f411re/nucleo_f411re.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F411RE-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f412zg/nucleo_f412zg.dts b/boards/arm/nucleo_f412zg/nucleo_f412zg.dts index efd04013e63..ed2097e9ba6 100644 --- a/boards/arm/nucleo_f412zg/nucleo_f412zg.dts +++ b/boards/arm/nucleo_f412zg/nucleo_f412zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F412ZG-NUCLEO board"; @@ -41,6 +42,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f413zh/nucleo_f413zh.dts b/boards/arm/nucleo_f413zh/nucleo_f413zh.dts index 4ce1740cb77..3c4f3f91023 100644 --- a/boards/arm/nucleo_f413zh/nucleo_f413zh.dts +++ b/boards/arm/nucleo_f413zh/nucleo_f413zh.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F413ZH-NUCLEO board"; @@ -41,6 +42,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f429zi/nucleo_f429zi.dts b/boards/arm/nucleo_f429zi/nucleo_f429zi.dts index 9fce1d895f0..1837d3b17e9 100644 --- a/boards/arm/nucleo_f429zi/nucleo_f429zi.dts +++ b/boards/arm/nucleo_f429zi/nucleo_f429zi.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F429ZI-NUCLEO board"; @@ -43,6 +44,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f446re/nucleo_f446re.dts b/boards/arm/nucleo_f446re/nucleo_f446re.dts index 6e123424e5e..59ff0cf7134 100644 --- a/boards/arm/nucleo_f446re/nucleo_f446re.dts +++ b/boards/arm/nucleo_f446re/nucleo_f446re.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32F446RE-NUCLEO board"; @@ -35,6 +36,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f446ze/nucleo_f446ze.dts b/boards/arm/nucleo_f446ze/nucleo_f446ze.dts index f6bb84c7740..989ee85d714 100644 --- a/boards/arm/nucleo_f446ze/nucleo_f446ze.dts +++ b/boards/arm/nucleo_f446ze/nucleo_f446ze.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F446ZE-NUCLEO board"; @@ -42,6 +43,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f746zg/nucleo_f746zg.dts b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts index 60206a87420..b4e5de70212 100644 --- a/boards/arm/nucleo_f746zg/nucleo_f746zg.dts +++ b/boards/arm/nucleo_f746zg/nucleo_f746zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. @@ -50,6 +51,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f756zg/nucleo_f756zg.dts b/boards/arm/nucleo_f756zg/nucleo_f756zg.dts index 329182ffcf7..6f5c4f61dc9 100644 --- a/boards/arm/nucleo_f756zg/nucleo_f756zg.dts +++ b/boards/arm/nucleo_f756zg/nucleo_f756zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. @@ -50,6 +51,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts index 2c92aaf66ef..63861aed981 100644 --- a/boards/arm/nucleo_f767zi/nucleo_f767zi.dts +++ b/boards/arm/nucleo_f767zi/nucleo_f767zi.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include /* * WARNING: The pin PA7 will conflict on selection of SPI_1 and ETH_STM32_HAL. @@ -51,6 +52,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_g070rb/nucleo_g070rb.dts b/boards/arm/nucleo_g070rb/nucleo_g070rb.dts index 94c577c0981..c92aefc6708 100644 --- a/boards/arm/nucleo_g070rb/nucleo_g070rb.dts +++ b/boards/arm/nucleo_g070rb/nucleo_g070rb.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32G070RB-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_g071rb/nucleo_g071rb.dts b/boards/arm/nucleo_g071rb/nucleo_g071rb.dts index 873c6fdd8a1..b2a9d741b37 100644 --- a/boards/arm/nucleo_g071rb/nucleo_g071rb.dts +++ b/boards/arm/nucleo_g071rb/nucleo_g071rb.dts @@ -9,6 +9,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32G071RB-NUCLEO board"; @@ -35,6 +36,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts b/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts index fdffaff74b4..65b60c8a6ea 100644 --- a/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts +++ b/boards/arm/nucleo_g0b1re/nucleo_g0b1re.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32G0B1RE-NUCLEO board"; @@ -36,6 +37,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_g431rb/nucleo_g431rb.dts b/boards/arm/nucleo_g431rb/nucleo_g431rb.dts index 0a60f30635f..a75fc03c93b 100644 --- a/boards/arm/nucleo_g431rb/nucleo_g431rb.dts +++ b/boards/arm/nucleo_g431rb/nucleo_g431rb.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32G431RB-NUCLEO board"; @@ -42,6 +43,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_g474re/nucleo_g474re.dts b/boards/arm/nucleo_g474re/nucleo_g474re.dts index 41619d7ea27..3d85366372d 100644 --- a/boards/arm/nucleo_g474re/nucleo_g474re.dts +++ b/boards/arm/nucleo_g474re/nucleo_g474re.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32G474RE-NUCLEO board"; @@ -42,6 +43,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi index 2c87df305e9..9b3eb95611b 100644 --- a/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi +++ b/boards/arm/nucleo_h563zi/nucleo_h563zi-common.dtsi @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { leds { @@ -32,6 +33,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_h723zg/nucleo_h723zg.dts b/boards/arm/nucleo_h723zg/nucleo_h723zg.dts index 0addd56d72b..f5510169b9c 100644 --- a/boards/arm/nucleo_h723zg/nucleo_h723zg.dts +++ b/boards/arm/nucleo_h723zg/nucleo_h723zg.dts @@ -7,6 +7,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include /* * WARNING: @@ -55,6 +56,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts index a36bede784a..d148169bd88 100644 --- a/boards/arm/nucleo_h743zi/nucleo_h743zi.dts +++ b/boards/arm/nucleo_h743zi/nucleo_h743zi.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32H743ZI-NUCLEO board"; @@ -48,6 +49,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_h745zi_q/nucleo_h745zi_q.dtsi b/boards/arm/nucleo_h745zi_q/nucleo_h745zi_q.dtsi index 209f72aa2a3..d170ae88fb9 100644 --- a/boards/arm/nucleo_h745zi_q/nucleo_h745zi_q.dtsi +++ b/boards/arm/nucleo_h745zi_q/nucleo_h745zi_q.dtsi @@ -6,6 +6,7 @@ #include #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -25,6 +26,7 @@ user_button: button_0 { gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; label = "User SB1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nucleo_h753zi/nucleo_h753zi.dts b/boards/arm/nucleo_h753zi/nucleo_h753zi.dts index 00276657c06..05d295515a3 100644 --- a/boards/arm/nucleo_h753zi/nucleo_h753zi.dts +++ b/boards/arm/nucleo_h753zi/nucleo_h753zi.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32H743ZI-NUCLEO board"; @@ -48,6 +49,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts b/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts index 368e3168862..4c2ad821443 100644 --- a/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts +++ b/boards/arm/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32H7A3ZI-Q-NUCLEO board"; @@ -47,6 +48,7 @@ user_button: button_0 { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l011k4/nucleo_l011k4.dts b/boards/arm/nucleo_l011k4/nucleo_l011k4.dts index ce964856735..0483c9920d7 100644 --- a/boards/arm/nucleo_l011k4/nucleo_l011k4.dts +++ b/boards/arm/nucleo_l011k4/nucleo_l011k4.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32L011K4-NUCLEO board"; @@ -32,6 +33,7 @@ user_button: button { label = "User"; gpios = <&gpioa 12 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l053r8/nucleo_l053r8.dts b/boards/arm/nucleo_l053r8/nucleo_l053r8.dts index 480532f4bfd..be41ab86e2f 100644 --- a/boards/arm/nucleo_l053r8/nucleo_l053r8.dts +++ b/boards/arm/nucleo_l053r8/nucleo_l053r8.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32L053R8-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l073rz/nucleo_l073rz.dts b/boards/arm/nucleo_l073rz/nucleo_l073rz.dts index a72aad9ff93..6ad99d28de3 100644 --- a/boards/arm/nucleo_l073rz/nucleo_l073rz.dts +++ b/boards/arm/nucleo_l073rz/nucleo_l073rz.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32L073RZ-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l152re/nucleo_l152re.dts b/boards/arm/nucleo_l152re/nucleo_l152re.dts index 527591b6d5d..5f5ae4a3c92 100644 --- a/boards/arm/nucleo_l152re/nucleo_l152re.dts +++ b/boards/arm/nucleo_l152re/nucleo_l152re.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32L152RE-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts b/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts index 3ab77925cfb..fa82e94182f 100644 --- a/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts +++ b/boards/arm/nucleo_l412rb_p/nucleo_l412rb_p.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L412RB-P-NUCLEO board"; @@ -33,6 +34,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l433rc_p/nucleo_l433rc_p.dts b/boards/arm/nucleo_l433rc_p/nucleo_l433rc_p.dts index 7c6abddfd99..26e5c12de9c 100644 --- a/boards/arm/nucleo_l433rc_p/nucleo_l433rc_p.dts +++ b/boards/arm/nucleo_l433rc_p/nucleo_l433rc_p.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L433RC-P-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; label = "User"; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l452re/nucleo_l452re_common.dtsi b/boards/arm/nucleo_l452re/nucleo_l452re_common.dtsi index 920bb94cbea..3da0ae94b99 100644 --- a/boards/arm/nucleo_l452re/nucleo_l452re_common.dtsi +++ b/boards/arm/nucleo_l452re/nucleo_l452re_common.dtsi @@ -8,6 +8,7 @@ /dts-v1/; #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L452RE-NUCLEO board"; @@ -26,6 +27,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l476rg/nucleo_l476rg.dts b/boards/arm/nucleo_l476rg/nucleo_l476rg.dts index 20b0620e9a8..c7de35a722c 100644 --- a/boards/arm/nucleo_l476rg/nucleo_l476rg.dts +++ b/boards/arm/nucleo_l476rg/nucleo_l476rg.dts @@ -9,6 +9,7 @@ #include #include "arduino_r3_connector.dtsi" #include "st_morpho_connector.dtsi" +#include / { model = "STMicroelectronics STM32L476RG-NUCLEO board"; @@ -34,6 +35,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l496zg/nucleo_l496zg.dts b/boards/arm/nucleo_l496zg/nucleo_l496zg.dts index 4397605ad6f..e36f63b05b5 100644 --- a/boards/arm/nucleo_l496zg/nucleo_l496zg.dts +++ b/boards/arm/nucleo_l496zg/nucleo_l496zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L496ZG-NUCLEO board"; @@ -49,6 +50,7 @@ user_button: button { label = "User Button"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l4a6zg/nucleo_l4a6zg.dts b/boards/arm/nucleo_l4a6zg/nucleo_l4a6zg.dts index 244aed1615a..0287dff5b35 100644 --- a/boards/arm/nucleo_l4a6zg/nucleo_l4a6zg.dts +++ b/boards/arm/nucleo_l4a6zg/nucleo_l4a6zg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L4A6ZG-NUCLEO board"; @@ -49,6 +50,7 @@ user_button: button { label = "User Button"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts b/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts index ac294b2ad82..e81396c7a6b 100644 --- a/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts +++ b/boards/arm/nucleo_l4r5zi/nucleo_l4r5zi.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L4R5ZI-NUCLEO board"; @@ -43,6 +44,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi b/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi index 057cbebe2c5..88bb469d220 100644 --- a/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi +++ b/boards/arm/nucleo_l552ze_q/nucleo_l552ze_q-common.dtsi @@ -7,6 +7,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -30,6 +31,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi b/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi index 265364c8d51..f95433606ee 100644 --- a/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi +++ b/boards/arm/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi @@ -7,6 +7,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -30,6 +31,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts index f580993a8cd..be3caad9aef 100644 --- a/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts +++ b/boards/arm/nucleo_wb55rg/nucleo_wb55rg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32WB55RG-NUCLEO board"; @@ -44,14 +45,17 @@ user_button_1: button_0 { label = "SW1"; gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_2: button_1 { label = "SW2"; gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_3: button_2 { label = "SW3"; gpios = <&gpiod 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts b/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts index fc5a75a6196..33e6884167a 100644 --- a/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts +++ b/boards/arm/nucleo_wba52cg/nucleo_wba52cg.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32WBA52CG-NUCLEO board"; @@ -36,6 +37,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts b/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts index 1959ad16127..3248504e8f6 100644 --- a/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts +++ b/boards/arm/nucleo_wl55jc/nucleo_wl55jc.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32WL55JC-NUCLEO board"; @@ -42,14 +43,17 @@ user_button_1: button_0 { label = "SW1"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_2: button_1 { label = "SW2"; gpios = <&gpioa 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; user_button_3: button_2 { label = "SW3"; gpios = <&gpioc 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/numaker_pfm_m467/numaker_pfm_m467.dts b/boards/arm/numaker_pfm_m467/numaker_pfm_m467.dts index 988337d24d5..860ca7579f1 100644 --- a/boards/arm/numaker_pfm_m467/numaker_pfm_m467.dts +++ b/boards/arm/numaker_pfm_m467/numaker_pfm_m467.dts @@ -8,6 +8,7 @@ #include #include "numaker_pfm_m467-pinctrl.dtsi" +#include / { model = "Nuvoton PFM M467 board"; @@ -52,10 +53,12 @@ user_button_1: button_1 { label = "User SW2"; gpios = <&gpioh 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_2 { label = "User SW3"; gpios = <&gpioh 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/nuvoton_pfm_m487/nuvoton_pfm_m487.dts b/boards/arm/nuvoton_pfm_m487/nuvoton_pfm_m487.dts index 8ac1b9c124f..f9c537307b3 100644 --- a/boards/arm/nuvoton_pfm_m487/nuvoton_pfm_m487.dts +++ b/boards/arm/nuvoton_pfm_m487/nuvoton_pfm_m487.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "nuvoton_pfm_m487-pinctrl.dtsi" +#include / { model = "Nuvoton PFM M487 board"; @@ -48,10 +49,12 @@ sw2: button_0 { gpios = <&gpiog 15 GPIO_ACTIVE_LOW>; label = "User SW2"; + zephyr,code = ; }; sw3: button_1 { gpios = <&gpiof 11 GPIO_ACTIVE_LOW>; label = "User SW3"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/olimex_lora_stm32wl_devkit/olimex_lora_stm32wl_devkit.dts b/boards/arm/olimex_lora_stm32wl_devkit/olimex_lora_stm32wl_devkit.dts index 434fa8b5fb7..b24649edb71 100644 --- a/boards/arm/olimex_lora_stm32wl_devkit/olimex_lora_stm32wl_devkit.dts +++ b/boards/arm/olimex_lora_stm32wl_devkit/olimex_lora_stm32wl_devkit.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include / { model = "Olimex LoRa STM32WL DevKit"; @@ -32,6 +33,7 @@ user_button: button_0 { label = "SW2"; gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimex_stm32_e407/olimex_stm32_e407.dts b/boards/arm/olimex_stm32_e407/olimex_stm32_e407.dts index 3d07b2acf3f..728380da88d 100644 --- a/boards/arm/olimex_stm32_e407/olimex_stm32_e407.dts +++ b/boards/arm/olimex_stm32_e407/olimex_stm32_e407.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex STM32-E407 board"; @@ -33,6 +34,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimex_stm32_h103/olimex_stm32_h103.dts b/boards/arm/olimex_stm32_h103/olimex_stm32_h103.dts index 44b8b7c847b..6bf3d1d3a93 100644 --- a/boards/arm/olimex_stm32_h103/olimex_stm32_h103.dts +++ b/boards/arm/olimex_stm32_h103/olimex_stm32_h103.dts @@ -6,6 +6,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex STM32-H103 board"; @@ -31,6 +32,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimex_stm32_h405/olimex_stm32_h405.dts b/boards/arm/olimex_stm32_h405/olimex_stm32_h405.dts index 4c168a3d939..13f5eeff55f 100644 --- a/boards/arm/olimex_stm32_h405/olimex_stm32_h405.dts +++ b/boards/arm/olimex_stm32_h405/olimex_stm32_h405.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex STM32-H405 board"; @@ -33,6 +34,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimex_stm32_h407/olimex_stm32_h407.dts b/boards/arm/olimex_stm32_h407/olimex_stm32_h407.dts index a0d1dd1f80b..40b47a92c08 100644 --- a/boards/arm/olimex_stm32_h407/olimex_stm32_h407.dts +++ b/boards/arm/olimex_stm32_h407/olimex_stm32_h407.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex STM32-H407 board"; @@ -33,6 +34,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimex_stm32_p405/olimex_stm32_p405.dts b/boards/arm/olimex_stm32_p405/olimex_stm32_p405.dts index 0069aef01e4..866a8318f3e 100644 --- a/boards/arm/olimex_stm32_p405/olimex_stm32_p405.dts +++ b/boards/arm/olimex_stm32_p405/olimex_stm32_p405.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex STM32-P405 board"; @@ -34,6 +35,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/olimexino_stm32/olimexino_stm32.dts b/boards/arm/olimexino_stm32/olimexino_stm32.dts index 3014e398885..931012548fd 100644 --- a/boards/arm/olimexino_stm32/olimexino_stm32.dts +++ b/boards/arm/olimexino_stm32/olimexino_stm32.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Olimex OLIMEXINO-STM32 board"; @@ -37,6 +38,7 @@ user_button: button { label = "Key"; gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/pan1770_evb/pan1770_evb.dts b/boards/arm/pan1770_evb/pan1770_evb.dts index 0a60a6b9aba..d8fbe8fe9df 100644 --- a/boards/arm/pan1770_evb/pan1770_evb.dts +++ b/boards/arm/pan1770_evb/pan1770_evb.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "pan1770_evb-pinctrl.dtsi" +#include / { model = "pan1770-evb"; @@ -57,18 +58,22 @@ evb_sw1: evb_sw_1 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW1 on EVB"; + zephyr,code = ; }; evb_sw2: evb_sw_2 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2 on EVB"; + zephyr,code = ; }; evb_sw3: evb_sw_3 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW3 on EVB"; + zephyr,code = ; }; evb_sw4: evb_sw_4 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW4 on EVB"; + zephyr,code = ; }; }; diff --git a/boards/arm/pan1780_evb/pan1780_evb.dts b/boards/arm/pan1780_evb/pan1780_evb.dts index c104f1d5c4b..4f4dbca98ac 100644 --- a/boards/arm/pan1780_evb/pan1780_evb.dts +++ b/boards/arm/pan1780_evb/pan1780_evb.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "pan1780_evb-pinctrl.dtsi" +#include / { model = "pan1780-evb"; @@ -57,18 +58,22 @@ evb_sw1: evb_sw_1 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW1 on EVB"; + zephyr,code = ; }; evb_sw2: evb_sw_2 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2 on EVB"; + zephyr,code = ; }; evb_sw3: evb_sw_3 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW3 on EVB"; + zephyr,code = ; }; evb_sw4: evb_sw_4 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW4 on EVB"; + zephyr,code = ; }; }; diff --git a/boards/arm/pan1781_evb/pan1781_evb.dts b/boards/arm/pan1781_evb/pan1781_evb.dts index eba891b15db..7d9b7028e35 100644 --- a/boards/arm/pan1781_evb/pan1781_evb.dts +++ b/boards/arm/pan1781_evb/pan1781_evb.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "pan1781_evb-pinctrl.dtsi" +#include / { model = "pan1781-evb"; @@ -48,10 +49,12 @@ evb_sw1: evb_sw_1 { gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW1 on EVB"; + zephyr,code = ; }; evb_sw2: evb_sw_2 { gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2 on EVB"; + zephyr,code = ; }; }; diff --git a/boards/arm/pan1782_evb/pan1782_evb.dts b/boards/arm/pan1782_evb/pan1782_evb.dts index 1e12c161261..cf169e41d87 100644 --- a/boards/arm/pan1782_evb/pan1782_evb.dts +++ b/boards/arm/pan1782_evb/pan1782_evb.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "pan1782_evb-pinctrl.dtsi" +#include / { model = "pan1782-evb"; @@ -49,10 +50,12 @@ evb_sw1: evb_sw1 { gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW1 on EVB"; + zephyr,code = ; }; evb_sw2: evb_sw2 { gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "SW2 on EVB"; + zephyr,code = ; }; }; diff --git a/boards/arm/pandora_stm32l475/pandora_stm32l475.dts b/boards/arm/pandora_stm32l475/pandora_stm32l475.dts index 18e99e39e40..67d7124dcb0 100644 --- a/boards/arm/pandora_stm32l475/pandora_stm32l475.dts +++ b/boards/arm/pandora_stm32l475/pandora_stm32l475.dts @@ -11,6 +11,7 @@ /dts-v1/; #include #include +#include / { model = "STM32L475 Pandora Development Board"; @@ -51,18 +52,22 @@ joy_up: joystick_up { label = "joystick up"; gpios = <&gpioc 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpiod 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpiod 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpiod 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/particle_argon/dts/mesh_feather.dtsi b/boards/arm/particle_argon/dts/mesh_feather.dtsi index d466c40f4a3..ee3c4340d5b 100644 --- a/boards/arm/particle_argon/dts/mesh_feather.dtsi +++ b/boards/arm/particle_argon/dts/mesh_feather.dtsi @@ -10,6 +10,7 @@ * NOTE: This file is replicated in particle_{argon,boron,xenon}. * Changes should be made in all instances. */ #include "mesh_feather-pinctrl.dtsi" +#include / { aliases { @@ -57,11 +58,13 @@ mode_button: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Mode Button"; + zephyr,code = ; }; reset_button: button_1 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Reset Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/particle_boron/dts/mesh_feather.dtsi b/boards/arm/particle_boron/dts/mesh_feather.dtsi index d466c40f4a3..0005ca547ff 100644 --- a/boards/arm/particle_boron/dts/mesh_feather.dtsi +++ b/boards/arm/particle_boron/dts/mesh_feather.dtsi @@ -10,6 +10,7 @@ * NOTE: This file is replicated in particle_{argon,boron,xenon}. * Changes should be made in all instances. */ #include "mesh_feather-pinctrl.dtsi" +#include / { aliases { @@ -57,11 +58,13 @@ mode_button: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Mode Button"; + zephyr,code = ; }; reset_button: button_1 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Reset Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/particle_xenon/dts/mesh_feather.dtsi b/boards/arm/particle_xenon/dts/mesh_feather.dtsi index 3a54a99f1dc..13b7e238230 100644 --- a/boards/arm/particle_xenon/dts/mesh_feather.dtsi +++ b/boards/arm/particle_xenon/dts/mesh_feather.dtsi @@ -10,6 +10,7 @@ * NOTE: This file is replicated in particle_{argon,boron,xenon}. * Changes should be made in all instances. */ #include "mesh_feather-pinctrl.dtsi" +#include / { aliases { @@ -56,11 +57,13 @@ mode_button: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Mode Button"; + zephyr,code = ; }; reset_button: button_1 { gpios = <&gpio0 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Reset Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/pinetime_devkit0/pinetime_devkit0.dts b/boards/arm/pinetime_devkit0/pinetime_devkit0.dts index e2817fbf0c6..009c0fbaaf5 100644 --- a/boards/arm/pinetime_devkit0/pinetime_devkit0.dts +++ b/boards/arm/pinetime_devkit0/pinetime_devkit0.dts @@ -11,6 +11,7 @@ /dts-v1/; #include #include "pinetime_devkit0-pinctrl.dtsi" +#include / { model = "Pine64 PineTime DevKit0"; @@ -63,6 +64,7 @@ key_in: button_0 { gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; label = "Key in"; + zephyr,code = ; }; }; diff --git a/boards/arm/pinnacle_100_dvk/pinnacle_100_dvk.dts b/boards/arm/pinnacle_100_dvk/pinnacle_100_dvk.dts index 1866583e206..62664e67b5e 100644 --- a/boards/arm/pinnacle_100_dvk/pinnacle_100_dvk.dts +++ b/boards/arm/pinnacle_100_dvk/pinnacle_100_dvk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "pinnacle_100_dvk-pinctrl.dtsi" +#include / { model = "Pinnacle 100 Dev Kit"; @@ -48,18 +49,22 @@ button1: button_1 { gpios = <&gpio0 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; button4: button_4 { gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 4"; + zephyr,code = ; }; }; diff --git a/boards/arm/qomu/qomu.dts b/boards/arm/qomu/qomu.dts index dfdb9a14c18..1e4d2d2376f 100644 --- a/boards/arm/qomu/qomu.dts +++ b/boards/arm/qomu/qomu.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "QuickLogic Qomu board"; @@ -49,6 +50,7 @@ button0: button_0 { gpios = <&gpio 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "User Push Button 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/quick_feather/quick_feather.dts b/boards/arm/quick_feather/quick_feather.dts index 2dc8053255a..cbe3ee81771 100644 --- a/boards/arm/quick_feather/quick_feather.dts +++ b/boards/arm/quick_feather/quick_feather.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "QuickLogic Quick Feather board"; @@ -49,6 +50,7 @@ button0: button_0 { gpios = <&gpio 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "User Push Button 0"; + zephyr,code = ; }; }; diff --git a/boards/arm/raytac_mdbt50q_db_33_nrf52833/raytac_mdbt50q_db_33_nrf52833.dts b/boards/arm/raytac_mdbt50q_db_33_nrf52833/raytac_mdbt50q_db_33_nrf52833.dts index 2e776a883b9..6a530e687f6 100644 --- a/boards/arm/raytac_mdbt50q_db_33_nrf52833/raytac_mdbt50q_db_33_nrf52833.dts +++ b/boards/arm/raytac_mdbt50q_db_33_nrf52833/raytac_mdbt50q_db_33_nrf52833.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "raytac_mdbt50q_db_33_nrf52833-pinctrl.dtsi" +#include / { model = "Raytac MDBT50Q-DB-33 nRF52833"; @@ -52,18 +53,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/raytac_mdbt50q_db_40_nrf52840/raytac_mdbt50q_db_40_nrf52840.dts b/boards/arm/raytac_mdbt50q_db_40_nrf52840/raytac_mdbt50q_db_40_nrf52840.dts index 182d9494c12..2414b8ea517 100644 --- a/boards/arm/raytac_mdbt50q_db_40_nrf52840/raytac_mdbt50q_db_40_nrf52840.dts +++ b/boards/arm/raytac_mdbt50q_db_40_nrf52840/raytac_mdbt50q_db_40_nrf52840.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "raytac_mdbt50q_db_40_nrf52840-pinctrl.dtsi" +#include / { model = "Raytac MDBT50Q-DB-40_nRF52840"; @@ -52,18 +53,22 @@ button0: button_0 { gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/rcar_h3_salvatorx/rcar_h3_salvatorx_cr7.dts b/boards/arm/rcar_h3_salvatorx/rcar_h3_salvatorx_cr7.dts index ab62b23751f..aeb4cc0a09a 100644 --- a/boards/arm/rcar_h3_salvatorx/rcar_h3_salvatorx_cr7.dts +++ b/boards/arm/rcar_h3_salvatorx/rcar_h3_salvatorx_cr7.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "rcar_h3_salvatorx_cr7-pinctrl.dtsi" +#include / { model = "Renesas h3 Salvator-X board"; @@ -41,14 +42,17 @@ user_button_0: sw20 { gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; label = "sw20"; + zephyr,code = ; }; user_button_1: sw21 { gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; label = "sw21"; + zephyr,code = ; }; user_button_2: sw22 { gpios = <&gpio6 13 GPIO_ACTIVE_LOW>; label = "sw22"; + zephyr,code = ; }; }; diff --git a/boards/arm/rcar_h3ulcb/rcar_h3ulcb_cr7.dts b/boards/arm/rcar_h3ulcb/rcar_h3ulcb_cr7.dts index 100ff106e60..9225a102b7a 100644 --- a/boards/arm/rcar_h3ulcb/rcar_h3ulcb_cr7.dts +++ b/boards/arm/rcar_h3ulcb/rcar_h3ulcb_cr7.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "rcar_h3ulcb_cr7-pinctrl.dtsi" +#include / { model = "Renesas h3ulcb board"; @@ -33,6 +34,7 @@ user_button: sw3 { gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; label = "User switch"; + zephyr,code = ; }; }; diff --git a/boards/arm/reel_board/dts/reel_board.dtsi b/boards/arm/reel_board/dts/reel_board.dtsi index fd8e2fc31e9..6289cf0ec6d 100644 --- a/boards/arm/reel_board/dts/reel_board.dtsi +++ b/boards/arm/reel_board/dts/reel_board.dtsi @@ -5,6 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "reel_board-pinctrl.dtsi" +#include / { chosen { @@ -45,6 +46,7 @@ user_button: button_0 { gpios = <&gpio0 7 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "User Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/rm1xx_dvk/rm1xx_dvk.dts b/boards/arm/rm1xx_dvk/rm1xx_dvk.dts index 3ff2cd54ae7..8d364bfa27a 100644 --- a/boards/arm/rm1xx_dvk/rm1xx_dvk.dts +++ b/boards/arm/rm1xx_dvk/rm1xx_dvk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "rm1xx_dvk-pinctrl.dtsi" +#include / { model = "Laird Connectivity RM1XX_DVK"; @@ -27,6 +28,7 @@ button2: button_2 { gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2 (BUTTON2)"; + zephyr,code = ; }; }; diff --git a/boards/arm/ronoth_lodev/ronoth_lodev.dts b/boards/arm/ronoth_lodev/ronoth_lodev.dts index 05de730cbde..f801db87fb5 100644 --- a/boards/arm/ronoth_lodev/ronoth_lodev.dts +++ b/boards/arm/ronoth_lodev/ronoth_lodev.dts @@ -11,6 +11,7 @@ /dts-v1/; #include +#include / { model = "Ronoth LoDev"; @@ -41,6 +42,7 @@ user_button: button { label = "User"; gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts b/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts index a07831aef1a..1170759c24a 100644 --- a/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts +++ b/boards/arm/ruuvi_ruuvitag/ruuvi_ruuvitag.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ruuvi_ruuvitag-pinctrl.dtsi" +#include / { model = "Ruuvi RuuviTag"; @@ -49,6 +50,7 @@ button0: button_0 { gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/sam4e_xpro/sam4e_xpro.dts b/boards/arm/sam4e_xpro/sam4e_xpro.dts index cdfdcc630ab..7131619a7a5 100644 --- a/boards/arm/sam4e_xpro/sam4e_xpro.dts +++ b/boards/arm/sam4e_xpro/sam4e_xpro.dts @@ -8,6 +8,7 @@ #include #include "sam4e_xpro-pinctrl.dtsi" +#include / { model = "Atmel SAM4E Xplained Pro Board with an Atmel SAM4E16E SoC"; @@ -41,8 +42,8 @@ compatible = "gpio-keys"; user_button: button_1 { label = "User Button"; - gpios = <&pioa 2 (GPIO_PULL_UP | - GPIO_ACTIVE_LOW)>; + gpios = <&pioa 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/sam4l_ek/sam4l_ek.dts b/boards/arm/sam4l_ek/sam4l_ek.dts index cc44040840a..59015e870e9 100644 --- a/boards/arm/sam4l_ek/sam4l_ek.dts +++ b/boards/arm/sam4l_ek/sam4l_ek.dts @@ -7,6 +7,7 @@ #include #include "sam4l_ek-pinctrl.dtsi" +#include / { model = "Atmel SAM4L-EK Board with an Atmel SAM4LC4C SoC"; @@ -39,6 +40,7 @@ sw0_dfu: button_1 { label = "SW0_DFU"; gpios = <&gpioc 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/sam4s_xplained/sam4s_xplained.dts b/boards/arm/sam4s_xplained/sam4s_xplained.dts index 8010dd0f568..2e06d08aade 100644 --- a/boards/arm/sam4s_xplained/sam4s_xplained.dts +++ b/boards/arm/sam4s_xplained/sam4s_xplained.dts @@ -7,6 +7,7 @@ #include #include "sam4s_xplained-pinctrl.dtsi" +#include / { model = "Atmel SAM4S Xplained Board with an Atmel SAM4S16C SoC"; @@ -60,6 +61,7 @@ user_button: button_1 { label = "User Button"; gpios = <&pioa 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi b/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi index 486b7c02af4..dc8273a9463 100644 --- a/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi +++ b/boards/arm/sam_e70_xplained/sam_e70_xplained-common.dtsi @@ -8,6 +8,7 @@ */ #include "sam_e70_xplained-pinctrl.dtsi" +#include / { aliases { @@ -44,6 +45,7 @@ sw0_user_button: button_1 { label = "User Button"; gpios = <&pioa 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi index 11fcb87c520..42ec2fa3583 100644 --- a/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi +++ b/boards/arm/sam_v71_xult/sam_v71_xult-common.dtsi @@ -8,6 +8,7 @@ */ #include "sam_v71_xult-pinctrl.dtsi" +#include / { aliases { @@ -60,10 +61,12 @@ sw0_user_button: button_1 { label = "User Button 0"; gpios = <&pioa 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; sw1_user_button: button_2 { label = "User Button 1"; gpios = <&piob 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/sensortile_box/sensortile_box.dts b/boards/arm/sensortile_box/sensortile_box.dts index bb75e0ba641..e622d5c190f 100644 --- a/boards/arm/sensortile_box/sensortile_box.dts +++ b/boards/arm/sensortile_box/sensortile_box.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics SensorTile.box board"; @@ -37,6 +38,7 @@ user_button: button { label = "User PB1"; gpios = <&gpiog 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi b/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi index ab268f3cdca..b85c00ea5b2 100644 --- a/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi +++ b/boards/arm/sparkfun_thing_plus_nrf9160/sparkfun_thing_plus_nrf9160_common.dtsi @@ -5,6 +5,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "sparkfun_thing_plus_nrf9160_common-pinctrl.dtsi" +#include / { model = "Sparkfun nRF9160 Thing Plus"; @@ -36,6 +37,7 @@ button0: button_0 { gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Switch 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/stm3210c_eval/stm3210c_eval.dts b/boards/arm/stm3210c_eval/stm3210c_eval.dts index 5d9c70df5b5..20e3f1a0584 100644 --- a/boards/arm/stm3210c_eval/stm3210c_eval.dts +++ b/boards/arm/stm3210c_eval/stm3210c_eval.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM3210C-EVAL board"; @@ -32,6 +33,7 @@ user_button: button { label = "User"; gpios = <&gpiob 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32373c_eval/stm32373c_eval.dts b/boards/arm/stm32373c_eval/stm32373c_eval.dts index 69ad9ef3675..a4ef8106915 100644 --- a/boards/arm/stm32373c_eval/stm32373c_eval.dts +++ b/boards/arm/stm32373c_eval/stm32373c_eval.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32373C-EVAL board"; @@ -32,6 +33,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f072_eval/stm32f072_eval.dts b/boards/arm/stm32f072_eval/stm32f072_eval.dts index b6bf437a769..711629df7a9 100644 --- a/boards/arm/stm32f072_eval/stm32f072_eval.dts +++ b/boards/arm/stm32f072_eval/stm32f072_eval.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F072-EVAL board"; @@ -44,26 +45,32 @@ tamper: tamper_button { label = "tamper button"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_sel: joystick_selection { label = "joystick selection"; gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpiof 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&gpiof 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpiof 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpioe 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f072b_disco/stm32f072b_disco.dts b/boards/arm/stm32f072b_disco/stm32f072b_disco.dts index 1e6e10f79cd..363e5a565c5 100644 --- a/boards/arm/stm32f072b_disco/stm32f072b_disco.dts +++ b/boards/arm/stm32f072b_disco/stm32f072b_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F072B-DISCO board"; @@ -45,6 +46,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f0_disco/stm32f0_disco.dts b/boards/arm/stm32f0_disco/stm32f0_disco.dts index 13eb51663f9..ae13a4300ab 100644 --- a/boards/arm/stm32f0_disco/stm32f0_disco.dts +++ b/boards/arm/stm32f0_disco/stm32f0_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F0DISCOVERY board"; @@ -37,6 +38,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f3_disco/stm32f3_disco.dts b/boards/arm/stm32f3_disco/stm32f3_disco.dts index 73a824596f9..2ec8f21e1f1 100644 --- a/boards/arm/stm32f3_disco/stm32f3_disco.dts +++ b/boards/arm/stm32f3_disco/stm32f3_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F3DISCOVERY board"; @@ -61,6 +62,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f401_mini/stm32f401_mini.dts b/boards/arm/stm32f401_mini/stm32f401_mini.dts index bbc27eef597..513a5fe3e3f 100644 --- a/boards/arm/stm32f401_mini/stm32f401_mini.dts +++ b/boards/arm/stm32f401_mini/stm32f401_mini.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STM32 Mini F401"; @@ -32,6 +33,7 @@ boot1: button { label = "BOOT1"; gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f411e_disco/stm32f411e_disco.dts b/boards/arm/stm32f411e_disco/stm32f411e_disco.dts index b2a21d2a1ca..bd4d425c5bc 100644 --- a/boards/arm/stm32f411e_disco/stm32f411e_disco.dts +++ b/boards/arm/stm32f411e_disco/stm32f411e_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F411E-DISCO board"; @@ -60,6 +61,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f412g_disco/stm32f412g_disco.dts b/boards/arm/stm32f412g_disco/stm32f412g_disco.dts index 959a3706f53..e3089dc9d39 100644 --- a/boards/arm/stm32f412g_disco/stm32f412g_disco.dts +++ b/boards/arm/stm32f412g_disco/stm32f412g_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F412G-DISCO board"; @@ -45,22 +46,27 @@ joy_sel: joystick_selection { label = "joystick selection"; gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpiog 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&gpiog 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpiof 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpiof 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts b/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts index 21725bc5bbe..a00f3bad9aa 100644 --- a/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts +++ b/boards/arm/stm32f429i_disc1/stm32f429i_disc1.dts @@ -8,6 +8,7 @@ #include #include #include +#include / { model = "STMicroelectronics STM32F429I_DISC1 board"; @@ -46,6 +47,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f469i_disco/stm32f469i_disco.dts b/boards/arm/stm32f469i_disco/stm32f469i_disco.dts index 42f65e46589..ec7a2e94526 100644 --- a/boards/arm/stm32f469i_disco/stm32f469i_disco.dts +++ b/boards/arm/stm32f469i_disco/stm32f469i_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F469I-DISCO board"; @@ -46,6 +47,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f4_disco/stm32f4_disco.dts b/boards/arm/stm32f4_disco/stm32f4_disco.dts index 30fec641cf4..2847c2fcfdb 100644 --- a/boards/arm/stm32f4_disco/stm32f4_disco.dts +++ b/boards/arm/stm32f4_disco/stm32f4_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32F4DISCOVERY board"; @@ -46,6 +47,7 @@ user_button: button { label = "Key"; gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f723e_disco/stm32f723e_disco.dts b/boards/arm/stm32f723e_disco/stm32f723e_disco.dts index a2f1ebed53a..eed706057f8 100644 --- a/boards/arm/stm32f723e_disco/stm32f723e_disco.dts +++ b/boards/arm/stm32f723e_disco/stm32f723e_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F723E DISCOVERY board"; @@ -42,6 +43,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f746g_disco/stm32f746g_disco.dts b/boards/arm/stm32f746g_disco/stm32f746g_disco.dts index 6981ed726e9..586ac1a3b31 100644 --- a/boards/arm/stm32f746g_disco/stm32f746g_disco.dts +++ b/boards/arm/stm32f746g_disco/stm32f746g_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F746G DISCOVERY board"; @@ -37,6 +38,7 @@ user_button: button { label = "User"; gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f7508_dk/stm32f7508_dk.dts b/boards/arm/stm32f7508_dk/stm32f7508_dk.dts index 4cc8b7754a7..3b1809db66e 100644 --- a/boards/arm/stm32f7508_dk/stm32f7508_dk.dts +++ b/boards/arm/stm32f7508_dk/stm32f7508_dk.dts @@ -9,6 +9,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F7508-DK"; @@ -38,6 +39,7 @@ user_button: button { label = "User"; gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32f769i_disco/stm32f769i_disco.dts b/boards/arm/stm32f769i_disco/stm32f769i_disco.dts index f857d8e48f5..de1ba818d08 100644 --- a/boards/arm/stm32f769i_disco/stm32f769i_disco.dts +++ b/boards/arm/stm32f769i_disco/stm32f769i_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32F769I DISCOVERY board"; @@ -56,6 +57,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32g0316_disco/stm32g0316_disco.dts b/boards/arm/stm32g0316_disco/stm32g0316_disco.dts index 4388f438d0f..e26f132ed2f 100644 --- a/boards/arm/stm32g0316_disco/stm32g0316_disco.dts +++ b/boards/arm/stm32g0316_disco/stm32g0316_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32G0316 Discovery board"; @@ -38,6 +39,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/stm32g071b_disco/stm32g071b_disco.dts b/boards/arm/stm32g071b_disco/stm32g071b_disco.dts index b1882a5f72d..7f913eff34b 100644 --- a/boards/arm/stm32g071b_disco/stm32g071b_disco.dts +++ b/boards/arm/stm32g071b_disco/stm32g071b_disco.dts @@ -8,6 +8,7 @@ #include #include #include +#include / { model = "STM32G071B DEMO board"; @@ -45,22 +46,27 @@ joy_sel: button0 { label = "JOY_SEL"; gpios = <&gpioc 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: button1 { label = "JOY_LEFT"; gpios = <&gpioc 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: button2 { label = "JOY_DOWN"; gpios = <&gpioc 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: button3 { label = "JOY_RIGHT"; gpios = <&gpioc 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: button4 { label = "JOY_UP"; gpios = <&gpioc 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32g081b_eval/stm32g081b_eval.dts b/boards/arm/stm32g081b_eval/stm32g081b_eval.dts index fa2a6ffb73d..79c7835d6b4 100644 --- a/boards/arm/stm32g081b_eval/stm32g081b_eval.dts +++ b/boards/arm/stm32g081b_eval/stm32g081b_eval.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STM32G081B EVAL board"; @@ -44,22 +45,27 @@ joy_sel: button0 { label = "JOY_SEL"; gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: button1 { label = "JOY_LEFT"; gpios = <&gpioc 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: button2 { label = "JOY_DOWN"; gpios = <&gpioc 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: button3 { label = "JOY_RIGHT"; gpios = <&gpioc 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: button4 { label = "JOY_UP"; gpios = <&gpioc 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts index 04198a03332..60712658dbd 100644 --- a/boards/arm/stm32h573i_dk/stm32h573i_dk.dts +++ b/boards/arm/stm32h573i_dk/stm32h573i_dk.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32H573I DISCOVERY KIT board"; @@ -47,6 +48,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts index 7d162a3f842..7f99d83167d 100644 --- a/boards/arm/stm32h735g_disco/stm32h735g_disco.dts +++ b/boards/arm/stm32h735g_disco/stm32h735g_disco.dts @@ -8,6 +8,7 @@ #include #include #include "pmod_connector.dtsi" +#include / { model = "STMicroelectronics STM32H735G DISCOVERY board"; @@ -37,6 +38,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32h747i_disco/stm32h747i_disco.dtsi b/boards/arm/stm32h747i_disco/stm32h747i_disco.dtsi index f8b58cb81a4..fb620065c34 100644 --- a/boards/arm/stm32h747i_disco/stm32h747i_disco.dtsi +++ b/boards/arm/stm32h747i_disco/stm32h747i_disco.dtsi @@ -6,6 +6,7 @@ #include "arduino_r3_connector.dtsi" #include "pmod_connector.dtsi" +#include / { leds { @@ -38,31 +39,37 @@ label = "Wakeup"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; status = "disabled"; + zephyr,code = ; }; joy_center: joystick_center { label = "joystick center"; gpios = <&gpiok 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "disabled"; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpiok 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "disabled"; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&gpiok 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "disabled"; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpiok 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "disabled"; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpiok 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; status = "disabled"; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts b/boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts index c6c61180281..bea583d6146 100644 --- a/boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts +++ b/boards/arm/stm32h7b3i_dk/stm32h7b3i_dk.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32H7B3I DISCOVERY KIT board"; @@ -40,6 +41,7 @@ user_button: button { label = "User PB"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32l1_disco/stm32l1_disco.dts b/boards/arm/stm32l1_disco/stm32l1_disco.dts index da2a26f1963..4b158feaa12 100644 --- a/boards/arm/stm32l1_disco/stm32l1_disco.dts +++ b/boards/arm/stm32l1_disco/stm32l1_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32L1DISCOVERY board"; @@ -36,6 +37,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32l476g_disco/stm32l476g_disco.dts b/boards/arm/stm32l476g_disco/stm32l476g_disco.dts index 6bc646f4195..e2d8abec4b0 100644 --- a/boards/arm/stm32l476g_disco/stm32l476g_disco.dts +++ b/boards/arm/stm32l476g_disco/stm32l476g_disco.dts @@ -11,6 +11,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32L476G-DISCO board"; @@ -40,22 +41,27 @@ joy_center: joystick_center { label = "joystick center"; gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpioa 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&gpioa 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpioa 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpioa 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32l496g_disco/stm32l496g_disco.dts b/boards/arm/stm32l496g_disco/stm32l496g_disco.dts index 95453135ee4..d67625c9f10 100644 --- a/boards/arm/stm32l496g_disco/stm32l496g_disco.dts +++ b/boards/arm/stm32l496g_disco/stm32l496g_disco.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32L496G-DISCO board"; @@ -34,22 +35,27 @@ joy_sel: joystick_select { label = "joystick select"; gpios = <&gpioc 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&gpioi 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&gpioi 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&gpioi 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&gpiof 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi index fff6676bdac..84f32dc10ee 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi @@ -7,6 +7,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { leds { @@ -26,6 +27,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32mp157c_dk2/stm32mp157c_dk2.dts b/boards/arm/stm32mp157c_dk2/stm32mp157c_dk2.dts index 27044516977..f3ce5b385bf 100644 --- a/boards/arm/stm32mp157c_dk2/stm32mp157c_dk2.dts +++ b/boards/arm/stm32mp157c_dk2/stm32mp157c_dk2.dts @@ -8,6 +8,7 @@ #include #include #include "arduino_r3_connector.dtsi" +#include / { model = "STMicroelectronics STM32MP157-DK2 board"; @@ -39,6 +40,7 @@ user_button: button { label = "User 1"; gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/stm32vl_disco/stm32vl_disco.dts b/boards/arm/stm32vl_disco/stm32vl_disco.dts index 3e34474ec40..06979b14c71 100644 --- a/boards/arm/stm32vl_disco/stm32vl_disco.dts +++ b/boards/arm/stm32vl_disco/stm32vl_disco.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "STMicroelectronics STM32VLDISCOVERY board"; @@ -36,6 +37,7 @@ user_button: button { label = "User"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/swan_r5/swan_r5.dts b/boards/arm/swan_r5/swan_r5.dts index 1f7944571bf..73f3c7410e3 100644 --- a/boards/arm/swan_r5/swan_r5.dts +++ b/boards/arm/swan_r5/swan_r5.dts @@ -8,6 +8,7 @@ #include #include #include "feather_connector.dtsi" +#include / { model = "Blues Wireless Swan board"; @@ -33,6 +34,7 @@ user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts b/boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts index 7a9a8f59c0f..dea1e43fad5 100644 --- a/boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts +++ b/boards/arm/thingy52_nrf52832/thingy52_nrf52832.dts @@ -9,6 +9,7 @@ /dts-v1/; #include #include "thingy52_nrf52832-pinctrl.dtsi" +#include / { model = "Nordic Thingy52 NRF52832"; @@ -60,6 +61,7 @@ /* gpio flags need validation */ gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Button"; + zephyr,code = ; }; }; diff --git a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dtsi b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dtsi index c61a68f0656..341bb1305e1 100644 --- a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dtsi +++ b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_common.dtsi @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ #include "thingy53_nrf5340_common-pinctrl.dtsi" +#include / { chosen { @@ -22,10 +23,12 @@ button0: button_0 { gpios = <&gpio1 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; }; diff --git a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpunet.dts b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpunet.dts index fedf35c8b3e..c88a8ab4f6a 100644 --- a/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpunet.dts +++ b/boards/arm/thingy53_nrf5340/thingy53_nrf5340_cpunet.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "thingy53_nrf5340_cpunet-pinctrl.dtsi" +#include / { model = "Nordic Thingy53 NRF5340 Network"; @@ -31,10 +32,12 @@ button0: button_0 { gpios = <&gpio1 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 1"; + zephyr,code = ; }; button1: button_1 { gpios = <&gpio1 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button 2"; + zephyr,code = ; }; }; diff --git a/boards/arm/twr_ke18f/twr_ke18f.dts b/boards/arm/twr_ke18f/twr_ke18f.dts index 465ef203fb4..b8ab3e8af4d 100644 --- a/boards/arm/twr_ke18f/twr_ke18f.dts +++ b/boards/arm/twr_ke18f/twr_ke18f.dts @@ -10,6 +10,7 @@ #include #include #include "twr_ke18f-pinctrl.dtsi" +#include / { model = "NXP Kinetis KE18 MCU Tower System Module"; @@ -123,10 +124,12 @@ user_button_2: button_0 { label = "User SW2"; gpios = <&gpiod 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_1 { label = "User SW3"; gpios = <&gpiod 6 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/twr_kv58f220m/twr_kv58f220m.dts b/boards/arm/twr_kv58f220m/twr_kv58f220m.dts index ac679a16a6f..72fdec68c83 100644 --- a/boards/arm/twr_kv58f220m/twr_kv58f220m.dts +++ b/boards/arm/twr_kv58f220m/twr_kv58f220m.dts @@ -8,6 +8,7 @@ #include #include "twr_kv58f220m-pinctrl.dtsi" +#include / { model = "NXP Kinetis KV58 MCU Tower System Module"; @@ -60,18 +61,22 @@ user_button_0: button_0 { label = "User SW2"; gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: button_1 { label = "User SW3"; gpios = <&gpioe 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_2 { label = "User SW4"; gpios = <&gpiob 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_3 { label = "User SW5"; gpios = <&gpiob 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/ubx_bmd300eval_nrf52832/ubx_bmd300eval_nrf52832.dts b/boards/arm/ubx_bmd300eval_nrf52832/ubx_bmd300eval_nrf52832.dts index 509aa2c7d17..a248d8f650e 100644 --- a/boards/arm/ubx_bmd300eval_nrf52832/ubx_bmd300eval_nrf52832.dts +++ b/boards/arm/ubx_bmd300eval_nrf52832/ubx_bmd300eval_nrf52832.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_bmd300eval_nrf52832-pinctrl.dtsi" +#include / { model = "u-blox BMD-300-EVAL EVK nRF52832"; @@ -53,24 +54,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 13 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 14 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 15 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 16 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_bmd330eval_nrf52810/ubx_bmd330eval_nrf52810.dts b/boards/arm/ubx_bmd330eval_nrf52810/ubx_bmd330eval_nrf52810.dts index afd7c21253b..5afd4960694 100644 --- a/boards/arm/ubx_bmd330eval_nrf52810/ubx_bmd330eval_nrf52810.dts +++ b/boards/arm/ubx_bmd330eval_nrf52810/ubx_bmd330eval_nrf52810.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_bmd330eval_nrf52810-pinctrl.dtsi" +#include / { model = "u-blox BMD-330-EVAL EVK nRF52810"; @@ -53,24 +54,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 13 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 14 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 15 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 16 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_bmd340eval_nrf52840/ubx_bmd340eval_nrf52840.dts b/boards/arm/ubx_bmd340eval_nrf52840/ubx_bmd340eval_nrf52840.dts index 6fbb56a509a..f7fbee05909 100644 --- a/boards/arm/ubx_bmd340eval_nrf52840/ubx_bmd340eval_nrf52840.dts +++ b/boards/arm/ubx_bmd340eval_nrf52840/ubx_bmd340eval_nrf52840.dts @@ -8,6 +8,7 @@ /dts-v1/; #include #include "ubx_bmd340eval_nrf52840-pinctrl.dtsi" +#include / { model = "u-blox BMD-340-EVAL EVK nRF52840"; @@ -55,24 +56,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 11 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 12 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 24 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 25 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_bmd345eval_nrf52840/ubx_bmd345eval_nrf52840.dts b/boards/arm/ubx_bmd345eval_nrf52840/ubx_bmd345eval_nrf52840.dts index 7a8cf0d674c..ddc5bdeefc9 100644 --- a/boards/arm/ubx_bmd345eval_nrf52840/ubx_bmd345eval_nrf52840.dts +++ b/boards/arm/ubx_bmd345eval_nrf52840/ubx_bmd345eval_nrf52840.dts @@ -9,6 +9,7 @@ /dts-v1/; #include #include "ubx_bmd345eval_nrf52840-pinctrl.dtsi" +#include / { model = "u-blox BMD-345-EVAL EVK nRF52840"; @@ -56,24 +57,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 11 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 12 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 24 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 25 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_bmd360eval_nrf52811/ubx_bmd360eval_nrf52811.dts b/boards/arm/ubx_bmd360eval_nrf52811/ubx_bmd360eval_nrf52811.dts index a977d03b9bb..842c882ac7f 100644 --- a/boards/arm/ubx_bmd360eval_nrf52811/ubx_bmd360eval_nrf52811.dts +++ b/boards/arm/ubx_bmd360eval_nrf52811/ubx_bmd360eval_nrf52811.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_bmd360eval_nrf52811-pinctrl.dtsi" +#include / { model = "u-blox BMD-360-EVAL EVK nRF52811"; @@ -53,24 +54,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 13 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 14 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 14 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 15 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 16 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_bmd380eval_nrf52840/ubx_bmd380eval_nrf52840.dts b/boards/arm/ubx_bmd380eval_nrf52840/ubx_bmd380eval_nrf52840.dts index cfb4c141004..1c4623b52fe 100644 --- a/boards/arm/ubx_bmd380eval_nrf52840/ubx_bmd380eval_nrf52840.dts +++ b/boards/arm/ubx_bmd380eval_nrf52840/ubx_bmd380eval_nrf52840.dts @@ -9,6 +9,7 @@ #include #include "ubx_bmd380eval_nrf52840-pinctrl.dtsi" /* should be ckaa, but not available yet */ +#include / { model = "u-blox BMD-380-EVAL EVK nRF52840"; @@ -56,24 +57,24 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 11 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 12 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; button2: button_2 { - gpios = <&gpio0 24 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 2"; + zephyr,code = ; }; button3: button_3 { - gpios = <&gpio0 25 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 3"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_evkannab1_nrf52832/ubx_evkannab1_nrf52832.dts b/boards/arm/ubx_evkannab1_nrf52832/ubx_evkannab1_nrf52832.dts index f0f5e06bf50..b183b17bc41 100644 --- a/boards/arm/ubx_evkannab1_nrf52832/ubx_evkannab1_nrf52832.dts +++ b/boards/arm/ubx_evkannab1_nrf52832/ubx_evkannab1_nrf52832.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_evkannab1_nrf52832-pinctrl.dtsi" +#include / { model = "u-blox EVK-ANNA-B1 NRF52832"; @@ -59,15 +60,15 @@ compatible = "gpio-keys"; button0: button_0 { /* EVK-ANNA-B1 SW1 button */ - gpios = <&gpio0 25 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW1"; + zephyr,code = ; }; button1: button_1 { /* EVK-ANNA-B1 SW2 button */ - gpios = <&gpio0 24 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW2"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_evkninab1_nrf52832/ubx_evkninab1_nrf52832.dts b/boards/arm/ubx_evkninab1_nrf52832/ubx_evkninab1_nrf52832.dts index 5b674f8bfe5..691705b3a91 100644 --- a/boards/arm/ubx_evkninab1_nrf52832/ubx_evkninab1_nrf52832.dts +++ b/boards/arm/ubx_evkninab1_nrf52832/ubx_evkninab1_nrf52832.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_evkninab1_nrf52832-pinctrl.dtsi" +#include / { model = "u-blox EVK-NINA-B1 NRF52832"; @@ -59,15 +60,15 @@ compatible = "gpio-keys"; button0: button_0 { /* EVK-NINA-B1 SW1 button */ - gpios = <&gpio0 16 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 16 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW1"; + zephyr,code = ; }; button1: button_1 { /* EVK-NINA-B1 SW2 button */ - gpios = <&gpio0 30 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch SW2"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_evkninab3_nrf52840/ubx_evkninab3_nrf52840.dts b/boards/arm/ubx_evkninab3_nrf52840/ubx_evkninab3_nrf52840.dts index a3696a208a5..19b4e25a5af 100644 --- a/boards/arm/ubx_evkninab3_nrf52840/ubx_evkninab3_nrf52840.dts +++ b/boards/arm/ubx_evkninab3_nrf52840/ubx_evkninab3_nrf52840.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_evkninab3_nrf52840-pinctrl.dtsi" +#include / { model = "u-blox EVK NINA-B3 nRF52840"; @@ -56,14 +57,14 @@ buttons { compatible = "gpio-keys"; button0: button_0 { - gpios = <&gpio0 25 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0 (SW1)"; + zephyr,code = ; }; button1: button_1 { - gpios = <&gpio0 2 (GPIO_PULL_UP | \ - GPIO_ACTIVE_LOW)>; + gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1 (SW2)"; + zephyr,code = ; }; }; diff --git a/boards/arm/ubx_evkninab4_nrf52833/ubx_evkninab4_nrf52833.dts b/boards/arm/ubx_evkninab4_nrf52833/ubx_evkninab4_nrf52833.dts index 11589645b35..783d69b4788 100644 --- a/boards/arm/ubx_evkninab4_nrf52833/ubx_evkninab4_nrf52833.dts +++ b/boards/arm/ubx_evkninab4_nrf52833/ubx_evkninab4_nrf52833.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "ubx_evkninab4_nrf52833-pinctrl.dtsi" +#include / { model = "u-blox EVK-NINA-B4 NRF52833"; @@ -62,11 +63,13 @@ /* EVK-NINA-B4 SW1 button */ gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 0"; + zephyr,code = ; }; button1: button_1 { /* EVK-NINA-B4 SW2 button */ gpios = <&gpio0 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Push button switch 1"; + zephyr,code = ; }; }; diff --git a/boards/arm/usb_kw24d512/usb_kw24d512.dts b/boards/arm/usb_kw24d512/usb_kw24d512.dts index ec2e65e125e..6b0dbdb6668 100644 --- a/boards/arm/usb_kw24d512/usb_kw24d512.dts +++ b/boards/arm/usb_kw24d512/usb_kw24d512.dts @@ -4,6 +4,7 @@ #include #include "usb_kw24d512-pinctrl.dtsi" +#include / { model = "NXP USB-KW24D512 board"; @@ -41,6 +42,7 @@ user_button_1: button_0 { label = "User SW1"; gpios = <&gpioc 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/arm/warp7_m4/warp7_m4.dts b/boards/arm/warp7_m4/warp7_m4.dts index 0a6cb54abea..44f8153d749 100644 --- a/boards/arm/warp7_m4/warp7_m4.dts +++ b/boards/arm/warp7_m4/warp7_m4.dts @@ -8,6 +8,7 @@ #include #include "warp7_m4-pinctrl.dtsi" +#include / { model = "WaRP7 IMX7S board"; @@ -31,6 +32,7 @@ user_switch_1: user_sw_1 { gpios = <&gpio7 1 GPIO_ACTIVE_LOW>; label = "User SW1"; + zephyr,code = ; }; }; }; diff --git a/boards/arm/waveshare_open103z/waveshare_open103z.dts b/boards/arm/waveshare_open103z/waveshare_open103z.dts index 6ea359e10e8..6d2e4759548 100644 --- a/boards/arm/waveshare_open103z/waveshare_open103z.dts +++ b/boards/arm/waveshare_open103z/waveshare_open103z.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include / { model = "Waveshare Open103Z"; @@ -45,26 +46,32 @@ button: button { label = "User button"; gpios = <&gpiog 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; joystick_enter: joystick_enter { label = "User joystick ENTER"; gpios = <&gpiog 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; joystick_right: joystick_right { label = "User joystick RIGHT"; gpios = <&gpioc 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; joystick_up: joystick_up { label = "User joystick UP"; gpios = <&gpioc 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; joystick_down: joystick_down { label = "User joystick DOWN"; gpios = <&gpioc 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; joystick_left: joystick_left { label = "User joystick LEFT"; gpios = <&gpioc 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/we_ophelia1ev_nrf52805/we_ophelia1ev_nrf52805.dts b/boards/arm/we_ophelia1ev_nrf52805/we_ophelia1ev_nrf52805.dts index d26b0a5f8a6..b9b9bfcedb2 100644 --- a/boards/arm/we_ophelia1ev_nrf52805/we_ophelia1ev_nrf52805.dts +++ b/boards/arm/we_ophelia1ev_nrf52805/we_ophelia1ev_nrf52805.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include "we_ophelia1ev_nrf52805-pinctrl.dtsi" +#include / { model = "we_ophelia1ev_nrf52805"; @@ -40,6 +41,7 @@ button0: button_0 { label = "Example button"; gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; diff --git a/boards/arm/we_proteus2ev_nrf52832/we_proteus2ev_nrf52832.dts b/boards/arm/we_proteus2ev_nrf52832/we_proteus2ev_nrf52832.dts index ba2e45c5933..4cd193c4162 100644 --- a/boards/arm/we_proteus2ev_nrf52832/we_proteus2ev_nrf52832.dts +++ b/boards/arm/we_proteus2ev_nrf52832/we_proteus2ev_nrf52832.dts @@ -4,6 +4,7 @@ /dts-v1/; #include #include "we_proteus2ev_nrf52832-pinctrl.dtsi" +#include / { model = "we_proteus2ev_nrf52832"; @@ -37,6 +38,7 @@ button0: button_0 { gpios = <&gpio0 29 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Wake-up"; + zephyr,code = ; }; }; diff --git a/boards/arm/we_proteus3ev_nrf52840/we_proteus3ev_nrf52840.dts b/boards/arm/we_proteus3ev_nrf52840/we_proteus3ev_nrf52840.dts index 4500b451f53..4c64bcaa4d0 100644 --- a/boards/arm/we_proteus3ev_nrf52840/we_proteus3ev_nrf52840.dts +++ b/boards/arm/we_proteus3ev_nrf52840/we_proteus3ev_nrf52840.dts @@ -4,6 +4,7 @@ /dts-v1/; #include #include "we_proteus3ev_nrf52840-pinctrl.dtsi" +#include / { model = "we_proteus3ev_nrf52840"; @@ -37,6 +38,7 @@ button0: button_0 { gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "Wake-up"; + zephyr,code = ; }; }; diff --git a/boards/arm/wio_terminal/wio_terminal.dts b/boards/arm/wio_terminal/wio_terminal.dts index 32b63554b28..2e2fe7500a0 100644 --- a/boards/arm/wio_terminal/wio_terminal.dts +++ b/boards/arm/wio_terminal/wio_terminal.dts @@ -9,6 +9,7 @@ #include "grove_connectors.dtsi" #include "raspberrypi_40pins_connector.dtsi" #include +#include / { model = "Wio Terminal"; @@ -52,34 +53,42 @@ user_button_0: button_0 { label = "User Button 0"; gpios = <&portc 26 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: button_1 { label = "User Button 1"; gpios = <&portc 27 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_2: button_2 { label = "User Button 2"; gpios = <&portc 28 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_sel: joystick_selection { label = "joystick selection"; gpios = <&portd 10 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_down: joystick_down { label = "joystick down"; gpios = <&portd 8 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_up: joystick_up { label = "joystick up"; gpios = <&portd 20 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_left: joystick_left { label = "joystick left"; gpios = <&portd 12 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; joy_right: joystick_right { label = "joystick right"; gpios = <&portd 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/arm/zybo/zybo.dts b/boards/arm/zybo/zybo.dts index 95297c36384..a80db74a069 100644 --- a/boards/arm/zybo/zybo.dts +++ b/boards/arm/zybo/zybo.dts @@ -7,6 +7,7 @@ /dts-v1/; #include #include +#include #include "zybo-pinctrl.dtsi" @@ -65,10 +66,12 @@ btn4: btn4 { gpios = <&psgpio_bank1 18 GPIO_ACTIVE_LOW>; label = "BTN4"; + zephyr,code = ; }; btn5: btn5 { gpios = <&psgpio_bank1 19 GPIO_ACTIVE_LOW>; label = "BTN5"; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.dts b/boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.dts index 2c3803a23e1..bc39000962b 100644 --- a/boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.dts +++ b/boards/riscv/adp_xc7k_ae350/adp_xc7k_ae350.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include / { model = "Andes ADP-XC7K AE350"; @@ -106,30 +107,37 @@ user_button1: button_1 { label = "User SW1"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button2: button_2 { label = "User SW2"; gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button3: button_3 { label = "User SW3"; gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button4: button_4 { label = "User SW4"; gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button5: button_5 { label = "User SW5"; gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button6: button_6 { label = "User SW6"; gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button7: button_7 { label = "User SW7"; gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts b/boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts index 4072136524a..60cfdea523a 100644 --- a/boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts +++ b/boards/riscv/esp32c3_devkitm/esp32c3_devkitm.dts @@ -8,6 +8,7 @@ #include #include "esp32c3_devkitm-pinctrl.dtsi" +#include / { model = "esp32c3_devkitm"; @@ -31,6 +32,7 @@ user_button1: button_1 { label = "User SW1"; gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/gd32vf103c_starter/gd32vf103c_starter.dts b/boards/riscv/gd32vf103c_starter/gd32vf103c_starter.dts index 2b0672c506d..160d6b14d4d 100644 --- a/boards/riscv/gd32vf103c_starter/gd32vf103c_starter.dts +++ b/boards/riscv/gd32vf103c_starter/gd32vf103c_starter.dts @@ -7,6 +7,7 @@ #include #include "gd32vf103c_starter-pinctrl.dtsi" +#include / { model = "GigaDevice GD32VF103C-STARTER"; @@ -33,6 +34,7 @@ key_a: key_a { label = "KEY_A"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/riscv/gd32vf103v_eval/gd32vf103v_eval.dts b/boards/riscv/gd32vf103v_eval/gd32vf103v_eval.dts index ba66210da09..3cb3b024cea 100644 --- a/boards/riscv/gd32vf103v_eval/gd32vf103v_eval.dts +++ b/boards/riscv/gd32vf103v_eval/gd32vf103v_eval.dts @@ -7,6 +7,7 @@ #include #include "gd32vf103v_eval-pinctrl.dtsi" +#include / { model = "GigaDevice GD32VF103V-EVAL"; @@ -45,22 +46,27 @@ key_cet: key_cet { label = "KEY_CET"; gpios = <&gpioc 4 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_a: key_a { label = "KEY_A"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_b: key_b { label = "KEY_B"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_c: key_c { label = "KEY_C"; gpios = <&gpiob 14 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; key_d: key_d { label = "KEY_D"; gpios = <&gpioc 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/riscv/icev_wireless/icev_wireless.dts b/boards/riscv/icev_wireless/icev_wireless.dts index 88dc0e33834..998ce4c0bc3 100644 --- a/boards/riscv/icev_wireless/icev_wireless.dts +++ b/boards/riscv/icev_wireless/icev_wireless.dts @@ -8,6 +8,7 @@ #include #include "icev_wireless-pinctrl.dtsi" +#include / { model = "icev_wireless"; @@ -40,6 +41,7 @@ user_button1: button_1 { label = "User SW1"; gpios = <&gpio0 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/longan_nano/longan_nano-common.dtsi b/boards/riscv/longan_nano/longan_nano-common.dtsi index a831c4c4ffd..71f787b2df6 100644 --- a/boards/riscv/longan_nano/longan_nano-common.dtsi +++ b/boards/riscv/longan_nano/longan_nano-common.dtsi @@ -4,6 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include + / { chosen { zephyr,console = &usart0; @@ -35,6 +37,7 @@ button_boot0: button_boot0 { label = "BUTTON_BOOT0"; gpios = <&gpioa 8 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; diff --git a/boards/riscv/mpfs_icicle/mpfs_icicle.dts b/boards/riscv/mpfs_icicle/mpfs_icicle.dts index 9f28083deb8..774a5533233 100644 --- a/boards/riscv/mpfs_icicle/mpfs_icicle.dts +++ b/boards/riscv/mpfs_icicle/mpfs_icicle.dts @@ -6,6 +6,7 @@ /dts-v1/; #include +#include #include / { @@ -38,6 +39,7 @@ sw0: sw0 { gpios = <&gpio2 30 GPIO_ACTIVE_LOW>; label = "SW_0"; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi b/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi index 8a7ed084c15..b416b0a4806 100644 --- a/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi +++ b/boards/riscv/rv32m1_vega/rv32m1_vega.dtsi @@ -4,6 +4,7 @@ */ #include "rv32m1_vega-pinctrl.dtsi" +#include / { aliases { @@ -66,18 +67,22 @@ user_button_2: button_0 { label = "User SW2"; gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_3: button_1 { label = "User SW3"; gpios = <&gpioe 8 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_4: button_2 { label = "User SW4"; gpios = <&gpioe 9 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_5: button_3 { label = "User SW5"; gpios = <&gpioe 12 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/riscv/stamp_c3/stamp_c3.dts b/boards/riscv/stamp_c3/stamp_c3.dts index 27e7a2fe1f6..029ae49b198 100644 --- a/boards/riscv/stamp_c3/stamp_c3.dts +++ b/boards/riscv/stamp_c3/stamp_c3.dts @@ -8,6 +8,7 @@ #include #include "stamp_c3-pinctrl.dtsi" +#include / { model = "M5Stack STAMP-C3"; @@ -31,6 +32,7 @@ button0: button0 { label = "BTN"; gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/riscv/tlsr9518adk80d/tlsr9518adk80d.dts b/boards/riscv/tlsr9518adk80d/tlsr9518adk80d.dts index 07ac0e0d94e..3336cdbf3b6 100644 --- a/boards/riscv/tlsr9518adk80d/tlsr9518adk80d.dts +++ b/boards/riscv/tlsr9518adk80d/tlsr9518adk80d.dts @@ -9,6 +9,7 @@ #include #include #include "tlsr9518adk80d-pinctrl.dtsi" +#include / { model = "telink,b91"; @@ -62,6 +63,7 @@ key_1: button_1 { label = "User KEY1"; gpios = <&gpioc 2 GPIO_PULL_DOWN>; + zephyr,code = ; }; }; diff --git a/boards/shields/npm1300_ek/npm1300_ek.overlay b/boards/shields/npm1300_ek/npm1300_ek.overlay index 8a0c53f2397..c5991f78598 100644 --- a/boards/shields/npm1300_ek/npm1300_ek.overlay +++ b/boards/shields/npm1300_ek/npm1300_ek.overlay @@ -4,6 +4,7 @@ */ #include +#include &arduino_i2c { npm1300_ek_pmic: pmic@6b { @@ -68,6 +69,7 @@ pmic_button0: pmic_button_0 { gpios = < &npm1300_ek_gpio 0 GPIO_ACTIVE_HIGH>; label = "Pmic button switch 0"; + zephyr,code = ; }; }; diff --git a/boards/xtensa/esp32_devkitc_wroom/esp32_devkitc_wroom.dts b/boards/xtensa/esp32_devkitc_wroom/esp32_devkitc_wroom.dts index c1849a06467..6fa0bf47f61 100644 --- a/boards/xtensa/esp32_devkitc_wroom/esp32_devkitc_wroom.dts +++ b/boards/xtensa/esp32_devkitc_wroom/esp32_devkitc_wroom.dts @@ -7,6 +7,7 @@ #include #include "esp32_devkitc_wroom-pinctrl.dtsi" +#include / { model = "Espressif ESP32-DEVKITC-WROOM-32D"; @@ -24,6 +25,7 @@ button0: button_0 { gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "BOOT Button"; + zephyr,code = ; }; }; diff --git a/boards/xtensa/esp32_devkitc_wrover/esp32_devkitc_wrover.dts b/boards/xtensa/esp32_devkitc_wrover/esp32_devkitc_wrover.dts index 87959ed0b98..43218f3e81f 100644 --- a/boards/xtensa/esp32_devkitc_wrover/esp32_devkitc_wrover.dts +++ b/boards/xtensa/esp32_devkitc_wrover/esp32_devkitc_wrover.dts @@ -7,6 +7,7 @@ #include #include "esp32_devkitc_wrover-pinctrl.dtsi" +#include / { model = "Espressif ESP32-DEVKITC-WROVER-E"; @@ -24,6 +25,7 @@ button0: button_0 { gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "BOOT Button"; + zephyr,code = ; }; }; diff --git a/boards/xtensa/esp32s2_saola/esp32s2_saola.dts b/boards/xtensa/esp32s2_saola/esp32s2_saola.dts index 73c2915f3a4..7a5c4fb087a 100644 --- a/boards/xtensa/esp32s2_saola/esp32s2_saola.dts +++ b/boards/xtensa/esp32s2_saola/esp32s2_saola.dts @@ -8,6 +8,7 @@ #include #include "esp32s2_saola-pinctrl.dtsi" +#include / { model = "esp32s2_saola"; @@ -31,6 +32,7 @@ user_button: user_button { label = "BOOT"; gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; }; }; diff --git a/boards/xtensa/esp32s3_devkitm/esp32s3_devkitm.dts b/boards/xtensa/esp32s3_devkitm/esp32s3_devkitm.dts index c5266215561..f7c75b12017 100644 --- a/boards/xtensa/esp32s3_devkitm/esp32s3_devkitm.dts +++ b/boards/xtensa/esp32s3_devkitm/esp32s3_devkitm.dts @@ -7,6 +7,7 @@ #include #include "esp32s3_devkitm-pinctrl.dtsi" +#include / { model = "esp32s3_devkitm"; @@ -34,6 +35,7 @@ button0: button_0 { gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "BOOT Button"; + zephyr,code = ; }; }; }; diff --git a/boards/xtensa/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2.dts b/boards/xtensa/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2.dts index e660a726b09..5fd323082a3 100644 --- a/boards/xtensa/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2.dts +++ b/boards/xtensa/heltec_wifi_lora32_v2/heltec_wifi_lora32_v2.dts @@ -7,6 +7,7 @@ #include #include "heltec_wifi_lora32_v2-pinctrl.dtsi" +#include / { model = "heltec_wifi_lora32"; @@ -44,6 +45,7 @@ button0: button_0 { gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; label = "PRG Button"; + zephyr,code = ; }; }; diff --git a/boards/xtensa/m5stickc_plus/m5stickc_plus.dts b/boards/xtensa/m5stickc_plus/m5stickc_plus.dts index 5103997d92a..0254d82003d 100644 --- a/boards/xtensa/m5stickc_plus/m5stickc_plus.dts +++ b/boards/xtensa/m5stickc_plus/m5stickc_plus.dts @@ -7,6 +7,7 @@ #include #include "m5stickc_plus-pinctrl.dtsi" +#include / { model = "esp32"; @@ -43,10 +44,12 @@ user_button_0: button_0 { label = "User button 0"; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; user_button_1: button_1 { label = "User button 1"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; }; diff --git a/boards/xtensa/odroid_go/odroid_go.dts b/boards/xtensa/odroid_go/odroid_go.dts index 740c9a9f94c..bad2a874873 100644 --- a/boards/xtensa/odroid_go/odroid_go.dts +++ b/boards/xtensa/odroid_go/odroid_go.dts @@ -7,6 +7,7 @@ #include #include "odroid_go-pinctrl.dtsi" +#include / { model = "ODROID-GO Game Kit"; @@ -33,26 +34,32 @@ menu_button: menu_button { label = "Menu"; gpios = <&gpio0 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; volume_button: volume_button { label = "Volume"; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; select_button: select_button { label = "Select"; gpios = <&gpio0 27 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; a_button: a_button { label = "A"; gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; b_button: b_button { label = "B"; gpios = <&gpio1 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; + zephyr,code = ; }; start_button: start_button { label = "Start"; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; + zephyr,code = ; }; }; diff --git a/boards/xtensa/olimex_esp32_evb/olimex_esp32_evb.dts b/boards/xtensa/olimex_esp32_evb/olimex_esp32_evb.dts index 008e5b326f2..0abf7d7128e 100644 --- a/boards/xtensa/olimex_esp32_evb/olimex_esp32_evb.dts +++ b/boards/xtensa/olimex_esp32_evb/olimex_esp32_evb.dts @@ -8,6 +8,7 @@ #include #include "olimex_esp32_evb-pinctrl.dtsi" +#include / { model = "Olimex ESP32-EVB"; @@ -30,6 +31,7 @@ button1: button1 { gpios = <&gpio 34 GPIO_ACTIVE_LOW>; label = "BUT1"; + zephyr,code = ; }; }; diff --git a/samples/subsys/display/lvgl/boards/native_posix.overlay b/samples/subsys/display/lvgl/boards/native_posix.overlay index 3813072d109..20df9848f67 100644 --- a/samples/subsys/display/lvgl/boards/native_posix.overlay +++ b/samples/subsys/display/lvgl/boards/native_posix.overlay @@ -4,6 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ +#include / { aliases { @@ -15,6 +16,7 @@ button0: button0 { /* gpio0 pin 0 is already aliased to led0 */ gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; + zephyr,code = ; }; }; }; diff --git a/samples/subsys/input/input_dump/boards/nrf52dk_nrf52832.overlay b/samples/subsys/input/input_dump/boards/nrf52dk_nrf52832.overlay deleted file mode 100644 index cb0fd8b0dc1..00000000000 --- a/samples/subsys/input/input_dump/boards/nrf52dk_nrf52832.overlay +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#include - -/ { - buttons { - compatible = "zephyr,gpio-keys"; - button_0 { - zephyr,code = ; - }; - button_1 { - zephyr,code = ; - }; - button_2 { - zephyr,code = ; - }; - button_3 { - zephyr,code = ; - }; - }; -};