OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "amazonse.dtsi"
4  
5 #include <dt-bindings/input/input.h>
6  
7 / {
8 compatible = "netgear,dgn1000b", "lantiq,xway", "lantiq,ase";
9 model = "Netgear DGN1000B";
10  
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14  
15 aliases {
16 led-boot = &power;
17 led-failsafe = &power;
18 led-running = &power;
19  
20 led-dsl = &dsl;
21 led-internet = &online_green;
22 };
23  
24 memory@0 {
25 reg = <0x0 0x1000000>;
26 };
27  
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <100>;
33  
34 reset {
35 label = "reset";
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 rfkill {
40 label = "rfkill";
41 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RFKILL>;
43 };
44 wps {
45 label = "wps";
46 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
48 };
49 };
50  
51 gpio-leds {
52 compatible = "gpio-leds";
53 dsl: dsl {
54 label = "dgn1000b:green:dsl";
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 default-state = "on";
57 };
58 online_green: online {
59 label = "dgn1000b:green:online";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 default-state = "on";
62 };
63 online2 {
64 label = "dgn1000b:red:online";
65 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
66 default-state = "on";
67 };
68 wps {
69 label = "dgn1000b:green:wps";
70 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
71 default-state = "on";
72 };
73 power: power {
74 label = "dgn1000b:green:power";
75 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
76 default-state = "keep";
77 };
78 /*
79 power red is missing
80 */
81 };
82 };
83  
84 &gpio {
85 pinctrl-names = "default";
86 pinctrl-0 = <&state_default>;
87  
88 state_default: pinmux {
89 asc {
90 lantiq,groups = "asc";
91 lantiq,function = "asc";
92 };
93 keys_in {
94 lantiq,pins = "io0",/* "io25", */"io29";
95 lantiq,pull = <2>;
96 lantiq,open-drain = <1>;
97 };
98 };
99 pins_spi_default: pins_spi_default {
100 spi_in {
101 lantiq,groups = "spi_di";
102 lantiq,function = "spi";
103 };
104 spi_out {
105 lantiq,groups = "spi_do", "spi_clk",
106 "spi_cs1";
107 lantiq,function = "spi";
108 lantiq,output = <1>;
109 };
110 };
111 };
112  
113 &gsw {
114 phy-mode = "mii";
115 mac-address = [ 00 11 22 33 44 55 ];
116 };
117  
118 &spi {
119 status = "okay";
120 pinctrl-names = "default";
121 pinctrl-0 = <&pins_spi_default>;
122  
123 m25p80@1 {
124 #address-cells = <1>;
125 #size-cells = <1>;
126 compatible = "jedec,spi-nor";
127 reg = <1 0>;
128 spi-max-frequency = <5000000>;
129  
130 partitions {
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
133 #size-cells = <1>;
134  
135 partition@0 {
136 reg = <0x0 0x20000>;
137 label = "SPI (RO) U-Boot Image";
138 read-only;
139 };
140  
141 partition@20000 {
142 reg = <0x20000 0x10000>;
143 label = "ENV_MAC";
144 read-only;
145 };
146  
147 partition@30000 {
148 reg = <0x30000 0x10000>;
149 label = "DPF";
150 read-only;
151 };
152  
153 partition@40000 {
154 reg = <0x40000 0x10000>;
155 label = "NVRAM";
156 read-only;
157 };
158  
159 partition@500000 {
160 reg = <0x50000 0x003a0000>;
161 label = "kernel";
162 };
163 };
164 };
165 };
166  
167 &usb_phy {
168 status = "okay";
169 };
170  
171 &usb {
172 status = "okay";
173 };