ath79: dts: Unify naming of gpio-led nodes
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9557_buffalo_bhr-4grv2.dts
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 "qca9557.dtsi"
8
9 / {
10 compatible = "buffalo,bhr-4grv2", "qca,qca9557";
11 model = "Buffalo BHR-4GRV2";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 chosen {
21 bootargs = "console=ttyS0,115200n8";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power: power {
28 label = "bhr-4grv2:green:power";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
30 default-state = "on";
31 };
32
33 diag {
34 label = "bhr-4grv2:orange:diag";
35 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
36 };
37
38 vpn_orange {
39 label = "bhr-4grv2:orange:vpn";
40 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
41 };
42
43 vpn_green {
44 label = "bhr-4grv2:green:vpn";
45 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys-polled";
51 poll-interval = <20>;
52
53 reset {
54 label = "reset";
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 debounce-interval = <60>;
58 };
59
60 eco {
61 label = "eco";
62 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
63 linux,code = <BTN_0>;
64 linux,input-type = <EV_SW>;
65 debounce-interval = <60>;
66 };
67 };
68 };
69
70 &spi {
71 status = "okay";
72 num-cs = <1>;
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <25000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x050000 0xfa0000>;
99 };
100
101 art: partition@ff0000 {
102 label = "art";
103 reg = <0xff0000 0x010000>;
104 read-only;
105 };
106 };
107 };
108 };
109
110 &mdio0 {
111 status = "okay";
112
113 phy0: ethernet-phy@0 {
114 reg = <0>;
115
116 qca,ar8327-initvals = <
117 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
118 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
119 0x7c 0x0000007e /* PORT0_STATUS */
120 0x94 0x0000007e /* PORT6 STATUS */
121 >;
122 };
123 };
124
125 &eth0 {
126 status = "okay";
127
128 mtd-mac-address = <&art 0x0>;
129 phy-handle = <&phy0>;
130 pll-data = <0x56000000 0x00000101 0x00001616>;
131 };
132
133 &eth1 {
134 status = "okay";
135
136 mtd-mac-address = <&art 0x6>;
137 pll-data = <0x03000101 0x00000101 0x00001616>;
138
139 fixed-link {
140 speed = <1000>;
141 full-duplex;
142 };
143 };
144
145 &uart {
146 status = "okay";
147 };