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 PA2200";
14 compatible = "plasmacloud,pa2200";
22 compatible = "qcom,tcsr";
23 reg = <0x1949000 0x100>;
24 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
28 compatible = "qcom,tcsr";
29 reg = <0x1953000 0x1000>;
30 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
34 compatible = "qcom,tcsr";
35 reg = <0x1957000 0x100>;
36 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
49 compatible = "gpio-keys";
53 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART >;
59 led-boot = &led_power_orange;
60 led-failsafe = &led_status_blue;
61 led-running = &led_power_orange;
62 led-upgrade = &led_status_blue;
63 label-mac-device = &swport4;
67 compatible = "gpio-leds";
69 led_power_orange: power_orange {
70 function = LED_FUNCTION_POWER;
71 color = <LED_COLOR_ID_ORANGE>;
72 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
77 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
78 linux,default-trigger = "phy1tpt";
83 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
84 linux,default-trigger = "phy0tpt";
89 gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "phy2tpt";
93 led_status_blue: status_blue {
94 function = LED_FUNCTION_STATUS;
95 color = <LED_COLOR_ID_BLUE>;
96 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
102 serial_pins: serial_pinmux {
104 pins = "gpio16", "gpio17";
105 function = "blsp_uart0";
110 spi_0_pins: spi_0_pinmux {
112 function = "blsp_spi0";
113 pins = "gpio13", "gpio14", "gpio15";
114 drive-strength = <12>;
120 drive-strength = <2>;
132 pinctrl-0 = <&spi_0_pins>;
133 pinctrl-names = "default";
135 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
138 #address-cells = <1>;
140 compatible = "jedec,spi-nor";
142 spi-max-frequency = <24000000>;
144 /* partitions are passed via bootloader */
150 compatible = "fixed-layout";
151 #address-cells = <1>;
154 macaddr_gmac0: macaddr@0 {
158 macaddr_gmac1: macaddr@6 {
162 precal_art_1000: precal@1000 {
163 reg = <0x1000 0x2f20>;
166 precal_art_5000: precal@5000 {
167 reg = <0x5000 0x2f20>;
170 precal_art_9000: precal@9000 {
171 reg = <0x9000 0x2f20>;
180 pinctrl-0 = <&serial_pins>;
181 pinctrl-names = "default";
191 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
192 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
195 reg = <0x00000000 0 0 0 0>;
196 #address-cells = <3>;
201 compatible = "qcom,ath10k";
203 reg = <0x00010000 0 0 0 0>;
204 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
205 ieee80211-freq-limit = <5170000 5350000>;
207 nvmem-cell-names = "pre-calibration";
208 nvmem-cells = <&precal_art_9000>;
229 nvmem-cell-names = "mac-address";
230 nvmem-cells = <&macaddr_gmac0>;
237 nvmem-cell-names = "mac-address";
238 nvmem-cells = <&macaddr_gmac1>;
243 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
245 nvmem-cell-names = "pre-calibration";
246 nvmem-cells = <&precal_art_1000>;
251 qcom,ath10k-calibration-variant = "PlasmaCloud-PA2200";
252 ieee80211-freq-limit = <5470000 5875000>;
254 nvmem-cell-names = "pre-calibration";
255 nvmem-cells = <&precal_art_5000>;