1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,bhr-4grv2", "qca,qca9557";
10 model = "Buffalo BHR-4GRV2";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-leds";
23 label = "green:power";
24 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
29 label = "orange:diag";
30 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
35 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 debounce-interval = <60>;
56 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
58 linux,input-type = <EV_SW>;
59 debounce-interval = <60>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <25000000>;
73 compatible = "fixed-partitions";
79 reg = <0x000000 0x040000>;
85 reg = <0x040000 0x010000>;
89 compatible = "denx,uimage";
91 reg = <0x050000 0xfa0000>;
94 art: partition@ff0000 {
96 reg = <0xff0000 0x010000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 macaddr_art_0: macaddr@0 {
108 macaddr_art_6: macaddr@6 {
120 phy0: ethernet-phy@0 {
123 qca,ar8327-initvals = <
124 0x04 0x80080080 /* PORT0 PAD MODE CTRL */
125 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
126 0x7c 0x0000007e /* PORT0_STATUS */
127 0x94 0x0000007e /* PORT6 STATUS */
135 nvmem-cells = <&macaddr_art_0>;
136 nvmem-cell-names = "mac-address";
137 phy-handle = <&phy0>;
138 pll-data = <0x56000000 0x00000101 0x00001616>;
144 nvmem-cells = <&macaddr_art_6>;
145 nvmem-cell-names = "mac-address";
146 pll-data = <0x03000101 0x00000101 0x00001616>;