ath79: improve common DTSI name for TP-Link Archer C5, C7 v1/v2
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_adtran_bsap1880.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar7100.dtsi"
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 = "bluesocket:green:wifi5g";
26 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy1tpt";
28 };
29
30 wlan2g {
31 label = "bluesocket:green:wifi2g";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 led_status_green: status_green {
37 label = "bluesocket:green:status";
38 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
39 };
40
41 led_status_yellow: status_yellow {
42 label = "bluesocket:yellow:status";
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 reset {
51 label = "reset";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
54 debounce-interval = <60>;
55 };
56 };
57 };
58
59 &mdio0 {
60 status = "okay";
61
62 phy-mask = <0x1>;
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 num-cs = <1>;
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 #address-cells = <1>;
92 #size-cells = <1>;
93 compatible = "ecoscentric,redboot-fis-partitions";
94 };
95 };
96 };
97
98 &uart {
99 status = "okay";
100 };