65948ecb22292d1be5b605cd69c4695775825ba7
[openwrt/staging/ldir.git] / target / linux / ath79 / dts / qca9563_dlink_dir-8x9-a1.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
10 keys {
11 compatible = "gpio-keys";
12
13 wps {
14 linux,code = <KEY_WPS_BUTTON>;
15 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
16 debounce-interval = <60>;
17 };
18
19 reset {
20 linux,code = <KEY_RESTART>;
21 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
22 debounce-interval = <60>;
23 };
24 };
25 };
26
27 &pcie {
28 status = "okay";
29 };
30
31 &spi {
32 status = "okay";
33
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <50000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "bootloader";
46 reg = <0x000000 0x40000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "bdcfg";
52 reg = <0x040000 0x10000>;
53 read-only;
54 };
55
56 partition@50000 {
57 label = "devdata";
58 reg = <0x050000 0x10000>;
59 read-only;
60 };
61
62 partition@60000 {
63 label = "devconf";
64 reg = <0x060000 0x10000>;
65 read-only;
66 };
67
68 partition@70000 {
69 compatible = "seama";
70 label = "firmware";
71 reg = <0x070000 0xf80000>;
72 };
73
74 art: partition@ff0000 {
75 label = "art";
76 reg = <0xff0000 0x010000>;
77 read-only;
78 };
79 };
80 };
81 };
82
83 &mdio0 {
84 status = "okay";
85
86 phy0: ethernet-phy@0 {
87 reg = <0>;
88 phy-mode = "sgmii";
89 qca,mib-poll-interval = <500>;
90
91 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
92
93 qca,ar8327-initvals = <
94 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
95 0x10 0x81000080 /* POWER_ON_STRAP */
96 0x50 0xcc35cc35 /* LED_CTRL0 */
97 0x54 0xcb37cb37 /* LED_CTRL1 */
98 0x58 0x00000000 /* LED_CTRL2 */
99 0x5c 0x00f3cf00 /* LED_CTRL3 */
100 0x7c 0x0000007e /* PORT0_STATUS */
101 >;
102 };
103 };
104
105 &eth0 {
106 status = "okay";
107
108 pll-data = <0x03000101 0x00000101 0x00001919>;
109
110 phy-mode = "sgmii";
111 phy-handle = <&phy0>;
112 };
113
114 &wmac {
115 status = "okay";
116
117 qca,no-eeprom;
118 };