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