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>;
54 button_pins: button_pins {
65 pins = "gpio9", "gpio53";
75 pins = "gpio18", "gpio19", "gpio21";
77 drive-strength = <10>;
83 drive-strength = <12>;
95 qcom,mode = <GSBI_PROT_SPI>;
100 pinctrl-0 = <&spi_pins>;
101 pinctrl-names = "default";
102 cs-gpios = <&qcom_pinmux 20 0>;
105 compatible = "mx25u25635f", "jedec,spi-nor";
106 #address-cells = <1>;
108 spi-max-frequency = <50000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
125 reg = <0x20000 0x10000>;
131 reg = <0x30000 0x20000>;
137 reg = <0x50000 0x30000>;
143 reg = <0x80000 0x10000>;
149 reg = <0x90000 0x10000>;
155 reg = <0xa0000 0x30000>;
161 reg = <0xd0000 0x20000>;
167 reg = <0xf0000 0xc0000>;
173 reg = <0x1b0000 0x10000>;
177 eeprom: partition@1c0000 {
179 reg = <0x1c0000 0x10000>;
184 label = "bootselect";
185 reg = <0x1d0000 0x10000>;
189 compatible = "denx,fit";
191 reg = <0x1e0000 0xe70000>;
196 reg = <0x1050000 0xe70000>;
202 reg = <0x1ec0000 0x100000>;
208 reg = <0x1fc0000 0x40000>;
223 pinctrl-0 = <&nand_pins>;
224 pinctrl-names = "default";
225 nand-ecc-strength = <4>;
226 nand-bus-width = <8>;
232 pinctrl-0 = <&mdio0_pins>;
233 pinctrl-names = "default";
235 phy4: ethernet-phy@4 {
239 phy5: ethernet-phy@5 {
248 phy-handle = <&phy5>;
252 mtd-mac-address = <&eeprom 0x6>;
259 phy-handle = <&phy4>;
263 mtd-mac-address = <&eeprom 0x0>;