Files
openwrt/target/linux/realtek/dts/GWR1200ACV2.dts
2025-06-16 15:49:05 -03:00

109 lines
1.7 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "RTL8197FVG.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "greatek,gwr1200ac", "realtek,rtl8197f-soc";
model = "Greatek GWR1200AC V2";
aliases {
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
led-upgrade = &led_status;
};
memory {
device_type = "memory";
reg = <0x0 0x4000000>;
};
chosen {
bootargs = "console=ttyS0,38400";
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
reset {
label = "reset";
gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
gpio-leds {
compatible = "gpio-leds";
led_status: power {
label = "gwr1200ac:green:power";
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
wlan_2g {
label = "gwr1200ac:green:wlan_2g";
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
};
wps {
label = "gwr1200ac:green:wps";
gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
};
wlan_5g {
label = "gwr1200ac:green:wlan_5g";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&spi0 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <41000000>;
partition@0 {
label = "boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
label = "config";
reg = <0x20000 0x10000>;
read-only;
};
partition@30000 {
label = "firmware";
reg = <0x30000 0x7C0000>;
};
};
};