ath79: drop num-cs for SPI controller
[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 = "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 = "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 = "green:power";
80 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
81 };
82
83 status {
84 label = "red:status";
85 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
86 };
87 };
88 };
89
90 &spi {
91 status = "okay";
92
93 flash@0 {
94 compatible = "jedec,spi-nor";
95 reg = <0>;
96 spi-max-frequency = <50000000>;
97
98 partitions {
99 compatible = "fixed-partitions";
100 #address-cells = <1>;
101 #size-cells = <1>;
102
103 partition@0 {
104 label = "u-boot";
105 reg = <0x0 0x10000>;
106 read-only;
107 };
108
109 art: partition@10000 {
110 label = "art";
111 reg = <0x10000 0x10000>;
112 read-only;
113 };
114
115 partition@20000 {
116 label = "mp";
117 reg = <0x20000 0x10000>;
118 read-only;
119 };
120
121 partition@30000 {
122 label = "config";
123 reg = <0x30000 0x10000>;
124 read-only;
125 };
126
127 partition@40000 {
128 label = "bootarg";
129 reg = <0x40000 0x10000>;
130 read-only;
131 };
132
133 partition@50000 {
134 label = "firmware";
135 reg = <0x50000 0xe70000>;
136 compatible = "denx,uimage";
137 };
138
139 partition@ec0000 {
140 label = "dlink";
141 reg = <0xec0000 0x140000>;
142 read-only;
143 };
144 };
145 };
146 };
147
148 &uart {
149 status = "okay";
150 };
151
152 &usb0 {
153 status = "okay";
154 };
155
156 &usb_phy {
157 status = "okay";
158 };
159
160 &eth0 {
161 status = "okay";
162 };
163
164 &wmac {
165 status = "okay";
166
167 mtd-cal-data = <&art 0x1000>;
168 };