1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) 2017 Christian Mehlis <christian@m3hlis.de>
4 * Copyright (C) 2018 Mathias Kresin <dev@kresin.me>
8 #include "qcom-ipq8064-v1.0.dtsi"
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/soc/qcom,tcsr.h>
14 compatible = "compex,wpq864", "qcom,ipq8064";
15 model = "Compex WPQ864";
23 led-failsafe = &led_fail;
24 led-running = &led_pass;
25 led-upgrade = &led_pass;
29 compatible = "gpio-leds";
31 pinctrl-0 = <&led_pins>;
32 pinctrl-names = "default";
36 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
41 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
42 default-state = "keep";
46 label = "orange:rss2";
47 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
52 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
57 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
62 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
67 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
71 label = "green:usb-pcie";
72 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
77 compatible = "gpio-keys";
79 pinctrl-0 = <&button_pins>;
80 pinctrl-names = "default";
84 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
90 compatible = "gpio-beeper";
92 pinctrl-0 = <&beeper_pins>;
93 pinctrl-names = "default";
95 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
100 pinctrl-0 = <&rpm_pins>;
101 pinctrl-names = "default";
107 pinctrl-0 = <&nand_pins>;
108 pinctrl-names = "default";
111 compatible = "qcom,nandcs";
115 nand-ecc-strength = <4>;
116 nand-bus-width = <8>;
117 nand-ecc-step-size = <512>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
126 reg = <0x0000000 0x0040000>;
132 reg = <0x0040000 0x0140000>;
138 reg = <0x0180000 0x0140000>;
144 reg = <0x02c0000 0x0280000>;
150 reg = <0x0540000 0x0120000>;
156 reg = <0x0660000 0x0120000>;
162 reg = <0x0780000 0x0280000>;
168 reg = <0x0a00000 0x0280000>;
174 reg = <0x0c80000 0x0500000>;
180 reg = <0x1180000 0x0080000>;
185 reg = <0x1200000 0x0140000>;
190 reg = <0x1340000 0x4000000>;
194 label = "BOOTCONFIG";
195 reg = <0x5340000 0x0060000>;
200 reg = <0x53a0000 0x0140000>;
206 reg = <0x54e0000 0x0280000>;
210 DDRCONFIG-1@5760000 {
211 label = "DDRCONFIG_1";
212 reg = <0x5760000 0x0120000>;
218 reg = <0x5880000 0x0120000>;
224 reg = <0x59a0000 0x0280000>;
230 reg = <0x5c20000 0x0280000>;
234 BOOTCONFIG1@5ea0000 {
235 label = "BOOTCONFIG1";
236 reg = <0x5ea0000 0x0060000>;
241 reg = <0x5f00000 0x0500000>;
247 reg = <0x6400000 0x4000000>;
252 reg = <0xa400000 0x5c00000>;
265 pinctrl-0 = <&mdio0_pins>;
266 pinctrl-names = "default";
270 qca,ar8327-initvals = <
271 0x00004 0x7600000 /* PAD0_MODE */
272 0x00008 0x1000000 /* PAD5_MODE */
273 0x0000c 0x80 /* PAD6_MODE */
274 0x000e4 0x6a545 /* MAC_POWER_SEL */
275 0x000e0 0xc74164de /* SGMII_CTRL */
276 0x0007c 0x4e /* PORT0_STATUS */
277 0x00094 0x4e /* PORT6_STATUS */
289 pinctrl-0 = <&rgmii2_pins>;
290 pinctrl-names = "default";
314 pinctrl-0 = <&uart0_pins>;
315 pinctrl-names = "default";
319 compatible = "jedec,spi-nor";
330 &ss_phy_0 { /* USB3 port 0 SS phy */
334 tx_deamp_3_5db = <32>;
338 &ss_phy_1 { /* USB3 port 1 SS phy */
342 tx_deamp_3_5db = <32>;
349 /delete-property/ pinctrl-0;
350 /delete-property/ pinctrl-names;
351 /delete-property/ perst-gpios;
361 /delete-property/ pinctrl-0;
362 /delete-property/ pinctrl-names;
363 /delete-property/ perst-gpios;
367 pinctrl-names = "default";
368 pinctrl-0 = <&state_default>;
370 state_default: pinctrl0 {
374 drive-strength = <2>;
382 pins = "gpio7", "gpio8", "gpio9", "gpio22",
383 "gpio23", "gpio24", "gpio25", "gpio53";
385 drive-strength = <2>;
390 button_pins: button_pins {
394 drive-strength = <2>;
399 beeper_pins: beeper_pins {
403 drive-strength = <2>;
410 pins = "gpio12", "gpio13";
412 drive-strength = <10>;
417 uart0_pins: uart0_pins {
419 pins = "gpio10", "gpio11";
421 drive-strength = <10>;
428 pins = "gpio18", "gpio19";
430 drive-strength = <10>;
437 drive-strength = <12>;
444 drive-strength = <10>;
459 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;