ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_dlink_dap-2695-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-2695-a1", "qca,qca9558";
7 model = "D-link DAP-2695-A1";
8
9 aliases {
10 led-boot = &led_power_red;
11 led-failsafe = &led_power_red;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_red;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_power_green: power_green {
20 label = "green:power";
21 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
22 default-state = "on";
23 };
24
25 led_power_red: power_red {
26 label = "red:power";
27 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
28 };
29
30 wifi2g {
31 label = "green:wifi2g";
32 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy1tpt";
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys";
39
40 reset {
41 label = "reset";
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
44 };
45 };
46 };
47
48 &partitions {
49 partition@70000 {
50 label = "firmware";
51 reg = <0x070000 0xf00000>;
52 compatible = "wrg";
53 };
54
55 partition@f70000 {
56 label = "captival";
57 reg = <0xf70000 0x070000>;
58 read-only;
59 };
60
61 partition@fe0000 {
62 label = "certificate";
63 reg = <0xfe0000 0x010000>;
64 read-only;
65 };
66
67 art: partition@ff0000 {
68 label = "art";
69 reg = <0xff0000 0x010000>;
70 read-only;
71 };
72 };
73
74 &mdio0 {
75 status = "okay";
76
77 phy0: ethernet-phy@0 {
78 reg = <0>;
79
80 qca,ar8327-initvals = <
81 0x04 0x07600000 /* PORT0_PAD_CTRL */
82 0x0c 0x00080080 /* PORT6_PAD_CTRL */
83 0x7c 0x0000007e /* PORT0_STATUS */
84 0x94 0x0000007e /* PORT6_STATUS */
85 >;
86 };
87 };
88
89 &eth0 {
90 status = "okay";
91
92 phy-handle = <&phy0>;
93 pll-data = <0x56000000 0x00000101 0x00001616>;
94
95 fixed-link {
96 speed = <1000>;
97 full-duplex;
98 };
99 };
100
101 &eth1 {
102 status = "okay";
103
104 phy-mask = <0>;
105 pll-data = <0x03000101 0x00000101 0x00001616>;
106
107 fixed-link {
108 speed = <1000>;
109 full-duplex;
110 };
111 };
112
113 &pcie0 {
114 status = "okay";
115 };