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