1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca9557.dtsi"
10 compatible = "buffalo,bhr-4grv2", "qca,qca9557";
11 model = "Buffalo BHR-4GRV2";
18 bootargs = "console=ttyS0,115200n8";
22 compatible = "gpio-leds";
25 label = "bhr-4grv2:green:power";
26 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
31 label = "bhr-4grv2:orange:diag";
32 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
33 default-state = "off";
37 label = "bhr-4grv2:orange:vpn";
38 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
39 default-state = "off";
43 label = "bhr-4grv2:green:vpn";
44 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
45 default-state = "off";
50 compatible = "gpio-keys-polled";
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 debounce-interval = <60>;
62 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
64 linux,input-type = <EV_SW>;
65 debounce-interval = <60>;
75 compatible = "jedec,spi-nor";
77 spi-max-frequency = <25000000>;
80 compatible = "fixed-partitions";
86 reg = <0x000000 0x040000>;
92 reg = <0x040000 0x010000>;
98 reg = <0x050000 0xe30000>;
103 reg = <0xe80000 0x170000>;
106 art: partition@ff0000 {
108 reg = <0xff0000 0x010000>;
118 phy0: ethernet-phy@0 {
121 qca,ar8327-initvals = <
122 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
123 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
124 0x7c 0x0000007e /* PORT0_STATUS */
125 0x94 0x0000007e /* PORT6 STATUS */
133 mtd-mac-address = <&art 0x0>;
134 phy-handle = <&phy0>;
135 pll-data = <0x56000000 0x00000101 0x00001616>;
141 mtd-mac-address = <&art 0x6>;
142 pll-data = <0x03000101 0x00000101 0x00001616>;