a00dee7f27a5fda5e36101580c207533a779a691
[openwrt/staging/chunkeey.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
72 gpio-keys {
73 compatible = "gpio-keys";
74
75 wlan {
76 label = "wlan";
77 gpios = <&tlmm 0x2 GPIO_ACTIVE_HIGH>;
78 linux,code = <KEY_RFKILL>;
79 };
80
81 wps {
82 label = "wps";
83 gpios = <&tlmm 0x3f GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_WPS_BUTTON>;
85 };
86
87 reset {
88 label = "reset";
89 gpios = <&tlmm 0x4 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
91 };
92 };
93
94 gpio-leds {
95 compatible = "gpio-leds";
96
97 power: power {
98 label = "nbg6617:green:power";
99 gpios = <&tlmm 0x3 GPIO_ACTIVE_HIGH>;
100 };
101
102 wps {
103 label = "nbg6617:green:wps";
104 gpios = <&tlmm 0x1 GPIO_ACTIVE_HIGH>;
105 };
106
107 wlan2G {
108 label = "nbg6617:green:wlan2G";
109 gpios = <&tlmm 0x3a GPIO_ACTIVE_HIGH>;
110 };
111
112 wlan5G {
113 label = "nbg6617:green:wlan5G";
114 gpios = <&tlmm 0x5 GPIO_ACTIVE_HIGH>;
115 };
116 };
117 };
118
119 &spi_0 { /* BLSP1 QUP1 */
120 n25q128a11@0 {
121 status = "okay";
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition0@0 {
129 label = "all";
130 reg = <0x00000000 0x08000000>;
131 read-only; /* for now */
132 };
133 };
134 };
135 };