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