OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7620a.dtsi"
4  
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7  
8 / {
9 compatible = "dlink,dwr-118-a2", "ralink,mt7620a-soc";
10 model = "D-Link DWR-118 A2";
11  
12 aliases {
13 led-boot = &led_internet;
14 led-failsafe = &led_internet;
15 };
16  
17 keys {
18 compatible = "gpio-keys-polled";
19 poll-interval = <20>;
20  
21 wps {
22 label = "wps";
23 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_WPS_BUTTON>;
25 };
26  
27 reset {
28 label = "reset";
29 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33  
34 leds {
35 compatible = "gpio-leds";
36  
37 wan {
38 label = "dwr-118-a2:green:wan";
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 };
41  
42 led_internet: internet {
43 label = "dwr-118-a2:green:internet";
44 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
45 };
46  
47 lan {
48 label = "dwr-118-a2:green:lan";
49 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
50 };
51  
52 wlan2g {
53 label = "dwr-118-a2:green:wlan2g";
54 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
55 };
56  
57 usb {
58 label = "dwr-118-a2:green:usb";
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 trigger-sources = <&ohci_port1>, <&ehci_port1>;
61 linux,default-trigger = "usbport";
62 };
63 };
64  
65 gpio_export {
66 compatible = "gpio-export";
67 #size-cells = <0>;
68  
69 usb {
70 gpio-export,name = "usb";
71 gpio-export,output = <1>;
72 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
73 };
74 };
75 };
76  
77 &gpio1 {
78 status = "okay";
79 };
80  
81 &gpio2 {
82 status = "okay";
83 };
84  
85 &gpio3 {
86 status = "okay";
87 };
88  
89 &spi0 {
90 status = "okay";
91  
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <50000000>;
96  
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101  
102 partition@0 {
103 label = "jboot";
104 reg = <0x0 0x10000>;
105 read-only;
106 };
107  
108 partition@10000 {
109 compatible = "amit,jimage";
110 label = "firmware";
111 reg = <0x10000 0xfe0000>;
112 };
113  
114 config: partition@ff0000 {
115 label = "config";
116 reg = <0xff0000 0x10000>;
117 read-only;
118 };
119 };
120 };
121 };
122  
123 &ehci {
124 status = "okay";
125 };
126  
127 &ohci {
128 status = "okay";
129 };
130  
131 &pinctrl {
132 state_default: pinctrl0 {
133 default {
134 ralink,group = "ephy", "uartf", "spi refclk", "wled";
135 ralink,function = "gpio";
136 };
137 };
138 };
139  
140 &pcie {
141 status = "okay";
142 };
143  
144 &pcie0 {
145 wifi@0,0 {
146 reg = <0x0000 0 0 0 0>;
147 ieee80211-freq-limit = <5000000 6000000>;
148 mtd-mac-address = <&config 0xe4a8>;
149 mtd-mac-address-increment = <(2)>;
150  
151 led {
152 led-sources = <2>;
153 led-active-low;
154 };
155 };
156 };
157  
158 &ethernet {
159 status = "okay";
160 pinctrl-names = "default";
161 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
162  
163 port@4 {
164 status = "okay";
165 phy-handle = <&phy4>;
166 phy-mode = "rgmii";
167 };
168  
169 mdio-bus {
170 status = "okay";
171  
172 phy4: ethernet-phy@4 {
173 reg = <4>;
174 phy-mode = "rgmii";
175 };
176 };
177 };
178  
179 &gsw {
180 mediatek,port4 = "gmac";
181 };