ramips: specify "firmware" partition format
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N12-PLUS.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asus,rt-n12p", "ralink,mt7620n-soc";
10 model = "Asus RT-N12+";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 gpio-leds {
24 compatible = "gpio-leds";
25
26 wan {
27 label = "rt-n12p:green:wan";
28 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
29 };
30
31 lan {
32 label = "rt-n12p:green:lan";
33 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
34 };
35
36 led_power: power {
37 label = "rt-n12p:green:power";
38 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
39 };
40
41 air {
42 label = "rt-n12p:green:air";
43 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 gpio-keys-polled {
48 compatible = "gpio-keys-polled";
49 poll-interval = <20>;
50
51 reset {
52 label = "reset";
53 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
54 linux,code = <KEY_RESTART>;
55 };
56 };
57 };
58
59 &gpio1 {
60 status = "okay";
61 };
62
63 &gpio2 {
64 status = "okay";
65 };
66
67 &gpio3 {
68 status = "okay";
69 };
70
71 &spi0 {
72 status = "okay";
73
74 m25p80@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <10000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x0 0x30000>;
87 read-only;
88 };
89
90 partition@30000 {
91 label = "u-boot-env";
92 reg = <0x30000 0x10000>;
93 read-only;
94 };
95
96 factory: partition@40000 {
97 label = "factory";
98 reg = <0x40000 0x10000>;
99 read-only;
100 };
101
102 partition@50000 {
103 compatible = "denx,uimage";
104 label = "firmware";
105 reg = <0x50000 0xfb0000>;
106 };
107 };
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0x4>;
113 mediatek,portmap = "wllll";
114 };
115
116 &wmac {
117 ralink,mtd-eeprom = <&factory 0>;
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 default {
123 ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
124 ralink,function = "gpio";
125 };
126 };
127 };