OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7620n.dtsi"
4  
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7  
8 / {
9 compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
10 model = "ELECOM WRH-300CR";
11  
3 office 12 gpio-leds {
1 office 13 compatible = "gpio-leds";
14  
3 office 15 wps {
1 office 16 label = "wrh-300cr:green:wps";
17 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
18 };
19  
20 ethernet {
21 label = "wrh-300cr:green:ethernet";
22 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
23 };
24  
25 wlan {
26 label = "wrh-300cr:green:wlan";
27 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
28 };
29 };
30  
3 office 31 gpio-keys-polled {
1 office 32 compatible = "gpio-keys-polled";
3 office 33 #address-cells = <1>;
34 #size-cells = <0>;
1 office 35 poll-interval = <20>;
36  
37 reset {
38 label = "reset";
39 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42  
43 wps {
44 label = "wps";
45 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 };
49 };
50  
51 &gpio1 {
52 status = "okay";
53 };
54  
55 &gpio2 {
56 status = "okay";
57 };
58  
59 &gpio3 {
60 status = "okay";
61 };
62  
63 &spi0 {
64 status = "okay";
65  
66 m25p80@0 {
3 office 67 #address-cells = <1>;
68 #size-cells = <1>;
1 office 69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <10000000>;
72  
3 office 73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
1 office 78  
3 office 79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 };
1 office 83  
3 office 84 factory: partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88 };
1 office 89  
3 office 90 partition@50000 {
91 label = "recover";
92 reg = <0x50000 0x1c0000>;
93 read-only;
94 };
1 office 95  
3 office 96 partition@210000 {
97 label = "firmware";
98 reg = <0x210000 0xdf0000>;
1 office 99 };
100 };
101 };
102  
103 &ehci {
104 status = "okay";
105 };
106  
107 &ohci {
108 status = "okay";
109 };
110  
111 &ethernet {
112 mtd-mac-address = <&factory 0x2e>;
113 mediatek,portmap = "llllw";
114 };
115  
116 &wmac {
117 ralink,mtd-eeprom = <&factory 0>;
118 };
119  
120 &pinctrl {
121 state_default: pinctrl0 {
122 default {
123 ralink,group = "i2c", "ephy", "wled";
124 ralink,function = "gpio";
125 };
126 };
127 };