ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca956x.dtsi"
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 wps {
13 linux,code = <KEY_WPS_BUTTON>;
14 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
15 debounce-interval = <60>;
16 };
17
18 reset {
19 linux,code = <KEY_RESTART>;
20 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
21 debounce-interval = <60>;
22 };
23 };
24 };
25
26 &uart {
27 status = "okay";
28 };
29
30 &pcie {
31 status = "okay";
32 };
33
34 &spi {
35 status = "okay";
36
37 num-cs = <1>;
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <50000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x000000 0x40000>;
52 read-only;
53 };
54
55 partition@40000 {
56 label = "u-boot-env";
57 reg = <0x040000 0x10000>;
58 read-only;
59 };
60
61 partition@50000 {
62 label = "devdata";
63 reg = <0x050000 0x10000>;
64 read-only;
65 };
66
67 partition@60000 {
68 label = "devconf";
69 reg = <0x060000 0x10000>;
70 read-only;
71 };
72
73 partition@70000 {
74 label = "misc";
75 reg = <0x070000 0x10000>;
76 read-only;
77 };
78
79 partition@80000 {
80 compatible = "seama";
81 label = "firmware";
82 reg = <0x080000 0xf50000>;
83 };
84
85 art: partition@fd0000 {
86 label = "art";
87 reg = <0xfd0000 0x010000>;
88 read-only;
89 };
90
91 partition@fe0000 {
92 label = "reserved";
93 reg = <0xfe0000 0x20000>;
94 read-only;
95 };
96 };
97 };
98 };
99
100 &mdio0 {
101 status = "okay";
102
103 phy-mask = <0>;
104
105 phy0: ethernet-phy@0 {
106 reg = <0>;
107 qca,mib-poll-interval = <500>;
108 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
109
110 qca,ar8327-initvals = <
111 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
112 0x10 0x81000080 /* POWER_ON_STRIP */
113 0x50 0xcc35cc35 /* LED_CTRL0 */
114 0x54 0xcb37cb37 /* LED_CTRL1 */
115 0x58 0x00000000 /* LED_CTRL2 */
116 0x5c 0x00f3cf00 /* LED_CTRL3 */
117 0x7c 0x0000007e /* PORT0_STATUS */
118 >;
119 };
120 };
121
122 &eth0 {
123 status = "okay";
124
125 pll-data = <0x03000101 0x00000101 0x00001919>;
126
127 phy-mode = "sgmii";
128 phy-handle = <&phy0>;
129 };
130
131 &wmac {
132 status = "okay";
133
134 qca,no-eeprom;
135 };