zephyr/dts/arm/nxp/nxp_rt1010.dtsi
Maureen Helm 201f8897cd dts: boards: Define dts aliases at soc level for i.mx rt socs
Defines device tree aliases for on-chip peripherals at the soc level
instead of the board level for all i.mx rt socs. The eliminates some
duplicate code in the board level device trees, and will allow drivers
to use device-tree generated macros directly instead of through dts
fixups.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
2020-01-13 10:22:09 -05:00

90 lines
1.0 KiB
Plaintext

/*
* Copyright (c) 2019, Linaro
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <nxp/nxp_rt.dtsi>
&sysclk {
clock-frequency = <500000000>;
};
/* i.MX rt1010 default FlexRAM partition:
* ITCM: 32KB
* DTCM: 32KB
* OCRAM: 64KB
*/
&itcm0 {
reg = <0x00000000 0x8000>;
};
&dtcm0 {
reg = <0x20000000 0x8000>;
};
&ocram0 {
reg = <0x20200000 0x10000>;
};
&gpio1 {
interrupts = <70 0>, <71 0>;
};
&gpio5 {
interrupts = <73 0>;
};
&gpt1 {
interrupts = <30 0>;
};
&gpt2 {
interrupts = <31 0>;
};
&usbd1 {
interrupts = <25 0>;
};
&flexspi0 {
interrupts = <26 0>;
};
&flexpwm1_pwm0 {
interrupts = <34 0>;
};
&flexpwm1_pwm1 {
interrupts = <35 0>;
};
&flexpwm1_pwm2 {
interrupts = <36 0>;
};
&flexpwm1_pwm3 {
interrupts = <37 0>;
};
&flexpwm1 {
interrupts = <38 0>;
};
/ {
aliases {
gpio-2 = &gpio2_rt1010;
};
soc {
gpio2_rt1010: gpio@42000000 {
compatible = "nxp,imx-gpio";
reg = <0x42000000 0x4000>;
interrupts = <72 0>;
label = "GPIO_2";
gpio-controller;
#gpio-cells = <2>;
};
};
};