OpenWrt – Blame information for rev 2

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