b318e6808bc7b838226d5b6ae2ea4b28406e8bff
[openwrt/openwrt.git] / target / linux / ramips / dts / FIREWRT.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
9 model = "Firefly FireWRT";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,57600";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 power {
24 label = "firewrt:green:power";
25 gpios = <&gpio0 22 1>;
26 };
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
33 poll-interval = <20>;
34
35 wps {
36 label = "wps";
37 gpios = <&gpio0 18 1>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40
41 power {
42 label = "power";
43 gpios = <&gpio0 23 1>;
44 linux,code = <KEY_POWER>;
45 };
46 };
47 };
48
49 &sdhci {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 linux,modalias = "m25p80";
62 spi-max-frequency = <10000000>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 partition@50000 {
83 label = "firmware";
84 reg = <0x50000 0xfb0000>;
85 };
86 };
87 };
88
89 &pcie {
90 status = "okay";
91
92 pcie0 {
93 mt76@0,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&factory 0x8000>;
97 mediatek,2ghz = <0>;
98 };
99 };
100
101 pcie1 {
102 mt76@1,0 {
103 reg = <0x0000 0 0 0 0>;
104 device_type = "pci";
105 mediatek,mtd-eeprom = <&factory 0x0000>;
106 mediatek,5ghz = <0>;
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0xe000>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 gpio {
118 ralink,group = "wdt", "rgmii2";
119 ralink,function = "gpio";
120 };
121 };
122 };