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";
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";
343 tx_deamp_3_5db = <32>;
359 tx_deamp_3_5db = <32>;
370 /delete-property/ pinctrl-0;
371 /delete-property/ pinctrl-names;
372 /delete-property/ perst-gpios;
382 /delete-property/ pinctrl-0;
383 /delete-property/ pinctrl-names;
384 /delete-property/ perst-gpios;
388 pinctrl-names = "default";
389 pinctrl-0 = <&state_default>;
391 state_default: pinctrl0 {
395 drive-strength = <2>;
403 pins = "gpio7", "gpio8", "gpio9", "gpio22",
404 "gpio23", "gpio24", "gpio25", "gpio53";
406 drive-strength = <2>;
411 button_pins: button_pins {
415 drive-strength = <2>;
420 beeper_pins: beeper_pins {
424 drive-strength = <2>;
431 pins = "gpio12", "gpio13";
433 drive-strength = <10>;
438 uart0_pins: uart0_pins {
440 pins = "gpio10", "gpio11";
442 drive-strength = <10>;
449 pins = "gpio18", "gpio19";
451 drive-strength = <10>;
458 drive-strength = <12>;
465 drive-strength = <10>;
472 qcom,usb-ctrl-select = <TCSR_USB_SELECT_USB3_DUAL>;