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";
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>;
64 led-boot = &power_amber;
65 led-failsafe = &power_amber;
66 led-running = &power_green;
67 led-upgrade = &power_amber;
68 label-mac-device = &gmac;
72 compatible = "gpio-keys";
76 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
82 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
88 compatible = "spi-gpio";
92 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
93 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
94 num-chipselects = <0>;
96 led_gpio: led_gpio@0 {
97 compatible = "fairchild,74hc595";
101 registers-number = <1>;
102 spi-max-frequency = <1000000>;
107 compatible = "gpio-leds";
109 power_amber: power_amber {
110 label = "amber:power";
111 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
114 power_green: power_green {
115 label = "green:power";
116 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
120 label = "blue:right";
121 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
126 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
130 label = "green:client";
131 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
135 label = "red:client";
136 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
140 label = "green:router";
141 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
145 label = "red:router";
146 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
151 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
157 serial_pins: serial_pinmux {
159 pins = "gpio60", "gpio61";
160 function = "blsp_uart0";
165 spi_0_pins: spi_0_pinmux {
167 function = "blsp_spi0";
168 pins = "gpio55", "gpio56", "gpio57";
169 drive-strength = <12>;
175 drive-strength = <2>;
183 pinctrl-0 = <&spi_0_pins>;
184 pinctrl-names = "default";
186 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
189 compatible = "jedec,spi-nor";
191 spi-max-frequency = <45000000>;
194 compatible = "fixed-partitions";
195 #address-cells = <1>;
200 reg = <0x00000000 0x00040000>;
206 reg = <0x00040000 0x00020000>;
212 reg = <0x00060000 0x00060000>;
218 reg = <0x000c0000 0x00010000>;
224 reg = <0x000d0000 0x00010000>;
230 reg = <0x000e0000 0x00010000>;
236 reg = <0x000f0000 0x00080000>;
242 reg = <0x00170000 0x00010000>;
243 compatible = "nvmem-cells";
245 #address-cells = <1>;
248 precal_art_1000: precal@1000 {
249 reg = <0x1000 0x2f20>;
252 precal_art_5000: precal@5000 {
253 reg = <0x5000 0x2f20>;
259 reg = <0x00180000 0x00010000>;
265 reg = <0x00190000 0x00010000>;
270 compatible = "nvmem-cells";
272 reg = <0x001a0000 0x00010000>;
275 #address-cells = <1>;
278 macaddr_dnidata_0: macaddr@0 {
282 macaddr_dnidata_c: macaddr@c {
288 compatible = "denx,fit";
290 reg = <0x001b0000 0x00e10000>;
295 reg = <0x00fc0000 0x00040000>;
303 pinctrl-0 = <&serial_pins>;
304 pinctrl-names = "default";
318 nvmem-cell-names = "pre-calibration", "mac-address";
319 nvmem-cells = <&precal_art_1000>, <&macaddr_dnidata_0>;
324 nvmem-cell-names = "pre-calibration", "mac-address";
325 nvmem-cells = <&precal_art_5000>, <&macaddr_dnidata_c>;