blob: f4b503cf650612c2258e437109c2c22a470aba68 [file] [log] [blame]
Lukasz Majewski010e58d2019-12-08 22:06:56 +01001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019
4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
5 *
6 * SPDX-License-Identifier: GPL-2.0+ or X11
7 *
8 */
9
10/dts-v1/;
11
12#include "imx28.dtsi"
13
14/ {
15 model = "Liebherr (LWE) XEA i.MX28 Board";
16 compatible = "lwe,xea", "fsl,imx28";
17
18 aliases {
19 spi3 = &ssp3;
20 };
21
22 memory@40000000 {
23 device_type = "memory";
24 reg = <0x40000000 0x10000000>;
25 };
26
27 reg_3p3v: regulator-3p3v {
28 compatible = "regulator-fixed";
29 regulator-name = "3P3V";
30 regulator-min-microvolt = <3300000>;
31 regulator-max-microvolt = <3300000>;
32 regulator-always-on;
33 };
34
35 reg_fec_3v3: regulator-fec-3v3 {
36 compatible = "regulator-fixed";
37 regulator-name = "fec-3v3";
38 regulator-min-microvolt = <3300000>;
39 regulator-max-microvolt = <3300000>;
40 gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>;
Lukasz Majewskia05eb8b2020-01-25 09:01:40 +010041 enable-active-high;
42 regulator-boot-on;
Lukasz Majewski010e58d2019-12-08 22:06:56 +010043 };
Lukasz Majewskie2a636082021-12-27 11:46:41 +010044
45 reg_usb_5v: regulator-usb-5v {
46 compatible = "regulator-fixed";
47 regulator-name = "usb_vbus";
48 regulator-min-microvolt = <5000000>;
49 regulator-max-microvolt = <5000000>;
50 gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
51 enable-active-high;
52 };
Lukasz Majewski010e58d2019-12-08 22:06:56 +010053};
54
55&mac0 {
56 phy-mode = "rmii";
57 pinctrl-names = "default";
58 pinctrl-0 = <&mac0_pins_a>;
59 phy-supply = <&reg_fec_3v3>;
60 phy-reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
61 phy-reset-duration = <1>;
62 phy-reset-post-delay = <1>;
63 status = "okay";
64
65 fixed-link {
66 speed = <100>;
67 full-duplex;
68 };
69};
70
71&ssp0 {
72 compatible = "fsl,imx28-mmc";
73 pinctrl-names = "default";
74 pinctrl-0 = <&mmc0_8bit_pins_a>;
75 bus-width = <8>;
76 vmmc-supply = <&reg_3p3v>;
77 non-removable;
78 status = "okay";
79};
80
81&ssp3 {
82 #address-cells = <1>;
83 #size-cells = <0>;
84 compatible = "fsl,imx28-spi";
85 pinctrl-names = "default";
86 pinctrl-0 = <&spi3_pins_b>;
87 status = "okay";
88 spi-max-frequency = <40000000>;
89 num-cs = <2>;
90
91 flash0: s25fl256s@0 {
92 #address-cells = <1>;
93 #size-cells = <1>;
94 compatible = "jedec,spi-nor";
95 spi-max-frequency = <40000000>;
96 reg = <0>;
97
Lukasz Majewski1e7212e2021-12-27 11:46:38 +010098 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102 partition@0 {
103 label = "SPL";
104 reg = <0x0 0x10000>;
105 read-only;
106 };
107 partition@10000 {
108 label = "u-boot";
109 reg = <0x10000 0x70000>;
110 read-only;
111 };
112 partition@80000 {
113 label = "uboot-env1";
114 reg = <0x80000 0x10000>;
115 };
116 partition@90000 {
117 label = "uboot-env2";
118 reg = <0x90000 0x10000>;
119 };
120 partition@A0000 {
121 label = "rescue";
122 reg = <0xA0000 0xF40000>;
123 };
124 partition@FE0000 {
125 label = "spl-boot-data1";
126 reg = <0xFE0000 0x10000>;
127 };
128 partition@FF0000 {
129 label = "spl-boot-data2";
130 reg = <0xFF0000 0x10000>;
131 };
Lukasz Majewski010e58d2019-12-08 22:06:56 +0100132 };
133 };
134};
Lukasz Majewskie2a636082021-12-27 11:46:41 +0100135
136&usb0 {
137 vbus-supply = <&reg_usb_5v>;
138 status = "okay";
139};
140
141&usbphy0 {
142 status = "okay";
143};