mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-18 02:31:56 +00:00
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>
82 lines
1.3 KiB
Plaintext
82 lines
1.3 KiB
Plaintext
/dts-v1/;
|
|
|
|
#include <nxp/nxp_kw41z.dtsi>
|
|
|
|
/ {
|
|
model = "NXP Freedom KW41Z board";
|
|
compatible = "nxp,kw41z", "nxp,mkw41z4";
|
|
|
|
aliases {
|
|
adc-0 = &adc0;
|
|
lpuart-0 = &lpuart0;
|
|
pinmux-a = &pinmux_a;
|
|
pinmux-b = &pinmux_b;
|
|
pinmux-c = &pinmux_c;
|
|
gpio-a = &gpioa;
|
|
gpio-b = &gpiob;
|
|
gpio-c = &gpioc;
|
|
i2c-0 = &i2c0;
|
|
i2c-1 = &i2c1;
|
|
led0 = &green_led;
|
|
led1 = &blue_led;
|
|
led2 = &red_led;
|
|
sw0 = &user_button_3;
|
|
sw1 = &user_button_4;
|
|
rtc-0 = &rtc0;
|
|
};
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,console = &lpuart0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
red_led: led_0 {
|
|
gpios = <&gpioc 1 0>;
|
|
label = "User LD1";
|
|
};
|
|
green_led: led_1 {
|
|
gpios = <&gpioa 19 0>;
|
|
label = "User LD2";
|
|
};
|
|
blue_led: led_2 {
|
|
gpios = <&gpioa 18 0>;
|
|
label = "User LD3";
|
|
};
|
|
};
|
|
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
user_button_3: button_0 {
|
|
label = "User SW3";
|
|
gpios = <&gpioc 4 GPIO_INT_ACTIVE_LOW>;
|
|
};
|
|
user_button_4: button_1 {
|
|
label = "User SW4";
|
|
gpios = <&gpioc 5 GPIO_INT_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&adc0 {
|
|
status = "ok";
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "ok";
|
|
|
|
fxos8700@1f {
|
|
compatible = "nxp,fxos8700";
|
|
reg = <0x1f>;
|
|
label = "FXOS8700";
|
|
int1-gpios = <&gpioc 1 0>;
|
|
};
|
|
};
|
|
|
|
&lpuart0 {
|
|
status = "ok";
|
|
current-speed = <115200>;
|
|
};
|