4 * Copyright (C) 2017 Christian Mehlis <christian@m3hlis.de>
5 * Copyright (C) 2018 Mathias Kresin <dev@kresin.me>
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the names of the copyright holders nor the names of any
18 * contributors may be used to endorse or promote products derived
19 * from this software without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #include "qcom-ipq8064-v1.0.dtsi"
36 #include <dt-bindings/input/input.h>
37 #include <dt-bindings/soc/qcom,tcsr.h>
40 compatible = "compex,wpq864", "qcom,ipq8064";
41 model = "Compex WPQ864";
49 led-failsafe = &led_fail;
50 led-running = &led_pass;
51 led-upgrade = &led_pass;
55 compatible = "gpio-leds";
57 pinctrl-0 = <&led_pins>;
58 pinctrl-names = "default";
61 label = "wpq864:green:rss4";
62 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
66 label = "wpq864:green:rss3";
67 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
68 default-state = "keep";
72 label = "wpq864:orange:rss2";
73 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
77 label = "wpq864:red:rss1";
78 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
82 label = "wpq864:green:pass";
83 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
87 label = "wpq864:green:fail";
88 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
92 label = "wpq864:green:usb";
93 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
97 label = "wpq864:green:usb-pcie";
98 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
103 compatible = "gpio-keys";
105 pinctrl-0 = <&button_pins>;
106 pinctrl-names = "default";
110 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
111 linux,code = <KEY_RESTART>;
116 compatible = "gpio-beeper";
118 pinctrl-0 = <&beeper_pins>;
119 pinctrl-names = "default";
121 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
126 pinctrl-0 = <&rpm_pins>;
127 pinctrl-names = "default";
133 pinctrl-0 = <&nand_pins>;
134 pinctrl-names = "default";
137 compatible = "qcom,nandcs";
141 nand-ecc-strength = <4>;
142 nand-bus-width = <8>;
143 nand-ecc-step-size = <512>;
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
152 reg = <0x0000000 0x0040000>;
158 reg = <0x0040000 0x0140000>;
164 reg = <0x0180000 0x0140000>;
170 reg = <0x02c0000 0x0280000>;
176 reg = <0x0540000 0x0120000>;
182 reg = <0x0660000 0x0120000>;
188 reg = <0x0780000 0x0280000>;
194 reg = <0x0a00000 0x0280000>;
200 reg = <0x0c80000 0x0500000>;
206 reg = <0x1180000 0x0080000>;
211 reg = <0x1200000 0x0140000>;
216 reg = <0x1340000 0x4000000>;
220 label = "BOOTCONFIG";
221 reg = <0x5340000 0x0060000>;
226 reg = <0x53a0000 0x0140000>;
232 reg = <0x54e0000 0x0280000>;
236 DDRCONFIG-1@5760000 {
237 label = "DDRCONFIG_1";
238 reg = <0x5760000 0x0120000>;
244 reg = <0x5880000 0x0120000>;
250 reg = <0x59a0000 0x0280000>;
256 reg = <0x5c20000 0x0280000>;
260 BOOTCONFIG1@5ea0000 {
261 label = "BOOTCONFIG1";
262 reg = <0x5ea0000 0x0060000>;
267 reg = <0x5f00000 0x0500000>;
273 reg = <0x6400000 0x4000000>;
278 reg = <0xa400000 0x5c00000>;
291 pinctrl-0 = <&mdio0_pins>;
292 pinctrl-names = "default";
296 qca,ar8327-initvals = <
297 0x00004 0x7600000 /* PAD0_MODE */
298 0x00008 0x1000000 /* PAD5_MODE */
299 0x0000c 0x80 /* PAD6_MODE */
300 0x000e4 0x6a545 /* MAC_POWER_SEL */
301 0x000e0 0xc74164de /* SGMII_CTRL */
302 0x0007c 0x4e /* PORT0_STATUS */
303 0x00094 0x4e /* PORT6_STATUS */
315 pinctrl-0 = <&rgmii2_pins>;
316 pinctrl-names = "default";
340 pinctrl-0 = <&uart0_pins>;
341 pinctrl-names = "default";
345 compatible = "jedec,spi-nor";
356 &ss_phy_0 { /* USB3 port 0 SS phy */
360 tx_deamp_3_5db = <32>;
364 &ss_phy_1 { /* USB3 port 1 SS phy */
368 tx_deamp_3_5db = <32>;
375 /delete-property/ pinctrl-0;
376 /delete-property/ pinctrl-names;
377 /delete-property/ perst-gpios;
387 /delete-property/ pinctrl-0;
388 /delete-property/ pinctrl-names;
389 /delete-property/ perst-gpios;
393 pinctrl-names = "default";
394 pinctrl-0 = <&state_default>;
396 state_default: pinctrl0 {
400 drive-strength = <2>;
408 pins = "gpio7", "gpio8", "gpio9", "gpio22",
409 "gpio23", "gpio24", "gpio25", "gpio53";
411 drive-strength = <2>;
416 button_pins: button_pins {
420 drive-strength = <2>;
425 beeper_pins: beeper_pins {
429 drive-strength = <2>;
436 pins = "gpio12", "gpio13";
438 drive-strength = <10>;
443 uart0_pins: uart0_pins {
445 pins = "gpio10", "gpio11";
447 drive-strength = <10>;
454 pins = "gpio18", "gpio19";
456 drive-strength = <10>;
463 drive-strength = <12>;
470 drive-strength = <10>;
485 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;