1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2017-2020, Sven Eckelmann <sven@narfation.org>
3 * Copyright (c) 2018, Marek Lindner <marek.lindner@kaiwoo.ai>
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/soc/qcom,tcsr.h>
13 model = "Plasma Cloud PA1200";
14 compatible = "plasmacloud,pa1200";
23 compatible = "qcom,tcsr";
24 reg = <0x194b000 0x100>;
25 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
30 compatible = "qcom,tcsr";
31 reg = <0x1949000 0x100>;
32 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 compatible = "qcom,tcsr";
37 reg = <0x1953000 0x1000>;
38 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
42 compatible = "qcom,tcsr";
43 reg = <0x1957000 0x100>;
44 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
57 compatible = "gpio-keys";
61 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_RESTART>;
67 led-boot = &led_status_purple;
68 led-failsafe = &led_status_yellow;
69 led-running = &led_status_cyan;
70 led-upgrade = &led_status_yellow;
71 label-mac-device = &swport5;
75 compatible = "gpio-leds";
77 led_status_cyan: status_cyan {
78 function = LED_FUNCTION_STATUS;
79 color = <LED_COLOR_ID_CYAN>;
80 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
83 led_status_purple: status_purple {
84 function = LED_FUNCTION_STATUS;
85 color = <LED_COLOR_ID_PURPLE>;
86 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
89 led_status_yellow: status_yellow {
90 function = LED_FUNCTION_STATUS;
91 color = <LED_COLOR_ID_YELLOW>;
92 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
99 serial_pins: serial_pinmux {
101 pins = "gpio60", "gpio61";
102 function = "blsp_uart0";
107 spi_0_pins: spi_0_pinmux {
109 function = "blsp_spi0";
110 pins = "gpio55", "gpio56", "gpio57";
111 drive-strength = <12>;
117 drive-strength = <2>;
129 pinctrl-0 = <&spi_0_pins>;
130 pinctrl-names = "default";
132 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
135 #address-cells = <1>;
137 compatible = "jedec,spi-nor";
139 spi-max-frequency = <24000000>;
141 /* partitions are passed via bootloader */
147 compatible = "fixed-layout";
148 #address-cells = <1>;
151 macaddr_gmac0: macaddr@0 {
155 macaddr_gmac1: macaddr@6 {
159 precal_art_1000: precal@1000 {
160 reg = <0x1000 0x2f20>;
163 precal_art_5000: precal@5000 {
164 reg = <0x5000 0x2f20>;
173 pinctrl-0 = <&serial_pins>;
174 pinctrl-names = "default";
206 nvmem-cell-names = "mac-address";
207 nvmem-cells = <&macaddr_gmac1>;
214 nvmem-cell-names = "mac-address";
215 nvmem-cells = <&macaddr_gmac0>;
220 qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
222 nvmem-cell-names = "pre-calibration";
223 nvmem-cells = <&precal_art_1000>;
228 qcom,ath10k-calibration-variant = "PlasmaCloud-PA1200";
230 nvmem-cell-names = "pre-calibration";
231 nvmem-cells = <&precal_art_5000>;