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/leds/common.h>
12 #include <dt-bindings/soc/qcom,tcsr.h>
15 compatible = "compex,wpq864", "qcom,ipq8064";
16 model = "Compex WPQ864";
24 led-failsafe = &led_fail;
25 led-running = &led_pass;
26 led-upgrade = &led_pass;
30 compatible = "gpio-leds";
32 pinctrl-0 = <&led_pins>;
33 pinctrl-names = "default";
37 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
42 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
43 default-state = "keep";
47 label = "orange:rss2";
48 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
53 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
58 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
63 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
67 function = LED_FUNCTION_USB;
68 color = <LED_COLOR_ID_GREEN>;
69 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
73 label = "green:usb-pcie";
74 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
79 compatible = "gpio-keys";
81 pinctrl-0 = <&button_pins>;
82 pinctrl-names = "default";
86 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
88 debounce-interval = <60>;
94 compatible = "gpio-beeper";
96 pinctrl-0 = <&beeper_pins>;
97 pinctrl-names = "default";
99 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
104 pinctrl-0 = <&rpm_pins>;
105 pinctrl-names = "default";
111 pinctrl-0 = <&nand_pins>;
112 pinctrl-names = "default";
115 compatible = "qcom,nandcs";
119 nand-ecc-strength = <4>;
120 nand-bus-width = <8>;
121 nand-ecc-step-size = <512>;
124 qcom,boot-partitions = <0x0 0x1180000 0x5340000 0x10c0000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
133 reg = <0x0000000 0x0040000>;
139 reg = <0x0040000 0x0140000>;
145 reg = <0x0180000 0x0140000>;
151 reg = <0x02c0000 0x0280000>;
156 label = "0:DDRCONFIG";
157 reg = <0x0540000 0x0120000>;
163 reg = <0x0660000 0x0120000>;
169 reg = <0x0780000 0x0280000>;
175 reg = <0x0a00000 0x0280000>;
181 reg = <0x0c80000 0x0500000>;
186 label = "0:APPSBLENV";
187 reg = <0x1180000 0x0080000>;
192 reg = <0x1200000 0x0140000>;
197 reg = <0x1340000 0x4000000>;
201 label = "0:BOOTCONFIG";
202 reg = <0x5340000 0x0060000>;
207 reg = <0x53a0000 0x0140000>;
213 reg = <0x54e0000 0x0280000>;
218 label = "0:DDRCONFIG_1";
219 reg = <0x5760000 0x0120000>;
225 reg = <0x5880000 0x0120000>;
231 reg = <0x59a0000 0x0280000>;
237 reg = <0x5c20000 0x0280000>;
242 label = "0:BOOTCONFIG1";
243 reg = <0x5ea0000 0x0060000>;
247 label = "0:APPSBL_1";
248 reg = <0x5f00000 0x0500000>;
254 reg = <0x6400000 0x4000000>;
259 reg = <0xa400000 0x5c00000>;
272 pinctrl-0 = <&mdio0_pins>;
273 pinctrl-names = "default";
276 compatible = "qca,qca8337";
277 #address-cells = <1>;
282 #address-cells = <1>;
290 tx-internal-delay-ps = <1000>;
291 rx-internal-delay-ps = <1000>;
302 phy-mode = "internal";
303 phy-handle = <&phy_port1>;
309 phy-mode = "internal";
310 phy-handle = <&phy_port2>;
316 phy-mode = "internal";
317 phy-handle = <&phy_port3>;
323 phy-mode = "internal";
324 phy-handle = <&phy_port4>;
330 phy-mode = "internal";
331 phy-handle = <&phy_port5>;
339 qca,sgmii-enable-pll;
349 #address-cells = <1>;
378 pinctrl-0 = <&rgmii2_pins>;
379 pinctrl-names = "default";
403 pinctrl-0 = <&uart0_pins>;
404 pinctrl-names = "default";
408 compatible = "jedec,spi-nor";
427 tx_deamp_3_5db = <32>;
443 tx_deamp_3_5db = <32>;
454 /delete-property/ pinctrl-0;
455 /delete-property/ pinctrl-names;
456 /delete-property/ perst-gpios;
466 /delete-property/ pinctrl-0;
467 /delete-property/ pinctrl-names;
468 /delete-property/ perst-gpios;
472 pinctrl-names = "default";
473 pinctrl-0 = <&state_default>;
475 state_default: pinctrl0 {
479 drive-strength = <2>;
487 pins = "gpio7", "gpio8", "gpio9", "gpio22",
488 "gpio23", "gpio24", "gpio25", "gpio53";
490 drive-strength = <2>;
495 button_pins: button_pins {
499 drive-strength = <2>;
504 beeper_pins: beeper_pins {
508 drive-strength = <2>;
515 pins = "gpio12", "gpio13";
517 drive-strength = <10>;
522 uart0_pins: uart0_pins {
524 pins = "gpio10", "gpio11";
526 drive-strength = <10>;
533 pins = "gpio18", "gpio19";
535 drive-strength = <10>;
542 drive-strength = <12>;
549 drive-strength = <10>;
556 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;