Skip to content

Instantly share code, notes, and snippets.

@feryw
Created March 19, 2024 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feryw/1624a06fc8e511cbef536ab49faf4f7e to your computer and use it in GitHub Desktop.
Save feryw/1624a06fc8e511cbef536ab49faf4f7e to your computer and use it in GitHub Desktop.
lg7100 dts
/dts-v1/;
/ {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "lg,gapm-7100\0realtek,rtl8198c-soc";
model = "LG GAPM-7100";
chosen {
bootargs = "console=ttyS0,115200";
};
clk40 {
#clock-cells = <0x00>;
clock-frequency = <0x2625a00>;
compatible = "fixed-clock";
};
cmp@1fbf8000 {
compatible = "mti,mips-cmp";
reg = <0x1fbf8000 0x8000>;
};
cpc@1bde0000 {
compatible = "mti,mips-cpc";
reg = <0x1bde0000 0x8000>;
};
cpuclock@0 {
#clock-cells = <0x00>;
clock-frequency = <0x3b9aca00>;
compatible = "fixed-clock";
};
cpuintc {
#address-cells = <0x00>;
#interrupt-cells = <0x01>;
compatible = "mti,cpu-interrupt-controller";
interrupt-controller;
phandle = <0x01>;
};
cpus {
#address-cells = <0x01>;
#size-cells = <0x00>;
cpu@0 {
compatible = "mips,mips1074Kc";
device_type = "cpu";
reg = <0x00>;
};
cpu@1 {
compatible = "mips,mips1074Kc";
device_type = "cpu";
reg = <0x01>;
};
};
dwc@18030000 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtk-dwc2";
dr_mode = "host";
interrupt-parent = <0x02>;
interrupts = <0x00 0x21 0x04>;
reg = <0x18030000 0x10000>;
status = "okay";
};
eth@18010000 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtl819x-eth";
interrupt-parent = <0x02>;
interrupts = <0x00 0x19 0x04>;
mtd-mac-address = <0x05 0x07>;
realtek,switch = <0x04>;
reg = <0x18010000 0x100>;
status = "okay";
};
gpio-keys-polled {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "gpio-keys-polled";
poll-interval = <0x14>;
restart {
gpios = <0x03 0x1e 0x01>;
label = "Reset";
linux,code = <0x198>;
};
wps {
gpios = <0x03 0x2b 0x01>;
label = "WPS";
linux,code = <0x211>;
};
};
gpio@19000000 {
#gpio-cells = <0x02>;
chip = <0x00>;
compatible = "gpio-wlan";
gpio-controller;
ngpios = <0x10>;
reg = <0x19000000 0x100>;
wlan = <0x01>;
};
gpio@1a000000 {
#gpio-cells = <0x02>;
chip = <0x01>;
compatible = "gpio-wlan";
gpio-controller;
ngpios = <0x10>;
reg = <0x1a000000 0x100>;
wlan = <0x00>;
};
gsw@1b800000 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtl819x-gsw";
phandle = <0x04>;
reg = <0x1b800000 0x10000 0x1b000000 0x140000>;
ports {
#address-cells = <0x01>;
#size-cells = <0x00>;
reg = <0x00>;
port@0 {
label = "wan";
reg = <0x00>;
status = "disabled";
};
port@1 {
label = "lan1";
reg = <0x01>;
status = "disabled";
};
port@2 {
label = "lan2";
reg = <0x02>;
status = "disabled";
};
port@3 {
label = "lan3";
reg = <0x03>;
status = "disabled";
};
port@4 {
label = "lan4";
reg = <0x04>;
status = "disabled";
};
port@5 {
label = "cpu";
reg = <0x05>;
status = "disabled";
};
};
};
interrupt-controller@1bdc0000 {
#address-cells = <0x00>;
#interrupt-cells = <0x03>;
compatible = "mti,gic";
interrupt-controller;
interrupt-parent = <0x01>;
phandle = <0x02>;
reg = <0x1bdc0000 0x2000>;
};
leds {
compatible = "gpio-leds";
lan1a {
gpios = <0x03 0x25 0x00>;
label = "rtl819x:amber:lan1";
};
lan1g {
gpios = <0x03 0x21 0x00>;
label = "rtl819x:green:lan1";
linux,default-trigger = "default-on";
};
lan2a {
gpios = <0x03 0x2a 0x00>;
label = "rtl819x:amber:lan2";
};
lan2g {
gpios = <0x03 0x29 0x00>;
label = "rtl819x:green:lan2";
linux,default-trigger = "default-on";
};
lan3a {
gpios = <0x03 0x28 0x00>;
label = "rtl819x:amber:lan3";
};
lan3g {
gpios = <0x03 0x27 0x00>;
label = "rtl819x:green:lan3";
linux,default-trigger = "default-on";
};
lan4a {
gpios = <0x03 0x2e 0x00>;
label = "rtl819x:amber:lan4";
};
lan4g {
gpios = <0x03 0x2d 0x00>;
label = "rtl819x:green:lan4";
linux,default-trigger = "default-on";
};
status {
gpios = <0x03 0x26 0x01>;
label = "rtl819x:red:status";
linux,default-trigger = "default-on";
};
wana {
gpios = <0x03 0x23 0x00>;
label = "rtl819x:amber:wan";
};
wang {
gpios = <0x03 0x24 0x00>;
label = "rtl819x:green:wan";
linux,default-trigger = "default-on";
};
wifi2g {
gpios = <0x03 0x3f 0x01>;
label = "rtl819x:green:wifi2g";
linux,default-trigger = "netdev";
netdev {
device-name = "wlan1";
link;
rx;
tx;
};
};
wifi5g {
gpios = <0x03 0x10 0x01>;
label = "rtl819x:green:wifi5g";
linux,default-trigger = "netdev";
netdev {
device-name = "wlan0";
link;
rx;
tx;
};
};
wps {
gpios = <0x03 0x2c 0x01>;
label = "rtl819x:green:wps";
};
};
memory {
device_type = "memory";
reg = <0x00 0x8000000>;
};
pcie@18b00000 {
#address-cells = <0x03>;
#size-cells = <0x02>;
bus-range = <0x00 0xff>;
clocks = <0x06>;
compatible = "realtek,rtl819x-pci";
device_type = "pci";
interrupt-parent = <0x02>;
interrupts = <0x00 0x1f 0x04>;
ranges = <0x2000000 0x00 0x00 0x19000000 0x00 0x1000000 0x1000000 0x00 0x00 0x18c00000 0x00 0x200000>;
reg = <0x18b00000 0x1000 0x18b01000 0x1000 0x18b10000 0x1000 0x18b11000 0x1000>;
reg-names = "rc_cfg\0rc_ext\0dev_cfg0\0dev_cfg1";
slot-num = <0x00>;
};
pcie@18b20000 {
#address-cells = <0x03>;
#size-cells = <0x02>;
bus-range = <0x00 0xff>;
clocks = <0x06>;
compatible = "realtek,rtl819x-pci";
device_type = "pci";
interrupt-parent = <0x02>;
interrupts = <0x00 0x20 0x04>;
ranges = <0x2000000 0x00 0x00 0x1a000000 0x00 0x1000000 0x1000000 0x00 0x00 0x18e00000 0x00 0x200000>;
reg = <0x18b20000 0x1000 0x18b21000 0x1000 0x18b30000 0x1000 0x18b31000 0x1000>;
reg-names = "rc_cfg\0rc_ext\0dev_cfg0\0dev_cfg1";
slot-num = <0x01>;
};
refclk {
#clock-cells = <0x00>;
clock-frequency = <0x17d7840>;
compatible = "fixed-clock";
phandle = <0x06>;
};
rstctrl {
#reset-cells = <0x01>;
compatible = "realtek,rtl819x-reset";
};
soc {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "simple-bus";
ranges = <0x00 0x18000000 0x10000>;
gpio@3500 {
#gpio-cells = <0x02>;
#interrupt-cells = <0x02>;
compatible = "realtek,rtl819x-gpio";
gpio-controller;
interrupt-parent = <0x02>;
interrupts = <0x00 0x1a 0x04 0x00 0x1b 0x04>;
phandle = <0x03>;
reg = <0x3500 0x100>;
};
memory-controller@1000 {
compatible = "realtek,rtl819x-memc";
reg = <0x1000 0x100>;
};
serial@2000 {
clock-frequency = <0xbebc200>;
compatible = "realtek,rtl819x-uart\0ns16550a";
interrupt-parent = <0x02>;
interrupts = <0x00 0x12 0x04>;
reg = <0x2000 0x100>;
reg-shift = <0x02>;
};
spi@1200 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtl819x-nor";
interrupt-parent = <0x02>;
interrupts = <0x00 0x29 0x04>;
num-cs = <0x02>;
reg = <0x1200 0x100>;
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0x00>;
spi-max-frequency = <0x2faf080>;
partitions {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "fixed-partitions";
partition@0 {
label = "boot";
reg = <0x00 0x40000>;
};
partition@20000 {
label = "hwpart";
phandle = <0x05>;
reg = <0x20000 0x20000>;
};
partition@40000 {
label = "nvram";
reg = <0x40000 0x20000>;
};
partition@800000 {
label = "firmware";
reg = <0x800000 0x1800000>;
};
};
};
};
system-controller@0 {
compatible = "realtek,rtl819x-sysc";
reg = <0x00 0x1000>;
};
watchdog@3100 {
compatible = "realtek,rtl819x-wdt";
reg = <0x3100 0x20>;
};
};
sysclock@1 {
#clock-cells = <0x00>;
clock-frequency = <0x2faf080>;
compatible = "fixed-clock";
};
wmac {
#address-cells = <0x01>;
#size-cells = <0x01>;
compatible = "realtek,rtl819x-wmac";
ranges = <0x00 0x00 0x20000000>;
wmac0 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtl819x-wmac";
ext-lna;
ext-pa;
init-mode = <0x01>;
interrupt-parent = <0x02>;
interrupts = <0x00 0x20 0x04>;
mtd-mac-address = <0x05 0x13>;
reg = <0x18b30000 0x1000 0x1a000000 0x1000>;
rfe-type = <0x04>;
status = "okay";
trswitch;
};
wmac1 {
#address-cells = <0x01>;
#size-cells = <0x00>;
ext-pa;
init-mode = <0x01>;
int-lna;
interrupt-parent = <0x02>;
interrupts = <0x00 0x1f 0x04>;
mtd-mac-address = <0x05 0x9d3>;
reg = <0x18b10000 0x1000 0x19000000 0x1000>;
status = "okay";
trswitch;
};
};
xhci@18040000 {
#address-cells = <0x01>;
#size-cells = <0x00>;
compatible = "realtek,rtl819x-xhci";
interrupt-parent = <0x02>;
interrupts = <0x00 0x22 0x04>;
reg = <0x18040000 0x10000>;
status = "okay";
vcc-gpio = <0x03 0x38 0x01>;
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment