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", "qcom,ipq4019";
37 compatible = "qcom,tcsr";
38 reg = <0x1949000 0x100>;
39 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
73 led-boot = &power_amber;
74 led-failsafe = &power_amber;
75 led-running = &power_green;
76 led-upgrade = &power_amber;
80 compatible = "gpio-keys";
84 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
90 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
96 compatible = "spi-gpio";
100 gpio-sck = <&tlmm 5 GPIO_ACTIVE_HIGH>;
101 gpio-mosi = <&tlmm 4 GPIO_ACTIVE_HIGH>;
102 num-chipselects = <0>;
104 led_gpio: led_gpio@0 {
105 compatible = "fairchild,74hc595";
109 registers-number = <1>;
110 spi-max-frequency = <1000000>;
115 compatible = "gpio-leds";
117 power_amber: power_amber {
118 label = "ex61x0v2:amber:power";
119 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
122 power_green: power_green {
123 label = "ex61x0v2:green:power";
124 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
128 label = "ex61x0v2:blue:right";
129 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
133 label = "ex61x0v2:blue:left";
134 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
138 label = "ex61x0v2:green:client";
139 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
143 label = "ex61x0v2:red:client";
144 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
148 label = "ex61x0v2:green:router";
149 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
153 label = "ex61x0v2:red:router";
154 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
158 label = "ex61x0v2:green:wps";
159 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
165 serial_pins: serial_pinmux {
167 pins = "gpio60", "gpio61";
168 function = "blsp_uart0";
173 spi_0_pins: spi_0_pinmux {
175 function = "blsp_spi0";
176 pins = "gpio55", "gpio56", "gpio57";
177 drive-strength = <12>;
183 drive-strength = <2>;
191 pinctrl-0 = <&spi_0_pins>;
192 pinctrl-names = "default";
194 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
197 compatible = "jedec,spi-nor";
199 spi-max-frequency = <24000000>;
202 compatible = "fixed-partitions";
203 #address-cells = <1>;
208 reg = <0x00000000 0x00040000>;
214 reg = <0x00040000 0x00020000>;
220 reg = <0x00060000 0x00060000>;
226 reg = <0x000c0000 0x00010000>;
232 reg = <0x000d0000 0x00010000>;
238 reg = <0x000e0000 0x00010000>;
244 reg = <0x000f0000 0x00080000>;
250 reg = <0x00170000 0x00010000>;
256 reg = <0x00180000 0x00010000>;
262 reg = <0x00190000 0x00010000>;
268 reg = <0x001a0000 0x00010000>;
273 compatible = "denx,fit";
275 reg = <0x001b0000 0x00e10000>;
280 reg = <0x00fc0000 0x00040000>;
288 pinctrl-0 = <&serial_pins>;
289 pinctrl-names = "default";