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