1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "dlink,dir-629-a1", "qca,qca9558";
11 model = "D-Link DIR-629 A1";
14 label-mac-device = ð0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_WPS_BUTTON>;
34 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-leds";
42 color = <LED_COLOR_ID_GREEN>;
43 function = LED_FUNCTION_WLAN;
44 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
49 label = "green:power";
50 color = <LED_COLOR_ID_GREEN>;
51 function = LED_FUNCTION_POWER;
52 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_GREEN>;
57 function = LED_FUNCTION_WPS;
58 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
68 nvmem-cells = <&macaddr_mfcdata_35 0>;
69 nvmem-cell-names = "mac-address";
81 compatible = "qca,ar8236";
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <30000000>;
96 compatible = "fixed-partitions";
102 reg = <0x000000 0x040000>;
107 label = "u-boot-env";
108 reg = <0x040000 0x008000>;
114 reg = <0x048000 0x008000>;
117 compatible = "nvmem-cells";
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 macaddr_mfcdata_35: macaddr@35 {
125 compatible = "mac-base";
127 #nvmem-cell-cells = <1>;
130 macaddr_mfcdata_51: macaddr@51 {
131 compatible = "mac-base";
133 #nvmem-cell-cells = <1>;
140 reg = <0x050000 0x010000>;
146 reg = <0x060000 0x020000>;
152 reg = <0x080000 0x010000>;
155 compatible = "nvmem-cells";
156 #address-cells = <1>;
159 cal_art_1000: calibration@1000 {
160 reg = <0x1000 0x440>;
165 compatible = "seama";
167 reg = <0x090000 0x770000>;
176 nvmem-cells = <&cal_art_1000>, <&macaddr_mfcdata_51 0>;
177 nvmem-cell-names = "calibration", "mac-address";