1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq8064-v2.0.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "Ubiquiti UniFi AC HD";
10 compatible = "ubnt,unifi-ac-hd", "qcom,ipq8064";
13 label-mac-device = &gmac2;
14 led-boot = &led_dome_white;
15 led-failsafe = &led_dome_white;
16 led-running = &led_dome_blue;
17 led-upgrade = &led_dome_blue;
24 compatible = "gpio-leds";
25 pinctrl-0 = <&led_pins>;
26 pinctrl-names = "default";
28 led_dome_blue: dome_blue {
30 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
33 led_dome_white: dome_white {
35 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
40 compatible = "gpio-keys";
41 pinctrl-0 = <&button_pins>;
42 pinctrl-names = "default";
46 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 debounce-interval = <60>;
55 button_pins: button_pins {
66 pins = "gpio9", "gpio53";
76 pins = "gpio18", "gpio19", "gpio21";
78 drive-strength = <10>;
84 drive-strength = <12>;
96 qcom,mode = <GSBI_PROT_SPI>;
101 pinctrl-0 = <&spi_pins>;
102 pinctrl-names = "default";
103 cs-gpios = <&qcom_pinmux 20 0>;
106 compatible = "mx25u25635f", "jedec,spi-nor";
107 #address-cells = <1>;
109 spi-max-frequency = <50000000>;
114 compatible = "fixed-partitions";
115 #address-cells = <1>;
126 reg = <0x20000 0x10000>;
132 reg = <0x30000 0x20000>;
138 reg = <0x50000 0x30000>;
144 reg = <0x80000 0x10000>;
150 reg = <0x90000 0x10000>;
156 reg = <0xa0000 0x30000>;
162 reg = <0xd0000 0x20000>;
168 reg = <0xf0000 0xc0000>;
174 reg = <0x1b0000 0x10000>;
178 eeprom: partition@1c0000 {
180 reg = <0x1c0000 0x10000>;
185 label = "bootselect";
186 reg = <0x1d0000 0x10000>;
190 compatible = "denx,fit";
192 reg = <0x1e0000 0xe70000>;
197 reg = <0x1050000 0xe70000>;
203 reg = <0x1ec0000 0x100000>;
209 reg = <0x1fc0000 0x40000>;
224 pinctrl-0 = <&nand_pins>;
225 pinctrl-names = "default";
226 nand-ecc-strength = <4>;
227 nand-bus-width = <8>;
233 pinctrl-0 = <&mdio0_pins>;
234 pinctrl-names = "default";
236 phy4: ethernet-phy@4 {
240 phy5: ethernet-phy@5 {
249 phy-handle = <&phy5>;
253 nvmem-cells = <&macaddr_eeprom_6>;
254 nvmem-cell-names = "mac-address";
261 phy-handle = <&phy4>;
265 nvmem-cells = <&macaddr_eeprom_0>;
266 nvmem-cell-names = "mac-address";
306 compatible = "nvmem-cells";
307 #address-cells = <1>;
310 macaddr_eeprom_0: macaddr@0 {
314 macaddr_eeprom_6: macaddr@6 {