ramips: correct Netgear WNDR3700v5 button flag
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_netgear_wndr3700-v5.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include "mt7621_netgear_sercomm.dtsi"
5
6 / {
7 compatible = "netgear,wndr3700-v5", "mediatek,mt7621-soc";
8 model = "Netgear WNDR3700 v5";
9
10 keys {
11 compatible = "gpio-keys";
12
13 wps {
14 label = "wps";
15 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_WPS_BUTTON>;
17 };
18
19 wifi {
20 label = "wifi";
21 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RFKILL>;
23 };
24
25 reset {
26 label = "reset";
27 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31 };
32
33 &leds {
34 wps {
35 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
36 label = "wndr3700-v5:green:wps";
37 };
38 };
39
40 &led_power {
41 label = "wndr3700-v5:green:power";
42 };
43
44 &led_usb {
45 label = "wndr3700-v5:green:usb";
46 };
47
48 &led_internet {
49 label = "wndr3700-v5:green:wan";
50 };
51
52 &led_wifi {
53 label = "wndr3700-v5:green:wifi";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 factory: partition@f30000 {
82 label = "factory";
83 reg = <0xf30000 0x10000>;
84 read-only;
85 };
86
87 partition@50000 {
88 compatible = "denx,uimage";
89 label = "firmware";
90 reg = <0x50000 0xee0000>;
91 };
92 };
93 };
94 };