OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620n.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "kingston,mlwg2", "ralink,mt7620n-soc"; |
||
10 | model = "Kingston MLWG2"; |
||
11 | |||
3 | office | 12 | gpio-leds { |
1 | office | 13 | compatible = "gpio-leds"; |
14 | |||
3 | office | 15 | system { |
1 | office | 16 | label = "mlwg2:blue:system"; |
17 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
||
18 | }; |
||
19 | |||
20 | wifi { |
||
21 | label = "mlwg2:blue:wifi"; |
||
22 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
23 | }; |
||
24 | }; |
||
25 | |||
3 | office | 26 | gpio-keys-polled { |
1 | office | 27 | compatible = "gpio-keys-polled"; |
3 | office | 28 | #address-cells = <1>; |
29 | #size-cells = <0>; |
||
1 | office | 30 | poll-interval = <20>; |
31 | |||
32 | reset { |
||
33 | label = "reset"; |
||
34 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
||
35 | linux,code = <KEY_RESTART>; |
||
36 | }; |
||
37 | |||
38 | system { |
||
39 | label = "system"; |
||
40 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
||
41 | linux,code = <KEY_RFKILL>; |
||
42 | }; |
||
43 | }; |
||
44 | }; |
||
45 | |||
46 | &gpio0 { |
||
47 | status = "okay"; |
||
48 | }; |
||
49 | |||
50 | &gpio2 { |
||
51 | status = "okay"; |
||
52 | }; |
||
53 | |||
54 | &gpio3 { |
||
55 | status = "okay"; |
||
56 | }; |
||
57 | |||
58 | &spi0 { |
||
59 | status = "okay"; |
||
60 | |||
61 | m25p80@0 { |
||
3 | office | 62 | #address-cells = <1>; |
63 | #size-cells = <1>; |
||
1 | office | 64 | compatible = "jedec,spi-nor"; |
65 | reg = <0>; |
||
66 | spi-max-frequency = <10000000>; |
||
67 | |||
3 | office | 68 | partition@0 { |
69 | label = "u-boot"; |
||
70 | reg = <0x0 0x30000>; |
||
71 | read-only; |
||
72 | }; |
||
1 | office | 73 | |
3 | office | 74 | partition@30000 { |
75 | label = "u-boot-env"; |
||
76 | reg = <0x30000 0x10000>; |
||
77 | read-only; |
||
78 | }; |
||
1 | office | 79 | |
3 | office | 80 | factory: partition@40000 { |
81 | label = "factory"; |
||
82 | reg = <0x40000 0x10000>; |
||
83 | read-only; |
||
84 | }; |
||
1 | office | 85 | |
3 | office | 86 | partition@50000 { |
87 | label = "firmware"; |
||
88 | reg = <0x50000 0xf60000>; |
||
89 | }; |
||
1 | office | 90 | |
3 | office | 91 | partition@fb0000 { |
92 | label = "user-config"; |
||
93 | reg = <0xfb0000 0x50000>; |
||
1 | office | 94 | }; |
95 | }; |
||
96 | }; |
||
97 | |||
98 | &ehci { |
||
99 | status = "okay"; |
||
100 | }; |
||
101 | |||
102 | &ohci { |
||
103 | status = "okay"; |
||
104 | }; |
||
105 | |||
106 | ðernet { |
||
107 | mtd-mac-address = <&factory 0x4>; |
||
108 | mediatek,portmap = "wllll"; |
||
109 | }; |
||
110 | |||
111 | &wmac { |
||
112 | ralink,mtd-eeprom = <&factory 0>; |
||
113 | }; |
||
114 | |||
115 | &pinctrl { |
||
116 | state_default: pinctrl0 { |
||
117 | default { |
||
118 | ralink,group = "i2c", "ephy", "wled"; |
||
119 | ralink,function = "gpio"; |
||
120 | }; |
||
121 | }; |
||
122 | }; |