Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / TEW-714TRU.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "TEW-714TRU", "ralink,rt5350-soc";
9         model = "TRENDnet TEW714TRU";
10
11         gpio-leds {
12                 compatible = "gpio-leds";
13
14                 usb {
15                         label = "tew-714tru:red:usb";
16                         gpios = <&gpio0 9 1>;
17                 };
18
19                 wifi {
20                         label = "tew-714tru:green:wifi";
21                         gpios = <&gpio0 13 1>;
22                 };
23         };
24
25         gpio-keys-polled {
26                 compatible = "gpio-keys-polled";
27                 #address-cells = <1>;
28                 #size-cells = <0>;
29                 poll-interval = <20>;
30
31                 reset {
32                         label = "reset";
33                         gpios = <&gpio0 10 1>;
34                         linux,code = <KEY_RESTART>;
35                 };
36
37                 wps {
38                         label = "wps";
39                         gpios = <&gpio0 0 1>;
40                         linux,code = <KEY_WPS_BUTTON>;
41                 };
42         };
43
44         gpio_export {
45                 compatible = "gpio-export";
46                 #size-cells = <0>;
47
48                 repeater {
49                         gpio-export,name = "repeater_switch";
50                         gpios = <&gpio0 7 0>;
51                 };
52
53                 wisp {
54                         gpio-export,name = "wisp_switch";
55                         gpios = <&gpio0 12 0>;
56                 };
57         };
58 };
59
60 &spi0 {
61         status = "okay";
62
63         m25p80@0 {
64                 #address-cells = <1>;
65                 #size-cells = <1>;
66                 compatible = "jedec,spi-nor";
67                 reg = <0>;
68                 linux,modalias = "m25p80", "s25fl064k";
69                 spi-max-frequency = <10000000>;
70
71                 partition@0 {
72                         label = "u-boot";
73                         reg = <0x0 0x30000>;
74                         read-only;
75                 };
76
77                 partition@30000 {
78                         label = "u-boot-env";
79                         reg = <0x30000 0x10000>;
80                         read-only;
81                 };
82
83                 factory: partition@40000 {
84                         label = "factory";
85                         reg = <0x40000 0x10000>;
86                         read-only;
87                 };
88
89                 partition@50000 {
90                         label = "firmware";
91                         reg = <0x50000 0x7b0000>;
92                 };
93         };
94 };
95
96 &pinctrl {
97         state_default: pinctrl0 {
98                 gpio {
99                         ralink,group = "i2c", "jtag", "uartf";
100                         ralink,function = "gpio";
101                 };
102         };
103 };
104
105 &ethernet {
106         mtd-mac-address = <&factory 0x4>;
107 };
108
109 &esw {
110         mediatek,portmap = <0x1>;
111         mediatek,portdisable = <0x3e>;
112 };
113
114 &wmac {
115         ralink,mtd-eeprom = <&factory 0>;
116 };
117
118 &ehci {
119         status = "okay";
120 };
121
122 &ohci {
123         status = "okay";
124 };