f628df919b48726710ca435690aa7711dc967153
[openwrt/openwrt.git] / target / linux / ipq806x / files-5.15 / 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 &gsbi4 {
42 status = "disabled";
43 };
44
45 &gsbi4_serial {
46 status = "disabled";
47 };
48
49 &flash {
50 m25p,fast-read;
51
52 partition@0 {
53 label = "lowlevel_init";
54 reg = <0x0 0x1b0000>;
55 };
56
57 partition@1 {
58 label = "u-boot";
59 reg = <0x1b0000 0x80000>;
60 };
61
62 partition@2 {
63 label = "u-boot-env";
64 reg = <0x230000 0x40000>;
65 };
66
67 partition@3 {
68 label = "caldata";
69 reg = <0x270000 0x40000>;
70 };
71
72 partition@4 {
73 label = "firmware";
74 reg = <0x2b0000 0x1d50000>;
75 };
76 };
77
78 &hs_phy_0 {
79 status = "okay";
80 };
81
82 &ss_phy_0 {
83 status = "okay";
84 };
85
86 &usb3_0 {
87 status = "okay";
88 };
89
90 &hs_phy_1 {
91 status = "okay";
92 };
93
94 &ss_phy_1 {
95 status = "okay";
96 };
97
98 &usb3_1 {
99 status = "okay";
100 };
101
102 &pcie0 {
103 status = "okay";
104 };
105
106 &pcie1 {
107 status = "okay";
108 };
109
110 &pcie2 {
111 status = "okay";
112 };
113
114 &mdio0 {
115 status = "okay";
116
117 pinctrl-0 = <&mdio0_pins>;
118 pinctrl-names = "default";
119
120 phy0: ethernet-phy@0 {
121 reg = <0>;
122 qca,ar8327-initvals = <
123 0x00004 0x7600000 /* PAD0_MODE */
124 0x00008 0x1000000 /* PAD5_MODE */
125 0x0000c 0x80 /* PAD6_MODE */
126 0x000e4 0x6a545 /* MAC_POWER_SEL */
127 0x000e0 0xc74164de /* SGMII_CTRL */
128 0x0007c 0x4e /* PORT0_STATUS */
129 0x00094 0x4e /* PORT6_STATUS */
130 >;
131 };
132
133 phy4: ethernet-phy@4 {
134 reg = <4>;
135 };
136
137 phy6: ethernet-phy@6 {
138 reg = <6>;
139 };
140
141 phy7: ethernet-phy@7 {
142 reg = <7>;
143 };
144 };
145
146 &gmac0 {
147 status = "okay";
148 phy-mode = "rgmii";
149 qcom,id = <0>;
150 phy-handle = <&phy4>;
151
152 pinctrl-0 = <&rgmii0_pins>;
153 pinctrl-names = "default";
154 };
155
156 &gmac1 {
157 status = "okay";
158 phy-mode = "sgmii";
159 qcom,id = <1>;
160
161 fixed-link {
162 speed = <1000>;
163 full-duplex;
164 };
165 };
166
167 &gmac2 {
168 status = "okay";
169 phy-mode = "sgmii";
170 qcom,id = <2>;
171 phy-handle = <&phy6>;
172 };
173
174 &gmac3 {
175 status = "okay";
176 phy-mode = "sgmii";
177 qcom,id = <3>;
178 phy-handle = <&phy7>;
179 };