ramips: Support setting active_low in devicetree gpio-export
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-645.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6 compatible = "DIR-645", "ralink,rt3883-soc";
7 model = "D-Link DIR-645";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "uartlite", "spi";
12 ralink,gpiomux = "i2c", "jtag";
13 ralink,uartmux = "gpio";
14 ralink,wdtmux = <1>;
15 };
16
17 timer@100 {
18 status = "okay";
19 };
20
21 gpio0: gpio@600 {
22 status = "okay";
23 };
24
25 gpio1: gpio@638 {
26 status = "okay";
27 };
28
29 spi@b00 {
30 status = "okay";
31
32 m25p80@0 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "mx25l6405d";
36 reg = <0 0>;
37 linux,modalias = "m25p80";
38 spi-max-frequency = <25000000>;
39 partition@0 {
40 label = "uboot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44 partition@30000 {
45 label = "uboot-env";
46 reg = <0x30000 0x4000>;
47 read-only;
48 };
49 factory: partition@34000 {
50 label = "factory";
51 reg = <0x34000 0x4000>;
52 read-only;
53 };
54 partition@38000 {
55 label = "nvram";
56 reg = <0x38000 0x8000>;
57 read-only;
58 };
59 partition@40000 {
60 label = "devdata";
61 reg = <0x40000 0x10000>;
62 };
63 partition@50000 {
64 label = "firmware";
65 reg = <0x50000 0x7b0000>;
66 };
67 };
68 };
69 };
70
71 ethernet@10100000 {
72 status = "okay";
73
74 mtd-mac-address = <&factory 0x28>;
75 ralink,fixed-link = <1000 1 1 1>;
76 };
77
78 wmac@10180000 {
79 status = "okay";
80 ralink,5ghz = <0>;
81 };
82
83 ehci@101c0000 {
84 status = "okay";
85 };
86
87 ohci@101c1000 {
88 status = "okay";
89 };
90
91 rtl8367b {
92 compatible = "realtek,rtl8367b";
93 gpio-sda = <&gpio0 1 0>;
94 gpio-sck = <&gpio0 2 0>;
95 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
96 };
97
98 gpio-keys-polled {
99 compatible = "gpio-keys-polled";
100 #address-cells = <1>;
101 #size-cells = <0>;
102 poll-interval = <100>;
103 reset {
104 label = "reset";
105 gpios = <&gpio0 9 0>;
106 linux,code = <0x198>;
107 };
108 wps {
109 label = "wps";
110 gpios = <&gpio0 14 0>;
111 linux,code = <0x211>;
112 };
113 };
114
115 gpio-leds {
116 compatible = "gpio-leds";
117
118 inet {
119 label = "d-link:green:inet";
120 gpios = <&gpio0 0 1>;
121 };
122 wps {
123 label = "d-link:green:wps";
124 gpios = <&gpio1 2 0>;
125 };
126 };
127
128 gpio_export {
129 compatible = "gpio-export";
130 #size-cells = <0>;
131
132 usb {
133 gpio-export,name = "usb";
134 gpio-export,output = <1>;
135 gpios = <&gpio1 6 0>;
136 };
137 };
138 };