lantiq: dts: drop falcon clock node
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / 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 gpio-keys-polled {
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 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 compatible = "jedec,spi-nor";
125 reg = <1>;
126 spi-max-frequency = <5000000>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 reg = <0x0 0x20000>;
135 label = "SPI (RO) U-Boot Image";
136 read-only;
137 };
138
139 partition@20000 {
140 reg = <0x20000 0x10000>;
141 label = "ENV_MAC";
142 read-only;
143 };
144
145 partition@30000 {
146 reg = <0x30000 0x10000>;
147 label = "DPF";
148 read-only;
149 };
150
151 partition@40000 {
152 reg = <0x40000 0x10000>;
153 label = "NVRAM";
154 read-only;
155 };
156
157 partition@500000 {
158 reg = <0x50000 0x003a0000>;
159 label = "kernel";
160 };
161 };
162 };
163 };
164
165 &usb_phy {
166 status = "okay";
167 };
168
169 &usb {
170 status = "okay";
171 };