Debian Codegraph @

arch/arm64/boot/dts/marvell/armada-7040-db.dts

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (C) 2016 Marvell Technology Group Ltd.
4 *
5 * Device Tree file for Marvell Armada 7040 Development board platform
6 */
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include "armada-7040.dtsi"
10
11 / {
12 model = "Marvell Armada 7040 DB board";
13 compatible = "marvell,armada7040-db", "marvell,armada7040",
14 "marvell,armada-ap806-quad", "marvell,armada-ap806";
15
16 chosen {
17 stdout-path = "serial0:115200n8";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x0 0x0 0x80000000>;
23 };
24
25 aliases {
26 ethernet0 = &cp0_eth0;
27 ethernet1 = &cp0_eth1;
28 ethernet2 = &cp0_eth2;
29 };
30
31 cp0_exp_usb3_0_current_regulator: gpio-regulator {
32 compatible = "regulator-gpio";
33 regulator-name = "cp0-usb3-0-current-regulator";
34 regulator-type = "current";
35 regulator-min-microamp = <500000>;
36 regulator-max-microamp = <900000>;
37 gpios = <&expander0 4 GPIO_ACTIVE_HIGH>;
38 states = <500000 0x0
39 900000 0x1>;
40 enable-active-high;
41 gpios-states = <0>;
42 };
43
44 cp0_exp_usb3_1_current_regulator: gpio-regulator {
45 compatible = "regulator-gpio";
46 regulator-name = "cp0-usb3-1-current-regulator";
47 regulator-type = "current";
48 regulator-min-microamp = <500000>;
49 regulator-max-microamp = <900000>;
50 gpios = <&expander0 5 GPIO_ACTIVE_HIGH>;
51 states = <500000 0x0
52 900000 0x1>;
53 enable-active-high;
54 gpios-states = <0>;
55 };
56
57 cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
58 compatible = "regulator-fixed";
59 regulator-name = "usb3h0-vbus";
60 regulator-min-microvolt = <5000000>;
61 regulator-max-microvolt = <5000000>;
62 enable-active-high;
63 gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
64 vin-supply = <&cp0_exp_usb3_0_current_regulator>;
65 };
66
67 cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
68 compatible = "regulator-fixed";
69 regulator-name = "usb3h1-vbus";
70 regulator-min-microvolt = <5000000>;
71 regulator-max-microvolt = <5000000>;
72 enable-active-high;
73 gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
74 vin-supply = <&cp0_exp_usb3_1_current_regulator>;
75 };
76 };
77
78 &i2c0 {
79 status = "okay";
80 clock-frequency = <100000>;
81 };
82
83 &spi0 {
84 status = "okay";
85
86 flash@0 {
87 compatible = "jedec,spi-nor";
88 reg = <0>;
89 spi-max-frequency = <10000000>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "U-Boot";
98 reg = <0 0x200000>;
99 };
100 partition@400000 {
101 label = "Filesystem";
102 reg = <0x200000 0xce0000>;
103 };
104 };
105 };
106 };
107
108 &uart0 {
109 status = "okay";
110 pinctrl-0 = <&uart0_pins>;
111 pinctrl-names = "default";
112 };
113
114
115 &cp0_pcie2 {
116 status = "okay";
117 phys = <&cp0_comphy5 2>;
118 phy-names = "cp0-pcie2-x1-phy";
119 };
120
121 &cp0_i2c0 {
122 status = "okay";
123 clock-frequency = <100000>;
124
125 expander0: pca9555@21 {
126 compatible = "nxp,pca9555";
127 gpio-controller;
128 #gpio-cells = <2>;
129 reg = <0x21>;
130 /*
131 * IO0_0: USB3_PWR_EN0 IO1_0: USB_3_1_Dev_Detect
132 * IO0_1: USB3_PWR_EN1 IO1_1: USB2_1_current_limit
133 * IO0_2: DDR3_4_Detect IO1_2: Hcon_IO_RstN
134 * IO0_3: USB2_DEVICE_DETECT
135 * IO0_4: GPIO_0 IO1_4: SD_Status
136 * IO0_5: GPIO_1 IO1_5: LDO_5V_Enable
137 * IO0_6: IHB_5V_Enable IO1_6: PWR_EN_eMMC
138 * IO0_7: IO1_7: SDIO_Vcntrl
139 */
140 };
141 };
142
143 &cp0_nand_controller {
144 /*
145 * SPI on CPM and NAND have common pins on this board. We can
146 * use only one at a time. To enable the NAND (which will
147 * disable the SPI), the "status = "okay";" line have to be
148 * added here.
149 */
150 pinctrl-0 = <&nand_pins>, <&nand_rb>;
151 pinctrl-names = "default";
152
153 nand@0 {
154 reg = <0>;
155 label = "pxa3xx_nand-0";
156 nand-rb = <0>;
157 nand-on-flash-bbt;
158 nand-ecc-strength = <4>;
159 nand-ecc-step-size = <512>;
160
161 partitions {
162 compatible = "fixed-partitions";
163 #address-cells = <1>;
164 #size-cells = <1>;
165
166 partition@0 {
167 label = "U-Boot";
168 reg = <0 0x200000>;
169 };
170
171 partition@200000 {
172 label = "Linux";
173 reg = <0x200000 0xe00000>;
174 };
175
176 partition@1000000 {
177 label = "Filesystem";
178 reg = <0x1000000 0x3f000000>;
179 };
180
181 };
182 };
183 };
184
185 &cp0_spi1 {
186 status = "okay";
187
188 flash@0 {
189 compatible = "jedec,spi-nor";
190 reg = <0x0>;
191 spi-max-frequency = <20000000>;
192
193 partitions {
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
196 #size-cells = <1>;
197
198 partition@0 {
199 label = "U-Boot";
200 reg = <0x0 0x200000>;
201 };
202
203 partition@400000 {
204 label = "Filesystem";
205 reg = <0x200000 0xe00000>;
206 };
207 };
208 };
209 };
210
211 &cp0_sata0 {
212 status = "okay";
213
214 sata-port@1 {
215 phys = <&cp0_comphy3 1>;
216 status = "okay";
217 };
218 };
219
220 &cp0_utmi {
221 status = "okay";
222 };
223
224 &cp0_comphy1 {
225 cp0_usbh0_con: connector {
226 compatible = "usb-a-connector";
227 phy-supply = <&cp0_reg_usb3_0_vbus>;
228 };
229 };
230
231 &cp0_usb3_0 {
232 phys = <&cp0_comphy1 0>, <&cp0_utmi0>;
233 phy-names = "cp0-usb3h0-comphy", "utmi";
234 dr_mode = "host";
235 status = "okay";
236 };
237
238 &cp0_comphy4 {
239 cp0_usbh1_con: connector {
240 compatible = "usb-a-connector";
241 phy-supply = <&cp0_reg_usb3_1_vbus>;
242 };
243 };
244
245 &cp0_usb3_1 {
246 phys = <&cp0_comphy4 1>, <&cp0_utmi1>;
247 phy-names = "cp0-usb3h1-comphy", "utmi";
248 dr_mode = "host";
249 status = "okay";
250 };
251
252 &ap_sdhci0 {
253 status = "okay";
254 bus-width = <4>;
255 no-1-8-v;
256 non-removable;
257 };
258
259 &cp0_sdhci0 {
260 status = "okay";
261 bus-width = <4>;
262 no-1-8-v;
263 cd-gpios = <&expander0 12 GPIO_ACTIVE_LOW>;
264 };
265
266 &cp0_mdio {
267 status = "okay";
268
269 phy0: ethernet-phy@0 {
270 reg = <0>;
271 };
272 phy1: ethernet-phy@1 {
273 reg = <1>;
274 };
275 };
276
277 &cp0_ethernet {
278 status = "okay";
279 };
280
281 &cp0_eth0 {
282 status = "okay";
283 /* Network PHY */
284 phy-mode = "10gbase-r";
285 /* Generic PHY, providing serdes lanes */
286 phys = <&cp0_comphy2 0>;
287
288 fixed-link {
289 speed = <10000>;
290 full-duplex;
291 };
292 };
293
294 &cp0_eth1 {
295 status = "okay";
296 /* Network PHY */
297 phy = <&phy0>;
298 phy-mode = "sgmii";
299 /* Generic PHY, providing serdes lanes */
300 phys = <&cp0_comphy0 1>;
301 };
302
303 &cp0_eth2 {
304 status = "okay";
305 phy = <&phy1>;
306 phy-mode = "rgmii-id";
307 };