OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * BSD LICENSE |
||
3 | * |
||
4 | * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>. |
||
5 | * Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>. |
||
6 | * All rights reserved. |
||
7 | * |
||
8 | * Redistribution and use in source and binary forms, with or without |
||
9 | * modification, are permitted provided that the following conditions |
||
10 | * are met: |
||
11 | * |
||
12 | * * Redistributions of source code must retain the above copyright |
||
13 | * notice, this list of conditions and the following disclaimer. |
||
14 | * * Redistributions in binary form must reproduce the above copyright |
||
15 | * notice, this list of conditions and the following disclaimer in |
||
16 | * the documentation and/or other materials provided with the |
||
17 | * distribution. |
||
18 | * * Neither the name of Broadcom Corporation nor the names of its |
||
19 | * contributors may be used to endorse or promote products derived |
||
20 | * from this software without specific prior written permission. |
||
21 | * |
||
22 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||
23 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||
24 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||
25 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||
26 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||
27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||
28 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
29 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
30 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||
32 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
33 | */ |
||
34 | |||
35 | #include "mt7628an.dtsi" |
||
36 | |||
37 | #include <dt-bindings/gpio/gpio.h> |
||
38 | #include <dt-bindings/input/input.h> |
||
39 | |||
40 | / { |
||
41 | compatible = "unielec,u7628-01", "mediatek,mt7628an-soc"; |
||
42 | |||
43 | aliases { |
||
44 | led-boot = &led_power; |
||
45 | led-failsafe = &led_power; |
||
46 | led-running = &led_power; |
||
47 | led-upgrade = &led_power; |
||
48 | }; |
||
49 | |||
50 | chosen { |
||
51 | bootargs = "console=ttyS0,115200"; |
||
52 | }; |
||
53 | |||
54 | keys { |
||
55 | compatible = "gpio-keys-polled"; |
||
56 | poll-interval = <20>; |
||
57 | reset { |
||
58 | label = "reset"; |
||
59 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
||
60 | linux,code = <KEY_RESTART>; |
||
61 | }; |
||
62 | }; |
||
63 | |||
64 | leds { |
||
65 | compatible = "gpio-leds"; |
||
66 | |||
67 | led_power: power { |
||
68 | label = "u7628-01:green:power"; |
||
69 | gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | |||
72 | wlan { |
||
73 | label = "u7628-01:green:wlan"; |
||
74 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
75 | }; |
||
76 | |||
77 | wan { |
||
78 | label = "u7628-01:green:wan"; |
||
79 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
||
80 | }; |
||
81 | |||
82 | lan1 { |
||
83 | label = "u7628-01:green:lan1"; |
||
84 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
||
85 | }; |
||
86 | |||
87 | lan2 { |
||
88 | label = "u7628-01:green:lan2"; |
||
89 | gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
||
90 | }; |
||
91 | |||
92 | lan3 { |
||
93 | label = "u7628-01:green:lan3"; |
||
94 | gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; |
||
95 | }; |
||
96 | |||
97 | lan4 { |
||
98 | label = "u7628-01:green:lan4"; |
||
99 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
||
100 | }; |
||
101 | |||
102 | usb { |
||
103 | label = "u7628-01:green:usb"; |
||
104 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
||
105 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
||
106 | linux,default-trigger = "usbport"; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | |||
111 | &gpio0 { |
||
112 | status = "okay"; |
||
113 | }; |
||
114 | |||
115 | &gpio1 { |
||
116 | status = "okay"; |
||
117 | }; |
||
118 | |||
119 | &pcie { |
||
120 | status = "okay"; |
||
121 | }; |
||
122 | |||
123 | ðernet { |
||
124 | mtd-mac-address = <&factory 0x28>; |
||
125 | }; |
||
126 | |||
127 | &wmac { |
||
128 | status = "okay"; |
||
129 | ralink,mtd-eeprom = <&factory 0x0>; |
||
130 | }; |
||
131 | |||
132 | &pinctrl { |
||
133 | state_default: pinctrl0 { |
||
134 | gpio { |
||
135 | ralink,group = "gpio", "p0led_an", "p1led_an", "p2led_an", "p3led_an", "p4led_an", "refclk", "wdt", "wled_an"; |
||
136 | ralink,function = "gpio"; |
||
137 | }; |
||
138 | }; |
||
139 | }; |