blob: de049042f83ec894411f4ed2017772fdb65a9e4e [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 };
44};
45
46&mac0 {
47 phy-mode = "rmii";
48 pinctrl-names = "default";
49 pinctrl-0 = <&mac0_pins_a>;
50 phy-supply = <&reg_fec_3v3>;
51 phy-reset-gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
52 phy-reset-duration = <1>;
53 phy-reset-post-delay = <1>;
54 status = "okay";
55
56 fixed-link {
57 speed = <100>;
58 full-duplex;
59 };
60};
61
62&ssp0 {
63 compatible = "fsl,imx28-mmc";
64 pinctrl-names = "default";
65 pinctrl-0 = <&mmc0_8bit_pins_a>;
66 bus-width = <8>;
67 vmmc-supply = <&reg_3p3v>;
68 non-removable;
69 status = "okay";
70};
71
72&ssp3 {
73 #address-cells = <1>;
74 #size-cells = <0>;
75 compatible = "fsl,imx28-spi";
76 pinctrl-names = "default";
77 pinctrl-0 = <&spi3_pins_b>;
78 status = "okay";
79 spi-max-frequency = <40000000>;
80 num-cs = <2>;
81
82 flash0: s25fl256s@0 {
83 #address-cells = <1>;
84 #size-cells = <1>;
85 compatible = "jedec,spi-nor";
86 spi-max-frequency = <40000000>;
87 reg = <0>;
88
89 partition@0 {
90 label = "SPL (spi)";
91 reg = <0x0 0x10000>;
92 read-only;
93 };
94 partition@1 {
95 label = "u-boot (spi)";
96 reg = <0x10000 0x70000>;
97 read-only;
98 };
99 partition@2 {
100 label = "uboot-env (spi)";
101 reg = <0x80000 0x20000>;
102 };
103 partition@3 {
104 label = "kernel (spi)";
105 reg = <0x100000 0x400000>;
106 };
107 partition@4 {
108 label = "swupdate (spi)";
109 reg = <0x50000 0x800000>;
110 };
111 };
112};