ipq806x: really fix aliases node for Qualcomm IPQ8064/DB149
[openwrt/staging/thess.git] / target / linux / ipq806x / files-5.4 / 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
22 &qcom_pinmux {
23 rgmii0_pins: rgmii0_pins {
24 mux {
25 pins = "gpio2", "gpio66";
26 drive-strength = <8>;
27 bias-disable;
28 };
29 };
30 };
31
32 &gsbi2 {
33 qcom,mode = <GSBI_PROT_I2C_UART>;
34 status = "okay";
35
36 gsbi2_serial: serial@12490000 {
37 status = "okay";
38 };
39 };
40
41 &gsbi5 {
42 qcom,mode = <GSBI_PROT_SPI>;
43 status = "okay";
44
45 spi4: spi@1a280000 {
46 status = "okay";
47 spi-max-frequency = <50000000>;
48
49 pinctrl-0 = <&spi_pins>;
50 pinctrl-names = "default";
51
52 cs-gpios = <&qcom_pinmux 20 0>;
53
54 m25p80@0 {
55 compatible = "s25fl256s1";
56 #address-cells = <1>;
57 #size-cells = <1>;
58 spi-max-frequency = <50000000>;
59 reg = <0>;
60 m25p,fast-read;
61
62 partition@0 {
63 label = "lowlevel_init";
64 reg = <0x0 0x1b0000>;
65 };
66
67 partition@1 {
68 label = "u-boot";
69 reg = <0x1b0000 0x80000>;
70 };
71
72 partition@2 {
73 label = "u-boot-env";
74 reg = <0x230000 0x40000>;
75 };
76
77 partition@3 {
78 label = "caldata";
79 reg = <0x270000 0x40000>;
80 };
81
82 partition@4 {
83 label = "firmware";
84 reg = <0x2b0000 0x1d50000>;
85 };
86 };
87 };
88 };
89
90 &sata_phy {
91 status = "okay";
92 };
93
94 &sata {
95 status = "okay";
96 };
97
98 &usb3_0 {
99 status = "okay";
100 };
101
102 &usb3_1 {
103 status = "okay";
104 };
105
106 &pcie0 {
107 status = "okay";
108 };
109
110 &pcie1 {
111 status = "okay";
112 };
113
114 &pcie2 {
115 status = "okay";
116 };
117
118 &mdio0 {
119 status = "okay";
120
121 pinctrl-0 = <&mdio0_pins>;
122 pinctrl-names = "default";
123
124 phy0: ethernet-phy@0 {
125 reg = <0>;
126 qca,ar8327-initvals = <
127 0x00004 0x7600000 /* PAD0_MODE */
128 0x00008 0x1000000 /* PAD5_MODE */
129 0x0000c 0x80 /* PAD6_MODE */
130 0x000e4 0x6a545 /* MAC_POWER_SEL */
131 0x000e0 0xc74164de /* SGMII_CTRL */
132 0x0007c 0x4e /* PORT0_STATUS */
133 0x00094 0x4e /* PORT6_STATUS */
134 >;
135 };
136
137 phy4: ethernet-phy@4 {
138 reg = <4>;
139 };
140
141 phy6: ethernet-phy@6 {
142 reg = <6>;
143 };
144
145 phy7: ethernet-phy@7 {
146 reg = <7>;
147 };
148 };
149
150 &gmac0 {
151 status = "okay";
152 phy-mode = "rgmii";
153 qcom,id = <0>;
154 phy-handle = <&phy4>;
155
156 pinctrl-0 = <&rgmii0_pins>;
157 pinctrl-names = "default";
158 };
159
160 &gmac1 {
161 status = "okay";
162 phy-mode = "sgmii";
163 qcom,id = <1>;
164
165 fixed-link {
166 speed = <1000>;
167 full-duplex;
168 };
169 };
170
171 &gmac2 {
172 status = "okay";
173 phy-mode = "sgmii";
174 qcom,id = <2>;
175 phy-handle = <&phy6>;
176 };
177
178 &gmac3 {
179 status = "okay";
180 phy-mode = "sgmii";
181 qcom,id = <3>;
182 phy-handle = <&phy7>;
183 };