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