1648a04ea79f3125adcd22840d76e13ca2cf1a7c
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / freescale / fsl-ls1028a-kontron-sl28.dts
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Device Tree file for the Kontron SMARC-sAL28 board.
4  *
5  * Copyright (C) 2019 Michael Walle <michael@walle.cc>
6  *
7  */
8
9 /dts-v1/;
10 #include "fsl-ls1028a.dtsi"
11
12 / {
13         model = "Kontron SMARC-sAL28";
14         compatible = "kontron,sl28", "fsl,ls1028a";
15
16         aliases {
17                 crypto = &crypto;
18                 serial0 = &duart0;
19                 serial1 = &duart1;
20                 spi0 = &fspi;
21                 spi1 = &dspi2;
22         };
23
24         chosen {
25                 stdout-path = "serial0:115200n8";
26         };
27 };
28
29 &dspi2 {
30         status = "okay";
31 };
32
33 &duart0 {
34         status = "okay";
35 };
36
37 &duart1 {
38         status = "okay";
39 };
40
41 &enetc_port0 {
42         phy-handle = <&phy0>;
43         phy-connection-type = "sgmii";
44         status = "okay";
45
46         mdio {
47                 #address-cells = <1>;
48                 #size-cells = <0>;
49
50                 phy0: ethernet-phy@5 {
51                         reg = <0x5>;
52                         eee-broken-1000t;
53                         eee-broken-100tx;
54                 };
55         };
56 };
57
58 &esdhc {
59         sd-uhs-sdr104;
60         sd-uhs-sdr50;
61         sd-uhs-sdr25;
62         sd-uhs-sdr12;
63         status = "okay";
64 };
65
66 &esdhc1 {
67         mmc-hs200-1_8v;
68         mmc-hs400-1_8v;
69         bus-width = <8>;
70         status = "okay";
71 };
72
73 &fspi {
74         status = "okay";
75
76         flash@0 {
77                 #address-cells = <1>;
78                 #size-cells = <1>;
79                 compatible = "jedec,spi-nor";
80                 m25p,fast-read;
81                 spi-max-frequency = <133000000>;
82                 reg = <0>;
83                 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
84                 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
85                 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
86
87                 partition@0 {
88                         reg = <0x000000 0x010000>;
89                         label = "rcw";
90                         read-only;
91                 };
92
93                 partition@10000 {
94                         reg = <0x010000 0x0f0000>;
95                         label = "failsafe bootloader";
96                         read-only;
97                 };
98
99                 partition@100000 {
100                         reg = <0x100000 0x040000>;
101                         label = "failsafe DP firmware";
102                         read-only;
103                 };
104
105                 partition@140000 {
106                         reg = <0x140000 0x0a0000>;
107                         label = "failsafe trusted firmware";
108                         read-only;
109                 };
110
111                 partition@1e0000 {
112                         reg = <0x1e0000 0x020000>;
113                         label = "reserved";
114                         read-only;
115                 };
116
117                 partition@200000 {
118                         reg = <0x200000 0x010000>;
119                         label = "configuration store";
120                 };
121
122                 partition@210000 {
123                         reg = <0x210000 0x0f0000>;
124                         label = "bootloader";
125                 };
126
127                 partition@300000 {
128                         reg = <0x300000 0x040000>;
129                         label = "DP firmware";
130                 };
131
132                 partition@340000 {
133                         reg = <0x340000 0x0a0000>;
134                         label = "trusted firmware";
135                 };
136
137                 partition@3e0000 {
138                         reg = <0x3e0000 0x020000>;
139                         label = "bootloader environment";
140                 };
141         };
142 };
143
144 &gpio1 {
145         gpio-line-names =
146                 "", "", "", "", "", "", "", "",
147                 "", "", "", "", "", "", "", "",
148                 "", "", "", "", "", "", "TDO", "TCK",
149                 "", "", "", "", "", "", "", "";
150 };
151
152 &gpio2 {
153         gpio-line-names =
154                 "", "", "", "", "", "", "TMS", "TDI",
155                 "", "", "", "", "", "", "", "",
156                 "", "", "", "", "", "", "", "",
157                 "", "", "", "", "", "", "", "";
158 };
159
160 &i2c0 {
161         status = "okay";
162
163         rtc@32 {
164                 compatible = "microcrystal,rv8803";
165                 reg = <0x32>;
166         };
167
168         eeprom@50 {
169                 compatible = "atmel,24c32";
170                 reg = <0x50>;
171                 pagesize = <32>;
172         };
173 };
174
175 &i2c3 {
176         status = "okay";
177 };
178
179 &i2c4 {
180         status = "okay";
181
182         eeprom@50 {
183                 compatible = "atmel,24c32";
184                 reg = <0x50>;
185                 pagesize = <32>;
186         };
187 };