ath79: move dts-v1 statement to ath79.dtsi
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_dlink_dch-g020-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dch-g020-a1", "qca,qca9531";
10 model = "D-Link DCH-G020 A1";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 i2c {
20 compatible = "i2c-gpio";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 sda-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
25 scl-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
26
27 gpio_ext: gpio_ext@38 {
28 compatible = "nxp,pca9554";
29 reg = <0x38 0x1>;
30
31 gpio-controller;
32 #gpio-cells = <2>;
33 };
34
35 rtc@30 {
36 compatible = "pericom,pt7c43390";
37 reg = <0x30 0x8>;
38 };
39 };
40
41 gpio-export {
42 compatible = "gpio-export";
43
44 usb_power {
45 label = "d-link:power:usb";
46 gpio-export,name = "d-link:power:usb";
47 gpio-export,output = <0>;
48 gpios = <&gpio_ext 3 GPIO_ACTIVE_LOW>;
49 };
50
51 zwave_power {
52 label = "d-link:power:zwave";
53 gpio-export,name = "d-link:power:zwave";
54 gpio-export,output = <0>;
55 gpios = <&gpio_ext 1 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 keys {
60 compatible = "gpio-keys";
61
62 wps {
63 label = "wps";
64 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
66 };
67
68 reset {
69 label = "reset";
70 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77
78 led_power: power {
79 label = "d-link:green:power";
80 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
81 };
82
83 status {
84 label = "d-link:red:status";
85 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
86 };
87 };
88 };
89
90 &spi {
91 status = "okay";
92
93 num-cs = <1>;
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <50000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x0 0x10000>;
108 read-only;
109 };
110
111 art: partition@10000 {
112 label = "art";
113 reg = <0x10000 0x10000>;
114 read-only;
115 };
116
117 partition@20000 {
118 label = "mp";
119 reg = <0x20000 0x10000>;
120 read-only;
121 };
122
123 partition@30000 {
124 label = "config";
125 reg = <0x30000 0x10000>;
126 read-only;
127 };
128
129 partition@40000 {
130 label = "bootarg";
131 reg = <0x40000 0x10000>;
132 read-only;
133 };
134
135 partition@50000 {
136 label = "firmware";
137 reg = <0x50000 0xe70000>;
138 compatible = "denx,uimage";
139 };
140
141 partition@ec0000 {
142 label = "dlink";
143 reg = <0xec0000 0x140000>;
144 read-only;
145 };
146 };
147 };
148 };
149
150 &uart {
151 status = "okay";
152 };
153
154 &usb0 {
155 status = "okay";
156 };
157
158 &usb_phy {
159 status = "okay";
160 };
161
162 &eth0 {
163 status = "okay";
164 };
165
166 &wmac {
167 status = "okay";
168
169 mtd-cal-data = <&art 0x1000>;
170 };