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 = "glinet,gl-mt750", "ralink,mt7620a-soc";
10 model = "GL-MT750";
11  
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15  
3 office 16 gpio-leds {
1 office 17 compatible = "gpio-leds";
18  
19 wan {
20 label = "gl-mt750:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
22 };
23  
24 lan {
25 label = "gl-mt750:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
27 };
28  
29 wlan {
30 label = "gl-mt750:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
3 office 33  
1 office 34 };
35  
3 office 36 gpio-keys-polled {
1 office 37 compatible = "gpio-keys-polled";
3 office 38 #address-cells = <1>;
39 #size-cells = <0>;
1 office 40 poll-interval = <20>;
41 reset {
42 label = "reset";
43 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46  
47 BTN_0 {
48 label = "BTN_0";
49 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
50 linux,code = <BTN_0>;
51 };
52  
3 office 53 BTN_1 {
1 office 54 label = "BTN_1";
55 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
56 linux,code = <BTN_1>;
57 };
3 office 58 };
1 office 59 };
60  
61 &gpio0 {
62 status = "okay";
63 };
64  
65 &gpio1 {
66 status = "okay";
67 };
68  
69 &gpio2 {
70 status = "okay";
71 };
3 office 72  
1 office 73 &gpio3 {
74 status = "okay";
75 };
76  
77 &spi0 {
78 status = "okay";
79  
80 m25p80@0 {
3 office 81 #address-cells = <1>;
82 #size-cells = <1>;
1 office 83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <10000000>;
86  
3 office 87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 };
1 office 91  
3 office 92 partition@30000 {
93 label = "u-boot-env";
94 reg = <0x30000 0x10000>;
95 read-only;
96 };
1 office 97  
3 office 98 factory: partition@40000 {
99 label = "factory";
100 reg = <0x40000 0x10000>;
101 read-only;
102 };
1 office 103  
3 office 104 partition@50000 {
105 label = "firmware";
106 reg = <0x50000 0xf80000>;
107 };
1 office 108  
3 office 109 partition@ff0000 {
110 label = "art";
111 reg = <0xff0000 0x10000>;
1 office 112 };
113 };
114 };
115  
116 &sdhci {
117 status = "okay";
118 };
119  
120 &ehci {
121 status = "okay";
122 };
123  
124 &ohci {
125 status = "okay";
126 };
127  
128 &ethernet {
129 mtd-mac-address = <&factory 0x4000>;
130 mediatek,portmap = "llllw";
131 };
132  
133 &wmac {
134 ralink,mtd-eeprom = <&factory 0>;
135 };
136  
137 &pcie {
138 status = "okay";
139  
3 office 140 pcie-bridge {
141 mt76@0,0 {
142 reg = <0x0000 0 0 0 0>;
143 device_type = "pci";
144 mediatek,mtd-eeprom = <&factory 0x8000>;
145 };
1 office 146 };
147 };
148  
149 &pinctrl {
150 state_default: pinctrl0 {
151 gpio {
152 ralink,group = "wled","ephy","uartf";
153 ralink,function = "gpio";
154 };
155 };
156 };