]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/arm/boot/dts/ls1021a-twr.dts
Merge tag 'socfpga_updates_for_v4.20_part3' of git://git.kernel.org/pub/scm/linux...
[mirror_ubuntu-focal-kernel.git] / arch / arm / boot / dts / ls1021a-twr.dts
CommitLineData
034c4411
JL
1/*
2 * Copyright 2013-2014 Freescale Semiconductor, Inc.
f6fea52a 3 * Copyright 2018 NXP
034c4411
JL
4 *
5 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
9 *
10 * a) This file is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public
21 * License along with this file; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
23 * MA 02110-1301 USA
24 *
25 * Or, alternatively,
26 *
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use,
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
34 * conditions:
35 *
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
38 *
39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
47 */
48
49/dts-v1/;
50#include "ls1021a.dtsi"
51
52/ {
53 model = "LS1021A TWR Board";
54
55 aliases {
56 enet2_rgmii_phy = &rgmii_phy1;
57 enet0_sgmii_phy = &sgmii_phy2;
58 enet1_sgmii_phy = &sgmii_phy0;
59 };
50897cb6
AW
60
61 sys_mclk: clock-mclk {
62 compatible = "fixed-clock";
63 #clock-cells = <0>;
64 clock-frequency = <24576000>;
65 };
66
67 regulators {
68 compatible = "simple-bus";
69 #address-cells = <1>;
70 #size-cells = <0>;
71
72 reg_3p3v: regulator@0 {
73 compatible = "regulator-fixed";
74 reg = <0>;
75 regulator-name = "3P3V";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 regulator-always-on;
79 };
80 };
81
82 sound {
83 compatible = "simple-audio-card";
84 simple-audio-card,format = "i2s";
85 simple-audio-card,widgets =
86 "Microphone", "Microphone Jack",
87 "Headphone", "Headphone Jack",
88 "Speaker", "Speaker Ext",
89 "Line", "Line In Jack";
90 simple-audio-card,routing =
91 "MIC_IN", "Microphone Jack",
92 "Microphone Jack", "Mic Bias",
93 "LINE_IN", "Line In Jack",
94 "Headphone Jack", "HP_OUT",
95 "Speaker Ext", "LINE_OUT";
96
97 simple-audio-card,cpu {
98 sound-dai = <&sai1>;
99 frame-master;
100 bitclock-master;
101 };
102
103 simple-audio-card,codec {
104 sound-dai = <&codec>;
105 frame-master;
106 bitclock-master;
107 };
108 };
edb3ed39
MY
109
110 panel: panel {
111 compatible = "nec,nl4827hc19-05b";
9e2ce195
MY
112
113 port {
114 panel_in: endpoint {
115 remote-endpoint = <&dcu_out>;
116 };
117 };
edb3ed39
MY
118 };
119};
120
121&dcu {
edb3ed39 122 status = "okay";
9e2ce195
MY
123
124 port {
125 dcu_out: endpoint {
126 remote-endpoint = <&panel_in>;
127 };
128 };
034c4411
JL
129};
130
131&dspi1 {
132 bus-num = <0>;
133 status = "okay";
134
135 dspiflash: s25fl064k@0 {
136 #address-cells = <1>;
137 #size-cells = <1>;
138 compatible = "spansion,s25fl064k";
139 spi-max-frequency = <16000000>;
140 spi-cpol;
141 spi-cpha;
142 reg = <0>;
143 };
144};
145
055223d4
CM
146&enet0 {
147 tbi-handle = <&tbi1>;
148 phy-handle = <&sgmii_phy2>;
149 phy-connection-type = "sgmii";
150 status = "okay";
151};
152
153&enet1 {
154 tbi-handle = <&tbi1>;
155 phy-handle = <&sgmii_phy0>;
156 phy-connection-type = "sgmii";
157 status = "okay";
158};
159
160&enet2 {
161 phy-handle = <&rgmii_phy1>;
162 phy-connection-type = "rgmii-id";
163 status = "okay";
164};
165
034c4411
JL
166&i2c0 {
167 status = "okay";
60f0ea12
YY
168
169 ina220@40 {
170 compatible = "ti,ina220";
171 reg = <0x40>;
172 shunt-resistor = <1000>;
173 };
174
175 ina220@41 {
176 compatible = "ti,ina220";
177 reg = <0x41>;
178 shunt-resistor = <1000>;
179 };
180
034c4411
JL
181};
182
183&i2c1 {
184 status = "okay";
50897cb6
AW
185 codec: sgtl5000@a {
186 #sound-dai-cells = <0>;
187 compatible = "fsl,sgtl5000";
188 reg = <0x0a>;
189 VDDA-supply = <&reg_3p3v>;
190 VDDIO-supply = <&reg_3p3v>;
506e8a91 191 clocks = <&sys_mclk>;
50897cb6 192 };
034c4411
JL
193};
194
195&ifc {
196 #address-cells = <2>;
197 #size-cells = <1>;
198 /* NOR Flash on board */
199 ranges = <0x0 0x0 0x0 0x60000000 0x08000000>;
200 status = "okay";
201
202 nor@0,0 {
203 #address-cells = <1>;
204 #size-cells = <1>;
205 compatible = "cfi-flash";
206 reg = <0x0 0x0 0x8000000>;
f6fea52a 207 big-endian;
034c4411
JL
208 bank-width = <2>;
209 device-width = <1>;
210 };
211};
212
213&lpuart0 {
214 status = "okay";
215};
216
217&mdio0 {
218 sgmii_phy0: ethernet-phy@0 {
219 reg = <0x0>;
220 };
221 rgmii_phy1: ethernet-phy@1 {
222 reg = <0x1>;
223 };
224 sgmii_phy2: ethernet-phy@2 {
225 reg = <0x2>;
226 };
227 tbi1: tbi-phy@1f {
228 reg = <0x1f>;
229 device_type = "tbi-phy";
230 };
231};
232
5710825f 233&esdhc {
234 status = "okay";
235};
236
50897cb6
AW
237&sai1 {
238 status = "okay";
239};
240
318f05e5
TY
241&sata {
242 status = "okay";
243};
244
034c4411
JL
245&uart0 {
246 status = "okay";
247};
248
249&uart1 {
250 status = "okay";
251};
fa2edcfb
PB
252
253&can0 {
254 status = "okay";
255};
256
257&can1 {
258 status = "okay";
259};
260
261&can2 {
262 status = "disabled";
263};
264
265&can3 {
266 status = "disabled";
267};