140f0b65c6013a2a12558967d45a1bb0a1bee89b
[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
61 &pcie {
62 status = "okay";
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <50000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "bootloader";
80 reg = <0x000000 0x40000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "bdcfg";
86 reg = <0x040000 0x10000>;
87 read-only;
88 };
89
90 partition@50000 {
91 label = "devdata";
92 reg = <0x050000 0x10000>;
93 read-only;
94 };
95
96 partition@60000 {
97 label = "devconf";
98 reg = <0x060000 0x10000>;
99 read-only;
100 };
101
102 partition@70000 {
103 compatible = "seama";
104 label = "firmware";
105 reg = <0x070000 0xf80000>;
106 };
107
108 art: partition@ff0000 {
109 label = "art";
110 reg = <0xff0000 0x010000>;
111 read-only;
112 };
113 };
114 };
115 };
116
117 &mdio0 {
118 status = "okay";
119
120 phy0: ethernet-phy@0 {
121 reg = <0>;
122 phy-mode = "sgmii";
123 qca,mib-poll-interval = <500>;
124
125 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
126
127 qca,ar8327-initvals = <
128 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
129 0x10 0x81000080 /* POWER_ON_STRAP */
130 0x50 0xcc35cc35 /* LED_CTRL0 */
131 0x54 0xcb37cb37 /* LED_CTRL1 */
132 0x58 0x00000000 /* LED_CTRL2 */
133 0x5c 0x00f3cf00 /* LED_CTRL3 */
134 0x7c 0x0000007e /* PORT0_STATUS */
135 >;
136 };
137 };
138
139 &eth0 {
140 status = "okay";
141
142 pll-data = <0x03000101 0x00000101 0x00001919>;
143
144 phy-mode = "sgmii";
145 phy-handle = <&phy0>;
146 };
147
148 &wmac {
149 status = "okay";
150
151 qca,no-eeprom;
152 };