ipq806x: add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / ipq806x / files-4.14 / 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 reserved-memory {
8 #address-cells = <1>;
9 #size-cells = <1>;
10 ranges;
11 rsvd@41200000 {
12 reg = <0x41200000 0x300000>;
13 no-map;
14 };
15 };
16
17 alias {
18 serial0 = &uart2;
19 mdio-gpio0 = &mdio0;
20 };
21
22 chosen {
23 linux,stdout-path = "serial0:115200n8";
24 };
25
26 soc {
27 pinmux@800000 {
28 i2c4_pins: i2c4_pinmux {
29 pins = "gpio12", "gpio13";
30 function = "gsbi4";
31 bias-disable;
32 };
33
34 spi_pins: spi_pins {
35 mux {
36 pins = "gpio18", "gpio19", "gpio21";
37 function = "gsbi5";
38 drive-strength = <10>;
39 bias-none;
40 };
41 };
42
43 mdio0_pins: mdio0_pins {
44 mux {
45 pins = "gpio0", "gpio1";
46 function = "gpio";
47 drive-strength = <8>;
48 bias-disable;
49 };
50 };
51
52 rgmii0_pins: rgmii0_pins {
53 mux {
54 pins = "gpio2", "gpio66";
55 drive-strength = <8>;
56 bias-disable;
57 };
58 };
59 };
60
61 gsbi2: gsbi@12480000 {
62 qcom,mode = <GSBI_PROT_I2C_UART>;
63 status = "ok";
64 uart2: serial@12490000 {
65 status = "ok";
66 };
67 };
68
69 gsbi5: gsbi@1a200000 {
70 qcom,mode = <GSBI_PROT_SPI>;
71 status = "ok";
72
73 spi4: spi@1a280000 {
74 status = "ok";
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 = "ok";
120 };
121
122 sata@29000000 {
123 status = "ok";
124 };
125
126 phy@100f8800 { /* USB3 port 1 HS phy */
127 status = "ok";
128 };
129
130 phy@100f8830 { /* USB3 port 1 SS phy */
131 status = "ok";
132 };
133
134 phy@110f8800 { /* USB3 port 0 HS phy */
135 status = "ok";
136 };
137
138 phy@110f8830 { /* USB3 port 0 SS phy */
139 status = "ok";
140 };
141
142 usb30@0 {
143 status = "ok";
144 };
145
146 usb30@1 {
147 status = "ok";
148 };
149
150 pcie0: pci@1b500000 {
151 status = "ok";
152 };
153
154 pcie1: pci@1b700000 {
155 status = "ok";
156 };
157
158 pcie2: pci@1b900000 {
159 status = "ok";
160 };
161
162 mdio0: mdio {
163 compatible = "virtual,mdio-gpio";
164 #address-cells = <1>;
165 #size-cells = <0>;
166 gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
167
168 pinctrl-0 = <&mdio0_pins>;
169 pinctrl-names = "default";
170
171 phy0: ethernet-phy@0 {
172 device_type = "ethernet-phy";
173 reg = <0>;
174 qca,ar8327-initvals = <
175 0x00004 0x7600000 /* PAD0_MODE */
176 0x00008 0x1000000 /* PAD5_MODE */
177 0x0000c 0x80 /* PAD6_MODE */
178 0x000e4 0x6a545 /* MAC_POWER_SEL */
179 0x000e0 0xc74164de /* SGMII_CTRL */
180 0x0007c 0x4e /* PORT0_STATUS */
181 0x00094 0x4e /* PORT6_STATUS */
182 >;
183 };
184
185 phy4: ethernet-phy@4 {
186 device_type = "ethernet-phy";
187 reg = <4>;
188 };
189
190 phy6: ethernet-phy@6 {
191 device_type = "ethernet-phy";
192 reg = <6>;
193 };
194
195 phy7: ethernet-phy@7 {
196 device_type = "ethernet-phy";
197 reg = <7>;
198 };
199 };
200
201 gmac0: ethernet@37000000 {
202 status = "ok";
203 phy-mode = "rgmii";
204 qcom,id = <0>;
205 phy-handle = <&phy4>;
206
207 pinctrl-0 = <&rgmii0_pins>;
208 pinctrl-names = "default";
209 };
210
211 gmac1: ethernet@37200000 {
212 status = "ok";
213 phy-mode = "sgmii";
214 qcom,id = <1>;
215
216 fixed-link {
217 speed = <1000>;
218 full-duplex;
219 };
220 };
221
222 gmac2: ethernet@37400000 {
223 status = "ok";
224 phy-mode = "sgmii";
225 qcom,id = <2>;
226 phy-handle = <&phy6>;
227 };
228
229 gmac3: ethernet@37600000 {
230 status = "ok";
231 phy-mode = "sgmii";
232 qcom,id = <3>;
233 phy-handle = <&phy7>;
234 };
235 };
236 };