11765f10c6dde9ae719b06d9ba540e4e287f8cfc
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_trendnet_tew-714tru.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "trendnet,tew-714tru", "ralink,rt5350-soc";
8 model = "TRENDnet TEW714TRU";
9
10 leds {
11 compatible = "gpio-leds";
12
13 usb {
14 label = "red:usb";
15 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
16 trigger-sources = <&ohci_port1>, <&ehci_port1>;
17 linux,default-trigger = "usbport";
18 };
19
20 wifi {
21 label = "green:wifi";
22 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
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 flash@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 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x50000 0x7b0000>;
94 };
95 };
96 };
97 };
98
99 &state_default {
100 gpio {
101 groups = "i2c", "jtag", "uartf";
102 function = "gpio";
103 };
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x4>;
108 };
109
110 &esw {
111 mediatek,portmap = <0x1>;
112 mediatek,portdisable = <0x3e>;
113 };
114
115 &wmac {
116 ralink,mtd-eeprom = <&factory 0x0>;
117 };
118
119 &ehci {
120 status = "okay";
121 };
122
123 &ohci {
124 status = "okay";
125 };