1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "Pakedge WR-1";
11 compatible = "pakedge,wr-1";
14 label-mac-device = &gmac0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
22 compatible = "gpio-keys";
23 pinctrl-0 = <&key_pins>;
24 pinctrl-names = "default";
28 gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
35 pinctrl-0 = <&led_pins>;
36 pinctrl-names = "default";
40 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
41 color = <LED_COLOR_ID_BLUE>;
42 function = LED_FUNCTION_POWER;
46 label = "blue:wlan2g";
47 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
48 color = <LED_COLOR_ID_BLUE>;
49 function = LED_FUNCTION_WLAN;
50 linux,default-trigger = "phy0tpt";
54 label = "blue:wlan5g";
55 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_BLUE>;
57 function = LED_FUNCTION_WLAN;
58 linux,default-trigger = "phy1tpt";
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
74 compatible = "qcom,tcsr";
75 reg = <0x194b000 0x100>;
76 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
80 compatible = "qcom,tcsr";
81 reg = <0x1953000 0x1000>;
82 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
86 compatible = "qcom,tcsr";
87 reg = <0x1957000 0x100>;
88 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
108 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
109 pinctrl-0 = <&spi_0_pins>;
110 pinctrl-names = "default";
113 compatible = "jedec,spi-nor";
115 spi-max-frequency = <24000000>;
118 compatible = "fixed-partitions";
119 #address-cells = <1>;
124 reg = <0x0000000 0x0040000>;
130 reg = <0x0040000 0x0020000>;
136 reg = <0x0060000 0x0060000>;
142 reg = <0x00c0000 0x0010000>;
147 label = "0:DDRPARAMS";
148 reg = <0x00d0000 0x0010000>;
153 label = "0:APPSBLENV";
154 reg = <0x00e0000 0x0010000>;
160 reg = <0x00f0000 0x0080000>;
166 reg = <0x0170000 0x0010000>;
172 reg = <0x0180000 0x1e80000>;
181 pinctrl-0 = <&serial_pins>;
182 pinctrl-names = "default";
202 key_pins: key_pinmux {
210 led_pins: led_pinmux {
213 pins = "gpio0", "gpio1", "gpio2";
215 drive-strength = <2>;
220 serial_pins: serial_pinmux {
222 function = "blsp_uart0";
223 pins = "gpio60", "gpio61";
228 spi_0_pins: spi_0_pinmux {
230 function = "blsp_spi0";
231 pins = "gpio55", "gpio56", "gpio57";
233 drive-strength = <12>;
240 drive-strength = <2>;
261 qcom,ath10k-calibration-variant = "Pakedge-WR-1";
267 qcom,ath10k-calibration-variant = "Pakedge-WR-1";