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 qcom,boot_pages_size = <0x1180000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x0000000 0x0040000>;
135 reg = <0x0040000 0x0140000>;
141 reg = <0x0180000 0x0140000>;
147 reg = <0x02c0000 0x0280000>;
153 reg = <0x0540000 0x0120000>;
159 reg = <0x0660000 0x0120000>;
165 reg = <0x0780000 0x0280000>;
171 reg = <0x0a00000 0x0280000>;
177 reg = <0x0c80000 0x0500000>;
183 reg = <0x1180000 0x0080000>;
188 reg = <0x1200000 0x0140000>;
193 reg = <0x1340000 0x4000000>;
197 label = "BOOTCONFIG";
198 reg = <0x5340000 0x0060000>;
203 reg = <0x53a0000 0x0140000>;
209 reg = <0x54e0000 0x0280000>;
213 DDRCONFIG-1@5760000 {
214 label = "DDRCONFIG_1";
215 reg = <0x5760000 0x0120000>;
221 reg = <0x5880000 0x0120000>;
227 reg = <0x59a0000 0x0280000>;
233 reg = <0x5c20000 0x0280000>;
237 BOOTCONFIG1@5ea0000 {
238 label = "BOOTCONFIG1";
239 reg = <0x5ea0000 0x0060000>;
244 reg = <0x5f00000 0x0500000>;
250 reg = <0x6400000 0x4000000>;
255 reg = <0xa400000 0x5c00000>;
268 pinctrl-0 = <&mdio0_pins>;
269 pinctrl-names = "default";
273 qca,ar8327-initvals = <
274 0x00004 0x7600000 /* PAD0_MODE */
275 0x00008 0x1000000 /* PAD5_MODE */
276 0x0000c 0x80 /* PAD6_MODE */
277 0x000e4 0x6a545 /* MAC_POWER_SEL */
278 0x000e0 0xc74164de /* SGMII_CTRL */
279 0x0007c 0x4e /* PORT0_STATUS */
280 0x00094 0x4e /* PORT6_STATUS */
292 pinctrl-0 = <&rgmii2_pins>;
293 pinctrl-names = "default";
317 pinctrl-0 = <&uart0_pins>;
318 pinctrl-names = "default";
322 compatible = "jedec,spi-nor";
333 &ss_phy_0 { /* USB3 port 0 SS phy */
337 tx_deamp_3_5db = <32>;
341 &ss_phy_1 { /* USB3 port 1 SS phy */
345 tx_deamp_3_5db = <32>;
352 /delete-property/ pinctrl-0;
353 /delete-property/ pinctrl-names;
354 /delete-property/ perst-gpios;
364 /delete-property/ pinctrl-0;
365 /delete-property/ pinctrl-names;
366 /delete-property/ perst-gpios;
370 pinctrl-names = "default";
371 pinctrl-0 = <&state_default>;
373 state_default: pinctrl0 {
377 drive-strength = <2>;
385 pins = "gpio7", "gpio8", "gpio9", "gpio22",
386 "gpio23", "gpio24", "gpio25", "gpio53";
388 drive-strength = <2>;
393 button_pins: button_pins {
397 drive-strength = <2>;
402 beeper_pins: beeper_pins {
406 drive-strength = <2>;
413 pins = "gpio12", "gpio13";
415 drive-strength = <10>;
420 uart0_pins: uart0_pins {
422 pins = "gpio10", "gpio11";
424 drive-strength = <10>;
431 pins = "gpio18", "gpio19";
433 drive-strength = <10>;
440 drive-strength = <12>;
447 drive-strength = <10>;
462 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;