boards: arm: mps2: Add LED & Buttons to board dts
Update board dts files to add User LED and Button support. Also update the board yaml file to say the boards support gpio. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
aliases {
|
||||
led0 = &led_0;
|
||||
led1 = &led_1;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
@@ -18,6 +25,30 @@
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led_0: led_0 {
|
||||
gpios = <&gpio_led0 0>;
|
||||
label = "USERLED0";
|
||||
};
|
||||
led_1: led_1 {
|
||||
gpios = <&gpio_led0 1>;
|
||||
label = "USERLED1";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button_0: button_0 {
|
||||
label = "USERPB0";
|
||||
gpios = <&gpio_button 0>;
|
||||
};
|
||||
user_button_1: button_1 {
|
||||
label = "USERPB1";
|
||||
gpios = <&gpio_button 1>;
|
||||
};
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
@@ -10,5 +10,6 @@ toolchain:
|
||||
supported:
|
||||
- counter
|
||||
- netif:serial-net
|
||||
- gpio
|
||||
testing:
|
||||
default: true
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
aliases {
|
||||
led0 = &led_0;
|
||||
led1 = &led_1;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
@@ -21,6 +28,30 @@
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led_0: led_0 {
|
||||
gpios = <&gpio_led0 0>;
|
||||
label = "USERLED0";
|
||||
};
|
||||
led_1: led_1 {
|
||||
gpios = <&gpio_led0 1>;
|
||||
label = "USERLED1";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button_0: button_0 {
|
||||
label = "USERPB0";
|
||||
gpios = <&gpio_button 0>;
|
||||
};
|
||||
user_button_1: button_1 {
|
||||
label = "USERPB1";
|
||||
gpios = <&gpio_button 1>;
|
||||
};
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
@@ -7,3 +7,5 @@ toolchain:
|
||||
- gnuarmemb
|
||||
- zephyr
|
||||
- xtools
|
||||
supported:
|
||||
- gpio
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
aliases {
|
||||
led0 = &led_0;
|
||||
led1 = &led_1;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
zephyr,console = &uart0;
|
||||
zephyr,shell-uart = &uart0;
|
||||
@@ -21,6 +28,30 @@
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led_0: led_0 {
|
||||
gpios = <&gpio_led0 0>;
|
||||
label = "USERLED0";
|
||||
};
|
||||
led_1: led_1 {
|
||||
gpios = <&gpio_led0 1>;
|
||||
label = "USERLED1";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
user_button_0: button_0 {
|
||||
label = "USERPB0";
|
||||
gpios = <&gpio_button 0>;
|
||||
};
|
||||
user_button_1: button_1 {
|
||||
label = "USERPB1";
|
||||
gpios = <&gpio_button 1>;
|
||||
};
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
@@ -6,3 +6,5 @@ toolchain:
|
||||
- gnuarmemb
|
||||
- zephyr
|
||||
- xtools
|
||||
supported:
|
||||
- gpio
|
||||
|
||||
Reference in New Issue
Block a user