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