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