ramips: drop redundant chosen/bootargs
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_netgear_ex3x00_ex61xx.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2 #include <dt-bindings/input/input.h>
3
4 #include "mt7620a.dtsi"
5
6 / {
7 keys {
8 compatible = "gpio-keys";
9
10 reset {
11 label = "reset";
12 gpios = <&gpio2 26 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 &gpio0 {
25 status = "okay";
26 };
27
28 &gpio2 {
29 status = "okay";
30 };
31
32 &spi0 {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <50000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "config";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61 };
62
63 partition@50000 {
64 compatible = "denx,uimage";
65 label = "firmware";
66 reg = <0x50000 0x790000>;
67 };
68
69 partition@7e0000 {
70 label = "board_data";
71 reg = <0x7e0000 0x10000>;
72 read-only;
73 };
74
75 partition@7f0000 {
76 label = "nvram";
77 reg = <0x7f0000 0x10000>;
78 read-only;
79 };
80 };
81 };
82 };
83
84 &pcie {
85 status = "okay";
86 };
87
88 &pcie0 {
89 mt76@0,0 {
90 reg = <0x0000 0 0 0 0>;
91 mediatek,mtd-eeprom = <&factory 0x8000>;
92 ieee80211-freq-limit = <5000000 6000000>;
93 };
94 };
95
96 &ethernet {
97 mtd-mac-address = <&factory 0x28>;
98 };
99
100 &wmac {
101 ralink,mtd-eeprom = <&factory 0x0>;
102 };
103
104 &state_default {
105 default {
106 groups = "i2c", "rgmii2", "spi refclk";
107 function = "gpio";
108 };
109 };