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";
39 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
40 color = <LED_COLOR_ID_BLUE>;
41 function = LED_FUNCTION_POWER;
45 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
46 color = <LED_COLOR_ID_BLUE>;
47 function = LED_FUNCTION_WLAN;
48 linux,default-trigger = "phy0tpt";
52 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
53 color = <LED_COLOR_ID_BLUE>;
54 function = LED_FUNCTION_WLAN;
55 linux,default-trigger = "phy1tpt";
61 compatible = "qcom,tcsr";
62 reg = <0x1949000 0x100>;
63 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
67 compatible = "qcom,tcsr";
68 reg = <0x194b000 0x100>;
69 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
73 compatible = "qcom,tcsr";
74 reg = <0x1953000 0x1000>;
75 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
79 compatible = "qcom,tcsr";
80 reg = <0x1957000 0x100>;
81 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
93 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
94 pinctrl-0 = <&spi_0_pins>;
95 pinctrl-names = "default";
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <24000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
109 reg = <0x0000000 0x0040000>;
115 reg = <0x0040000 0x0020000>;
121 reg = <0x0060000 0x0060000>;
127 reg = <0x00c0000 0x0010000>;
132 label = "0:DDRPARAMS";
133 reg = <0x00d0000 0x0010000>;
138 label = "0:APPSBLENV";
139 reg = <0x00e0000 0x0010000>;
145 reg = <0x00f0000 0x0080000>;
151 reg = <0x0170000 0x0010000>;
157 reg = <0x0180000 0x1e80000>;
166 pinctrl-0 = <&serial_pins>;
167 pinctrl-names = "default";
223 key_pins: key_pinmux {
231 led_pins: led_pinmux {
234 pins = "gpio0", "gpio1", "gpio2";
236 drive-strength = <2>;
241 serial_pins: serial_pinmux {
243 function = "blsp_uart0";
244 pins = "gpio60", "gpio61";
249 spi_0_pins: spi_0_pinmux {
251 function = "blsp_spi0";
252 pins = "gpio55", "gpio56", "gpio57";
254 drive-strength = <12>;
261 drive-strength = <2>;
282 qcom,ath10k-calibration-variant = "Pakedge-WR-1";
288 qcom,ath10k-calibration-variant = "Pakedge-WR-1";