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