xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/mxs/imx28-lwe.dtsi (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2021
4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5 */
6
7/dts-v1/;
8#include "imx28.dtsi"
9
10/ {
11	aliases {
12		spi2 = &ssp3;
13	};
14
15	chosen {
16		bootargs = "root=/dev/mmcblk0p2 rootfstype=ext4 ro rootwait console=ttyAMA0,115200 panic=1";
17	};
18
19	memory@40000000 {
20		reg = <0x40000000 0x08000000>;
21		device_type = "memory";
22	};
23
24	reg_3v3: regulator-reg-3v3 {
25		compatible = "regulator-fixed";
26		regulator-name = "3V3";
27		regulator-min-microvolt = <3300000>;
28		regulator-max-microvolt = <3300000>;
29	};
30
31	reg_usb_5v: regulator-reg-usb-5v {
32		compatible = "regulator-fixed";
33		regulator-name = "usb_vbus";
34		regulator-min-microvolt = <5000000>;
35		regulator-max-microvolt = <5000000>;
36	};
37
38	reg_fec_3v3: regulator-reg-fec-3v3 {
39		compatible = "regulator-fixed";
40		regulator-name = "fec-phy";
41		regulator-min-microvolt = <3300000>;
42		regulator-max-microvolt = <3300000>;
43	};
44};
45
46&duart {
47	pinctrl-names = "default";
48	pinctrl-0 = <&duart_pins_a>;
49	status = "okay";
50};
51
52&i2c0 {
53	pinctrl-names = "default";
54	pinctrl-0 = <&i2c0_pins_a>;
55	status = "okay";
56};
57
58&saif0 {
59	pinctrl-names = "default";
60	pinctrl-0 = <&saif0_pins_a>;
61	#sound-dai-cells = <0>;
62	assigned-clocks = <&clks 53>;
63	assigned-clock-rates = <12000000>;
64	status = "okay";
65};
66
67&saif1 {
68	pinctrl-names = "default";
69	pinctrl-0 = <&saif1_pins_a>;
70	fsl,saif-master = <&saif0>;
71	#sound-dai-cells = <0>;
72	status = "okay";
73};
74
75&spi3_pins_a {
76	fsl,pinmux-ids = <
77		MX28_PAD_AUART2_RX__SSP3_D4
78		MX28_PAD_AUART2_TX__SSP3_D5
79		MX28_PAD_SSP3_SCK__SSP3_SCK
80		MX28_PAD_SSP3_MOSI__SSP3_CMD
81		MX28_PAD_SSP3_MISO__SSP3_D0
82		MX28_PAD_SSP3_SS0__SSP3_D3
83		MX28_PAD_AUART2_TX__GPIO_3_9
84	>;
85};
86
87&ssp0 {
88	compatible = "fsl,imx28-mmc";
89	pinctrl-names = "default";
90	pinctrl-0 = <&mmc0_8bit_pins_a>;
91	bus-width = <8>;
92	vmmc-supply = <&reg_3v3>;
93	non-removable;
94	status = "okay";
95};
96
97&ssp2 {
98	compatible = "fsl,imx28-spi";
99	pinctrl-names = "default";
100	pinctrl-0 = <&spi2_pins_a>;
101	status = "okay";
102};
103
104&ssp3 {
105	compatible = "fsl,imx28-spi";
106	pinctrl-names = "default";
107	pinctrl-0 = <&spi3_pins_a>;
108	status = "okay";
109
110	flash@0 {
111		compatible = "jedec,spi-nor";
112		spi-max-frequency = <40000000>;
113		reg = <0>;
114
115		partitions {
116			compatible = "fixed-partitions";
117			#address-cells = <1>;
118			#size-cells = <1>;
119
120			partition@0 {
121				label = "u-boot";
122				reg = <0 0x80000>;
123				read-only;
124			};
125
126			partition@80000 {
127				label = "env0";
128				reg = <0x80000 0x10000>;
129			};
130
131			partition@90000 {
132				label = "env1";
133				reg = <0x90000 0x10000>;
134			};
135
136			partition@100000 {
137				label = "kernel";
138				reg = <0x100000 0x400000>;
139			};
140
141			partition@500000 {
142				label = "swupdate";
143				reg = <0x500000 0x800000>;
144			};
145		};
146	};
147};
148
149&usb0 {
150	vbus-supply = <&reg_usb_5v>;
151	pinctrl-names = "default";
152	pinctrl-0 = <&usb0_pins_b>, <&usb0_id_pins_a>;
153	dr_mode = "host";
154	status = "okay";
155};
156
157&usbphy0 {
158	status = "okay";
159};
160
161&usb1 {
162	vbus-supply = <&reg_usb_5v>;
163	pinctrl-names = "default";
164	pinctrl-0 = <&usb1_pins_b>;
165	dr_mode = "host";
166	status = "okay";
167};
168
169&usbphy1 {
170	status = "okay";
171};
172