Debian Codegraph @

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

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Device Tree file for Marvell Armada 3720 development board
4 * (DB-88F3720-DDR3)
5 * Copyright (C) 2016 Marvell
6 *
7 * Gregory CLEMENT <[email protected]>
8 *
9 * This file is compatible with the version 1.4 and the version 2.0 of
10 * the board, however the CON numbers are different between the 2
11 * version
12 */
13
14 /dts-v1/;
15
16 #include <dt-bindings/gpio/gpio.h>
17 #include "armada-372x.dtsi"
18
19 / {
20 model = "Marvell Armada 3720 Development Board DB-88F3720-DDR3";
21 compatible = "marvell,armada-3720-db", "marvell,armada3720", "marvell,armada3710";
22
23 chosen {
24 stdout-path = "serial0:115200n8";
25 };
26
27 memory@0 {
28 device_type = "memory";
29 reg = <0x00000000 0x00000000 0x00000000 0x20000000>;
30 };
31
32 exp_usb3_vbus: usb3-vbus {
33 compatible = "regulator-fixed";
34 regulator-name = "usb3-vbus";
35 regulator-min-microvolt = <5000000>;
36 regulator-max-microvolt = <5000000>;
37 enable-active-high;
38 regulator-always-on;
39 gpio = <&gpio_exp 1 GPIO_ACTIVE_HIGH>;
40 };
41
42 usb3_phy: usb3-phy {
43 compatible = "usb-nop-xceiv";
44 #phy-cells = <0>;
45 vcc-supply = <&exp_usb3_vbus>;
46 };
47
48 vcc_sd_reg1: regulator {
49 compatible = "regulator-gpio";
50 regulator-name = "vcc_sd1";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <3300000>;
53 regulator-boot-on;
54
55 gpios = <&gpiosb 23 GPIO_ACTIVE_HIGH>;
56 gpios-states = <0>;
57 states = <1800000 0x1
58 3300000 0x0>;
59 enable-active-high;
60 };
61
62 vcc_sd_reg2: regulator-vmcc {
63 compatible = "regulator-fixed";
64 regulator-name = "vcc_sd2";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 regulator-boot-on;
68 enable-active-high;
69 gpio = <&gpio_exp 4 GPIO_ACTIVE_HIGH>;
70 };
71 };
72
73 /* Gigabit module on CON19(V2.0)/CON21(V1.4) */
74 &eth0 {
75 pinctrl-names = "default";
76 pinctrl-0 = <&rgmii_pins>;
77 phy-mode = "rgmii-id";
78 phy = <&phy0>;
79 status = "okay";
80 };
81
82 /* Gigabit module on CON18(V2.0)/CON20(V1.4) */
83 &eth1 {
84 phy-mode = "sgmii";
85 phy = <&phy1>;
86 status = "okay";
87 };
88
89 &i2c0 {
90 pinctrl-names = "default";
91 pinctrl-0 = <&i2c1_pins>;
92 status = "okay";
93
94 gpio_exp: pca9555@22 {
95 compatible = "nxp,pca9555";
96 gpio-controller;
97 #gpio-cells = <2>;
98
99 reg = <0x22>;
100 /*
101 * IO0_0: PWR_EN_USB2 IO1_0: PWR_EN_VTT
102 * IO0_1: PWR_EN_USB23 IO1_1: MPCIE_WDISABLE
103 * IO0_2: PWR_EN_SATA IO1_2: RGMII_DEV_RSTN
104 * IO0_3: PWR_EN_PCIE IO1_3: SGMII_DEV_RSTN
105 * IO0_4: PWR_EN_SD
106 * IO0_5: PWR_EN_EMMC
107 * IO0_6: PWR_EN_RGMII IO1_6: SATA_USB3.0_SEL
108 * IO0_7: PWR_EN_SGMII IO1_7: PWR_MCI_PS
109 */
110 };
111
112 rtc@68 {
113 /* PT7C4337A from pericom fully compatible with the ds1337 */
114 compatible = "dallas,ds1337";
115 reg = <0x68>;
116 };
117 };
118
119 &mdio {
120 status = "okay";
121 phy0: ethernet-phy@0 {
122 reg = <0>;
123 };
124
125 phy1: ethernet-phy@1 {
126 reg = <1>;
127 };
128 };
129
130 /* CON15(V2.0)/CON17(V1.4) : PCIe / CON15(V2.0)/CON12(V1.4) :mini-PCIe */
131 &pcie0 {
132 pinctrl-names = "default";
133 pinctrl-0 = <&pcie_reset_pins &pcie_clkreq_pins>;
134 reset-gpios = <&gpiosb 3 GPIO_ACTIVE_LOW>;
135 status = "okay";
136 };
137
138 /* CON3 */
139 &sata {
140 status = "okay";
141 };
142
143 &sdhci0 {
144 non-removable;
145 bus-width = <8>;
146 mmc-ddr-1_8v;
147 mmc-hs400-1_8v;
148 marvell,pad-type = "fixed-1-8v";
149 status = "okay";
150 };
151
152 /* SD slot module on CON14(V2.0)/CON15(V1.4) */
153 &sdhci1 {
154 wp-inverted;
155 cd-gpios = <&gpiosb 2 GPIO_ACTIVE_LOW>;
156 bus-width = <4>;
157 marvell,pad-type = "sd";
158 vqmmc-supply = <&vcc_sd_reg1>;
159 vmmc-supply = <&vcc_sd_reg2>;
160 status = "okay";
161 };
162
163 &spi0 {
164 status = "okay";
165 pinctrl-names = "default";
166 pinctrl-0 = <&spi_quad_pins>;
167
168 flash@0 {
169 compatible = "jedec,spi-nor";
170 reg = <0>;
171 spi-max-frequency = <108000000>;
172 spi-rx-bus-width = <4>;
173 spi-tx-bus-width = <4>;
174
175 partitions {
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
178 #size-cells = <1>;
179 partition@0 {
180 label = "bootloader";
181 reg = <0x0 0x200000>;
182 };
183 partition@200000 {
184 label = "U-boot Env";
185 reg = <0x200000 0x10000>;
186 };
187 partition@210000 {
188 label = "Linux";
189 reg = <0x210000 0xDF0000>;
190 };
191 };
192 };
193 };
194
195 /*
196 * Exported on the micro USB connector CON30(V2.0)/CON32(V1.4) through
197 * an FTDI (also on CON24(V2.0)/CON26(V1.4)).
198 */
199 &uart0 {
200 pinctrl-names = "default";
201 pinctrl-0 = <&uart1_pins>;
202 status = "okay";
203 };
204
205 /* CON26(V2.0)/CON28(V1.4) */
206 &uart1 {
207 pinctrl-names = "default";
208 pinctrl-0 = <&uart2_pins>;
209 status = "okay";
210 };
211
212 /* CON27(V2.0)/CON29(V1.4) */
213 &usb2 {
214 status = "okay";
215 };
216
217 /* CON29(V2.0)/CON31(V1.4) */
218 &usb3 {
219 status = "okay";
220 usb-phy = <&usb3_phy>;
221 };