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 = "zyxel,keenetic-omni-ii", "ralink,mt7620n-soc"; |
||
10 | model = "ZyXEL Keenetic Omni II"; |
||
11 | |||
3 | office | 12 | gpio-leds { |
1 | office | 13 | compatible = "gpio-leds"; |
14 | |||
15 | wan { |
||
16 | label = "kn_rc:green:wan"; |
||
17 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
||
18 | }; |
||
19 | |||
20 | usb { |
||
21 | label = "kn_rc:green:usb"; |
||
22 | gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; |
||
23 | }; |
||
24 | |||
25 | wifi { |
||
26 | label = "kn_rc:green:wifi"; |
||
27 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
28 | }; |
||
29 | |||
3 | office | 30 | power { |
1 | office | 31 | label = "kn_rc:green:power"; |
32 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
||
33 | }; |
||
34 | }; |
||
35 | |||
3 | office | 36 | gpio-keys-polled { |
1 | office | 37 | compatible = "gpio-keys"; |
3 | office | 38 | #address-cells = <1>; |
39 | #size-cells = <0>; |
||
1 | office | 40 | poll-interval = <20>; |
41 | |||
42 | reset { |
||
43 | label = "reset"; |
||
44 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
||
45 | linux,code = <KEY_RESTART>; |
||
46 | }; |
||
47 | |||
48 | wps { |
||
49 | label = "wps"; |
||
50 | gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; |
||
51 | linux,code = <KEY_WPS_BUTTON>; |
||
52 | }; |
||
53 | |||
54 | fn { |
||
55 | label = "fn"; |
||
56 | gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; |
||
57 | linux,code = <BTN_0>; |
||
58 | }; |
||
59 | }; |
||
60 | |||
61 | gpio_export { |
||
62 | compatible = "gpio-export"; |
||
63 | #size-cells = <0>; |
||
64 | |||
65 | usb_power { |
||
66 | gpio-export,name = "usb"; |
||
67 | gpio-export,output = <1>; |
||
68 | gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
||
69 | }; |
||
70 | }; |
||
71 | }; |
||
72 | |||
73 | &gpio1 { |
||
74 | status = "okay"; |
||
75 | }; |
||
76 | |||
77 | &gpio3 { |
||
78 | status = "okay"; |
||
79 | }; |
||
80 | |||
81 | &spi0 { |
||
82 | status = "okay"; |
||
83 | |||
84 | m25p80@0 { |
||
3 | office | 85 | #address-cells = <1>; |
86 | #size-cells = <1>; |
||
1 | office | 87 | compatible = "jedec,spi-nor"; |
88 | reg = <0>; |
||
89 | spi-max-frequency = <10000000>; |
||
90 | |||
3 | office | 91 | partition@0 { |
92 | label = "u-boot"; |
||
93 | reg = <0x0 0x30000>; |
||
94 | read-only; |
||
95 | }; |
||
1 | office | 96 | |
3 | office | 97 | partition@30000 { |
98 | label = "u-boot-env"; |
||
99 | reg = <0x30000 0x10000>; |
||
100 | read-only; |
||
101 | }; |
||
1 | office | 102 | |
3 | office | 103 | factory: partition@40000 { |
104 | label = "factory"; |
||
105 | reg = <0x40000 0x10000>; |
||
106 | read-only; |
||
107 | }; |
||
1 | office | 108 | |
3 | office | 109 | partition@50000 { |
110 | label = "firmware"; |
||
111 | reg = <0x50000 0x7b0000>; |
||
1 | office | 112 | }; |
113 | }; |
||
114 | }; |
||
115 | |||
116 | &pinctrl { |
||
117 | state_default: pinctrl0 { |
||
118 | gpio { |
||
119 | ralink,group = "i2c", "wdt", "pa", "spi refclk", "wled"; |
||
120 | ralink,function = "gpio"; |
||
121 | }; |
||
122 | }; |
||
123 | }; |
||
124 | |||
125 | ðernet { |
||
126 | mtd-mac-address = <&factory 0x4>; |
||
127 | mediatek,portmap = "wllll"; |
||
128 | }; |
||
129 | |||
130 | &wmac { |
||
131 | ralink,mtd-eeprom = <&factory 0>; |
||
132 | }; |
||
133 | |||
134 | &ehci { |
||
135 | status = "okay"; |
||
136 | }; |
||
137 | |||
138 | &ohci { |
||
139 | status = "okay"; |
||
140 | }; |