Debian Codegraph @

arch/arm/boot/dts/nxp/mxs/imx28-amarula-rmm.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (C) 2025 Amarula Solutions, Dario Binacchi <[email protected]>
4 */
5
6 /dts-v1/;
7
8 #include "imx28.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11
12 / {
13 compatible = "amarula,imx28-rmm", "fsl,imx28";
14 model = "Amarula i.MX28 rmm";
15
16 memory@40000000 {
17 reg = <0x40000000 0x08000000>;
18 device_type = "memory";
19 };
20
21 backlight {
22 compatible = "pwm-backlight";
23 pwms = <&pwm 4 5000000 0>;
24 brightness-levels = <0 255>;
25 num-interpolated-steps = <255>;
26 default-brightness-level = <255>;
27 power-supply = <&reg_5v>;
28 };
29
30 beeper {
31 compatible = "pwm-beeper";
32 pwms = <&pwm 7 100000 0>;
33 };
34
35 leds {
36 compatible = "gpio-leds";
37 pinctrl-names = "default";
38 pinctrl-0 = <&leds_pins>;
39
40 led-0 {
41 gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
42 default-state = "off";
43 };
44
45 led-1 {
46 gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
47 default-state = "off";
48 };
49
50 led-2 {
51 gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>;
52 default-state = "off";
53 };
54 };
55
56 reg_1v8: regulator-1v8 {
57 compatible = "regulator-fixed";
58 regulator-name = "1v8";
59 regulator-min-microvolt = <1800000>;
60 regulator-max-microvolt = <1800000>;
61 };
62
63 reg_3v3: regulator-3v3 {
64 compatible = "regulator-fixed";
65 regulator-name = "3v3";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 regulator-always-on;
69 };
70
71 reg_5v: regulator-5v {
72 compatible = "regulator-fixed";
73 regulator-name = "5v";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 regulator-always-on;
77 };
78
79 reg_fec_3v3: regulator-fec-3v3 {
80 compatible = "regulator-fixed";
81 pinctrl-names = "default";
82 pinctrl-0 = <&fec_3v3_enable_pin>;
83 regulator-name = "fec-3v3";
84 regulator-min-microvolt = <3300000>;
85 regulator-max-microvolt = <3300000>;
86 gpios = <&gpio3 27 GPIO_ACTIVE_HIGH>;
87 enable-active-high;
88 startup-delay-us = <300000>;
89 vin-supply = <&reg_5v>;
90 };
91
92 reg_usb0_vbus: regulator-usb0-vbus {
93 compatible = "regulator-fixed";
94 pinctrl-names = "default";
95 pinctrl-0 = <&usb0_vbus_enable_pin>;
96 regulator-name = "usb0_vbus";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
99 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
100 enable-active-high;
101 regulator-always-on;
102 };
103
104 reg_usb1_vbus: regulator-usb1-vbus {
105 compatible = "regulator-fixed";
106 pinctrl-names = "default";
107 pinctrl-0 = <&usb1_vbus_enable_pin>;
108 regulator-name = "usb1_vbus";
109 regulator-min-microvolt = <5000000>;
110 regulator-max-microvolt = <5000000>;
111 gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
112 enable-active-high;
113 regulator-always-on;
114 };
115
116 sound {
117 compatible = "simple-audio-card";
118 simple-audio-card,name = "imx28-mrmmi-tlv320aic3x-audio";
119 simple-audio-card,format = "i2s";
120 simple-audio-card,bitclock-master = <&cpu_dai>;
121 simple-audio-card,frame-master = <&cpu_dai>;
122 simple-audio-card,widgets =
123 "Headphone", "Headphone Jack";
124 simple-audio-card,routing =
125 "Headphone Jack", "HPROUT",
126 "Headphone Jack", "HPRCOM";
127 simple-audio-card,mclk-fs = <512>;
128
129 cpu_dai: simple-audio-card,cpu {
130 sound-dai = <&saif0>;
131 clocks = <&saif0>;
132 };
133
134 codec_dai: simple-audio-card,codec {
135 sound-dai = <&tlv320aic3x>;
136 };
137 };
138 };
139
140 &auart0 {
141 pinctrl-names = "default";
142 pinctrl-0 = <&auart0_2pins_a>;
143 status = "okay";
144 };
145
146 &auart1 {
147 pinctrl-names = "default";
148 pinctrl-0 = <&auart1_pins_a>;
149 status = "okay";
150 };
151
152 &can0 {
153 pinctrl-names = "default";
154 pinctrl-0 = <&can0_pins_a>;
155 status = "okay";
156 };
157
158 &duart {
159 pinctrl-names = "default";
160 pinctrl-0 = <&duart_pins_b>;
161 status = "okay";
162 };
163
164 &duart_pins_b {
165 fsl,voltage = <MXS_VOLTAGE_LOW>;
166 };
167
168 &gpmi {
169 #size-cells = <0>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
172 status = "okay";
173 };
174
175 &i2c0 {
176 pinctrl-names = "default";
177 pinctrl-0 = <&i2c0_pins_a>;
178 status = "okay";
179
180 tlv320aic3x: audio-codec@18 {
181 compatible = "ti,tlv320aic3x";
182 pinctrl-names = "default";
183 pinctrl-0 = <&tlv320aic3x_pins>;
184 reg = <0x18>;
185 reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
186 #sound-dai-cells = <0>;
187 DVDD-supply = <&reg_1v8>;
188 IOVDD-supply = <&reg_3v3>;
189 AVDD-supply = <&reg_3v3>;
190 DRVDD-supply = <&reg_3v3>;
191 };
192
193 touchscreen: touchscreen@38 {
194 compatible = "edt,edt-ft5306";
195 reg = <0x38>;
196 pinctrl-names = "default";
197 pinctrl-0 = <&edt_ft5x06_pins &edt_ft5x06_wake_pin>;
198 interrupt-parent = <&gpio0>;
199 interrupts = <19 IRQ_TYPE_EDGE_RISING>;
200 reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
201 wake-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
202 };
203 };
204
205 &lradc {
206 status = "okay";
207 };
208
209 &mac0 {
210 pinctrl-names = "default";
211 pinctrl-0 = <&mac0_pins_a>;
212 phy-mode = "rmii";
213 phy-supply = <&reg_fec_3v3>;
214 phy-handle = <&ethphy>;
215 status = "okay";
216
217 mdio {
218 #address-cells = <1>;
219 #size-cells = <0>;
220
221 ethphy: ethernet-phy@0 {
222 compatible = "ethernet-phy-ieee802.3-c22";
223 reg = <0>;
224 max-speed = <100>;
225 reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
226 reset-assert-us = <4000>;
227 reset-deassert-us = <4000>;
228 };
229 };
230 };
231
232 &pinctrl {
233 pinctrl-names = "default";
234 pinctrl-0 = <&hog_pins_a>;
235
236 edt_ft5x06_pins: edt-ft5x06@0 {
237 reg = <0>;
238 fsl,pinmux-ids = <
239 MX28_PAD_GPMI_RDY1__GPIO_0_21 /* Reset */
240 MX28_PAD_GPMI_CE3N__GPIO_0_19 /* Interrupt */
241 >;
242 fsl,drive-strength = <MXS_DRIVE_4mA>;
243 fsl,pull-up = <MXS_PULL_ENABLE>;
244 fsl,voltage = <MXS_VOLTAGE_HIGH>;
245 };
246
247 edt_ft5x06_wake_pin: edt-ft5x06-wake@0 {
248 reg = <0>;
249 fsl,pinmux-ids = <MX28_PAD_GPMI_CE2N__GPIO_0_18>;
250 fsl,drive-strength = <MXS_DRIVE_16mA>;
251 fsl,pull-up = <MXS_PULL_DISABLE>;
252 fsl,voltage = <MXS_VOLTAGE_HIGH>;
253 };
254
255 fec_3v3_enable_pin: fec-3v3-enable@0 {
256 reg = <0>;
257 fsl,pinmux-ids = <MX28_PAD_SPDIF__GPIO_3_27>;
258 fsl,drive-strength = <MXS_DRIVE_4mA>;
259 fsl,pull-up = <MXS_PULL_DISABLE>;
260 fsl,voltage = <MXS_VOLTAGE_HIGH>;
261 };
262
263 hog_pins_a: hog@0 {
264 reg = <0>;
265 fsl,pinmux-ids = <
266 MX28_PAD_SSP2_SS1__GPIO_2_20 /* External power */
267 >;
268 fsl,drive-strength = <MXS_DRIVE_4mA>;
269 fsl,pull-up = <MXS_PULL_DISABLE>;
270 fsl,voltage = <MXS_VOLTAGE_HIGH>;
271 };
272
273 leds_pins: leds@0 {
274 reg = <0>;
275 fsl,pinmux-ids = <
276 MX28_PAD_SSP0_DATA7__GPIO_2_7
277 MX28_PAD_PWM0__GPIO_3_16
278 MX28_PAD_PWM1__GPIO_3_17
279 >;
280 fsl,drive-strength = <MXS_DRIVE_4mA>;
281 fsl,pull-up = <MXS_PULL_DISABLE>;
282 fsl,voltage = <MXS_VOLTAGE_HIGH>;
283 };
284
285 tlv320aic3x_pins: tlv320aic3x-pins@0 {
286 reg = <0>;
287 fsl,pinmux-ids = <MX28_PAD_SSP0_DATA4__GPIO_2_4>;
288 fsl,drive-strength = <MXS_DRIVE_4mA>;
289 fsl,pull-up = <MXS_PULL_ENABLE>;
290 fsl,voltage = <MXS_VOLTAGE_HIGH>;
291 };
292
293 usb0_vbus_enable_pin: usb0-vbus-enable@0 {
294 reg = <0>;
295 fsl,pinmux-ids = <MX28_PAD_SSP0_DATA5__GPIO_2_5>;
296 fsl,drive-strength = <MXS_DRIVE_4mA>;
297 fsl,pull-up = <MXS_PULL_DISABLE>;
298 fsl,voltage = <MXS_VOLTAGE_HIGH>;
299 };
300
301 usb1_vbus_enable_pin: usb1-vbus-enable@0 {
302 reg = <0>;
303 fsl,pinmux-ids = <MX28_PAD_SSP0_DATA6__GPIO_2_6>;
304 fsl,drive-strength = <MXS_DRIVE_4mA>;
305 fsl,pull-up = <MXS_PULL_DISABLE>;
306 fsl,voltage = <MXS_VOLTAGE_HIGH>;
307 };
308 };
309
310 &pwm {
311 pinctrl-names = "default";
312 pinctrl-0 = <&pwm4_pins_a &pwm7_pins_a>;
313 status = "okay";
314 };
315
316 &saif0 {
317 pinctrl-names = "default";
318 pinctrl-0 = <&saif0_pins_a>;
319 status = "okay";
320 };
321
322 /* microSD */
323 &ssp0 {
324 compatible = "fsl,imx28-mmc";
325 pinctrl-names = "default";
326 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>;
327 broken-cd;
328 bus-width = <4>;
329 status = "okay";
330 };
331
332 &usb0 {
333 dr_mode = "host";
334 vbus-supply = <&reg_usb0_vbus>;
335 status = "okay";
336 };
337
338 &usb1 {
339 dr_mode = "host";
340 vbus-supply = <&reg_usb1_vbus>;
341 status = "okay";
342 };
343
344 &usbphy0 {
345 status = "okay";
346 };
347
348 &usbphy1 {
349 status = "okay";
350 };