Debian Codegraph @

arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi

raw
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /*
3 * Copyright 2021
4 * Lukasz Majewski, DENX Software Engineering, [email protected]
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 &spi3_pins_a {
59 fsl,pinmux-ids = <
60 MX28_PAD_AUART2_RX__SSP3_D4
61 MX28_PAD_AUART2_TX__SSP3_D5
62 MX28_PAD_SSP3_SCK__SSP3_SCK
63 MX28_PAD_SSP3_MOSI__SSP3_CMD
64 MX28_PAD_SSP3_MISO__SSP3_D0
65 MX28_PAD_SSP3_SS0__SSP3_D3
66 MX28_PAD_AUART2_TX__GPIO_3_9
67 >;
68 };
69
70 &ssp0 {
71 compatible = "fsl,imx28-mmc";
72 pinctrl-names = "default";
73 pinctrl-0 = <&mmc0_8bit_pins_a>;
74 bus-width = <8>;
75 vmmc-supply = <&reg_3v3>;
76 non-removable;
77 status = "okay";
78 };
79
80 &ssp2 {
81 compatible = "fsl,imx28-spi";
82 pinctrl-names = "default";
83 pinctrl-0 = <&spi2_pins_a>;
84 status = "okay";
85 };
86
87 &ssp3 {
88 compatible = "fsl,imx28-spi";
89 pinctrl-names = "default";
90 pinctrl-0 = <&spi3_pins_a>;
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 spi-max-frequency = <20000000>;
96 reg = <0>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0 0x80000>;
106 read-only;
107 };
108
109 partition@80000 {
110 label = "env0";
111 reg = <0x80000 0x10000>;
112 };
113
114 partition@90000 {
115 label = "env1";
116 reg = <0x90000 0x10000>;
117 };
118
119 partition@a0000 {
120 label = "rescue";
121 reg = <0xa0000 0xf40000>;
122 };
123
124 partition@fe0000 {
125 /* 1st sector for SPL boot img source data */
126 label = "spl-boot-data1";
127 reg = <0xfe0000 0x10000>;
128 };
129
130 partition@ff0000 {
131 /* 2nd sector for SPL boot img source data */
132 label = "spl-boot-data2";
133 reg = <0xff0000 0x10000>;
134 };
135 };
136 };
137 };
138
139 &usb0 {
140 vbus-supply = <&reg_usb_5v>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&usb0_pins_b>, <&usb0_id_pins_a>;
143 dr_mode = "host";
144 status = "okay";
145 };
146
147 &usbphy0 {
148 status = "okay";
149 };
150
151 &usb1 {
152 vbus-supply = <&reg_usb_5v>;
153 pinctrl-names = "default";
154 pinctrl-0 = <&usb1_pins_b>;
155 dr_mode = "host";
156 status = "okay";
157 };
158
159 &usbphy1 {
160 status = "okay";
161 };