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 = &gmac;
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";
64 compatible = "qcom,tcsr";
65 reg = <0x1949000 0x100>;
66 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
70 compatible = "qcom,tcsr";
71 reg = <0x194b000 0x100>;
72 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
76 compatible = "qcom,tcsr";
77 reg = <0x1953000 0x1000>;
78 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
82 compatible = "qcom,tcsr";
83 reg = <0x1957000 0x100>;
84 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
96 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
97 pinctrl-0 = <&spi_0_pins>;
98 pinctrl-names = "default";
101 compatible = "jedec,spi-nor";
103 spi-max-frequency = <24000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x0000000 0x0040000>;
118 reg = <0x0040000 0x0020000>;
124 reg = <0x0060000 0x0060000>;
130 reg = <0x00c0000 0x0010000>;
135 label = "0:DDRPARAMS";
136 reg = <0x00d0000 0x0010000>;
141 label = "0:APPSBLENV";
142 reg = <0x00e0000 0x0010000>;
148 reg = <0x00f0000 0x0080000>;
154 reg = <0x0170000 0x0010000>;
160 reg = <0x0180000 0x1e80000>;
169 pinctrl-0 = <&serial_pins>;
170 pinctrl-names = "default";
226 key_pins: key_pinmux {
234 led_pins: led_pinmux {
237 pins = "gpio0", "gpio1", "gpio2";
239 drive-strength = <2>;
244 serial_pins: serial_pinmux {
246 function = "blsp_uart0";
247 pins = "gpio60", "gpio61";
252 spi_0_pins: spi_0_pinmux {
254 function = "blsp_spi0";
255 pins = "gpio55", "gpio56", "gpio57";
257 drive-strength = <12>;
264 drive-strength = <2>;
285 qcom,ath10k-calibration-variant = "Pakedge-WR-1";
291 qcom,ath10k-calibration-variant = "Pakedge-WR-1";