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