Linux Audio

Check our new training course

Loading...
/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 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";
		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>;
};