1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree file for Ubiquiti Nanobeam NBE-5AC-19 (XC)
5 * Copyright (C) 2022 Daniel González Cabanelas <dgcbueu@gmail.com>
6 * based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts
9 #include <dt-bindings/leds/common.h>
11 #include "qca955x_ubnt_xc.dtsi"
14 compatible = "ubnt,nanobeam-ac-xc", "ubnt,xc", "qca,qca9558";
15 model = "Ubiquiti NanoBeam AC Gen1 (XC)";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
25 compatible = "gpio-keys";
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 compatible = "spi-gpio";
40 sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
41 mosi-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
42 cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
43 num-chipselects = <1>;
45 led_gpio: led_gpio@0 {
46 compatible = "fairchild,74hc595";
50 registers-number = <1>;
51 spi-max-frequency = <10000000>;
52 enable-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-leds";
61 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
65 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
69 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
73 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
76 function = LED_FUNCTION_POWER;
77 color = <LED_COLOR_ID_BLUE>;
78 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
87 phy4: ethernet-phy@4 {
90 at803x-override-sgmii-link-check;
98 pll-data = <0x03000000 0x00000101 0x00001313>;
99 nvmem-cells = <&macaddr_art_0>;
100 nvmem-cell-names = "mac-address";
102 phy-handle = <&phy4>;