ARM: dts: synquacer: Add device trees for DeveloperBox
[platform/kernel/u-boot.git] / arch / arm / dts / ls1021a-pg-wcom-expu1.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Hitachi ABB Power Grids EXPU1 board device tree source
4  *
5  * Copyright 2020 Hitachi ABB Power Grids
6  *
7  * Copyright 2013-2015 Freescale Semiconductor, Inc.
8  */
9
10 /dts-v1/;
11 #include "ls1021a.dtsi"
12
13 / {
14         model = "EXPU1 Service Unit for XMC and FOX";
15
16         aliases {
17                 enet2-rgmii-debug-phy = &debug_phy;
18         };
19
20         chosen {
21                 stdout-path = &uart0;
22         };
23 };
24
25 &enet0 {
26         status = "okay";
27         tbi-handle = <&tbi0>;
28         phy-connection-type = "sgmii";
29         fixed-link {
30                 speed = <1000>;
31                 full-duplex;
32         };
33 };
34
35 &enet1 {
36         status = "okay";
37         tbi-handle = <&tbi1>;
38         phy-connection-type = "sgmii";
39         fixed-link {
40                 speed = <1000>;
41                 full-duplex;
42         };
43 };
44
45 &enet2 {
46         phy-handle = <&debug_phy>;
47         phy-connection-type = "rgmii-id";
48         max-speed = <100>;
49         status = "okay";
50 };
51
52 &i2c0 {
53         status = "okay";
54 };
55
56 &dspi1 {
57         bus-num = <0>;
58         status = "okay";
59         zl30343@0 {
60                 compatible = "gen,spidev", "zarlink,zl30343";
61                 reg = <0>;
62                 spi-max-frequency = <8000000>;
63         };
64 };
65
66 &ifc {
67         #address-cells = <2>;
68         #size-cells = <1>;
69         /* NOR Flash on board */
70         ranges = <0x0 0x0 0x60000000 0x04000000>;
71         status = "okay";
72
73         nor@0,0 {
74                 #address-cells = <1>;
75                 #size-cells = <1>;
76                 compatible = "cfi-flash";
77                 reg = <0x0 0x0 0x4000000>;
78                 bank-width = <2>;
79                 device-width = <1>;
80
81                 partition@0 {
82                         label = "rcw";
83                         reg = <0x0 0x20000>;
84                         read-only;
85                 };
86                 partition@20000 {
87                         label = "qe";
88                         reg = <0x20000 0x20000>;
89                 };
90                 /* ZL30343 init data to be added here */
91                 partition@40000 {
92                         label = "envred";
93                         reg = <0x40000 0x20000>;
94                 };
95                 partition@60000 {
96                         label = "env";
97                         reg = <0x60000 0x20000>;
98                 };
99                 partition@100000 {
100                         label = "u-boot";
101                         reg = <0x100000 0x100000>;
102                 };
103                 partition@200000 {
104                         label = "ubi0";
105                         reg = <0x200000 0x3E00000>;
106                 };
107         };
108 };
109
110 &mdio0 {
111         debug_phy: ethernet-phy@11 {
112                 reg = <0x11>;
113         };
114
115         tbi0: tbi-phy@0xb {
116                 reg = <0xb>;
117                 device_type = "tbi-phy";
118         };
119 };
120
121 &mdio1 {
122         tbi1: tbi-phy@0xd {
123                 reg = <0xd>;
124                 device_type = "tbi-phy";
125         };
126 };
127
128 &uart0 {
129         status = "okay";
130 };