1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8064-v2.0.dtsi"
5 #include <dt-bindings/input/input.h>
9 reg = <0x42000000 0x1e000000>;
10 device_type = "memory";
15 label-mac-device = &gmac2;
22 pins = "gpio18", "gpio19", "gpio21";
28 pins = "gpio18", "gpio19";
29 drive-strength = <10>;
35 drive-strength = <10>;
41 drive-strength = <12>;
45 usb0_pwr_en_pin: usb0_pwr_en_pin {
49 drive-strength = <10>;
55 usb1_pwr_en_pin: usb1_pwr_en_pin {
59 drive-strength = <10>;
67 qcom,mode = <GSBI_PROT_SPI>;
73 pinctrl-0 = <&spi_pins>;
74 pinctrl-names = "default";
76 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
79 compatible = "jedec,spi-nor";
82 spi-max-frequency = <50000000>;
86 compatible = "fixed-partitions";
98 reg = <0x20000 0x20000>;
104 reg = <0x40000 0x20000>;
110 reg = <0x60000 0x30000>;
116 reg = <0x90000 0x10000>;
122 reg = <0xa0000 0x10000>;
128 reg = <0xb0000 0x30000>;
134 reg = <0xe0000 0x20000>;
140 reg = <0x100000 0x70000>;
146 reg = <0x170000 0x40000>;
152 reg = <0x1b0000 0x40000>;
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
158 precal_radio_1000: precal@1000 {
159 reg = <0x1000 0x2f20>;
162 precal_radio_5000: precal@5000 {
163 reg = <0x5000 0x2f20>;
169 reg = <0x1f0000 0x400000>;
174 reg = <0x5f0000 0x1900000>;
177 defaultmac: partition@1ef0000 {
178 label = "default-mac";
179 reg = <0x1ef0000 0x00200>;
185 reg = <0x1ef0200 0x00200>;
190 label = "product-info";
191 reg = <0x1ef0400 0x0fc00>;
196 label = "partition-table";
197 reg = <0x1f00000 0x10000>;
202 label = "soft-version";
203 reg = <0x1f10000 0x10000>;
208 label = "support-list";
209 reg = <0x1f20000 0x10000>;
215 reg = <0x1f30000 0x10000>;
220 label = "default-config";
221 reg = <0x1f40000 0x10000>;
226 label = "user-config";
227 reg = <0x1f50000 0x40000>;
233 reg = <0x1f90000 0x40000>;
238 label = "usb-config";
239 reg = <0x1fd0000 0x10000>;
245 reg = <0x1fe0000 0x20000>;
256 pinctrl-0 = <&usb0_pwr_en_pin>;
257 pinctrl-names = "default";
263 pinctrl-0 = <&usb1_pwr_en_pin>;
264 pinctrl-names = "default";
271 reg = <0x00000000 0 0 0 0>;
272 #address-cells = <3>;
277 compatible = "pci168c,0040";
278 reg = <0x00010000 0 0 0 0>;
280 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_1000>;
281 nvmem-cell-names = "mac-address", "pre-calibration";
282 mac-address-increment = <(-1)>;
289 max-link-speed = <1>;
292 reg = <0x00000000 0 0 0 0>;
293 #address-cells = <3>;
298 compatible = "pci168c,0040";
299 reg = <0x00010000 0 0 0 0>;
301 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_5000>;
302 nvmem-cell-names = "mac-address", "pre-calibration";
310 pinctrl-0 = <&mdio0_pins>;
311 pinctrl-names = "default";
313 phy0: ethernet-phy@0 {
315 qca,ar8327-initvals = <
316 0x00004 0x7600000 /* PAD0_MODE */
317 0x00008 0x1000000 /* PAD5_MODE */
318 0x0000c 0x80 /* PAD6_MODE */
319 0x000e4 0x6a545 /* MAC_POWER_SEL */
320 0x000e0 0xc74164de /* SGMII_CTRL */
321 0x0007c 0x4e /* PORT0_STATUS */
322 0x00094 0x4e /* PORT6_STATUS */
326 phy4: ethernet-phy@4 {
336 pinctrl-0 = <&rgmii2_pins>;
337 pinctrl-names = "default";
339 nvmem-cells = <&macaddr_defaultmac_8>;
340 nvmem-cell-names = "mac-address";
341 mac-address-increment = <1>;
354 nvmem-cells = <&macaddr_defaultmac_8>;
355 nvmem-cell-names = "mac-address";
368 compatible = "nvmem-cells";
369 #address-cells = <1>;
372 macaddr_defaultmac_8: macaddr@8 {