OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "rt2880.dtsi"
4  
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7  
8 / {
9 compatible = "dlink,dap-1522-a1", "ralink,rt2880-soc";
10 model = "D-Link DAP-1522 A1";
11  
12 cfi@bc400000 {
13 compatible = "cfi-flash";
14 reg = <0xbc400000 0x800000>;
15 bank-width = <2>;
16 device-width = <2>;
3 office 17 #address-cells = <1>;
18 #size-cells = <1>;
1 office 19  
3 office 20 partition@0 {
21 label = "uboot";
22 reg = <0x0 0x30000>;
23 read-only;
24 };
1 office 25  
3 office 26 factory: partition@30000 {
27 label = "factory";
28 reg = <0x30000 0x10000>;
29 read-only;
30 };
1 office 31  
3 office 32 partition@40000 {
33 label = "firmware";
34 reg = <0x40000 0x3a0000>;
1 office 35 };
36 };
37  
38 rtl8366s {
39 compatible = "realtek,rtl8366s";
40 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
41 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
42 };
43  
3 office 44 gpio-keys-polled {
1 office 45 compatible = "gpio-keys-polled";
3 office 46 #address-cells = <1>;
47 #size-cells = <0>;
1 office 48 poll-interval = <100>;
49  
50 reset {
51 label = "reset";
52 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 };
55  
56 wps {
57 label = "wps";
58 gpios = <&gpio2 16 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
60 };
61  
62 ap {
63 label = "ap";
64 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
65 linux,code = <BTN_0>;
66 linux,input-type = <EV_SW>;
67 };
68  
69 bridge {
70 label = "bridge";
71 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
72 linux,code = <BTN_1>;
73 linux,input-type = <EV_SW>;
74 };
75 };
76  
3 office 77 gpio-leds {
1 office 78 compatible = "gpio-leds";
79  
80 wps {
81 label = "dap-1522-a1:blue:wps";
82 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
83 };
84  
85 ap {
86 label = "dap-1522-a1:blue:ap";
87 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
88 };
89  
90 sta {
91 label = "dap-1522-a1:red:sta";
92 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
93 };
94  
3 office 95 status {
1 office 96 label = "dap-1522-a1:blue:status";
97 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
98 };
99 };
100 };
101  
102 &gpio0 {
103 status = "okay";
104 };
105  
106 &gpio2 {
107 status = "okay";
108 };
109  
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "i2c", "uartlite", "pci";
114 ralink,function = "gpio";
115 };
116 };
117 };
118  
119 &ethernet {
120 status = "okay";
121 mtd-mac-address = <&factory 0x2004>;
122  
123 port@0 {
124 mediatek,fixed-link = <1000 1 1 1>;
125 };
126  
127 mdio-bus {
128 status = "okay";
129  
130 phy0: ethernet-phy@0 {
131 phy-mode = "mii";
132 reg = <0>;
133 };
134 };
135 };
136  
137 &wmac {
138 ralink,mtd-eeprom = <&factory 0x2000>;
139 };