ipq806x: ipq4019: dts: move ap-dk01 tcsr nodes to dtsi
[openwrt/staging/jogo.git] / target / linux / ipq806x / files-4.9 / arch / arm / boot / dts / qcom-ipq4019-nbg6617.dts
1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 *
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
6 *
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 *
15 */
16
17 #include "qcom-ipq4019-ap.dk01.1.dtsi"
18 #include "qcom-ipq4019-bus.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21
22 / {
23 model = "ZyXEL NBG6617";
24 compatible = "zyxel,nbg6617", "qcom,ipq4019";
25
26 memory {
27 device_type = "memory";
28 reg = <0x80000000 0x10000000>;
29 };
30
31 aliases {
32 led-boot = &power;
33 led-failsafe = &power;
34 led-running = &power;
35 led-upgrade = &power;
36 };
37
38 reserved-memory {
39 #address-cells = <0x1>;
40 #size-cells = <0x1>;
41 ranges;
42
43 rsvd1@87000000 {
44 reg = <0x87000000 0x0500000>;
45 no-map;
46 };
47
48 wifi_dump@87500000 {
49 reg = <0x87500000 0x600000>;
50 no-map;
51 };
52
53 rsvd2@87B00000 {
54 reg = <0x87b00000 0x500000>;
55 no-map;
56 };
57 };
58
59 soc {
60 pinctrl@1000000 {
61 led_pinmux {
62 mux {
63 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
64 drive-strength = <0x8>;
65 bias-pull-up;
66 output-high;
67 };
68 };
69 };
70
71 counter@4a1000 {
72 compatible = "qcom,qca-gcnt";
73 reg = <0x4a1000 0x4>;
74 };
75
76 mdio@90000 {
77 status = "okay";
78 };
79
80 ess-switch@c000000 {
81 status = "okay";
82 };
83
84 ess-psgmii@98000 {
85 status = "okay";
86 };
87
88 edma@c080000 {
89 status = "okay";
90 };
91
92 wifi@a000000 {
93 status = "okay";
94 };
95
96 wifi@a800000 {
97 status = "okay";
98 };
99 };
100
101 gpio-keys {
102 compatible = "gpio-keys";
103
104 wlan {
105 label = "wlan";
106 gpios = <&tlmm 0x2 GPIO_ACTIVE_HIGH>;
107 linux,code = <KEY_RFKILL>;
108 };
109
110 wps {
111 label = "wps";
112 gpios = <&tlmm 0x3f GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_WPS_BUTTON>;
114 };
115
116 reset {
117 label = "reset";
118 gpios = <&tlmm 0x4 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_RESTART>;
120 };
121 };
122
123 gpio-leds {
124 compatible = "gpio-leds";
125
126 power: power {
127 label = "nbg6617:green:power";
128 gpios = <&tlmm 0x3 GPIO_ACTIVE_HIGH>;
129 };
130
131 wps {
132 label = "nbg6617:green:wps";
133 gpios = <&tlmm 0x1 GPIO_ACTIVE_HIGH>;
134 };
135
136 wlan2G {
137 label = "nbg6617:green:wlan2G";
138 gpios = <&tlmm 0x3a GPIO_ACTIVE_HIGH>;
139 };
140
141 wlan5G {
142 label = "nbg6617:green:wlan5G";
143 gpios = <&tlmm 0x5 GPIO_ACTIVE_HIGH>;
144 };
145 };
146 };
147
148
149 &spi_0 { /* BLSP1 QUP1 */
150 status = "ok";
151
152 mx25l25635e@0 {
153 status = "disabled";
154 };
155
156 n25q128a11@0 {
157 status = "okay";
158
159 partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 partition0@0 {
165 label = "all";
166 reg = <0x00000000 0x08000000>;
167 read-only; /* for now */
168 };
169 };
170
171 };
172 };