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