Skip to content

Commit

Permalink
Add th1520-lichee-cluster-4a dts support (8G/16G)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekorouter authored and RevySR committed May 7, 2024
1 parent 14442bc commit 51aed0c
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/riscv/boot/dts/thead/Makefile
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a-16g.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* Copyright (C) 2024 NekoRouter <[email protected]>
*/

/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>;
};
};
45 changes: 45 additions & 0 deletions arch/riscv/boot/dts/thead/th1520-lichee-cluster-4a.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/*
* Copyright (C) 2024 NekoRouter <[email protected]>
*/

/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;
};

0 comments on commit 51aed0c

Please sign in to comment.