ath79: fix dts of Teltonika RUT9xx devices
[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 <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar7100.dtsi"
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200n8";
11 };
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_yellow;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_yellow;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wlan5g {
24 label = "bluesocket:green:wifi5g";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy1tpt";
27 };
28
29 wlan2g {
30 label = "bluesocket:green:wifi2g";
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "phy0tpt";
33 };
34
35 led_status_green: status_green {
36 label = "bluesocket:green:status";
37 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
38 };
39
40 led_status_yellow: status_yellow {
41 label = "bluesocket:yellow:status";
42 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
54 };
55 };
56 };
57
58 &mdio0 {
59 status = "okay";
60
61 phy-mask = <0x1>;
62
63 phy0: ethernet-phy@0 {
64 reg = <0>;
65 };
66 };
67
68 &eth0 {
69 status = "okay";
70
71 phy-mode = "rgmii-id";
72 phy-handle = <&phy0>;
73 };
74
75 &pcie0 {
76 status = "okay";
77 };
78
79 &spi {
80 status = "okay";
81
82 num-cs = <1>;
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <25000000>;
88
89 partitions {
90 #address-cells = <1>;
91 #size-cells = <1>;
92 compatible = "ecoscentric,redboot-fis-partitions";
93 };
94 };
95 };
96
97 &uart {
98 status = "okay";
99 };