]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/arm/boot/dts/imx28-m28cu3.dts
Merge tag 'mips_fixes_5.1_1' into mips-next
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / imx28-m28cu3.dts
1 /*
2 * Copyright (C) 2013 Marek Vasut <marex@denx.de>
3 *
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
12 /dts-v1/;
13 #include "imx28.dtsi"
14
15 / {
16 model = "MSR M28CU3";
17 compatible = "msr,m28cu3", "fsl,imx28";
18
19 memory@40000000 {
20 device_type = "memory";
21 reg = <0x40000000 0x08000000>;
22 };
23
24 apb@80000000 {
25 apbh@80000000 {
26 gpmi-nand@8000c000 {
27 #address-cells = <1>;
28 #size-cells = <1>;
29 pinctrl-names = "default";
30 pinctrl-0 = <&gpmi_pins_a &gpmi_status_cfg>;
31 status = "okay";
32
33 partition@0 {
34 label = "gpmi-nfc-0-boot";
35 reg = <0x00000000 0x01400000>;
36 read-only;
37 };
38
39 partition@1 {
40 label = "gpmi-nfc-general-use";
41 reg = <0x01400000 0x0ec00000>;
42 };
43 };
44
45 ssp0: spi@80010000 {
46 compatible = "fsl,imx28-mmc";
47 pinctrl-names = "default";
48 pinctrl-0 = <&mmc0_4bit_pins_a
49 &mmc0_cd_cfg
50 &mmc0_sck_cfg>;
51 bus-width = <4>;
52 vmmc-supply = <&reg_vddio_sd0>;
53 status = "okay";
54 };
55
56 ssp2: spi@80014000 {
57 compatible = "fsl,imx28-mmc";
58 pinctrl-names = "default";
59 pinctrl-0 = <&mmc2_4bit_pins_a
60 &mmc2_cd_cfg
61 &mmc2_sck_cfg_a>;
62 bus-width = <4>;
63 vmmc-supply = <&reg_vddio_sd1>;
64 status = "okay";
65 };
66
67 pinctrl@80018000 {
68 pinctrl-names = "default";
69 pinctrl-0 = <&hog_pins_a>;
70
71 hog_pins_a: hog@0 {
72 reg = <0>;
73 fsl,pinmux-ids = <
74 MX28_PAD_SSP2_SS0__GPIO_2_19
75 MX28_PAD_PWM4__GPIO_3_29
76 MX28_PAD_AUART2_RX__GPIO_3_8
77 MX28_PAD_ENET0_RX_CLK__GPIO_4_13
78 >;
79 fsl,drive-strength = <MXS_DRIVE_4mA>;
80 fsl,voltage = <MXS_VOLTAGE_HIGH>;
81 fsl,pull-up = <MXS_PULL_DISABLE>;
82 };
83
84 lcdif_pins_m28: lcdif-m28@0 {
85 reg = <0>;
86 fsl,pinmux-ids = <
87 MX28_PAD_LCD_VSYNC__LCD_VSYNC
88 MX28_PAD_LCD_HSYNC__LCD_HSYNC
89 MX28_PAD_LCD_DOTCLK__LCD_DOTCLK
90 MX28_PAD_LCD_RESET__LCD_RESET
91 MX28_PAD_LCD_CS__LCD_ENABLE
92 MX28_PAD_AUART1_TX__GPIO_3_5
93 >;
94 fsl,drive-strength = <MXS_DRIVE_4mA>;
95 fsl,voltage = <MXS_VOLTAGE_HIGH>;
96 fsl,pull-up = <MXS_PULL_DISABLE>;
97 };
98
99 led_pins_gpio: leds-m28@0 {
100 reg = <0>;
101 fsl,pinmux-ids = <
102 MX28_PAD_SSP3_MISO__GPIO_2_26
103 MX28_PAD_SSP3_SCK__GPIO_2_24
104 >;
105 fsl,drive-strength = <MXS_DRIVE_4mA>;
106 fsl,voltage = <MXS_VOLTAGE_HIGH>;
107 fsl,pull-up = <MXS_PULL_DISABLE>;
108 };
109 };
110
111 ocotp@8002c000 {
112 status = "okay";
113 };
114
115 lcdif@80030000 {
116 pinctrl-names = "default";
117 pinctrl-0 = <&lcdif_24bit_pins_a
118 &lcdif_pins_m28>;
119 display = <&display0>;
120 status = "okay";
121
122 display0: display0 {
123 bits-per-pixel = <32>;
124 bus-width = <24>;
125
126 display-timings {
127 native-mode = <&timing0>;
128 timing0: timing0 {
129 clock-frequency = <6410256>;
130 hactive = <320>;
131 vactive = <240>;
132 hback-porch = <38>;
133 hfront-porch = <20>;
134 vback-porch = <15>;
135 vfront-porch = <5>;
136 hsync-len = <30>;
137 vsync-len = <3>;
138 hsync-active = <0>;
139 vsync-active = <0>;
140 de-active = <1>;
141 pixelclk-active = <1>;
142 };
143 };
144 };
145 };
146 };
147
148 apbx@80040000 {
149 duart: serial@80074000 {
150 pinctrl-names = "default";
151 pinctrl-0 = <&duart_pins_b>;
152 status = "okay";
153 };
154
155 usbphy1: usbphy@8007e000 {
156 status = "okay";
157 };
158
159 auart0: serial@8006a000 {
160 pinctrl-names = "default";
161 pinctrl-0 = <&auart0_2pins_a>;
162 status = "okay";
163 };
164
165 auart3: serial@80070000 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&auart3_2pins_b>;
168 status = "okay";
169 };
170
171 pwm: pwm@80064000 {
172 pinctrl-names = "default";
173 pinctrl-0 = <&pwm3_pins_a>;
174 status = "okay";
175 };
176 };
177 };
178
179 ahb@80080000 {
180 usb1: usb@80090000 {
181 vbus-supply = <&reg_usb1_vbus>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&usb1_pins_a>;
184 disable-over-current;
185 status = "okay";
186 };
187
188 mac0: ethernet@800f0000 {
189 phy-mode = "rmii";
190 pinctrl-names = "default";
191 pinctrl-0 = <&mac0_pins_a>;
192 phy-reset-gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
193 phy-reset-duration = <100>;
194 status = "okay";
195 };
196
197 mac1: ethernet@800f4000 {
198 phy-mode = "rmii";
199 pinctrl-names = "default";
200 pinctrl-0 = <&mac1_pins_a>;
201 status = "okay";
202 };
203 };
204
205 backlight {
206 compatible = "pwm-backlight";
207 pwms = <&pwm 3 5000000>;
208 brightness-levels = <0 4 8 16 32 64 128 255>;
209 default-brightness-level = <6>;
210 };
211
212 leds {
213 compatible = "gpio-leds";
214 pinctrl-names = "default";
215 pinctrl-0 = <&led_pins_gpio>;
216
217 user1 {
218 label = "sd0-led";
219 gpios = <&gpio2 26 0>;
220 linux,default-trigger = "mmc0";
221 };
222
223 user2 {
224 label = "sd1-led";
225 gpios = <&gpio2 24 0>;
226 linux,default-trigger = "mmc2";
227 };
228 };
229
230 regulators {
231 compatible = "simple-bus";
232 #address-cells = <1>;
233 #size-cells = <0>;
234
235 reg_3p3v: regulator@0 {
236 compatible = "regulator-fixed";
237 reg = <0>;
238 regulator-name = "3P3V";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
241 regulator-always-on;
242 };
243
244 reg_vddio_sd0: regulator@1 {
245 compatible = "regulator-fixed";
246 reg = <1>;
247 regulator-name = "vddio-sd0";
248 regulator-min-microvolt = <3300000>;
249 regulator-max-microvolt = <3300000>;
250 gpio = <&gpio3 29 0>;
251 };
252
253 reg_vddio_sd1: regulator@2 {
254 compatible = "regulator-fixed";
255 reg = <2>;
256 regulator-name = "vddio-sd1";
257 regulator-min-microvolt = <3300000>;
258 regulator-max-microvolt = <3300000>;
259 gpio = <&gpio2 19 0>;
260 };
261
262 reg_usb1_vbus: regulator@3 {
263 compatible = "regulator-fixed";
264 reg = <3>;
265 regulator-name = "usb1_vbus";
266 regulator-min-microvolt = <5000000>;
267 regulator-max-microvolt = <5000000>;
268 gpio = <&gpio3 8 0>;
269 enable-active-high;
270 };
271 };
272 };