OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | 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 = "asus,rt-n12p", "ralink,mt7620n-soc"; |
||
10 | model = "Asus RT-N12+"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
16 | gpio-leds { |
||
17 | compatible = "gpio-leds"; |
||
18 | |||
19 | wan { |
||
20 | label = "rt-n12p:green:wan"; |
||
21 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
||
22 | }; |
||
23 | |||
24 | lan { |
||
25 | label = "rt-n12p:green:lan"; |
||
26 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
29 | power { |
||
30 | label = "rt-n12p:green:power"; |
||
31 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
34 | air { |
||
35 | label = "rt-n12p:green:air"; |
||
36 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | }; |
||
39 | |||
40 | gpio-keys-polled { |
||
41 | compatible = "gpio-keys-polled"; |
||
42 | #address-cells = <1>; |
||
43 | #size-cells = <0>; |
||
44 | poll-interval = <20>; |
||
45 | |||
46 | reset { |
||
47 | label = "reset"; |
||
48 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
||
49 | linux,code = <KEY_RESTART>; |
||
50 | }; |
||
51 | }; |
||
52 | }; |
||
53 | |||
54 | &gpio1 { |
||
55 | status = "okay"; |
||
56 | }; |
||
57 | |||
58 | &gpio2 { |
||
59 | status = "okay"; |
||
60 | }; |
||
61 | |||
62 | &gpio3 { |
||
63 | status = "okay"; |
||
64 | }; |
||
65 | |||
66 | &spi0 { |
||
67 | status = "okay"; |
||
68 | |||
69 | m25p80@0 { |
||
70 | #address-cells = <1>; |
||
71 | #size-cells = <1>; |
||
72 | compatible = "jedec,spi-nor"; |
||
73 | reg = <0>; |
||
74 | spi-max-frequency = <10000000>; |
||
75 | |||
76 | partition@0 { |
||
77 | label = "u-boot"; |
||
78 | reg = <0x0 0x30000>; |
||
79 | read-only; |
||
80 | }; |
||
81 | |||
82 | partition@30000 { |
||
83 | label = "u-boot-env"; |
||
84 | reg = <0x30000 0x10000>; |
||
85 | read-only; |
||
86 | }; |
||
87 | |||
88 | factory: partition@40000 { |
||
89 | label = "factory"; |
||
90 | reg = <0x40000 0x10000>; |
||
91 | read-only; |
||
92 | }; |
||
93 | |||
94 | partition@50000 { |
||
95 | label = "firmware"; |
||
96 | reg = <0x50000 0xfb0000>; |
||
97 | }; |
||
98 | }; |
||
99 | }; |
||
100 | |||
101 | ðernet { |
||
102 | mtd-mac-address = <&factory 0x4>; |
||
103 | mediatek,portmap = "wllll"; |
||
104 | }; |
||
105 | |||
106 | &wmac { |
||
107 | ralink,mtd-eeprom = <&factory 0>; |
||
108 | }; |
||
109 | |||
110 | &pinctrl { |
||
111 | state_default: pinctrl0 { |
||
112 | default { |
||
113 | ralink,group = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk"; |
||
114 | ralink,function = "gpio"; |
||
115 | }; |
||
116 | }; |
||
117 | }; |