diff --git a/boards/others/neorv32/neorv32_neorv32_minimalboot.dts b/boards/others/neorv32/neorv32_neorv32_minimalboot.dts index 67f70576513..690a5b16c46 100644 --- a/boards/others/neorv32/neorv32_neorv32_minimalboot.dts +++ b/boards/others/neorv32/neorv32_neorv32_minimalboot.dts @@ -8,6 +8,7 @@ #include #include +#include / { model = "NEORV32 MinimalBoot"; @@ -21,6 +22,10 @@ pwm-led0 = &pwm_led0; pwm-led1 = &pwm_led1; pwm-led2 = &pwm_led2; + sw0 = &btn0; + sw1 = &btn1; + sw3 = &btn2; + sw4 = &btn3; }; chosen { @@ -55,6 +60,34 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + + btn0: btn0 { + label = "BTN0"; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn1: btn1 { + label = "BTN1"; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn2: btn2 { + label = "BTN2"; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn3: btn3 { + label = "BTN3"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + }; + pwmleds { compatible = "pwm-leds"; diff --git a/boards/others/neorv32/neorv32_neorv32_up5kdemo.dts b/boards/others/neorv32/neorv32_neorv32_up5kdemo.dts index 73f12b10726..96f0546bcfa 100644 --- a/boards/others/neorv32/neorv32_neorv32_up5kdemo.dts +++ b/boards/others/neorv32/neorv32_neorv32_up5kdemo.dts @@ -8,6 +8,7 @@ #include #include +#include / { model = "NEORV32 UP5KDemo"; @@ -21,6 +22,10 @@ pwm-led0 = &pwm_led0; pwm-led1 = &pwm_led1; pwm-led2 = &pwm_led2; + sw0 = &btn0; + sw1 = &btn1; + sw3 = &btn2; + sw4 = &btn3; }; chosen { @@ -55,6 +60,34 @@ }; }; + gpio_keys { + compatible = "gpio-keys"; + + btn0: btn0 { + label = "BTN0"; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn1: btn1 { + label = "BTN1"; + gpios = <&gpio 1 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn2: btn2 { + label = "BTN2"; + gpios = <&gpio 2 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + + btn3: btn3 { + label = "BTN3"; + gpios = <&gpio 3 GPIO_ACTIVE_LOW>; + zephyr,code = ; + }; + }; + pwmleds { compatible = "pwm-leds";