ramips: specify "firmware" partition format
[oweals/openwrt.git] / target / linux / ramips / dts / ATP-52B.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "argus,atp-52b", "ralink,rt3052-soc";
10         model = "Argus ATP-52B";
11
12         aliases {
13                 led-boot = &led_run;
14                 led-failsafe = &led_run;
15                 led-running = &led_run;
16                 led-upgrade = &led_run;
17         };
18
19         cfi@1f000000 {
20                 compatible = "cfi-flash";
21                 reg = <0x1f000000 0x800000>;
22                 bank-width = <2>;
23                 device-width = <2>;
24
25                 partitions {
26                         compatible = "fixed-partitions";
27                         #address-cells = <1>;
28                         #size-cells = <1>;
29
30                         partition@0 {
31                                 label = "bootloader";
32                                 reg = <0x0 0x30000>;
33                                 read-only;
34                         };
35
36                         partition@30000 {
37                                 label = "config";
38                                 reg = <0x30000 0x10000>;
39                         };
40
41                         factory: partition@40000 {
42                                 label = "factory";
43                                 reg = <0x40000 0x10000>;
44                         };
45
46                         partition@50000 {
47                                 compatible = "denx,uimage";
48                                 label = "firmware";
49                                 reg = <0x50000 0x7a0000>;
50                         };
51                 };
52         };
53
54         gpio-leds {
55                 compatible = "gpio-leds";
56
57                 led_run: run {
58                         label = "atp-52b:green:run";
59                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
60                 };
61
62                 net {
63                         label = "atp-52b:amber:net";
64                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
65                 };
66         };
67
68         gpio-keys-polled {
69                 compatible = "gpio-keys-polled";
70                 poll-interval = <20>;
71
72                 wps {
73                         label = "wps";
74                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
75                         linux,code = <KEY_WPS_BUTTON>;
76                 };
77
78                 reset {
79                         label = "reset";
80                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
81                         linux,code = <KEY_RESTART>;
82                 };
83         };
84 };
85
86 &pinctrl {
87         state_default: pinctrl0 {
88                 gpio {
89                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
90                         ralink,function = "gpio";
91                 };
92         };
93 };
94
95
96 &ethernet {
97         mtd-mac-address = <&factory 0x4>;
98 };
99
100 &esw {
101         mediatek,portmap = <0x3e>;
102 };
103
104 &wmac {
105         ralink,mtd-eeprom = <&factory 0>;
106 };
107
108 &otg {
109         status = "okay";
110 };