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