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

114 lines
1.8 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 = "D-Link,dir-815-d1", "realtek,rtl819x-soc";
model = "D-Link DIR-815 D1";
cpus {
cpu@0 {
compatible = "realtek,rlx5281";
};
};
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 = <&gpio0 5 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
gpio-leds {
compatible = "gpio-leds";
wps {
label = "dir815:green:wps";
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
};
wan {
label = "dir815:green:wan";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
lan1 {
label = "dir815:green:lan1";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "dir815:green:lan2";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "dir815:green:lan3";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "dir815:green:lan4";
gpios = <&gpio0 12 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 0x30000>;
read-only;
};
kernel: partition@30000 {
label = "kernel";
reg = <0x30000 0x1D0000>;
};
partition@200000 {
label = "rootfs";
reg = <0x200000 0x5E0000>;
};
factory: partition@7E0000 {
label = "factory";
reg = <0x7E0000 0x20000>;
read-only;
};
firmware@30000 {
label = "firmware";
reg = <0x30000 0x7B0000>;
};
};
};