OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7628an.dtsi"
4  
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7  
8 /{
3 office 9 compatible = "glinet,gl-mt300n-v2", "ralink,mt7620an-soc";
1 office 10 model = "GL-MT300N-V2";
11  
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15  
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20  
3 office 21 gpio-leds {
1 office 22 compatible = "gpio-leds";
23  
3 office 24 power {
1 office 25 label = "gl-mt300n-v2:green:power";
26 default-state = "on";
27 gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
28 };
29  
30 wan {
3 office 31 label = "gl-mt300n-v2:blue:wan";
1 office 32 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
33 };
34  
35 wlan {
36 label = "gl-mt300n-v2:red:wlan";
37 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
38 };
39 };
40  
3 office 41 gpio-keys {
1 office 42 compatible = "gpio-keys-polled";
3 office 43 #address-cells = <1>;
44 #size-cells = <0>;
1 office 45 poll-interval = <20>;
46  
47 reset {
48 label = "reset";
49 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52  
53 BTN_0 {
54 label = "BTN_0";
55 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
56 linux,code = <BTN_0>;
57 };
58  
59 BTN_1 {
60 label = "BTN_1";
61 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
62 linux,code = <BTN_1>;
63 };
64 };
65  
66 gpio_export {
67 compatible = "gpio-export";
68 #size-cells = <0>;
69  
70 usb {
71 gpio-export,name = "usb";
72 gpio-export,output = <1>;
73 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
74 };
75 };
3 office 76  
1 office 77 };
78  
79 &pinctrl {
80 state_default: pinctrl0 {
81 gpio {
82 ralink,group = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
83 ralink,function = "gpio";
84 };
85 };
86 };
87  
88 &ethernet {
89 mtd-mac-address = <&factory 0x4>;
90 };
91  
92 &wmac {
93 status = "okay";
94 ralink,mtd-eeprom = <&factory 0x0>;
95 };
96  
97 &spi0 {
98 status = "okay";
99  
100 m25p80@0 {
3 office 101 #address-cells = <1>;
102 #size-cells = <1>;
1 office 103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <10000000>;
3 office 106 m25p,chunked-io = <32>;
1 office 107  
3 office 108 partition@0 {
109 label = "u-boot";
110 reg = <0x0 0x30000>;
111 read-only;
112 };
1 office 113  
3 office 114 partition@30000 {
115 label = "u-boot-env";
116 reg = <0x30000 0x10000>;
117 read-only;
118 };
1 office 119  
3 office 120 factory: partition@40000 {
121 label = "factory";
122 reg = <0x40000 0x10000>;
123 read-only;
124 };
1 office 125  
3 office 126 partition@50000 {
127 label = "firmware";
128 reg = <0x50000 0xfb0000>;
1 office 129 };
130 };
131 };
132  
133 &uart1 {
134 status = "okay";
135 };
136  
137 &ehci {
138 status = "okay";
139 };
140  
141 &ohci {
142 status = "okay";
143 };