ath79: improve support for D-Link DIR-8x9 A1 series
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_qxwlan_e1700ac.dtsi
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 aliases {
10 label-mac-device = &eth0;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "green:system";
33 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 usb {
38 label = "green:usb";
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
42 };
43
44 wlan2g {
45 label = "green:wlan2g";
46 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
48 };
49 };
50 };
51
52 &pcie {
53 status = "okay";
54 };
55
56 &spi {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <25000000>;
63
64 partitions: partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x040000>;
72 read-only;
73 };
74
75 partition@40000 {
76 label = "u-boot-env";
77 reg = <0x040000 0x010000>;
78 read-only;
79 };
80
81 pridata: partition@50000 {
82 label = "pri-data";
83 reg = <0x050000 0x010000>;
84 read-only;
85 };
86
87 art: partition@60000 {
88 label = "art";
89 reg = <0x060000 0x010000>;
90 read-only;
91 };
92 };
93 };
94 };
95
96 &mdio0 {
97 status = "okay";
98
99 phy0: ethernet-phy@0 {
100 reg = <0>;
101 phy-mode = "sgmii";
102 qca,mib-poll-interval = <500>;
103
104 qca,ar8327-initvals = <
105 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
106 0x7c 0x0000007e /* PORT0_STATUS */
107 >;
108 };
109 };
110
111 &eth0 {
112 status = "okay";
113
114 pll-data = <0x03000101 0x00000101 0x00001919>;
115
116 phy-mode = "sgmii";
117 phy-handle = <&phy0>;
118
119 nvmem-cells = <&macaddr_pridata_400>;
120 nvmem-cell-names = "mac-address";
121 };
122
123 &usb_phy0 {
124 status = "okay";
125 };
126
127 &usb0 {
128 status = "okay";
129 };
130
131 &usb_phy1 {
132 status = "okay";
133 };
134
135 &usb1 {
136 status = "okay";
137 };
138
139 &wmac {
140 status = "okay";
141
142 mtd-cal-data = <&art 0x1000>;
143 };
144
145 &pridata {
146 compatible = "nvmem-cells";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 macaddr_pridata_400: macaddr@400 {
151 reg = <0x400 0x6>;
152 };
153 };