35b7e0ea379096731893fcbc88050c1b982b18d1
[openwrt/staging/jow.git] / target / linux / ipq806x / files-4.19 / arch / arm / boot / dts / qcom-ipq8064-db149.dts
1 #include "qcom-ipq8064-v1.0.dtsi"
2
3 / {
4 model = "Qualcomm IPQ8064/DB149";
5 compatible = "qcom,ipq8064-db149", "qcom,ipq8064";
6
7 aliases {
8 serial0 = &gsbi2_serial;
9 };
10
11 reserved-memory {
12 #address-cells = <1>;
13 #size-cells = <1>;
14 ranges;
15 rsvd@41200000 {
16 reg = <0x41200000 0x300000>;
17 no-map;
18 };
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n8";
23 };
24
25 soc {
26 pinmux@800000 {
27 i2c4_pins: i2c4_pinmux {
28 pins = "gpio12", "gpio13";
29 function = "gsbi4";
30 bias-disable;
31 };
32
33 spi_pins: spi_pins {
34 mux {
35 pins = "gpio18", "gpio19", "gpio21";
36 function = "gsbi5";
37 drive-strength = <10>;
38 bias-none;
39 };
40 };
41
42 mdio0_pins: mdio0_pins {
43 mux {
44 pins = "gpio0", "gpio1";
45 function = "gpio";
46 drive-strength = <8>;
47 bias-disable;
48 };
49 };
50
51 rgmii0_pins: rgmii0_pins {
52 mux {
53 pins = "gpio2", "gpio66";
54 drive-strength = <8>;
55 bias-disable;
56 };
57 };
58 };
59
60 gsbi2: gsbi@12480000 {
61 qcom,mode = <GSBI_PROT_I2C_UART>;
62 status = "okay";
63
64 gsbi2_serial: serial@12490000 {
65 status = "okay";
66 };
67 };
68
69 gsbi5: gsbi@1a200000 {
70 qcom,mode = <GSBI_PROT_SPI>;
71 status = "okay";
72
73 spi4: spi@1a280000 {
74 status = "okay";
75 spi-max-frequency = <50000000>;
76
77 pinctrl-0 = <&spi_pins>;
78 pinctrl-names = "default";
79
80 cs-gpios = <&qcom_pinmux 20 0>;
81
82 flash: m25p80@0 {
83 compatible = "s25fl256s1";
84 #address-cells = <1>;
85 #size-cells = <1>;
86 spi-max-frequency = <50000000>;
87 reg = <0>;
88 m25p,fast-read;
89
90 partition@0 {
91 label = "lowlevel_init";
92 reg = <0x0 0x1b0000>;
93 };
94
95 partition@1 {
96 label = "u-boot";
97 reg = <0x1b0000 0x80000>;
98 };
99
100 partition@2 {
101 label = "u-boot-env";
102 reg = <0x230000 0x40000>;
103 };
104
105 partition@3 {
106 label = "caldata";
107 reg = <0x270000 0x40000>;
108 };
109
110 partition@4 {
111 label = "firmware";
112 reg = <0x2b0000 0x1d50000>;
113 };
114 };
115 };
116 };
117
118 sata-phy@1b400000 {
119 status = "okay";
120 };
121
122 sata@29000000 {
123 status = "okay";
124 };
125
126 usb3_0: usb3@110f8800 {
127 status = "okay";
128 };
129
130 usb3_1: usb3@100f8800 {
131 status = "okay";
132 };
133
134 pcie0: pci@1b500000 {
135 status = "okay";
136 };
137
138 pcie1: pci@1b700000 {
139 status = "okay";
140 };
141
142 pcie2: pci@1b900000 {
143 status = "okay";
144 };
145
146 mdio0: mdio {
147 compatible = "virtual,mdio-gpio";
148 #address-cells = <1>;
149 #size-cells = <0>;
150 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
151
152 pinctrl-0 = <&mdio0_pins>;
153 pinctrl-names = "default";
154
155 phy0: ethernet-phy@0 {
156 reg = <0>;
157 qca,ar8327-initvals = <
158 0x00004 0x7600000 /* PAD0_MODE */
159 0x00008 0x1000000 /* PAD5_MODE */
160 0x0000c 0x80 /* PAD6_MODE */
161 0x000e4 0x6a545 /* MAC_POWER_SEL */
162 0x000e0 0xc74164de /* SGMII_CTRL */
163 0x0007c 0x4e /* PORT0_STATUS */
164 0x00094 0x4e /* PORT6_STATUS */
165 >;
166 };
167
168 phy4: ethernet-phy@4 {
169 reg = <4>;
170 };
171
172 phy6: ethernet-phy@6 {
173 reg = <6>;
174 };
175
176 phy7: ethernet-phy@7 {
177 reg = <7>;
178 };
179 };
180
181 gmac0: ethernet@37000000 {
182 status = "okay";
183 phy-mode = "rgmii";
184 qcom,id = <0>;
185 phy-handle = <&phy4>;
186
187 pinctrl-0 = <&rgmii0_pins>;
188 pinctrl-names = "default";
189 };
190
191 gmac1: ethernet@37200000 {
192 status = "okay";
193 phy-mode = "sgmii";
194 qcom,id = <1>;
195
196 fixed-link {
197 speed = <1000>;
198 full-duplex;
199 };
200 };
201
202 gmac2: ethernet@37400000 {
203 status = "okay";
204 phy-mode = "sgmii";
205 qcom,id = <2>;
206 phy-handle = <&phy6>;
207 };
208
209 gmac3: ethernet@37600000 {
210 status = "okay";
211 phy-mode = "sgmii";
212 qcom,id = <3>;
213 phy-handle = <&phy7>;
214 };
215 };
216 };