1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "alcatel,hh40v", "qca,qca9531";
11 model = "Alcatel HH40V";
14 label-mac-device = &wmac;
15 led-boot = &led_lan_link;
16 led-failsafe = &led_lan_link;
17 led-upgrade = &led_lan_link;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
40 pinctrl-names = "default";
41 pinctrl-0 = <&jtag_disable_pins>;
44 function = LED_FUNCTION_LAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 led_lan_link: lan_link {
50 function = LED_FUNCTION_LAN;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
62 function = LED_FUNCTION_WAN;
63 color = <LED_COLOR_ID_ORANGE>;
64 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
70 linux,default-trigger = "phy0tpt";
88 /* Winbond W25Q256 SPI flash */
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <25000000>;
95 compatible = "fixed-partitions";
101 reg = <0x000000 0x040000>;
106 label = "u-boot-env";
107 reg = <0x040000 0x010000>;
112 reg = <0x050000 0x100000>;
117 compatible = "denx,uimage";
119 reg = <0x150000 0xea0000>;
122 art: partition@ff0000 {
124 reg = <0xff0000 0x010000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 cal_art_1000: cal@1000 {
133 reg = <0x1000 0x440>;
136 macaddr_art_0: macaddr@0 {
140 macaddr_art_6: macaddr@6 {
144 macaddr_art_1002: macaddr@1002 {
161 nvmem-cells = <&macaddr_art_0>;
162 nvmem-cell-names = "mac-address";
164 phy-handle = <&swphy4>;
168 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
170 nvmem-cells = <&macaddr_art_6>;
171 nvmem-cell-names = "mac-address";
177 nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
178 nvmem-cell-names = "calibration", "mac-address";