ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7161_adtran_bsap1880.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 led-boot = &led_status_green;
16 led-failsafe = &led_status_yellow;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_yellow;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 wlan5g {
25 label = "green:wifi5g";
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy1tpt";
28 };
29
30 wlan2g {
31 label = "green:wifi2g";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 led_status_green: status_green {
37 function = LED_FUNCTION_STATUS;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
40 };
41
42 led_status_yellow: status_yellow {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_YELLOW>;
45 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "reset";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
57 };
58 };
59 };
60
61 &mdio0 {
62 status = "okay";
63
64 phy0: ethernet-phy@0 {
65 reg = <0>;
66 };
67 };
68
69 &eth0 {
70 status = "okay";
71
72 phy-mode = "rgmii-id";
73 phy-handle = <&phy0>;
74 };
75
76 &pcie0 {
77 status = "okay";
78 };
79
80 &spi {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <25000000>;
87
88 partitions {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "redboot-fis";
92 fis-index-block = <0xfd>;
93 };
94 };
95 };