From 51aed0c8cf6ae15021dcda4cabf718934c9657a3 Mon Sep 17 00:00:00 2001 From: NekoRouter Date: Mon, 22 Jan 2024 23:01:10 +0800 Subject: [PATCH] Add th1520-lichee-cluster-4a dts support (8G/16G) --- arch/riscv/boot/dts/thead/Makefile | 1 + .../thead/th1520-lichee-cluster-4a-16g.dts | 18 ++++++++ .../dts/thead/th1520-lichee-cluster-4a.dts | 45 +++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a-16g.dts create mode 100644 arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a.dts diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/thead/Makefile index 281849e71ccb8..8b90c7af024ad 100644 --- a/arch/riscv/boot/dts/thead/Makefile +++ b/arch/riscv/boot/dts/thead/Makefile @@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a.dtb th1520-beaglev-ahead.dtb dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-pi-4a-16g.dtb +dtb-$(CONFIG_ARCH_THEAD) += th1520-lichee-cluster-4a.dtb th1520-lichee-cluster-4a-16g.dtb diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a-16g.dts b/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a-16g.dts new file mode 100644 index 0000000000000..c65cd1c83101f --- /dev/null +++ b/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a-16g.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 NekoRouter + */ + +/dts-v1/; + +#include "th1520-lichee-cluster-4a.dts" + +/ { + model = "Sipeed Lichee Cluster 4A 16G"; + compatible = "sipeed,lichee-cluster-4a", "sipeed,lichee-module-4a", "thead,th1520"; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x00000000 0x4 0x00000000>; + }; +}; diff --git a/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a.dts b/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a.dts new file mode 100644 index 0000000000000..f1116426233f3 --- /dev/null +++ b/arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a.dts @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 NekoRouter + */ + +/dts-v1/; + +#include "th1520-lichee-pi-4a.dts" + +/ { + model = "Sipeed Lichee Cluster 4A"; + compatible = "sipeed,lichee-cluster-4a", "sipeed,lichee-module-4a", "thead,th1520"; + + /delete-node/ regulator-hub_5v; + + /delete-node/ regulator-vcc5v_usb; + + /delete-node/ regulator-hub_5v; + + /delete-node/ regulator-vcc5v_usb; + + /delete-node/ wireless-wlan; + + /delete-node/ wireless-bluetooth; + + /delete-node/ soc_wcn33_en; +}; + +&i2c0 { + status = "okay"; + + /delete-node/ gpio@18; +}; + +&i2c3 { + status = "okay"; + + /delete-node/ gpio@18; +}; + +&usb_dwc3 { + /delete-node/ hub@1; + + /delete-node/ hub@2; +};