b7b15137ec7f330a42253136fbd6d2e8dd997692
[openwrt/staging/lynxis.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 poll-interval = <20>;
34
35 reset {
36 label = "reset";
37 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41
42 gpio-leds {
43 compatible = "gpio-leds";
44
45 led_run: run {
46 label = "ew1200:green:run";
47 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
48 };
49
50 usb {
51 label = "ew1200:green:usb";
52 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &sdhci {
58 status = "okay";
59 };
60
61 &spi0 {
62 status = "okay";
63
64 m25p80@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <10000000>;
68 m25p,chunked-io = <32>;
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 = "u-boot-env";
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 label = "firmware";
95 reg = <0x50000 0xfb0000>;
96 };
97 };
98 };
99 };
100
101 &pcie {
102 status = "okay";
103 };
104
105 &pcie0 {
106 mt76@0,0 {
107 reg = <0x0000 0 0 0 0>;
108 mediatek,mtd-eeprom = <&factory 0x8000>;
109 ieee80211-freq-limit = <5000000 6000000>;
110 };
111 };
112
113 &pcie1 {
114 mt76@0,0 {
115 reg = <0x0000 0 0 0 0>;
116 mediatek,mtd-eeprom = <&factory 0x0000>;
117 ieee80211-freq-limit = <2400000 2500000>;
118 };
119 };
120
121 &ethernet {
122 mtd-mac-address = <&factory 0xe000>;
123 };
124
125 &pinctrl {
126 state_default: pinctrl0 {
127 gpio {
128 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
129 ralink,function = "gpio";
130 };
131 };
132 };