87 lines
1.4 KiB
Plaintext
87 lines
1.4 KiB
Plaintext
/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;
|
|
zephyr,shell-uart = &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,fxos8700","nxp,mma8451q";
|
|
reg = <0x1d>;
|
|
label = "MMA8451Q";
|
|
int1-gpios = <&gpioa 14 0>;
|
|
int2-gpios = <&gpioa 15 0>;
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "ok";
|
|
current-speed = <115200>;
|
|
};
|
|
|
|
&usbd {
|
|
compatible = "nxp,kinetis-usbd";
|
|
status = "ok";
|
|
num-bidir-endpoints = <8>;
|
|
};
|