1ecc987a4f2cf0362f10606f7e8b2a695dddfc7e
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_dlink_dap-3662-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_dlink_dap-2xxx.dtsi"
4
5 / {
6 compatible = "dlink,dap-3662-a1", "qca,qca9558";
7 model = "D-Link DAP-3662 A1";
8
9 aliases {
10 led-boot = &led_power_green;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_red;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 linux,code = <KEY_RESTART>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 leds {
27 compatible = "gpio-leds";
28
29 led_power_red: power_red {
30 label = "red:power";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power_green: power_green {
35 label = "green:power";
36 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39 };
40 };
41
42 &partitions {
43 partition@70000 {
44 label = "firmware";
45 reg = <0x70000 0xef0000>;
46 compatible = "wrg";
47 };
48
49 partition@f60000 {
50 label = "dlink";
51 reg = <0xf60000 0x90000>;
52 read-only;
53 };
54 };
55
56 &mdio0 {
57 status = "okay";
58
59 phy0: ethernet-phy@0 {
60 reg = <0>;
61
62 qca,ar8327-initvals = <
63 0x04 0x07600000 /* PORT0_PAD_CTRL */
64 0x0c 0x00080080 /* PORT6_PAD_CTRL */
65 0x7c 0x0000007e /* PORT0_STATUS */
66 0x94 0x0000007e /* PORT6_STATUS */
67 >;
68 };
69 };
70
71 &eth0 {
72 status = "okay";
73
74 phy-handle = <&phy0>;
75 pll-data = <0x56000000 0x00000101 0x00001616>;
76
77 fixed-link {
78 speed = <1000>;
79 full-duplex;
80 };
81 };
82
83 &eth1 {
84 status = "okay";
85
86 pll-data = <0x03000101 0x00000101 0x00001616>;
87
88 fixed-link {
89 speed = <1000>;
90 full-duplex;
91 };
92 };
93
94 &pcie0 {
95 status = "okay";
96 };