boards: Move led and button definitions to dts for kinetis boards
Adds led and button dts nodes to all kinetis boards and removes the now unused preprocessor macros from board.h. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
parent
22955b83fd
commit
c627de1f87
10 changed files with 153 additions and 146 deletions
|
@ -11,6 +11,16 @@
|
|||
uart-0 = &uart0;
|
||||
i2c-0 = &i2c0;
|
||||
i2c-1 = &i2c1;
|
||||
gpio-a = &gpioa;
|
||||
gpio-b = &gpiob;
|
||||
gpio-c = &gpioc;
|
||||
gpio-d = &gpiod;
|
||||
gpio-e = &gpioe;
|
||||
led0 = &green_led;
|
||||
led1 = &blue_led;
|
||||
led2 = &red_led;
|
||||
sw0 = &user_button_0;
|
||||
sw1 = &user_button_1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -18,6 +28,36 @@
|
|||
zephyr,flash = &flash0;
|
||||
zephyr,console = &uart0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
red_led: led@0 {
|
||||
gpios = <&gpiob 18 GPIO_INT_ACTIVE_LOW>;
|
||||
label = "User LD1";
|
||||
};
|
||||
green_led: led@1 {
|
||||
gpios = <&gpiob 19 GPIO_INT_ACTIVE_LOW>;
|
||||
label = "User LD2";
|
||||
};
|
||||
blue_led: led@2 {
|
||||
gpios = <&gpiod 1 GPIO_INT_ACTIVE_LOW>;
|
||||
label = "User LD3";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
user_button_0: button@0 {
|
||||
label = "User SW0";
|
||||
gpios = <&gpioa 16 GPIO_INT_ACTIVE_LOW>;
|
||||
};
|
||||
user_button_1: button@1 {
|
||||
label = "User SW1";
|
||||
gpios = <&gpioa 17 GPIO_INT_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue