02481e5e5575b860196226feb5b32dab9c1225e5
[openwrt/staging/jow.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 &spi0 {
28 status = "okay";
29
30 flash@0 {
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <1000000>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x0 0x30000>;
43 read-only;
44 };
45
46 partition@30000 {
47 label = "u-boot-env";
48 reg = <0x30000 0x10000>;
49 read-only;
50 };
51
52 factory: partition@40000 {
53 label = "factory";
54 reg = <0x40000 0x10000>;
55 read-only;
56
57 nvmem-layout {
58 compatible = "fixed-layout";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 eeprom_factory_8000: eeprom@8000 {
63 reg = <0x8000 0x200>;
64 };
65 };
66 };
67
68 partition@50000 {
69 compatible = "denx,uimage";
70 label = "firmware";
71 reg = <0x50000 0x7b0000>;
72 };
73 };
74 };
75 };
76
77 &ethernet {
78 pinctrl-names = "default";
79 pinctrl-0 = <&ephy_pins>;
80
81 mediatek,portmap = "llllw";
82 };
83
84 &sdhci {
85 status = "okay";
86 };
87
88 &pcie {
89 status = "okay";
90 };
91
92 &pcie0 {
93 wifi@0,0 {
94 reg = <0x0000 0 0 0 0>;
95 nvmem-cells = <&eeprom_factory_8000>;
96 nvmem-cell-names = "eeprom";
97 ieee80211-freq-limit = <5000000 6000000>;
98 };
99 };