lantiq: copy target to kernel 5.4
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / amazonse_netgear_dgn1000b.dts
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 led-upgrade = &power;
20
21 led-dsl = &dsl;
22 led-internet = &online_green;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x1000000>;
28 };
29
30 keys {
31 compatible = "gpio-keys-polled";
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 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 keys_in {
90 lantiq,pins = "io0",/* "io25", */"io29";
91 lantiq,pull = <2>;
92 lantiq,open-drain = <1>;
93 };
94 };
95 };
96
97 &gsw {
98 phy-mode = "mii";
99 mac-address = [ 00 11 22 33 44 55 ];
100 };
101
102 &spi {
103 status = "okay";
104
105 flash@1 {
106 compatible = "jedec,spi-nor";
107 reg = <1>;
108 spi-max-frequency = <5000000>;
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 reg = <0x0 0x20000>;
117 label = "SPI (RO) U-Boot Image";
118 read-only;
119 };
120
121 partition@20000 {
122 reg = <0x20000 0x10000>;
123 label = "ENV_MAC";
124 read-only;
125 };
126
127 partition@30000 {
128 reg = <0x30000 0x10000>;
129 label = "DPF";
130 read-only;
131 };
132
133 partition@40000 {
134 reg = <0x40000 0x10000>;
135 label = "NVRAM";
136 read-only;
137 };
138
139 partition@500000 {
140 reg = <0x50000 0x003a0000>;
141 label = "kernel";
142 };
143 };
144 };
145 };
146
147 &usb_phy {
148 status = "okay";
149 };
150
151 &usb {
152 status = "okay";
153 };