OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | 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-v3", "mediatek,mt7628an-soc"; |
||
10 | model = "GL-MT300N-V3"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
16 | memory@0 { |
||
17 | device_type = "memory"; |
||
18 | reg = <0x0 0x4000000>; |
||
19 | }; |
||
20 | |||
21 | gpio-leds { |
||
22 | compatible = "gpio-leds"; |
||
23 | |||
24 | power { |
||
25 | label = "gl-mt300n-v3:blue:power"; |
||
26 | default-state = "on"; |
||
27 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
||
28 | }; |
||
29 | |||
30 | wlan { |
||
31 | label = "gl-mt300n-v3:white:wlan"; |
||
32 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
||
33 | }; |
||
34 | }; |
||
35 | |||
36 | gpio-keys-polled { |
||
37 | compatible = "gpio-keys-polled"; |
||
38 | #address-cells = <1>; |
||
39 | #size-cells = <0>; |
||
40 | poll-interval = <20>; |
||
41 | |||
42 | reset { |
||
43 | label = "reset"; |
||
44 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
||
45 | linux,code = <KEY_RESTART>; |
||
46 | }; |
||
47 | }; |
||
48 | }; |
||
49 | |||
50 | &pinctrl { |
||
51 | state_default: pinctrl0 { |
||
52 | gpio { |
||
53 | ralink,group = "wdt", "wled_an", "p1led_an"; |
||
54 | ralink,function = "gpio"; |
||
55 | }; |
||
56 | }; |
||
57 | }; |
||
58 | |||
59 | ðernet { |
||
60 | mtd-mac-address = <&factory 0x4>; |
||
61 | }; |
||
62 | |||
63 | &wmac { |
||
64 | status = "okay"; |
||
65 | ralink,mtd-eeprom = <&factory 0x4>; |
||
66 | }; |
||
67 | |||
68 | &spi0 { |
||
69 | status = "okay"; |
||
70 | |||
71 | m25p80@0 { |
||
72 | #address-cells = <1>; |
||
73 | #size-cells = <1>; |
||
74 | compatible = "jedec,spi-nor"; |
||
75 | reg = <0>; |
||
76 | spi-max-frequency = <10000000>; |
||
77 | m25p,chunked-io = <32>; |
||
78 | |||
79 | partition@0 { |
||
80 | label = "u-boot"; |
||
81 | reg = <0x0 0x30000>; |
||
82 | read-only; |
||
83 | }; |
||
84 | |||
85 | partition@30000 { |
||
86 | label = "u-boot-env"; |
||
87 | reg = <0x30000 0x10000>; |
||
88 | read-only; |
||
89 | }; |
||
90 | |||
91 | factory: partition@40000 { |
||
92 | label = "factory"; |
||
93 | reg = <0x40000 0x10000>; |
||
94 | read-only; |
||
95 | }; |
||
96 | |||
97 | partition@50000 { |
||
98 | label = "firmware"; |
||
99 | reg = <0x50000 0x7b0000>; |
||
100 | }; |
||
101 | }; |
||
102 | }; |
||
103 | |||
104 | &uart1 { |
||
105 | status = "okay"; |
||
106 | }; |