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>;
86 debounce-interval = <60>;
92 compatible = "gpio-beeper";
94 pinctrl-0 = <&beeper_pins>;
95 pinctrl-names = "default";
97 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
102 pinctrl-0 = <&rpm_pins>;
103 pinctrl-names = "default";
109 pinctrl-0 = <&nand_pins>;
110 pinctrl-names = "default";
113 compatible = "qcom,nandcs";
117 nand-ecc-strength = <4>;
118 nand-bus-width = <8>;
119 nand-ecc-step-size = <512>;
122 qcom,boot-partitions = <0x0 0x1180000 0x5340000 0x10c0000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
131 reg = <0x0000000 0x0040000>;
137 reg = <0x0040000 0x0140000>;
143 reg = <0x0180000 0x0140000>;
149 reg = <0x02c0000 0x0280000>;
154 label = "0:DDRCONFIG";
155 reg = <0x0540000 0x0120000>;
161 reg = <0x0660000 0x0120000>;
167 reg = <0x0780000 0x0280000>;
173 reg = <0x0a00000 0x0280000>;
179 reg = <0x0c80000 0x0500000>;
184 label = "0:APPSBLENV";
185 reg = <0x1180000 0x0080000>;
190 reg = <0x1200000 0x0140000>;
195 reg = <0x1340000 0x4000000>;
199 label = "0:BOOTCONFIG";
200 reg = <0x5340000 0x0060000>;
205 reg = <0x53a0000 0x0140000>;
211 reg = <0x54e0000 0x0280000>;
216 label = "0:DDRCONFIG_1";
217 reg = <0x5760000 0x0120000>;
223 reg = <0x5880000 0x0120000>;
229 reg = <0x59a0000 0x0280000>;
235 reg = <0x5c20000 0x0280000>;
240 label = "0:BOOTCONFIG1";
241 reg = <0x5ea0000 0x0060000>;
245 label = "0:APPSBL_1";
246 reg = <0x5f00000 0x0500000>;
252 reg = <0x6400000 0x4000000>;
257 reg = <0xa400000 0x5c00000>;
270 pinctrl-0 = <&mdio0_pins>;
271 pinctrl-names = "default";
274 compatible = "qca,qca8337";
275 #address-cells = <1>;
280 #address-cells = <1>;
288 tx-internal-delay-ps = <1000>;
289 rx-internal-delay-ps = <1000>;
300 phy-mode = "internal";
301 phy-handle = <&phy_port1>;
307 phy-mode = "internal";
308 phy-handle = <&phy_port2>;
314 phy-mode = "internal";
315 phy-handle = <&phy_port3>;
321 phy-mode = "internal";
322 phy-handle = <&phy_port4>;
328 phy-mode = "internal";
329 phy-handle = <&phy_port5>;
337 qca,sgmii-enable-pll;
347 #address-cells = <1>;
376 pinctrl-0 = <&rgmii2_pins>;
377 pinctrl-names = "default";
401 pinctrl-0 = <&uart0_pins>;
402 pinctrl-names = "default";
406 compatible = "jedec,spi-nor";
425 tx_deamp_3_5db = <32>;
441 tx_deamp_3_5db = <32>;
452 /delete-property/ pinctrl-0;
453 /delete-property/ pinctrl-names;
454 /delete-property/ perst-gpios;
464 /delete-property/ pinctrl-0;
465 /delete-property/ pinctrl-names;
466 /delete-property/ perst-gpios;
470 pinctrl-names = "default";
471 pinctrl-0 = <&state_default>;
473 state_default: pinctrl0 {
477 drive-strength = <2>;
485 pins = "gpio7", "gpio8", "gpio9", "gpio22",
486 "gpio23", "gpio24", "gpio25", "gpio53";
488 drive-strength = <2>;
493 button_pins: button_pins {
497 drive-strength = <2>;
502 beeper_pins: beeper_pins {
506 drive-strength = <2>;
513 pins = "gpio12", "gpio13";
515 drive-strength = <10>;
520 uart0_pins: uart0_pins {
522 pins = "gpio10", "gpio11";
524 drive-strength = <10>;
531 pins = "gpio18", "gpio19";
533 drive-strength = <10>;
540 drive-strength = <12>;
547 drive-strength = <10>;
554 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;