ramips: do not enable unused GPIO controllers
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_dlink_dwr-116-a1.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "dlink,dwr-116-a1", "ralink,mt7620n-soc";
8 model = "D-Link DWR-116 A1/A2";
9
10 aliases {
11 led-boot = &led_status;
12 led-failsafe = &led_status;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_status: status {
37 label = "green:status";
38 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
39 };
40
41 wifi {
42 label = "green:wifi";
43 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };
47
48 &gpio3 {
49 status = "okay";
50 };
51
52 &spi0 {
53 status = "okay";
54
55 flash@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <50000000>;
59
60 partitions {
61 compatible = "fixed-partitions";
62 #address-cells = <1>;
63 #size-cells = <1>;
64
65 partition@0 {
66 label = "jboot";
67 reg = <0x0 0x10000>;
68 read-only;
69 };
70
71 partition@10000 {
72 compatible = "amit,jimage";
73 label = "firmware";
74 reg = <0x10000 0x7e0000>;
75 };
76
77 config: partition@7f0000 {
78 label = "config";
79 reg = <0x7f0000 0x10000>;
80 read-only;
81 };
82 };
83 };
84 };
85
86 &ehci {
87 status = "okay";
88 };
89
90 &ohci {
91 status = "okay";
92 };
93
94 &state_default {
95 default {
96 groups = "i2c", "wled";
97 function = "gpio";
98 };
99 };
100
101 &ethernet {
102 pinctrl-names = "default";
103 pinctrl-0 = <&ephy_pins>;
104
105 mediatek,portmap = "llllw";
106 };