ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_ubnt_nanobeam-ac-xc.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * Device Tree file for Ubiquiti Nanobeam NBE-5AC-19 (XC)
4 *
5 * Copyright (C) 2022 Daniel González Cabanelas <dgcbueu@gmail.com>
6 * based on device tree from qca9558_ubnt_powerbeam-5ac-500.dts
7 */
8
9 #include <dt-bindings/leds/common.h>
10
11 #include "qca955x_ubnt_xc.dtsi"
12
13 / {
14 compatible = "ubnt,nanobeam-ac-xc", "ubnt,xc", "qca,qca9558";
15 model = "Ubiquiti NanoBeam AC Gen1 (XC)";
16
17 aliases {
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
22 };
23
24 keys {
25 compatible = "gpio-keys";
26
27 reset {
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
32 };
33 };
34
35 led_spi {
36 compatible = "spi-gpio";
37 #address-cells = <1>;
38 #size-cells = <0>;
39
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>;
44
45 led_gpio: led_gpio@0 {
46 compatible = "fairchild,74hc595";
47 reg = <0>;
48 gpio-controller;
49 #gpio-cells = <2>;
50 registers-number = <1>;
51 spi-max-frequency = <10000000>;
52 enable-gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
53 };
54 };
55
56 leds {
57 compatible = "gpio-leds";
58
59 rssi0 {
60 label = "blue:rssi0";
61 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
62 };
63 rssi1 {
64 label = "blue:rssi1";
65 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
66 };
67 rssi2 {
68 label = "blue:rssi2";
69 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
70 };
71 rssi3 {
72 label = "blue:rssi3";
73 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
74 };
75 led_power: power {
76 function = LED_FUNCTION_POWER;
77 color = <LED_COLOR_ID_BLUE>;
78 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
79 default-state = "on";
80 };
81 };
82 };
83
84 &mdio0 {
85 status = "okay";
86
87 phy4: ethernet-phy@4 {
88 phy-mode = "sgmii";
89 reg = <4>;
90 at803x-override-sgmii-link-check;
91 };
92 };
93
94 &eth0 {
95 status = "okay";
96
97 pll-reg = <0 0x48 0>;
98 pll-data = <0x03000000 0x00000101 0x00001313>;
99 nvmem-cells = <&macaddr_art_0>;
100 nvmem-cell-names = "mac-address";
101 phy-mode = "sgmii";
102 phy-handle = <&phy4>;
103 };