ath79: add aliases to qca955x.dtsi for uart0/1
[openwrt/staging/nbd.git] / target / linux / ath79 / dts / qca9558_dlink_dir-629-a1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "dlink,dir-629-a1", "qca,qca9558";
11 model = "D-Link DIR-629 A1";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 };
29
30 wps {
31 label = "wps";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led-0 {
41 color = <LED_COLOR_ID_GREEN>;
42 function = LED_FUNCTION_WLAN;
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy0tpt";
45 };
46
47 led_power: led-1 {
48 color = <LED_COLOR_ID_GREEN>;
49 function = LED_FUNCTION_POWER;
50 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
51 };
52
53 led-2 {
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_WPS;
56 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &eth0 {
62 status = "okay";
63
64 phy-mode = "mii";
65
66 nvmem-cells = <&macaddr_mfcdata_35 0>;
67 nvmem-cell-names = "mac-address";
68
69 fixed-link {
70 speed = <100>;
71 full-duplex;
72 };
73 };
74
75 &mdio0 {
76 status = "okay";
77
78 switch0@1f {
79 compatible = "qca,ar8236";
80 reg = <0x1f>;
81 };
82 };
83
84 &spi {
85 status = "okay";
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <30000000>;
91 m25p,fast-read;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 partition@0 {
99 label = "u-boot";
100 reg = <0x000000 0x040000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "u-boot-env";
106 reg = <0x040000 0x008000>;
107 read-only;
108 };
109
110 partition@48000 {
111 label = "mfcdata";
112 reg = <0x048000 0x008000>;
113 read-only;
114
115 nvmem-layout {
116 compatible = "fixed-layout";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 macaddr_mfcdata_35: macaddr@35 {
121 compatible = "mac-base";
122 reg = <0x35 0x11>;
123 #nvmem-cell-cells = <1>;
124 };
125
126 macaddr_mfcdata_51: macaddr@51 {
127 compatible = "mac-base";
128 reg = <0x51 0x11>;
129 #nvmem-cell-cells = <1>;
130 };
131 };
132 };
133
134 partition@50000 {
135 label = "devconf";
136 reg = <0x050000 0x010000>;
137 read-only;
138 };
139
140 partition@60000 {
141 label = "langpack";
142 reg = <0x060000 0x020000>;
143 read-only;
144 };
145
146 partition@80000 {
147 label = "art";
148 reg = <0x080000 0x010000>;
149 read-only;
150
151 nvmem-layout {
152 compatible = "fixed-layout";
153 #address-cells = <1>;
154 #size-cells = <1>;
155
156 cal_art_1000: calibration@1000 {
157 reg = <0x1000 0x440>;
158 };
159 };
160 };
161
162 partition@90000 {
163 compatible = "seama";
164 label = "firmware";
165 reg = <0x090000 0x770000>;
166 };
167 };
168 };
169 };
170
171 &wmac {
172 status = "okay";
173
174 nvmem-cells = <&cal_art_1000>, <&macaddr_mfcdata_51 0>;
175 nvmem-cell-names = "calibration", "mac-address";
176 };