657a9140cda3b660059cbe6f12d93fdd5778f45f
[openwrt/openwrt.git] / target / linux / ramips / dts / EW1200.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 = "afoundry,ew1200", "mediatek,mt7621-soc";
10 model = "EW1200";
11
12 aliases {
13 led-status = &led_run;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 palmbus: palmbus@1E000000 {
26 i2c@900 {
27 status = "okay";
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43
44 gpio-leds {
45 compatible = "gpio-leds";
46
47 led_run: run {
48 label = "ew1200:green:run";
49 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
50 };
51
52 usb {
53 label = "ew1200:green:usb";
54 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &sdhci {
60 status = "okay";
61 };
62
63 &spi0 {
64 status = "okay";
65
66 m25p80@0 {
67 #address-cells = <1>;
68 #size-cells = <1>;
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <10000000>;
72 m25p,chunked-io = <32>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 factory: partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90 };
91
92 partition@50000 {
93 label = "firmware";
94 reg = <0x50000 0xfb0000>;
95 };
96 };
97 };
98
99 &pcie {
100 status = "okay";
101 };
102
103 &pcie0 {
104 mt76@0,0 {
105 reg = <0x0000 0 0 0 0>;
106 mediatek,mtd-eeprom = <&factory 0x8000>;
107 ieee80211-freq-limit = <5000000 6000000>;
108 };
109 };
110
111 &pcie1 {
112 mt76@0,0 {
113 reg = <0x0000 0 0 0 0>;
114 mediatek,mtd-eeprom = <&factory 0x0000>;
115 ieee80211-freq-limit = <2400000 2500000>;
116 };
117 };
118
119 &ethernet {
120 mtd-mac-address = <&factory 0xe000>;
121 };
122
123 &pinctrl {
124 state_default: pinctrl0 {
125 gpio {
126 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
127 ralink,function = "gpio";
128 };
129 };
130 };