OpenWrt – Blame information for rev 3
?pathlinks?
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 = "tplink,tl-wr840n-v5", "mediatek,mt7628an-soc"; |
||
10 | model = "TP-Link TL-WR840N v5"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
16 | memory@0 { |
||
17 | device_type = "memory"; |
||
18 | reg = <0x0 0x4000000>; |
||
19 | }; |
||
20 | |||
3 | office | 21 | gpio-keys-polled { |
1 | office | 22 | compatible = "gpio-keys-polled"; |
3 | office | 23 | #address-cells = <1>; |
24 | #size-cells = <0>; |
||
1 | office | 25 | poll-interval = <20>; |
26 | |||
27 | reset { |
||
28 | label = "reset"; |
||
29 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
||
30 | linux,code = <KEY_RESTART>; |
||
31 | }; |
||
32 | }; |
||
33 | /* LED used is dual-color,dual lead LED */ |
||
3 | office | 34 | gpio-leds { |
1 | office | 35 | compatible = "gpio-leds"; |
36 | |||
3 | office | 37 | power { |
1 | office | 38 | label = "tl-wr840n-v5:green:power"; |
39 | gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
||
40 | }; |
||
41 | |||
42 | orange { |
||
43 | label = "tl-wr840n-v5:orange:power"; |
||
44 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | }; |
||
47 | }; |
||
48 | |||
49 | &spi0 { |
||
50 | status = "okay"; |
||
51 | |||
52 | m25p80@0 { |
||
3 | office | 53 | #address-cells = <1>; |
54 | #size-cells = <1>; |
||
1 | office | 55 | compatible = "jedec,spi-nor"; |
56 | reg = <0>; |
||
57 | spi-max-frequency = <10000000>; |
||
3 | office | 58 | m25p,chunked-io = <32>; |
1 | office | 59 | |
3 | office | 60 | partition@0 { |
61 | label = "boot"; |
||
62 | reg = <0x0 0x20000>; |
||
63 | read-only; |
||
64 | }; |
||
1 | office | 65 | |
3 | office | 66 | partition@20000 { |
67 | label = "firmware"; |
||
68 | reg = <0x20000 0x3d0000>; |
||
69 | }; |
||
1 | office | 70 | |
3 | office | 71 | factory: partition@3f0000 { |
72 | label = "factory"; |
||
73 | reg = <0x3f0000 0x10000>; |
||
74 | read-only; |
||
1 | office | 75 | }; |
76 | }; |
||
77 | }; |
||
78 | |||
79 | &ehci { |
||
80 | status = "disabled"; |
||
81 | }; |
||
82 | |||
83 | &ohci { |
||
84 | status = "disabled"; |
||
85 | }; |
||
86 | |||
87 | &wmac { |
||
88 | status = "okay"; |
||
89 | mtd-mac-address = <&factory 0xf100>; |
||
3 | office | 90 | mediatek,mtd-eeprom = <&factory 0x10000>; |
1 | office | 91 | }; |
92 | |||
93 | ðernet { |
||
94 | mtd-mac-address = <&factory 0xf100>; |
||
95 | mediatek,portmap = "wllll"; |
||
96 | }; |
||
97 | |||
98 | &pinctrl { |
||
99 | state_default: pinctrl0 { |
||
100 | gpio { |
||
101 | ralink,group = "p0led_an", "p2led_an", "perst"; |
||
102 | ralink,function = "gpio"; |
||
103 | }; |
||
104 | }; |
||
105 | }; |