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/gpio/gpio.h>
10 #include <dt-bindings/soc/qcom,tcsr.h>
13 model = "Buffalo WTR-M2133HP";
14 compatible = "buffalo,wtr-m2133hp", "qcom,ipq4019";
17 device_type = "memory";
18 reg = <0x80000000 0x20000000>;
23 * U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs" to
24 * kernel command line. But we use different partition names,
25 * so we have to set correct parameters.
27 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
31 led-boot = &led_power_blue;
32 led-failsafe = &led_power_orange;
33 led-running = &led_power_white;
34 led-upgrade = &led_power_blue;
35 label-mac-device = &gmac0;
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>;
78 switch_lan_bmp = <0x1c>;
95 compatible = "gpio-leds";
97 led_power_white: power_white {
98 label = "white:power";
99 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
102 led_power_orange: power_orange {
103 label = "orange:power";
104 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
107 led_power_blue: power_blue {
108 label = "blue:power";
109 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
113 label = "white:router";
114 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
118 label = "orange:router";
119 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
123 label = "white:internet";
124 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
128 label = "orange:internet";
129 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
133 label = "white:wireless";
134 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
138 label = "orange:wireless";
139 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
144 compatible = "gpio-keys";
148 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
149 linux,code = <BTN_0>;
150 linux,input-type = <EV_SW>;
154 label = "router_mode";
155 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
156 linux,code = <BTN_1>;
157 linux,input-type = <EV_SW>;
162 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
163 linux,code = <BTN_2>;
164 linux,input-type = <EV_SW>;
169 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
170 linux,code = <KEY_RESTART>;
174 label = "AOSS Button";
175 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
176 linux,code = <KEY_WPS_BUTTON>;
182 serial_0_pins: serial0_pinmux {
184 pins = "gpio16", "gpio17";
185 function = "blsp_uart0";
190 mdio_pins: mdio_pinmux {
204 nand_pins: nand_pins {
206 pins = "gpio52", "gpio53", "gpio58",
213 pins = "gpio54", "gpio55", "gpio56",
214 "gpio57", "gpio60", "gpio61",
215 "gpio62", "gpio63", "gpio64",
216 "gpio65", "gpio66", "gpio67",
224 line-name = "USB power";
225 gpios = <34 GPIO_ACTIVE_HIGH>;
236 pinctrl-0 = <&serial_0_pins>;
237 pinctrl-names = "default";
249 reg = <0x00000000 0 0 0 0>;
250 #address-cells = <3>;
255 compatible = "qcom,ath10k";
257 nvmem-cell-names = "pre-calibration", "mac-address";
258 nvmem-cells = <&precal_art_9000>, <&macaddr_orgdata_32>;
259 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
269 pinctrl-0 = <&nand_pins>;
270 pinctrl-names = "default";
275 compatible = "fixed-partitions";
276 #address-cells = <1>;
281 reg = <0x0000000 0x0100000>;
287 reg = <0x0100000 0x0100000>;
292 label = "BOOTCONFIG";
293 reg = <0x0200000 0x0100000>;
299 reg = <0x0300000 0x0100000>;
305 reg = <0x0400000 0x0100000>;
311 reg = <0x0500000 0x0080000>;
317 reg = <0x0580000 0x0080000>;
322 label = "BOOTCONFIG1";
323 reg = <0x0600000 0x0080000>;
329 reg = <0x0680000 0x0080000>;
334 reg = <0x0700000 0x0200000>;
340 reg = <0x0900000 0x0200000>;
346 reg = <0x0b00000 0x0080000>;
348 compatible = "nvmem-cells";
349 #address-cells = <1>;
352 precal_art_1000: precal@1000 {
353 reg = <0x1000 0x2f20>;
356 precal_art_5000: precal@5000 {
357 reg = <0x5000 0x2f20>;
360 precal_art_9000: precal@9000 {
361 reg = <0x5000 0x2f20>;
367 reg = <0x0b80000 0x0080000>;
371 orgdata: partition@c00000 {
373 reg = <0x0c00000 0x0080000>;
375 compatible = "nvmem-cells";
376 #address-cells = <1>;
379 macaddr_orgdata_20: macaddr@20 {
382 macaddr_orgdata_26: macaddr@26 {
385 macaddr_orgdata_2c: macaddr@2c {
388 macaddr_orgdata_32: macaddr@32 {
395 reg = <0x0c80000 0x0080000>;
401 reg = <0x0d00000 0x2900000>;
405 label = "rootfs_recover";
406 reg = <0x3600000 0x2900000>;
411 label = "user_property";
412 reg = <0x5f00000 0x1a20000>;
421 nvmem-cell-names = "pre-calibration", "mac-address";
422 nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
423 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
424 ieee80211-freq-limit = <2400000 2483000>;
429 nvmem-cell-names = "pre-calibration", "mac-address";
430 nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
431 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
436 pinctrl-0 = <&mdio_pins>;
437 pinctrl-names = "default";
438 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
442 nvmem-cells = <&macaddr_orgdata_20>;
443 nvmem-cell-names = "mac-address";
447 nvmem-cells = <&macaddr_orgdata_20>;
448 nvmem-cell-names = "mac-address";