ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9558_dlink_dap-2695-a1.dts
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 "qca955x.dtsi"
8
9 / {
10         compatible = "dlink,dap-2695-a1", "qca,qca9558";
11         model = "D-link DAP-2695-A1";
12
13         aliases {
14                 led-boot = &led_power_red;
15                 led-failsafe = &led_power_red;
16                 led-running = &led_power_green;
17                 led-upgrade = &led_power_red;
18         };
19
20         leds {
21                 compatible = "gpio-leds";
22
23                 led_power_green: power_green {
24                         label = "d-link:green:power";
25                         gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
26                         default-state = "on";
27                 };
28
29                 led_power_red: power_red {
30                         label = "d-link:red:power";
31                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
32                 };
33
34                 wifi2g {
35                         label = "d-link:green:wifi2g";
36                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
37                         linux,default-trigger = "phy1tpt";
38                 };
39         };
40
41         keys {
42                 compatible = "gpio-keys";
43
44                 reset {
45                         label = "reset";
46                         linux,code = <KEY_RESTART>;
47                         gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48                 };
49         };
50 };
51
52 &spi {
53         status = "okay";
54         num-cs = <1>;
55
56         flash@0 {
57                 #address-cells = <1>;
58                 #size-cells = <1>;
59                 compatible = "mx25l12805d";
60                 reg = <0>;
61                 spi-max-frequency = <25000000>;
62
63                 partitions {
64                         compatible = "fixed-partitions";
65                         #address-cells = <1>;
66                         #size-cells = <1>;
67
68                         partition@0 {
69                                 label = "u-boot";
70                                 reg = <0x000000 0x040000>;
71                                 read-only;
72                         };
73
74                         partition@40000 {
75                                 label = "bdcfg";
76                                 reg = <0x040000 0x010000>;
77                                 read-only;
78                         };
79
80                         partition@50000 {
81                                 label = "rgdb";
82                                 reg = <0x050000 0x010000>;
83                                 read-only;
84                         };
85
86                         partition@60000 {
87                                 label = "langpack";
88                                 reg = <0x060000 0x010000>;
89                                 read-only;
90                         };
91
92                         partition@70000 {
93                                 compatible = "wrg";
94                                 label = "firmware";
95                                 reg = <0x070000 0xf00000>;
96                         };
97
98                         partition@f70000 {
99                                 label = "captival";
100                                 reg = <0xf70000 0x070000>;
101                                 read-only;
102                         };
103
104                         partition@fe0000 {
105                                 label = "certificate";
106                                 reg = <0xfe0000 0x010000>;
107                                 read-only;
108                         };
109
110                         art: partition@ff0000 {
111                                 label = "art";
112                                 reg = <0xff0000 0x010000>;
113                                 read-only;
114                         };
115                 };
116         };
117 };
118
119 &mdio0 {
120         status = "okay";
121
122         phy0: ethernet-phy@0 {
123                 reg = <0>;
124
125                 qca,ar8327-initvals = <
126                         0x04 0x07600000 /* PORT0_PAD_CTRL */
127                         0x0c 0x00080080 /* PORT6_PAD_CTRL */
128                         0x7c 0x0000007e /* PORT0_STATUS */
129                         0x94 0x0000007e /* PORT6_STATUS */
130                 >;
131         };
132 };
133
134 &eth0 {
135         status = "okay";
136
137         phy-handle = <&phy0>;
138         phy-mode = "rgmii";
139         pll-data = <0x56000000 0x00000101 0x00001616>;
140
141         fixed-link {
142                 speed = <1000>;
143                 full-duplex;
144         };
145 };
146
147 &eth1 {
148         status = "okay";
149
150         phy-mask = <0>;
151         phy-mode = "sgmii";
152         pll-data = <0x03000101 0x00000101 0x00001616>;
153
154         fixed-link {
155                 speed = <1000>;
156                 full-duplex;
157         };
158 };
159
160 &pcie0 {
161         status = "okay";
162 };
163
164 &uart {
165         status = "okay";
166 };
167
168 &wmac {
169         status = "okay";
170
171         qca,no-eeprom;
172 };