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