Merge branch 'for-4.20' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / freescale / fsl-ls1046a-rdb.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree Include file for Freescale Layerscape-1046A family SoC.
4  *
5  * Copyright 2016 Freescale Semiconductor, Inc.
6  *
7  * Mingkai Hu <mingkai.hu@nxp.com>
8  */
9
10 /dts-v1/;
11
12 #include "fsl-ls1046a.dtsi"
13
14 / {
15         model = "LS1046A RDB Board";
16         compatible = "fsl,ls1046a-rdb", "fsl,ls1046a";
17
18         aliases {
19                 serial0 = &duart0;
20                 serial1 = &duart1;
21                 serial2 = &duart2;
22                 serial3 = &duart3;
23         };
24
25         chosen {
26                 stdout-path = "serial0:115200n8";
27         };
28 };
29
30 &duart0 {
31         status = "okay";
32 };
33
34 &duart1 {
35         status = "okay";
36 };
37
38 &esdhc {
39         mmc-hs200-1_8v;
40         sd-uhs-sdr104;
41         sd-uhs-sdr50;
42         sd-uhs-sdr25;
43         sd-uhs-sdr12;
44 };
45
46 &i2c0 {
47         status = "okay";
48
49         ina220@40 {
50                 compatible = "ti,ina220";
51                 reg = <0x40>;
52                 shunt-resistor = <1000>;
53         };
54
55         temp-sensor@4c {
56                 compatible = "adi,adt7461";
57                 reg = <0x4c>;
58         };
59
60         eeprom@52 {
61                 compatible = "atmel,24c512";
62                 reg = <0x52>;
63         };
64
65         eeprom@53 {
66                 compatible = "atmel,24c512";
67                 reg = <0x53>;
68         };
69 };
70
71 &i2c3 {
72         status = "okay";
73
74         rtc@51 {
75                 compatible = "nxp,pcf2129";
76                 reg = <0x51>;
77         };
78 };
79
80 &ifc {
81         #address-cells = <2>;
82         #size-cells = <1>;
83         /* NAND Flashe and CPLD on board */
84         ranges = <0x0 0x0 0x0 0x7e800000 0x00010000
85                   0x2 0x0 0x0 0x7fb00000 0x00000100>;
86         status = "okay";
87
88         nand@0,0 {
89                 compatible = "fsl,ifc-nand";
90                 #address-cells = <1>;
91                 #size-cells = <1>;
92                 reg = <0x0 0x0 0x10000>;
93         };
94
95         cpld: board-control@2,0 {
96                 compatible = "fsl,ls1046ardb-cpld";
97                 reg = <0x2 0x0 0x0000100>;
98         };
99 };
100
101 &qspi {
102         num-cs = <2>;
103         bus-num = <0>;
104         status = "okay";
105
106         qflash0: s25fs512s@0 {
107                 compatible = "spansion,m25p80";
108                 #address-cells = <1>;
109                 #size-cells = <1>;
110                 spi-max-frequency = <20000000>;
111                 reg = <0>;
112         };
113
114         qflash1: s25fs512s@1 {
115                 compatible = "spansion,m25p80";
116                 #address-cells = <1>;
117                 #size-cells = <1>;
118                 spi-max-frequency = <20000000>;
119                 reg = <1>;
120         };
121 };
122
123 #include "fsl-ls1046-post.dtsi"
124
125 &fman0 {
126         ethernet@e4000 {
127                 phy-handle = <&rgmii_phy1>;
128                 phy-connection-type = "rgmii";
129         };
130
131         ethernet@e6000 {
132                 phy-handle = <&rgmii_phy2>;
133                 phy-connection-type = "rgmii";
134         };
135
136         ethernet@e8000 {
137                 phy-handle = <&sgmii_phy1>;
138                 phy-connection-type = "sgmii";
139         };
140
141         ethernet@ea000 {
142                 phy-handle = <&sgmii_phy2>;
143                 phy-connection-type = "sgmii";
144         };
145
146         ethernet@f0000 { /* 10GEC1 */
147                 phy-handle = <&aqr106_phy>;
148                 phy-connection-type = "xgmii";
149         };
150
151         ethernet@f2000 { /* 10GEC2 */
152                 fixed-link = <0 1 1000 0 0>;
153                 phy-connection-type = "xgmii";
154         };
155
156         mdio@fc000 {
157                 rgmii_phy1: ethernet-phy@1 {
158                         reg = <0x1>;
159                 };
160
161                 rgmii_phy2: ethernet-phy@2 {
162                         reg = <0x2>;
163                 };
164
165                 sgmii_phy1: ethernet-phy@3 {
166                         reg = <0x3>;
167                 };
168
169                 sgmii_phy2: ethernet-phy@4 {
170                         reg = <0x4>;
171                 };
172         };
173
174         mdio@fd000 {
175                 aqr106_phy: ethernet-phy@0 {
176                         compatible = "ethernet-phy-ieee802.3-c45";
177                         interrupts = <0 131 4>;
178                         reg = <0x0>;
179                 };
180         };
181 };