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_pages_size = <0x1180000>;
125 compatible = "fixed-partitions";
126 #address-cells = <1>;
131 reg = <0x0000000 0x0040000>;
137 reg = <0x0040000 0x0140000>;
143 reg = <0x0180000 0x0140000>;
149 reg = <0x02c0000 0x0280000>;
155 reg = <0x0540000 0x0120000>;
161 reg = <0x0660000 0x0120000>;
167 reg = <0x0780000 0x0280000>;
173 reg = <0x0a00000 0x0280000>;
179 reg = <0x0c80000 0x0500000>;
185 reg = <0x1180000 0x0080000>;
190 reg = <0x1200000 0x0140000>;
195 reg = <0x1340000 0x4000000>;
199 label = "BOOTCONFIG";
200 reg = <0x5340000 0x0060000>;
205 reg = <0x53a0000 0x0140000>;
211 reg = <0x54e0000 0x0280000>;
215 DDRCONFIG-1@5760000 {
216 label = "DDRCONFIG_1";
217 reg = <0x5760000 0x0120000>;
223 reg = <0x5880000 0x0120000>;
229 reg = <0x59a0000 0x0280000>;
235 reg = <0x5c20000 0x0280000>;
239 BOOTCONFIG1@5ea0000 {
240 label = "BOOTCONFIG1";
241 reg = <0x5ea0000 0x0060000>;
246 reg = <0x5f00000 0x0500000>;
252 reg = <0x6400000 0x4000000>;
257 reg = <0xa400000 0x5c00000>;
270 pinctrl-0 = <&mdio0_pins>;
271 pinctrl-names = "default";
275 qca,ar8327-initvals = <
276 0x00004 0x7600000 /* PAD0_MODE */
277 0x00008 0x1000000 /* PAD5_MODE */
278 0x0000c 0x80 /* PAD6_MODE */
279 0x000e4 0x6a545 /* MAC_POWER_SEL */
280 0x000e0 0xc74164de /* SGMII_CTRL */
281 0x0007c 0x4e /* PORT0_STATUS */
282 0x00094 0x4e /* PORT6_STATUS */
294 pinctrl-0 = <&rgmii2_pins>;
295 pinctrl-names = "default";
319 pinctrl-0 = <&uart0_pins>;
320 pinctrl-names = "default";
324 compatible = "jedec,spi-nor";
335 &ss_phy_0 { /* USB3 port 0 SS phy */
339 tx_deamp_3_5db = <32>;
343 &ss_phy_1 { /* USB3 port 1 SS phy */
347 tx_deamp_3_5db = <32>;
354 /delete-property/ pinctrl-0;
355 /delete-property/ pinctrl-names;
356 /delete-property/ perst-gpios;
366 /delete-property/ pinctrl-0;
367 /delete-property/ pinctrl-names;
368 /delete-property/ perst-gpios;
372 pinctrl-names = "default";
373 pinctrl-0 = <&state_default>;
375 state_default: pinctrl0 {
379 drive-strength = <2>;
387 pins = "gpio7", "gpio8", "gpio9", "gpio22",
388 "gpio23", "gpio24", "gpio25", "gpio53";
390 drive-strength = <2>;
395 button_pins: button_pins {
399 drive-strength = <2>;
404 beeper_pins: beeper_pins {
408 drive-strength = <2>;
415 pins = "gpio12", "gpio13";
417 drive-strength = <10>;
422 uart0_pins: uart0_pins {
424 pins = "gpio10", "gpio11";
426 drive-strength = <10>;
433 pins = "gpio18", "gpio19";
435 drive-strength = <10>;
442 drive-strength = <12>;
449 drive-strength = <10>;
464 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;