zephyr/boards/arm/frdm_kl25z/frdm_kl25z.dts
Sebastian Bøe 25e7316ea7 boards: dts: Fix dtc warning in board dts files
This patch is equivalent to 7b0ce85242,
but applied to buttons. As stated in the previous commit message:

This change aims at fixing 'unit_address_vs_reg' warning in arm based
boards. This warning pops up when a node name is made up with an
address (node_name@xx) but does not contain a reg property. This case
was encountered for led nodes for instance, where a reg property has
no meaning.  Fix this by changing node_name@xx to node_name_xx which
removes the guilty '@XX' syntax but preserves node_name uniqueness.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-10-03 08:22:44 -05:00

83 lines
1.3 KiB
Text

/dts-v1/;
#include <nxp/nxp_kl25z.dtsi>
/ {
model = "NXP Freedom KL25Z board";
compatible = "nxp,frdm-kl25z", "nxp,kl25z", "nxp,mkl25z4";
aliases {
adc-0 = &adc0;
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 {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart0;
};
leds {
compatible = "gpio-leds";
red_led: led_0 {
gpios = <&gpiob 18 0>;
label = "User LD1";
};
green_led: led_1 {
gpios = <&gpiob 19 0>;
label = "User LD2";
};
blue_led: led_2 {
gpios = <&gpiod 1 0>;
label = "User LD3";
};
};
gpio_keys {
compatible = "gpio-keys";
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 {
status = "ok";
};
&i2c0 {
status = "ok";
mma8451q@1d {
compatible = "nxp,mma8451q";
reg = <0x1d>;
label = "MMA8451Q";
};
};
&uart0 {
status = "ok";
current-speed = <115200>;
};
&usbd {
compatible = "nxp,kinetis-usbd";
status = "ok";
num-bidir-endpoints = <8>;
};