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