ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WLI-TX4-AG300N.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 #address-cells = <1>;
10 #size-cells = <1>;
11 compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
12 model = "Buffalo WLI-TX4-AG300N";
13
14 aliases {
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 cfi@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
24 bank-width = <2>;
25 device-width = <2>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "uboot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "uboot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 label = "factory";
46 reg = <0x40000 0x10000>;
47 read-only;
48 };
49
50 partition@50000 {
51 compatible = "denx,uimage";
52 label = "firmware";
53 reg = <0x50000 0x3b0000>;
54 };
55 };
56 };
57
58 gpio-keys-polled {
59 compatible = "gpio-keys-polled";
60 poll-interval = <100>;
61
62 wps {
63 label = "wps";
64 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_WPS_BUTTON>;
66 };
67
68 bandwidth {
69 label = "bandwidth";
70 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
71 linux,code = <KEY_RESTART>;
72 };
73
74 reset {
75 label = "reset";
76 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
78 };
79 };
80
81 gpio-leds {
82 compatible = "gpio-leds";
83
84 diag {
85 label = "wli-tx4-ag300n:red:diag";
86 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
87 };
88
89 led_power: power {
90 label = "wli-tx4-ag300n:blue:power";
91 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
92 };
93
94 security {
95 label = "wli-tx4-ag300n:blue:security";
96 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
97 };
98 };
99 };
100
101 &gpio0 {
102 status = "okay";
103 };
104
105 &ethernet {
106 status = "okay";
107 mtd-mac-address = <&factory 0x4>;
108
109 port@0 {
110 mediatek,fixed-link = <100 1 1 1>;
111 };
112
113 mdio-bus {
114 status = "okay";
115
116 phy0: ethernet-phy@0 {
117 phy-mode = "mii";
118 reg = <0>;
119 };
120 };
121 };
122
123 &wmac {
124 ralink,mtd-eeprom = <&factory 0>;
125 };