ath79: add support for Netgear WNR1000 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_green_status;
16 led-failsafe = &led_yellow_status;
17 led-running = &led_green_status;
18 led-upgrade = &led_yellow_status;
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_green_status: green_status {
37 label = "bluesocket:green:status";
38 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
39 };
40
41 led_yellow_status: yellow_status {
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 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 };