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