kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / EX2700.dts
1 /*
2  * Device Tree file for the Netgear EX2700
3  *
4  * Copyright (C) 2016 Joseph C. Lehner <joseph.c.lehner@gmail.com>
5  *
6  * This file is licensed under the terms of the GNU General Public
7  * License version 2.  This program is licensed "as is" without any
8  * warranty of any kind, whether express or implied.
9  */
10
11 /dts-v1/;
12
13 #include "mt7620a.dtsi"
14
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17
18 / {
19         compatible = "netgear,ex2700", "ralink,mt7620a-soc";
20         model = "Netgear EX2700";
21
22         chosen {
23                 bootargs = "console=ttyS0,57600";
24         };
25
26         gpio-leds {
27                 compatible = "gpio-leds";
28
29                 power_g {
30                         label = "ex2700:green:power";
31                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
32                         default-state = "on";
33                 };
34
35                 power_r {
36                         label = "ex2700:red:power";
37                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
38                 };
39
40                 device_g {
41                         label = "ex2700:green:device";
42                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
43                 };
44
45                 device_r {
46                         label = "ex2700:red:device";
47                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48                 };
49
50                 router_g {
51                         label = "ex2700:green:router";
52                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
53                 };
54
55                 router_r {
56                         label = "ex2700:red:router";
57                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
58                 };
59
60                 wps {
61                         label = "ex2700:green:wps";
62                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
63                 };
64         };
65
66         gpio-keys-polled {
67                 compatible = "gpio-keys-polled";
68                 #address-cells = <1>;
69                 #size-cells = <0>;
70                 poll-interval = <20>;
71
72                 reset {
73                         label = "reset";
74                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
75                         linux,code = <KEY_RESTART>;
76                 };
77
78                 wps {
79                         label = "wps";
80                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
81                         linux,code = <KEY_WPS_BUTTON>;
82                 };
83         };
84 };
85
86 &gpio0 {
87         status = "okay";
88 };
89
90 &gpio1 {
91         status = "okay";
92 };
93
94 &spi0 {
95         status = "okay";
96
97         m25p80@0 {
98                 #address-cells = <1>;
99                 #size-cells = <1>;
100                 compatible = "jedec,spi-nor";
101                 reg = <0>;
102                 spi-max-frequency = <10000000>;
103
104                 partition@0 {
105                         label = "u-boot";
106                         reg = <0x0 0x30000>;
107                         read-only;
108                 };
109
110                 partition@30000 {
111                         label = "u-boot-env";
112                         reg = <0x30000 0x10000>;
113                         read-only;
114                 };
115
116                 partition@40000 {
117                         label = "firmware";
118                         reg = <0x40000 0x3b0000>;
119                 };
120
121                 art: partition@3f0000 {
122                         label = "art";
123                         reg = <0x3f0000 0x10000>;
124                         read-only;
125                 };
126         };
127 };
128
129 &ethernet {
130         mtd-mac-address = <&art 0x0>;
131 };
132
133 &wmac {
134         mtd-mac-address = <&art 0x6>;
135         ralink,mtd-eeprom = <&art 0x1000>;
136 };
137
138 &pinctrl {
139         state_default: pinctrl0 {
140                 default {
141                         ralink,group = "i2c", "uartf", "spi refclk";
142                         ralink,function = "gpio";
143                 };
144         };
145 };