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