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;
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
53 compatible = "qcom,tcsr";
54 reg = <0x1953000 0x1000>;
55 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
59 compatible = "qcom,tcsr";
60 reg = <0x1957000 0x100>;
61 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
66 compatible = "gpio-leds";
68 led_power_white: power_white {
69 function = LED_FUNCTION_POWER;
70 color = <LED_COLOR_ID_WHITE>;
71 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
74 led_power_orange: power_orange {
75 function = LED_FUNCTION_POWER;
76 color = <LED_COLOR_ID_ORANGE>;
77 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
80 led_power_blue: power_blue {
81 function = LED_FUNCTION_POWER;
82 color = <LED_COLOR_ID_BLUE>;
83 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
87 label = "white:router";
88 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
92 label = "orange:router";
93 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
97 label = "white:internet";
98 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
102 label = "orange:internet";
103 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
107 label = "white:wireless";
108 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
112 label = "orange:wireless";
113 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
118 compatible = "gpio-keys";
122 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
123 linux,code = <BTN_0>;
124 linux,input-type = <EV_SW>;
128 label = "router_mode";
129 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
130 linux,code = <BTN_1>;
131 linux,input-type = <EV_SW>;
136 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
137 linux,code = <BTN_2>;
138 linux,input-type = <EV_SW>;
143 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_RESTART>;
148 label = "AOSS Button";
149 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
150 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>;
336 compatible = "fixed-layout";
337 #address-cells = <1>;
340 precal_art_1000: precal@1000 {
341 reg = <0x1000 0x2f20>;
344 precal_art_5000: precal@5000 {
345 reg = <0x5000 0x2f20>;
348 precal_art_9000: precal@9000 {
349 reg = <0x5000 0x2f20>;
356 reg = <0x0b80000 0x0080000>;
360 orgdata: partition@c00000 {
362 reg = <0x0c00000 0x0080000>;
366 compatible = "fixed-layout";
367 #address-cells = <1>;
370 macaddr_orgdata_20: macaddr@20 {
373 macaddr_orgdata_26: macaddr@26 {
376 macaddr_orgdata_2c: macaddr@2c {
379 macaddr_orgdata_32: macaddr@32 {
387 reg = <0x0c80000 0x0080000>;
393 reg = <0x0d00000 0x2900000>;
397 label = "rootfs_recover";
398 reg = <0x3600000 0x2900000>;
403 label = "user_property";
404 reg = <0x5f00000 0x1a20000>;
413 nvmem-cell-names = "pre-calibration", "mac-address";
414 nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
415 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
416 ieee80211-freq-limit = <2400000 2483000>;
421 nvmem-cell-names = "pre-calibration", "mac-address";
422 nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
423 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
451 nvmem-cell-names = "mac-address";
452 nvmem-cells = <&macaddr_orgdata_20>;
457 pinctrl-0 = <&mdio_pins>;
458 pinctrl-names = "default";
459 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;