blob: d221ed471cdeca2fc39518cfe8683c3178475ef8 [file] [log] [blame]
Michael Walle815364d2019-12-10 00:43:50 +01001// 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 };
21
22 chosen {
23 stdout-path = "serial0:115200n8";
24 };
25};
26
27&duart0 {
28 status = "okay";
29};
30
31&duart1 {
32 status = "okay";
33};
34
35&enetc_port0 {
36 phy-handle = <&phy0>;
37 phy-connection-type = "sgmii";
38
39 mdio {
40 #address-cells = <1>;
41 #size-cells = <0>;
42
43 phy0: ethernet-phy@5 {
44 reg = <0x5>;
45 eee-broken-1000t;
46 eee-broken-100tx;
47 };
48 };
49};
50
51&esdhc {
52 sd-uhs-sdr104;
53 sd-uhs-sdr50;
54 sd-uhs-sdr25;
55 sd-uhs-sdr12;
56 status = "okay";
57};
58
59&esdhc1 {
60 mmc-hs200-1_8v;
61 mmc-hs400-1_8v;
62 bus-width = <8>;
63 status = "okay";
64};
65
66&fspi {
67 status = "okay";
68
69 flash@0 {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 compatible = "jedec,spi-nor";
73 m25p,fast-read;
74 spi-max-frequency = <133000000>;
75 reg = <0>;
76 /* The following setting enables 1-1-2 (CMD-ADDR-DATA) mode */
77 spi-rx-bus-width = <2>; /* 2 SPI Rx lines */
78 spi-tx-bus-width = <1>; /* 1 SPI Tx line */
79
80 partition@0 {
81 reg = <0x000000 0x010000>;
82 label = "rcw";
83 read-only;
84 };
85
86 partition@10000 {
87 reg = <0x010000 0x0f0000>;
88 label = "failsafe bootloader";
89 read-only;
90 };
91
92 partition@100000 {
93 reg = <0x100000 0x040000>;
94 label = "failsafe DP firmware";
95 read-only;
96 };
97
98 partition@140000 {
99 reg = <0x140000 0x0a0000>;
100 label = "failsafe trusted firmware";
101 read-only;
102 };
103
104 partition@1e0000 {
105 reg = <0x1e0000 0x020000>;
106 label = "reserved";
107 read-only;
108 };
109
110 partition@200000 {
111 reg = <0x200000 0x010000>;
112 label = "configuration store";
113 };
114
115 partition@210000 {
116 reg = <0x210000 0x0f0000>;
117 label = "bootloader";
118 };
119
120 partition@300000 {
121 reg = <0x300000 0x040000>;
122 label = "DP firmware";
123 };
124
125 partition@340000 {
126 reg = <0x340000 0x0a0000>;
127 label = "trusted firmware";
128 };
129
130 partition@3e0000 {
131 reg = <0x3e0000 0x020000>;
132 label = "bootloader environment";
133 };
134 };
135};
136
137&gpio1 {
138 gpio-line-names =
139 "", "", "", "", "", "", "", "",
140 "", "", "", "", "", "", "", "",
141 "", "", "", "", "", "", "TDO", "TCK",
142 "", "", "", "", "", "", "", "";
143};
144
145&gpio2 {
146 gpio-line-names =
147 "", "", "", "", "", "", "TMS", "TDI",
148 "", "", "", "", "", "", "", "",
149 "", "", "", "", "", "", "", "",
150 "", "", "", "", "", "", "", "";
151};
152
153&i2c0 {
154 status = "okay";
155
156 rtc@32 {
157 compatible = "microcrystal,rv8803";
158 reg = <0x32>;
159 };
160
161 eeprom@50 {
162 compatible = "atmel,24c32";
163 reg = <0x50>;
164 pagesize = <32>;
165 };
166};
167
168&i2c3 {
169 status = "okay";
170};
171
172&i2c4 {
173 status = "okay";
174};