2024-04-23 14:45:16

by André Draszik

[permalink] [raw]
Subject: [PATCH 0/3] HSI0 support for Google Tensor gs101

This patch series enable thes HSI0 (high speed interface 0) for gs101. It
feeds the USB block and is a prerequisite to get USB working.

The parts added here have been verified to work OK without the
clk_ignore_unused kernel command line option.

Signed-off-by: André Draszik <[email protected]>
---
André Draszik (3):
dt-bindings: clock: google,gs101-clock: add HSI0 clock management unit
arm64: dts: exynos: gs101: enable cmu-hsi0 clock controller
clk: samsung: clk-gs101: add cmu_hsi0

.../bindings/clock/google,gs101-clock.yaml | 29 +-
arch/arm64/boot/dts/exynos/google/gs101.dtsi | 14 +
drivers/clk/samsung/clk-gs101.c | 468 +++++++++++++++++++++
include/dt-bindings/clock/google,gs101.h | 54 +++
4 files changed, 563 insertions(+), 2 deletions(-)
---
base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8
change-id: 20240423-hsi0-gs101-aa778361bfaa

Best regards,
--
André Draszik <[email protected]>



2024-04-23 14:45:31

by André Draszik

[permalink] [raw]
Subject: [PATCH 2/3] arm64: dts: exynos: gs101: enable cmu-hsi0 clock controller

Enable the cmu-hsi0 clock controller. It feeds USB.

Signed-off-by: André Draszik <[email protected]>
---
arch/arm64/boot/dts/exynos/google/gs101.dtsi | 14 ++++++++++++++
1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi
index eddb6b326fde..9755a0bb70a1 100644
--- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi
+++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi
@@ -1247,6 +1247,20 @@ spi_13: spi@10d60000 {
};
};

+ cmu_hsi0: clock-controller@11000000 {
+ compatible = "google,gs101-cmu-hsi0";
+ reg = <0x11000000 0x4000>;
+ #clock-cells = <1>;
+
+ clocks = <&ext_24_5m>,
+ <&cmu_top CLK_DOUT_CMU_HSI0_BUS>,
+ <&cmu_top CLK_DOUT_CMU_HSI0_DPGTC>,
+ <&cmu_top CLK_DOUT_CMU_HSI0_USB31DRD>,
+ <&cmu_top CLK_DOUT_CMU_HSI0_USBDPDBG>;
+ clock-names = "oscclk", "bus", "dpgtc", "usb31drd",
+ "usbdpdbg";
+ };
+
pinctrl_hsi1: pinctrl@11840000 {
compatible = "google,gs101-pinctrl";
reg = <0x11840000 0x00001000>;

--
2.44.0.769.g3c40516874-goog