ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.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 #address-cells = <1>;
29 #size-cells = <0>;
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 wps {
39 label = "wps";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 repeater {
50 gpio-export,name = "repeater_switch";
51 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 wisp {
55 gpio-export,name = "wisp_switch";
56 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &spi0 {
62 status = "okay";
63
64 m25p80@0 {
65 #address-cells = <1>;
66 #size-cells = <1>;
67 compatible = "jedec,spi-nor";
68 reg = <0>;
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 };