1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2018, David Bauer <mail@david-bauer.net>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "qcom-ipq4019.dtsi"
19 #include "qcom-ipq4019-bus.dtsi"
20 #include <dt-bindings/gpio/gpio.h>
21 #include <dt-bindings/input/input.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
25 model = "Netgear EX61X0v2";
26 compatible = "netgear,ex61x0v2", "qcom,ipq4019";
29 #address-cells = <0x1>;
34 reg = <0x87e00000 0x080000>;
39 reg = <0x87e80000 0x180000>;
54 compatible = "qcom,tcsr";
55 reg = <0x1949000 0x100>;
56 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
60 compatible = "qcom,tcsr";
61 reg = <0x1953000 0x1000>;
62 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
66 compatible = "qcom,tcsr";
67 reg = <0x1957000 0x100>;
68 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
72 pinctrl-0 = <&serial_pins>;
73 pinctrl-names = "default";
95 led-boot = &power_amber;
96 led-failsafe = &power_amber;
97 led-running = &power_green;
98 led-upgrade = &power_amber;
102 compatible = "gpio-keys";
106 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
107 linux,code = <KEY_WPS_BUTTON>;
112 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_RESTART>;
118 compatible = "spi-gpio";
119 #address-cells = <1>;
122 gpio-sck = <&tlmm 5 GPIO_ACTIVE_HIGH>;
123 gpio-mosi = <&tlmm 4 GPIO_ACTIVE_HIGH>;
124 num-chipselects = <0>;
126 led_gpio: led_gpio@0 {
127 compatible = "fairchild,74hc595";
131 registers-number = <1>;
132 spi-max-frequency = <1000000>;
137 compatible = "gpio-leds";
139 power_amber: power_amber {
140 label = "ex61x0v2:amber:power";
141 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
144 power_green: power_green {
145 label = "ex61x0v2:green:power";
146 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
150 label = "ex61x0v2:blue:right";
151 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
155 label = "ex61x0v2:blue:left";
156 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
160 label = "ex61x0v2:green:client";
161 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
165 label = "ex61x0v2:red:client";
166 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
170 label = "ex61x0v2:green:router";
171 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
175 label = "ex61x0v2:red:router";
176 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
180 label = "ex61x0v2:green:wps";
181 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
187 serial_pins: serial_pinmux {
189 pins = "gpio60", "gpio61";
190 function = "blsp_uart0";
195 spi_0_pins: spi_0_pinmux {
197 function = "blsp_spi0";
198 pins = "gpio55", "gpio56", "gpio57";
199 drive-strength = <12>;
205 drive-strength = <2>;
213 pinctrl-0 = <&spi_0_pins>;
214 pinctrl-names = "default";
216 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
219 compatible = "jedec,spi-nor";
221 spi-max-frequency = <24000000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
230 reg = <0x00000000 0x00040000>;
236 reg = <0x00040000 0x00020000>;
242 reg = <0x00060000 0x00060000>;
248 reg = <0x000c0000 0x00010000>;
254 reg = <0x000d0000 0x00010000>;
260 reg = <0x000e0000 0x00010000>;
266 reg = <0x000f0000 0x00080000>;
272 reg = <0x00170000 0x00010000>;
278 reg = <0x00180000 0x00010000>;
284 reg = <0x00190000 0x00010000>;
290 reg = <0x001a0000 0x00010000>;
296 reg = <0x001b0000 0x00e10000>;
301 reg = <0x00fc0000 0x00040000>;