ramips: drop m25p,chunked-io from dts
[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 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 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
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "hw_panic";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x50000 0xf70000>;
97 };
98
99 partition@fc0000 {
100 label = "oem";
101 reg = <0xfc0000 0x20000>;
102 read-only;
103 };
104
105 bdinfo: partition@fe0000 {
106 label = "bdinfo";
107 reg = <0xfe0000 0x10000>;
108 read-only;
109 };
110
111 partition@ff0000 {
112 label = "backup";
113 reg = <0xff0000 0x10000>;
114 read-only;
115 };
116 };
117 };
118 };
119
120 &ethernet {
121 mtd-mac-address = <&factory 0x4>;
122 };
123
124 &wmac {
125 status = "okay";
126 };
127
128 &pcie {
129 status = "okay";
130 };
131
132 &pcie0 {
133 wifi@0,0 {
134 reg = <0x0000 0 0 0 0>;
135 mediatek,mtd-eeprom = <&factory 0x8000>;
136 mtd-mac-address = <&factory 0x2e>;
137 ieee80211-freq-limit = <5000000 6000000>;
138
139 led {
140 led-sources = <2>;
141 led-active-low;
142 };
143 };
144 };