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 = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc"; |
||
10 | model = "Zbtlink ZBT-CPE102"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
3 | office | 16 | gpio-leds { |
1 | office | 17 | compatible = "gpio-leds"; |
18 | |||
3 | office | 19 | 4g-0 { |
1 | office | 20 | label = "zbt-cpe102:green:4g-0"; |
21 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
||
22 | }; |
||
23 | |||
24 | 4g-1 { |
||
25 | label = "zbt-cpe102:green:4g-1"; |
||
26 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
29 | 4g-2 { |
||
30 | label = "zbt-cpe102:green:4g-2"; |
||
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 1 GPIO_ACTIVE_LOW>; |
||
44 | linux,code = <KEY_RESTART>; |
||
45 | }; |
||
46 | }; |
||
47 | }; |
||
48 | |||
49 | &gpio1 { |
||
50 | status = "okay"; |
||
51 | }; |
||
52 | |||
53 | &gpio2 { |
||
54 | status = "okay"; |
||
55 | }; |
||
56 | |||
57 | &gpio3 { |
||
58 | status = "okay"; |
||
59 | }; |
||
60 | |||
61 | &spi0 { |
||
62 | status = "okay"; |
||
63 | |||
64 | en25q64@0 { |
||
3 | office | 65 | #address-cells = <1>; |
66 | #size-cells = <1>; |
||
1 | office | 67 | compatible = "jedec,spi-nor"; |
68 | reg = <0>; |
||
69 | spi-max-frequency = <10000000>; |
||
70 | |||
3 | office | 71 | partition@0 { |
72 | label = "u-boot"; |
||
73 | reg = <0x0 0x30000>; |
||
74 | read-only; |
||
75 | }; |
||
1 | office | 76 | |
3 | office | 77 | partition@30000 { |
78 | label = "u-boot-env"; |
||
79 | reg = <0x30000 0x10000>; |
||
80 | read-only; |
||
81 | }; |
||
1 | office | 82 | |
3 | office | 83 | factory: partition@40000 { |
84 | label = "factory"; |
||
85 | reg = <0x40000 0x10000>; |
||
86 | read-only; |
||
87 | }; |
||
1 | office | 88 | |
3 | office | 89 | partition@50000 { |
90 | label = "firmware"; |
||
91 | reg = <0x50000 0x760000>; |
||
1 | office | 92 | }; |
93 | }; |
||
94 | }; |
||
95 | |||
96 | &ehci { |
||
97 | status = "okay"; |
||
98 | }; |
||
99 | |||
100 | &ohci { |
||
101 | status = "okay"; |
||
102 | }; |
||
103 | |||
104 | ðernet { |
||
105 | mtd-mac-address = <&factory 0x4>; |
||
106 | mediatek,portmap = "wllll"; |
||
107 | }; |
||
108 | |||
109 | &wmac { |
||
110 | ralink,mtd-eeprom = <&factory 0>; |
||
111 | }; |
||
112 | |||
113 | &pinctrl { |
||
114 | state_default: pinctrl0 { |
||
115 | default { |
||
116 | ralink,group = "i2c", "spi refclk", "wled"; |
||
117 | ralink,function = "gpio"; |
||
118 | }; |
||
119 | }; |
||
120 | }; |