ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / MT7620a_MT7610e.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
9 model = "Ralink MT7620A evaluation board";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 wps {
18 label = "wps";
19 gpios = <&gpio0 12 1>;
20 linux,code = <BTN_0>;
21 };
22
23 reset {
24 label = "reset";
25 gpios = <&gpio0 13 1>;
26 linux,code = <BTN_1>;
27 };
28 };
29 };
30
31 &gpio0 {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 m25p80@0 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 linux,modalias = "m25p80", "en25q64";
44 spi-max-frequency = <1000000>;
45
46 partition@0 {
47 label = "u-boot";
48 reg = <0x0 0x30000>;
49 read-only;
50 };
51
52 partition@30000 {
53 label = "u-boot-env";
54 reg = <0x30000 0x10000>;
55 read-only;
56 };
57
58 factory: partition@40000 {
59 label = "factory";
60 reg = <0x40000 0x10000>;
61 read-only;
62 };
63
64 partition@50000 {
65 label = "firmware";
66 reg = <0x50000 0x7b0000>;
67 };
68 };
69 };
70
71 &ethernet {
72 status = "okay";
73 pinctrl-names = "default";
74 pinctrl-0 = <&ephy_pins>;
75 mediatek,portmap = "llllw";
76 };
77
78 &gsw {
79 mediatek,port4 = "ephy";
80 };
81
82 &sdhci {
83 status = "okay";
84 };
85
86 &pcie {
87 status = "okay";
88 };