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 "qca956x.dtsi"
10 model = "ELECOM WRC-300GHBK2-I";
11 compatible = "elecom,wrc-300ghbk2-i", "qca,qca9563";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &power;
25 compatible = "gpio-leds";
28 label = "wrc-300ghbk2-i:white:power";
29 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
34 label = "wrc-300ghbk2-i:white:wlan2g";
35 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
36 default-state = "off";
37 linux,default-trigger = "phy0tpt";
41 label = "wrc-300ghbk2-i:red:wps";
42 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
43 default-state = "off";
48 compatible = "gpio-keys";
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
54 debounce-interval = <60>;
59 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 linux,code = <KEY_WPS_BUTTON>;
61 debounce-interval = <60>;
66 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
68 linux,input-type = <EV_SW>;
69 debounce-interval = <60>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <25000000>;
84 compatible = "fixed-partitions";
90 reg = <0x000000 0x040000>;
96 reg = <0x040000 0x010000>;
102 reg = <0x050000 0x020000>;
108 reg = <0x070000 0x770000>;
113 reg = <0x7e0000 0x010000>;
117 ART: partition@7f0000 {
119 reg = <0x7f0000 0x010000>;
129 phy0: ethernet-phy@0 {
133 qca,ar8327-initvals = <
134 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
135 0x50 0xcf37cf37 /* LED_CTRL0 */
136 0x54 0x00000000 /* LED_CTRL1 */
137 0x58 0x00000000 /* LED_CTRL2 */
138 0x5c 0x03ffff00 /* LED_CTRL3 */
139 0x7c 0x0000007e /* PORT0_STATUS */
147 mtd-mac-address = <&ART 0x1002>;
148 mtd-mac-address-increment = <(-1)>;
150 phy-handle = <&phy0>;
159 mtd-cal-data = <&ART 0x1000>;