d03dad8b6ed13418b87939d8db4f590af565a71e
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HC5962.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
10 model = "HiWiFi HC5962";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
22 };
23
24 chosen {
25 bootargs = "console=ttyS0,115200";
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 led_status: status {
32 label = "hc5962:white:status";
33 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
34 };
35
36 system {
37 label = "hc5962:red:system";
38 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &nand {
55 status = "okay";
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 label = "u-boot";
64 reg = <0x0 0x80000>;
65 read-only;
66 };
67
68 partition@80000 {
69 label = "debug";
70 reg = <0x80000 0x80000>;
71 read-only;
72 };
73
74 factory: partition@100000 {
75 label = "factory";
76 reg = <0x100000 0x40000>;
77 read-only;
78 };
79
80 partition@140000 {
81 label = "kernel";
82 reg = <0x140000 0x200000>;
83 };
84
85 partition@340000 {
86 label = "ubi";
87 reg = <0x340000 0x1E00000>;
88 };
89
90 partition@2140000 {
91 label = "hw_panic";
92 reg = <0x2140000 0x80000>;
93 read-only;
94 };
95
96 partition@21c0000 {
97 label = "bdinfo";
98 reg = <0x21c0000 0x80000>;
99 read-only;
100 };
101
102 partition@2240000 {
103 label = "backup";
104 reg = <0x2240000 0x80000>;
105 read-only;
106 };
107
108 partition@22c0000 {
109 label = "overly";
110 reg = <0x22c0000 0x1000000>;
111 };
112
113 partition@32c0000 {
114 label = "firmware_backup";
115 reg = <0x32c0000 0x2000000>;
116 };
117
118 partition@52c0000 {
119 label = "oem";
120 reg = <0x52c0000 0x200000>;
121 };
122
123 partition@54c0000 {
124 label = "opt";
125 reg = <0x54c0000 0x2ac0000>;
126 };
127 };
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &pcie0 {
135 mt76@0,0 {
136 reg = <0x0000 0 0 0 0>;
137 mediatek,mtd-eeprom = <&factory 0x0000>;
138 ieee80211-freq-limit = <2400000 2500000>;
139 };
140 };
141
142 &pcie1 {
143 mt76@0,0 {
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
147 };
148 };
149
150 &pinctrl {
151 state_default: pinctrl0 {
152 gpio {
153 ralink,group = "uart3", "jtag";
154 ralink,function = "gpio";
155 };
156 };
157 };