Files
openwrt/target/linux/realtek/dts/ACTIONRG1200.dts

109 lines
1.7 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "RTL8197F.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "intelbras,actionrg1200", "realtek,rtl8197f-soc";
model = "Intelbras ACTIONRG1200 V1";
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,115200";
};
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: sys {
label = "actionrg1200:blue:sys";
gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
};
wan {
label = "actionrg1200:blue:wan";
gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
};
lan {
label = "actionrg1200:blue:lan";
gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
};
wifi0 {
label = "actionrg1200:blue:wifi0";
gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
};
};
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&spi0 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
partition@0 {
label = "boot";
reg = <0x0 0x20000>;
read-only;
};
partition@20000 {
label = "config";
reg = <0x20000 0x10000>;
read-only;
};
partition@30000 {
label = "firmware";
reg = <0x30000 0x7B0000>;
};
partition@7E0000 {
label = "CFM";
reg = <0x7E0000 0x20000>;
read-only;
};
};
};