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

97 lines
1.5 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "RTL819X.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "greatek,gwr300", "realtek,rtl819x-soc";
model = "Greatek GWR-300N V1";
cpus {
cpu@0 {
compatible = "realtek,rlx4181";
};
};
memory {
device_type = "memory";
reg = <0x0 0x2000000>;
};
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 = <&gpio0 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
gpio-leds {
compatible = "gpio-leds";
wan {
label = "gwr300:green:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "gwr300:green:lan1";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "gwr300:green:lan2";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "gwr300:green:lan3";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "gwr300:green:lan4";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
};
};
&gpio0 {
status = "okay";
};
&spi0 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <12000000>;
partition@0 {
label = "boot";
reg = <0x0 0x18000>;
read-only;
};
partition@18000 {
label = "firmware";
reg = <0x18000 0x3E8000>;
};
};
};