1 // SPDX-License-Identifier: ISC
3 * Copyright (c) 2015 - 2016, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020 Yanase Yuki <dev@zpc.sakura.ne.jp>
7 #include "qcom-ipq4019.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/soc/qcom,tcsr.h>
14 model = "Buffalo WTR-M2133HP";
15 compatible = "buffalo,wtr-m2133hp", "qcom,ipq4019";
18 device_type = "memory";
19 reg = <0x80000000 0x20000000>;
24 * U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs" to
25 * kernel command line. But we use different partition names,
26 * so we have to set correct parameters.
28 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
32 led-boot = &led_power_blue;
33 led-failsafe = &led_power_orange;
34 led-running = &led_power_white;
35 led-upgrade = &led_power_blue;
44 compatible = "qcom,tcsr";
45 reg = <0x1949000 0x100>;
46 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
57 compatible = "qcom,tcsr";
58 reg = <0x1953000 0x1000>;
59 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
63 compatible = "qcom,tcsr";
64 reg = <0x1957000 0x100>;
65 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
82 compatible = "gpio-leds";
84 led_power_white: power_white {
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_WHITE>;
87 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
90 led_power_orange: power_orange {
91 function = LED_FUNCTION_POWER;
92 color = <LED_COLOR_ID_ORANGE>;
93 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
96 led_power_blue: power_blue {
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_BLUE>;
99 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
103 label = "white:router";
104 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
108 label = "orange:router";
109 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
113 label = "white:internet";
114 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
118 label = "orange:internet";
119 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
123 label = "white:wireless";
124 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
128 label = "orange:wireless";
129 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
134 compatible = "gpio-keys";
138 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
139 linux,code = <BTN_0>;
140 linux,input-type = <EV_SW>;
144 label = "router_mode";
145 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
146 linux,code = <BTN_1>;
147 linux,input-type = <EV_SW>;
152 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
153 linux,code = <BTN_2>;
154 linux,input-type = <EV_SW>;
159 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_RESTART>;
164 label = "AOSS Button";
165 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
166 linux,code = <KEY_WPS_BUTTON>;
172 serial_0_pins: serial0_pinmux {
174 pins = "gpio16", "gpio17";
175 function = "blsp_uart0";
180 mdio_pins: mdio_pinmux {
194 nand_pins: nand_pins {
196 pins = "gpio52", "gpio53", "gpio58",
203 pins = "gpio54", "gpio55", "gpio56",
204 "gpio57", "gpio60", "gpio61",
205 "gpio62", "gpio63", "gpio64",
206 "gpio65", "gpio66", "gpio67",
214 line-name = "USB power";
215 gpios = <34 GPIO_ACTIVE_HIGH>;
226 pinctrl-0 = <&serial_0_pins>;
227 pinctrl-names = "default";
239 reg = <0x00000000 0 0 0 0>;
240 #address-cells = <3>;
245 compatible = "qcom,ath10k";
247 nvmem-cell-names = "pre-calibration", "mac-address";
248 nvmem-cells = <&precal_art_9000>, <&macaddr_orgdata_32>;
249 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
259 pinctrl-0 = <&nand_pins>;
260 pinctrl-names = "default";
265 compatible = "fixed-partitions";
266 #address-cells = <1>;
271 reg = <0x0000000 0x0100000>;
277 reg = <0x0100000 0x0100000>;
282 label = "BOOTCONFIG";
283 reg = <0x0200000 0x0100000>;
289 reg = <0x0300000 0x0100000>;
295 reg = <0x0400000 0x0100000>;
301 reg = <0x0500000 0x0080000>;
307 reg = <0x0580000 0x0080000>;
312 label = "BOOTCONFIG1";
313 reg = <0x0600000 0x0080000>;
319 reg = <0x0680000 0x0080000>;
324 reg = <0x0700000 0x0200000>;
330 reg = <0x0900000 0x0200000>;
336 reg = <0x0b00000 0x0080000>;
340 compatible = "fixed-layout";
341 #address-cells = <1>;
344 precal_art_1000: precal@1000 {
345 reg = <0x1000 0x2f20>;
348 precal_art_5000: precal@5000 {
349 reg = <0x5000 0x2f20>;
352 precal_art_9000: precal@9000 {
353 reg = <0x5000 0x2f20>;
360 reg = <0x0b80000 0x0080000>;
364 orgdata: partition@c00000 {
366 reg = <0x0c00000 0x0080000>;
370 compatible = "fixed-layout";
371 #address-cells = <1>;
374 macaddr_orgdata_20: macaddr@20 {
377 macaddr_orgdata_26: macaddr@26 {
380 macaddr_orgdata_2c: macaddr@2c {
383 macaddr_orgdata_32: macaddr@32 {
391 reg = <0x0c80000 0x0080000>;
397 reg = <0x0d00000 0x2900000>;
401 label = "rootfs_recover";
402 reg = <0x3600000 0x2900000>;
407 label = "user_property";
408 reg = <0x5f00000 0x1a20000>;
417 nvmem-cell-names = "pre-calibration", "mac-address";
418 nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
419 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
420 ieee80211-freq-limit = <2400000 2483000>;
425 nvmem-cell-names = "pre-calibration", "mac-address";
426 nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
427 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
455 nvmem-cell-names = "mac-address";
456 nvmem-cells = <&macaddr_orgdata_20>;
461 pinctrl-0 = <&mdio_pins>;
462 pinctrl-names = "default";
463 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;