ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_dlink_dir-842-c.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 #include <dt-bindings/leds/common.h>
8
9 / {
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 wps {
21 linux,code = <KEY_WPS_BUTTON>;
22 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
23 debounce-interval = <60>;
24 };
25
26 reset {
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 led_power: power {
37 function = LED_FUNCTION_POWER;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
40 };
41
42 wps {
43 function = LED_FUNCTION_WPS;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
46 };
47
48 wlan {
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54 };
55 };
56
57 &pcie {
58 status = "okay";
59 };
60
61 &spi {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <50000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x40000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "u-boot-env";
82 reg = <0x040000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "devdata";
88 reg = <0x050000 0x10000>;
89 read-only;
90 };
91
92 partition@60000 {
93 label = "devconf";
94 reg = <0x060000 0x10000>;
95 read-only;
96 };
97
98 partition@70000 {
99 label = "misc";
100 reg = <0x070000 0x10000>;
101 read-only;
102 };
103
104 partition@80000 {
105 compatible = "seama";
106 label = "firmware";
107 reg = <0x080000 0xf50000>;
108 };
109
110 art: partition@fd0000 {
111 label = "art";
112 reg = <0xfd0000 0x010000>;
113 read-only;
114 };
115
116 partition@fe0000 {
117 label = "reserved";
118 reg = <0xfe0000 0x20000>;
119 read-only;
120 };
121 };
122 };
123 };
124
125 &mdio0 {
126 status = "okay";
127
128 phy0: ethernet-phy@0 {
129 reg = <0>;
130 qca,mib-poll-interval = <500>;
131 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
132
133 qca,ar8327-initvals = <
134 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
135 0x10 0x81000080 /* POWER_ON_STRAP */
136 0x50 0xcc35cc35 /* LED_CTRL0 */
137 0x54 0xcb37cb37 /* LED_CTRL1 */
138 0x58 0x00000000 /* LED_CTRL2 */
139 0x5c 0x00f3cf00 /* LED_CTRL3 */
140 0x7c 0x0000007e /* PORT0_STATUS */
141 >;
142 };
143 };
144
145 &eth0 {
146 status = "okay";
147
148 pll-data = <0x03000101 0x00000101 0x00001919>;
149
150 phy-mode = "sgmii";
151 phy-handle = <&phy0>;
152 };
153
154 &wmac {
155 status = "okay";
156
157 qca,no-eeprom;
158 };