0e0f066518d1dee3268305c90612299fbaf60311
[oweals/openwrt.git] / target / linux / ramips / dts / TEW-714TRU.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "TEW-714TRU", "ralink,rt5350-soc";
7         model = "TRENDnet TEW714TRU";
8
9         gpio-leds {
10                 compatible = "gpio-leds";
11
12                 usb {
13                         label = "tew-714tru:red:usb";
14                         gpios = <&gpio0 9 1>;
15                 };
16
17                 wifi {
18                         label = "tew-714tru:green:wifi";
19                         gpios = <&gpio0 13 1>;
20                 };
21         };
22
23         gpio-keys-polled {
24                 compatible = "gpio-keys-polled";
25                 #address-cells = <1>;
26                 #size-cells = <0>;
27                 poll-interval = <20>;
28
29                 reset {
30                         label = "reset";
31                         gpios = <&gpio0 10 1>;
32                         linux,code = <0x198>;
33                 };
34
35                 wps {
36                         label = "wps";
37                         gpios = <&gpio0 0 1>;
38                         linux,code = <0x211>;
39                 };
40         };
41
42         gpio_export {
43                 compatible = "gpio-export";
44                 #size-cells = <0>;
45
46                 repeater {
47                         gpio-export,name = "repeater_switch";
48                         gpios = <&gpio0 7 0>;
49                 };
50
51                 wisp {
52                         gpio-export,name = "wisp_switch";
53                         gpios = <&gpio0 12 0>;
54                 };
55         };
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                 linux,modalias = "m25p80", "s25fl064k";
67                 spi-max-frequency = <10000000>;
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 0x7b0000>;
90                 };
91         };
92 };
93
94 &pinctrl {
95         state_default: pinctrl0 {
96                 gpio {
97                         ralink,group = "i2c", "jtag", "uartf";
98                         ralink,function = "gpio";
99                 };
100         };
101 };
102
103 &ethernet {
104         mtd-mac-address = <&factory 0x4>;
105 };
106
107 &esw {
108         mediatek,portmap = <0x1>;
109         mediatek,portdisable = <0x3e>;
110 };
111
112 &wmac {
113         ralink,mtd-eeprom = <&factory 0>;
114 };
115
116 &ehci {
117         status = "okay";
118 };
119
120 &ohci {
121         status = "okay";
122 };