ramips: specify "firmware" partition format
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HC5861B.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "hiwifi,hc5861b", "mediatek,mt7628an-soc";
10 model = "HiWiFi HC5861B";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "hc5861b:green:system";
33 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
34 };
35 wlan2g {
36 label = "hc5861b:green:wlan2g";
37 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 gpio-keys {
42 compatible = "gpio-keys-polled";
43 poll-interval = <20>;
44
45 reset {
46 label = "reset";
47 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50 };
51 };
52
53 &pinctrl {
54 state_default: pinctrl0 {
55 gpio {
56 ralink,group = "refclk", "wdt", "wled_an";
57 ralink,function = "gpio";
58 };
59 };
60 };
61
62 &spi0 {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <10000000>;
69 m25p,chunked-io = <32>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "hw_panic";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0xf70000>;
98 };
99
100 partition@fc0000 {
101 label = "oem";
102 reg = <0xfc0000 0x20000>;
103 read-only;
104 };
105
106 bdinfo: partition@fe0000 {
107 label = "bdinfo";
108 reg = <0xfe0000 0x10000>;
109 read-only;
110 };
111
112 partition@ff0000 {
113 label = "backup";
114 reg = <0xff0000 0x10000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &ethernet {
122 mtd-mac-address = <&factory 0x4>;
123 };
124
125 &wmac {
126 status = "okay";
127 };
128
129 &pcie {
130 status = "okay";
131 };
132
133 &pcie0 {
134 wifi@0,0 {
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&factory 0x8000>;
137 mtd-mac-address = <&factory 0x2e>;
138 ieee80211-freq-limit = <5000000 6000000>;
139
140 led {
141 led-sources = <2>;
142 led-active-low;
143 };
144 };
145 };