ramips: move dts-v1 statement to top-level DTSI files
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_ralink_mt7620a-mt7610e-evb.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "ralink,mt7620a-mt7610e-evb", "ralink,mt7620a-soc";
8 model = "Ralink MT7620A evaluation board";
9
10 keys {
11 compatible = "gpio-keys";
12
13 wps {
14 label = "wps";
15 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
16 linux,code = <BTN_0>;
17 };
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
22 linux,code = <BTN_1>;
23 };
24 };
25 };
26
27 &gpio0 {
28 status = "okay";
29 };
30
31 &spi0 {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <1000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
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 compatible = "denx,uimage";
64 label = "firmware";
65 reg = <0x50000 0x7b0000>;
66 };
67 };
68 };
69 };
70
71 &ethernet {
72 pinctrl-names = "default";
73 pinctrl-0 = <&ephy_pins>;
74
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 };
89
90 &pcie0 {
91 wifi@0,0 {
92 reg = <0x0000 0 0 0 0>;
93 mediatek,mtd-eeprom = <&factory 0x8000>;
94 ieee80211-freq-limit = <5000000 6000000>;
95 };
96 };