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/leds/common.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
25 model = "Netgear EX61X0v2";
26 compatible = "netgear,ex61x0v2";
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x1953000 0x1000>;
42 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 compatible = "qcom,tcsr";
47 reg = <0x1957000 0x100>;
48 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
57 led-boot = &power_amber;
58 led-failsafe = &power_amber;
59 led-running = &power_green;
60 led-upgrade = &power_amber;
61 label-mac-device = &gmac;
65 compatible = "gpio-keys";
69 gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_WPS_BUTTON>;
75 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
81 compatible = "spi-gpio";
85 sck-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
86 mosi-gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
87 num-chipselects = <0>;
89 led_gpio: led_gpio@0 {
90 compatible = "fairchild,74hc595";
94 registers-number = <1>;
95 spi-max-frequency = <1000000>;
100 compatible = "gpio-leds";
102 power_amber: power_amber {
103 function = LED_FUNCTION_POWER;
104 color = <LED_COLOR_ID_AMBER>;
105 gpios = <&led_gpio 7 GPIO_ACTIVE_LOW>;
108 power_green: power_green {
109 function = LED_FUNCTION_POWER;
110 color = <LED_COLOR_ID_GREEN>;
111 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
115 label = "blue:right";
116 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
121 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
125 label = "green:client";
126 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
130 label = "red:client";
131 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
135 label = "green:router";
136 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
140 label = "red:router";
141 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
145 function = LED_FUNCTION_WPS;
146 color = <LED_COLOR_ID_GREEN>;
147 gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
161 serial_pins: serial_pinmux {
163 pins = "gpio60", "gpio61";
164 function = "blsp_uart0";
169 spi_0_pins: spi_0_pinmux {
171 function = "blsp_spi0";
172 pins = "gpio55", "gpio56", "gpio57";
173 drive-strength = <12>;
179 drive-strength = <2>;
187 pinctrl-0 = <&spi_0_pins>;
188 pinctrl-names = "default";
190 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
193 compatible = "jedec,spi-nor";
195 spi-max-frequency = <45000000>;
198 compatible = "fixed-partitions";
199 #address-cells = <1>;
204 reg = <0x00000000 0x00040000>;
210 reg = <0x00040000 0x00020000>;
216 reg = <0x00060000 0x00060000>;
222 reg = <0x000c0000 0x00010000>;
228 reg = <0x000d0000 0x00010000>;
234 reg = <0x000e0000 0x00010000>;
240 reg = <0x000f0000 0x00080000>;
246 reg = <0x00170000 0x00010000>;
250 compatible = "fixed-layout";
251 #address-cells = <1>;
254 precal_art_1000: precal@1000 {
255 reg = <0x1000 0x2f20>;
258 precal_art_5000: precal@5000 {
259 reg = <0x5000 0x2f20>;
266 reg = <0x00180000 0x00010000>;
272 reg = <0x00190000 0x00010000>;
278 reg = <0x001a0000 0x00010000>;
282 compatible = "fixed-layout";
283 #address-cells = <1>;
286 macaddr_dnidata_0: macaddr@0 {
290 macaddr_dnidata_c: macaddr@c {
297 compatible = "denx,fit";
299 reg = <0x001b0000 0x00e10000>;
304 reg = <0x00fc0000 0x00040000>;
312 pinctrl-0 = <&serial_pins>;
313 pinctrl-names = "default";
327 nvmem-cell-names = "pre-calibration", "mac-address";
328 nvmem-cells = <&precal_art_1000>, <&macaddr_dnidata_0>;
333 nvmem-cell-names = "pre-calibration", "mac-address";
334 nvmem-cells = <&precal_art_5000>, <&macaddr_dnidata_c>;