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;
43 compatible = "qcom,tcsr";
44 reg = <0x1949000 0x100>;
45 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
81 compatible = "gpio-leds";
83 led_power_white: power_white {
84 label = "white:power";
85 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
88 led_power_orange: power_orange {
89 label = "orange:power";
90 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
93 led_power_blue: power_blue {
95 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
99 label = "white:router";
100 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
104 label = "orange:router";
105 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
109 label = "white:internet";
110 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
114 label = "orange:internet";
115 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
119 label = "white:wireless";
120 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
124 label = "orange:wireless";
125 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
130 compatible = "gpio-keys";
134 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
135 linux,code = <BTN_0>;
136 linux,input-type = <EV_SW>;
140 label = "router_mode";
141 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
142 linux,code = <BTN_1>;
143 linux,input-type = <EV_SW>;
148 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
149 linux,code = <BTN_2>;
150 linux,input-type = <EV_SW>;
155 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
156 linux,code = <KEY_RESTART>;
160 label = "AOSS Button";
161 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
162 linux,code = <KEY_WPS_BUTTON>;
168 serial_0_pins: serial0_pinmux {
170 pins = "gpio16", "gpio17";
171 function = "blsp_uart0";
176 mdio_pins: mdio_pinmux {
190 nand_pins: nand_pins {
192 pins = "gpio52", "gpio53", "gpio58",
199 pins = "gpio54", "gpio55", "gpio56",
200 "gpio57", "gpio60", "gpio61",
201 "gpio62", "gpio63", "gpio64",
202 "gpio65", "gpio66", "gpio67",
210 line-name = "USB power";
211 gpios = <34 GPIO_ACTIVE_HIGH>;
222 pinctrl-0 = <&serial_0_pins>;
223 pinctrl-names = "default";
235 reg = <0x00000000 0 0 0 0>;
236 #address-cells = <3>;
241 compatible = "qcom,ath10k";
243 nvmem-cell-names = "pre-calibration", "mac-address";
244 nvmem-cells = <&precal_art_9000>, <&macaddr_orgdata_32>;
245 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
255 pinctrl-0 = <&nand_pins>;
256 pinctrl-names = "default";
261 compatible = "fixed-partitions";
262 #address-cells = <1>;
267 reg = <0x0000000 0x0100000>;
273 reg = <0x0100000 0x0100000>;
278 label = "BOOTCONFIG";
279 reg = <0x0200000 0x0100000>;
285 reg = <0x0300000 0x0100000>;
291 reg = <0x0400000 0x0100000>;
297 reg = <0x0500000 0x0080000>;
303 reg = <0x0580000 0x0080000>;
308 label = "BOOTCONFIG1";
309 reg = <0x0600000 0x0080000>;
315 reg = <0x0680000 0x0080000>;
320 reg = <0x0700000 0x0200000>;
326 reg = <0x0900000 0x0200000>;
332 reg = <0x0b00000 0x0080000>;
334 compatible = "nvmem-cells";
335 #address-cells = <1>;
338 precal_art_1000: precal@1000 {
339 reg = <0x1000 0x2f20>;
342 precal_art_5000: precal@5000 {
343 reg = <0x5000 0x2f20>;
346 precal_art_9000: precal@9000 {
347 reg = <0x5000 0x2f20>;
353 reg = <0x0b80000 0x0080000>;
357 orgdata: partition@c00000 {
359 reg = <0x0c00000 0x0080000>;
361 compatible = "nvmem-cells";
362 #address-cells = <1>;
365 macaddr_orgdata_20: macaddr@20 {
368 macaddr_orgdata_26: macaddr@26 {
371 macaddr_orgdata_2c: macaddr@2c {
374 macaddr_orgdata_32: macaddr@32 {
381 reg = <0x0c80000 0x0080000>;
387 reg = <0x0d00000 0x2900000>;
391 label = "rootfs_recover";
392 reg = <0x3600000 0x2900000>;
397 label = "user_property";
398 reg = <0x5f00000 0x1a20000>;
407 nvmem-cell-names = "pre-calibration", "mac-address";
408 nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
409 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
410 ieee80211-freq-limit = <2400000 2483000>;
415 nvmem-cell-names = "pre-calibration", "mac-address";
416 nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
417 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
422 pinctrl-0 = <&mdio_pins>;
423 pinctrl-names = "default";
424 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;