ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_netgear_ex2700_wn3000rp-v3.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 keys {
8 compatible = "gpio-keys";
9
10 reset {
11 label = "reset";
12 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
13 linux,code = <KEY_RESTART>;
14 };
15
16 wps {
17 label = "wps";
18 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_WPS_BUTTON>;
20 };
21 };
22 };
23
24 &gpio1 {
25 status = "okay";
26 };
27
28 &spi0 {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <10000000>;
35
36 partitions: partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40 };
41 };
42 };
43
44 &ethernet {
45 mtd-mac-address = <&art 0x0>;
46 };
47
48 &wmac {
49 ralink,mtd-eeprom = <&art 0x1000>;
50 mtd-mac-address = <&art 0x6>;
51 };
52
53 &state_default {
54 default {
55 groups = "i2c", "uartf", "spi refclk";
56 function = "gpio";
57 };
58 };