ath79: drop num-cs for SPI controller
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_dlink_dir-859-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "D-Link DIR-859 A1";
10 compatible = "dlink,dir-859-a1", "qca,qca9563";
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 leds {
20 compatible = "gpio-leds";
21
22 wps {
23 label = "green:wps";
24 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
25 };
26
27 led_power: power {
28 label = "green:power";
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 };
31
32 internet {
33 label = "green:internet";
34 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35 };
36
37 wlan {
38 label = "green:wlan";
39 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
41 };
42 };
43
44 keys {
45 compatible = "gpio-keys";
46
47 wps {
48 linux,code = <KEY_WPS_BUTTON>;
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
51 };
52
53 reset {
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
57 };
58 };
59
60 gpio-export {
61 compatible = "gpio-export";
62 #size-cells = <0>;
63
64 gpio_switch_reset {
65 gpio-export,name = "dir-859-a1:reset:switch";
66 gpio-export,output = <1>;
67 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
68 };
69 };
70 };
71
72 &uart {
73 status = "okay";
74 };
75
76 &pcie {
77 status = "okay";
78 };
79
80 &spi {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <30000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "bootloader";
95 reg = <0x000000 0x40000>;
96 read-only;
97 };
98
99 partition@40000 {
100 label = "bdcfg";
101 reg = <0x040000 0x10000>;
102 read-only;
103 };
104
105 partition@50000 {
106 label = "devdata";
107 reg = <0x050000 0x10000>;
108 read-only;
109 };
110
111 partition@60000 {
112 label = "devconf";
113 reg = <0x060000 0x10000>;
114 read-only;
115 };
116
117 partition@70000 {
118 compatible = "seama";
119 label = "firmware";
120 reg = <0x070000 0xf80000>;
121 };
122
123 art: partition@ff0000 {
124 label = "art";
125 reg = <0xff0000 0x010000>;
126 read-only;
127 };
128 };
129 };
130 };
131
132 &mdio0 {
133 status = "okay";
134
135 phy-mask = <0>;
136
137 phy0: ethernet-phy@0 {
138 reg = <0>;
139 phy-mode = "sgmii";
140 qca,mib-poll-interval = <500>;
141
142 qca,ar8327-initvals = <
143 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
144 0x10 0x81000080 /* POWER_ON_STRAP */
145 0x50 0xcc35cc35 /* LED_CTRL0 */
146 0x54 0xcb37cb37 /* LED_CTRL1 */
147 0x58 0x00000000 /* LED_CTRL2 */
148 0x5c 0x00f3cf00 /* LED_CTRL3 */
149 0x7c 0x0000007e /* PORT0_STATUS */
150 >;
151 };
152 };
153
154 &eth0 {
155 status = "okay";
156
157 pll-data = <0x03000101 0x00000101 0x00001919>;
158
159 phy-mode = "sgmii";
160 phy-handle = <&phy0>;
161 };
162
163 &wmac {
164 status = "okay";
165
166 qca,no-eeprom;
167 };