blob: 09f4712af681a9e7cb0be4e69b0f7885386f1fd0 [file] [log] [blame]
Giulio Benetti85a5cd92020-01-10 15:47:04 +01001// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (C) 2019
4 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5 */
6
Giulio Benetti85a5cd92020-01-10 15:47:04 +01007#include "armv7-m.dtsi"
8#include <dt-bindings/interrupt-controller/arm-gic.h>
9#include <dt-bindings/clock/imxrt1050-clock.h>
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/memory/imxrt-sdram.h>
12
13/ {
Giulio Benetti70259982020-04-08 17:11:05 +020014 #address-cells = <1>;
15 #size-cells = <1>;
16
Giulio Benetti85a5cd92020-01-10 15:47:04 +010017 aliases {
Giulio Benetti5595c002020-04-08 17:10:21 +020018 display0 = &lcdif;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010019 gpio0 = &gpio1;
20 gpio1 = &gpio2;
21 gpio2 = &gpio3;
22 gpio3 = &gpio4;
23 gpio4 = &gpio5;
24 mmc0 = &usdhc1;
25 serial0 = &lpuart1;
Giulio Benetti63b49fb2021-05-20 16:10:16 +020026 usbphy0 = &usbphy1;
Giulio Benetti85a5cd92020-01-10 15:47:04 +010027 };
28
29 clocks {
Giulio Benetti37a748e2021-05-13 12:18:39 +020030 osc: osc {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010031 compatible = "fsl,imx-osc", "fixed-clock";
32 #clock-cells = <0>;
33 clock-frequency = <24000000>;
34 };
35 };
36
37 soc {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010038 semc: semc@402f0000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010039 compatible = "fsl,imxrt-semc";
40 reg = <0x402f0000 0x4000>;
41 clocks = <&clks IMXRT1050_CLK_SEMC>;
42 pinctrl-0 = <&pinctrl_semc>;
43 pinctrl-names = "default";
44 status = "okay";
45 };
46
47 lpuart1: serial@40184000 {
48 compatible = "fsl,imxrt-lpuart";
49 reg = <0x40184000 0x4000>;
50 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
51 clocks = <&clks IMXRT1050_CLK_LPUART1>;
52 clock-names = "per";
53 status = "disabled";
54 };
55
56 iomuxc: iomuxc@401f8000 {
57 compatible = "fsl,imxrt-iomuxc";
58 reg = <0x401f8000 0x4000>;
59 fsl,mux_mask = <0x7>;
60 };
61
Jesse Taube214f4432022-03-17 14:33:18 -040062 anatop: anatop@400d8000 {
63 compatible = "fsl,imxrt-anatop";
64 reg = <0x400d8000 0x4000>;
65 };
66
Giulio Benetti85a5cd92020-01-10 15:47:04 +010067 clks: ccm@400fc000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010068 compatible = "fsl,imxrt1050-ccm";
69 reg = <0x400fc000 0x4000>;
70 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
71 <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
72 #clock-cells = <1>;
73 };
74
75 usdhc1: usdhc@402c0000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010076 compatible = "fsl,imxrt-usdhc";
77 reg = <0x402c0000 0x10000>;
78 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
79 clocks = <&clks IMXRT1050_CLK_USDHC1>;
80 clock-names = "per";
81 bus-width = <4>;
82 fsl,tuning-start-tap = <20>;
83 fsl,tuning-step= <2>;
84 status = "disabled";
85 };
86
87 gpio1: gpio@401b8000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010088 compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio";
89 reg = <0x401b8000 0x4000>;
90 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
91 <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
92 gpio-controller;
93 #gpio-cells = <2>;
94 interrupt-controller;
95 #interrupt-cells = <2>;
96 };
97
98 gpio2: gpio@401bc000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +010099 compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio";
100 reg = <0x401bc000 0x4000>;
101 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
102 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
103 gpio-controller;
104 #gpio-cells = <2>;
105 interrupt-controller;
106 #interrupt-cells = <2>;
107 };
108
109 gpio3: gpio@401c0000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100110 compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio";
111 reg = <0x401c0000 0x4000>;
112 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
113 <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
114 gpio-controller;
115 #gpio-cells = <2>;
116 interrupt-controller;
117 #interrupt-cells = <2>;
118 };
119
120 gpio4: gpio@401c4000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100121 compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio";
122 reg = <0x401c4000 0x4000>;
123 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
124 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
125 gpio-controller;
126 #gpio-cells = <2>;
127 interrupt-controller;
128 #interrupt-cells = <2>;
129 };
130
131 gpio5: gpio@400c0000 {
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100132 compatible = "fsl,imxrt-gpio", "fsl,imx35-gpio";
133 reg = <0x400c0000 0x4000>;
134 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
135 <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
136 gpio-controller;
137 #gpio-cells = <2>;
138 interrupt-controller;
139 #interrupt-cells = <2>;
140 };
Giulio Benetti5595c002020-04-08 17:10:21 +0200141
142 lcdif: lcdif@402b8000 {
Giulio Benetti1c0cb072020-04-28 18:20:11 +0200143 compatible = "fsl,imxrt-lcdif";
144 reg = <0x402b8000 0x4000>;
145 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
Giulio Benetti586ec092021-05-13 12:19:35 +0200146 clocks = <&clks IMXRT1050_CLK_LCDIF_PIX>,
147 <&clks IMXRT1050_CLK_LCDIF_APB>;
148 clock-names = "pix", "axi";
Giulio Benettica712282021-05-13 12:19:34 +0200149 assigned-clocks = <&clks IMXRT1050_CLK_LCDIF_SEL>;
150 assigned-clock-parents = <&clks IMXRT1050_CLK_PLL5_VIDEO>;
Giulio Benetti1c0cb072020-04-28 18:20:11 +0200151 status = "disabled";
Giulio Benetti5595c002020-04-08 17:10:21 +0200152 };
Giulio Benettid61b4d42021-05-13 12:18:40 +0200153
154 gpt1: gpt1@401ec000 {
155 compatible = "fsl,imxrt-gpt";
156 reg = <0x401ec000 0x4000>;
157 interrupts = <100>;
158 clocks = <&osc>;
159 status = "disabled";
160 };
Giulio Benetti63b49fb2021-05-20 16:10:16 +0200161
162 usbphy1: usbphy@400d9000 {
163 compatible = "fsl,imxrt-usbphy";
164 reg = <0x400d9000 0x1000>;
165 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
166 };
167
168 usbmisc: usbmisc@402e0800 {
169 #index-cells = <1>;
170 compatible = "fsl,imxrt-usbmisc";
171 reg = <0x402e0800 0x200>;
172 clocks = <&clks IMXRT1050_CLK_USBOH3>;
173 };
174
175 usbotg1: usb@402e0000 {
176 compatible = "fsl,imxrt-usb", "fsl,imx27-usb";
177 reg = <0x402e0000 0x200>;
178 interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
179 clocks = <&clks IMXRT1050_CLK_USBOH3>;
180 fsl,usbphy = <&usbphy1>;
181 fsl,usbmisc = <&usbmisc 0>;
182 ahb-burst-config = <0x0>;
183 tx-burst-size-dword = <0x10>;
184 rx-burst-size-dword = <0x10>;
185 status = "disabled";
186 };
Giulio Benetti85a5cd92020-01-10 15:47:04 +0100187 };
188};