OpenWrt – Blame information for rev 3

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 = "buffalo,whr-600d", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-600D";
11  
3 office 12 gpio-leds {
1 office 13 compatible = "gpio-leds";
14  
15 power {
16 label = "whr-600d:red:power";
17 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
18 };
19  
20 wifi {
21 label = "whr-600d:green:wifi";
22 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
23 };
24  
3 office 25 power2 {
1 office 26 label = "whr-600d:green:power";
27 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
28 };
29  
30 wifi2 {
31 label = "whr-600d:orange:wifi";
32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
33 };
34  
35 internet {
36 label = "whr-600d:green:internet";
37 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
38 };
39  
40 router {
41 label = "whr-600d:green:router";
42 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
43 };
44  
45 router2 {
46 label = "whr-600d:orange:router";
47 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
48 };
49 };
50  
3 office 51 gpio-keys-polled {
1 office 52 compatible = "gpio-keys-polled";
3 office 53 #address-cells = <1>;
54 #size-cells = <0>;
1 office 55 poll-interval = <20>;
56  
57 reset {
58 label = "reset";
59 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_RESTART>;
61 };
62  
63 aoss {
64 label = "aoss";
65 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
66 linux,code = <KEY_WPS_BUTTON>;
67 };
68  
69 ap {
70 label = "ap";
71 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
72 linux,code = <BTN_0>;
73 linux,input-type = <EV_SW>;
74 };
75  
76 bridge {
77 label = "bridge";
78 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
79 linux,code = <BTN_0>;
80 linux,input-type = <EV_SW>;
81 };
82 };
83 };
84  
85 &gpio2 {
86 status = "okay";
87 };
88  
89 &spi0 {
90 status = "okay";
91  
92 m25p80@0 {
3 office 93 #address-cells = <1>;
94 #size-cells = <1>;
1 office 95 compatible = "jedec,spi-nor";
96 reg = <0>;
97 spi-max-frequency = <10000000>;
98  
3 office 99 partition@0 {
100 label = "u-boot";
101 reg = <0x0 0x30000>;
102 read-only;
103 };
1 office 104  
3 office 105 partition@30000 {
106 label = "u-boot-env";
107 reg = <0x30000 0x10000>;
108 read-only;
109 };
1 office 110  
3 office 111 factory: partition@40000 {
112 label = "factory";
113 reg = <0x40000 0x10000>;
114 read-only;
115 };
1 office 116  
3 office 117 partition@50000 {
118 label = "firmware";
119 reg = <0x50000 0x7b0000>;
1 office 120 };
121 };
122 };
123  
124 &pinctrl {
125 state_default: pinctrl0 {
126 gpio {
127 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
128 ralink,function = "gpio";
129 };
130 };
131 };
132  
133 &ethernet {
134 pinctrl-names = "default";
135 pinctrl-0 = <&ephy_pins>;
136 mtd-mac-address = <&factory 0x4>;
137 mediatek,portmap = "llllw";
138 };
139  
140 &gsw {
141 mediatek,port4 = "ephy";
142 };
143  
144 &wmac {
145 ralink,mtd-eeprom = <&factory 0>;
146 };
147  
148 &pcie {
149 status = "okay";
150  
3 office 151 pcie-bridge {
152 wifi@1814,5592 {
153 compatible = "pci1814,5592";
154 reg = <0x0000 0 0 0 0>;
155 ralink,mtd-eeprom = <&factory 0x8000>;
156 };
1 office 157 };
158 };