OpenWrt – Blame information for rev 2

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3  
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6  
7 #include "ar7242.dtsi"
8  
9 / {
10 aliases {
11 led-boot = &diag;
12 led-failsafe = &diag;
13 led-upgrade = &diag;
14 };
15  
16 extosc: ref {
17 compatible = "fixed-clock";
18 #clock-cells = <0>;
19 clock-frequency = <40000000>;
20 };
21  
22 keys: keys {
23 compatible = "gpio-keys-polled";
24 poll-interval = <20>;
25  
26 usb {
27 label = "usb";
28 linux,code = <BTN_2>;
29 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
30 debounce-interval = <60>;
31 };
32  
33 reset {
34 label = "reset";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40  
41 leds {
42 compatible = "gpio-leds";
43  
44 sec_vpn: sec_vpn {
45 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
46 };
47  
48 diag: diag {
49 label = "buffalo:red:diag";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 };
52  
53 usb {
54 label = "buffalo:green:usb";
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 trigger-sources = <&hub_port>;
57 linux,default-trigger = "usbport";
58 };
59 };
60  
61 gpio-export {
62 compatible = "gpio-export";
63 #size-cells = <0>;
64  
65 gpio_usb_power {
66 gpio-export,name = "buffalo:usb-power";
67 gpio-export,output = <1>;
68 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
69 };
70 };
71  
72 virtual_flash {
73 compatible = "mtd-concat";
74 devices = <&flash0 &flash1>;
75  
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
80  
81 partition@0 {
82 reg = <0x0 0x40000>;
83 label = "u-boot";
84 read-only;
85 };
86  
87 partition@40000 {
88 reg = <0x40000 0x10000>;
89 label = "u-boot-env";
90 };
91  
92 ART: partition@50000 {
93 reg = <0x50000 0x10000>;
94 label = "ART";
95 read-only;
96 };
97  
98 partition@60000 {
99 compatible = "denx,uimage";
100 reg = <0x60000 0x1f80000>;
101 label = "firmware";
102 };
103  
104 partition@1fe0000 {
105 reg = <0x1fe0000 0x20000>;
106 label = "user_property";
107 read-only;
108 };
109 };
110 };
111 };
112  
113 &spi {
114 status = "okay";
115 cs-gpios = <0>, <0>;
116 num-cs = <2>;
117  
118 flash0: flash@0 {
119 compatible = "jedec,spi-nor";
120 reg = <0>;
121 spi-max-frequency = <25000000>;
122 };
123  
124 flash1: flash@1 {
125 compatible = "jedec,spi-nor";
126 reg = <1>;
127 spi-max-frequency = <25000000>;
128 };
129 };
130  
131 &mdio0 {
132 status = "okay";
133  
134 phy-mask = <0x1>;
135  
136 phy0: ethernet-phy@0 {
137 reg = <0>;
138 phy-mode = "rgmii";
139 };
140 };
141  
142 &eth0 {
143 status = "okay";
144  
145 phy-mode = "rgmii";
146 phy-handle = <&phy0>;
147 };
148  
149 &pll {
150 clocks = <&extosc>;
151 };
152  
153 &uart {
154 status = "okay";
155 };
156  
157 &usb_phy {
158 status = "okay";
159 };
160  
161 &usb {
162 #address-cells = <1>;
163 #size-cells = <0>;
164 status = "okay";
165  
166 hub_port: port@1 {
167 reg = <1>;
168 #trigger-source-cells = <0>;
169 };
170 };