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 <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "Netgear EX61X0v2";
25 compatible = "netgear,ex61x0v2";
41 compatible = "qcom,tcsr";
42 reg = <0x1949000 0x100>;
43 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
77 led-boot = &power_amber;
78 led-failsafe = &power_amber;
79 led-running = &power_green;
80 led-upgrade = &power_amber;
84 compatible = "gpio-keys";
88 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_WPS_BUTTON>;
94 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
100 compatible = "spi-gpio";
101 #address-cells = <1>;
104 gpio-sck = <&tlmm 5 GPIO_ACTIVE_HIGH>;
105 gpio-mosi = <&tlmm 4 GPIO_ACTIVE_HIGH>;
106 num-chipselects = <0>;
108 led_gpio: led_gpio@0 {
109 compatible = "fairchild,74hc595";
113 registers-number = <1>;
114 spi-max-frequency = <1000000>;
119 compatible = "gpio-leds";
121 power_amber: power_amber {
122 label = "ex61x0v2:amber:power";
123 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
126 power_green: power_green {
127 label = "ex61x0v2:green:power";
128 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
132 label = "ex61x0v2:blue:right";
133 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
137 label = "ex61x0v2:blue:left";
138 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
142 label = "ex61x0v2:green:client";
143 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
147 label = "ex61x0v2:red:client";
148 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
152 label = "ex61x0v2:green:router";
153 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
157 label = "ex61x0v2:red:router";
158 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
162 label = "ex61x0v2:green:wps";
163 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
169 serial_pins: serial_pinmux {
171 pins = "gpio60", "gpio61";
172 function = "blsp_uart0";
177 spi_0_pins: spi_0_pinmux {
179 function = "blsp_spi0";
180 pins = "gpio55", "gpio56", "gpio57";
181 drive-strength = <12>;
187 drive-strength = <2>;
195 pinctrl-0 = <&spi_0_pins>;
196 pinctrl-names = "default";
198 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
201 compatible = "jedec,spi-nor";
203 spi-max-frequency = <24000000>;
206 compatible = "fixed-partitions";
207 #address-cells = <1>;
212 reg = <0x00000000 0x00040000>;
218 reg = <0x00040000 0x00020000>;
224 reg = <0x00060000 0x00060000>;
230 reg = <0x000c0000 0x00010000>;
236 reg = <0x000d0000 0x00010000>;
242 reg = <0x000e0000 0x00010000>;
248 reg = <0x000f0000 0x00080000>;
254 reg = <0x00170000 0x00010000>;
260 reg = <0x00180000 0x00010000>;
266 reg = <0x00190000 0x00010000>;
272 reg = <0x001a0000 0x00010000>;
277 compatible = "denx,fit";
279 reg = <0x001b0000 0x00e10000>;
284 reg = <0x00fc0000 0x00040000>;
292 pinctrl-0 = <&serial_pins>;
293 pinctrl-names = "default";