[PATCH v4 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml

From: Alex Elder

Date: Tue Dec 01 2026 - 11:08:30 EST


Define the binding for the clock and reset controller present in the
Toshiba TC9564 SoC.

Reviewed-by: Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxxxxxxxx>
Co-developed-by: Daniel Thompson <daniel@xxxxxxxxxxxx>
Signed-off-by: Daniel Thompson <daniel@xxxxxxxxxxxx>
Signed-off-by: Alex Elder <elder@xxxxxxxxxxxx>
---
v4: - Reset IDs are now defined in a separate header file
- Clock and reset ID symbols now have a "TC9564_" prefix.
- A missing space in a guard #endif has been added

.../bindings/clock/toshiba,tc9564-clock.yaml | 74 +++++++++++++++++++
MAINTAINERS | 15 ++++
include/dt-bindings/clock/toshiba,tc9564.h | 26 +++++++
include/dt-bindings/reset/toshiba,tc9564.h | 24 ++++++
4 files changed, 139 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
create mode 100644 include/dt-bindings/clock/toshiba,tc9564.h
create mode 100644 include/dt-bindings/reset/toshiba,tc9564.h

diff --git a/Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml b/Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
new file mode 100644
index 0000000000000..0f55d18c61193
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/toshiba,tc9564-clock.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Toshiba TC9564 Clock and Reset Controllers
+
+maintainers:
+ - Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxxxxxxxx>
+ - Alex Elder <elder@xxxxxxxxxx>
+ - Daniel Thompson <danielt@xxxxxxxxxx>
+
+description:
+ The Toshiba TC9564 is an SoC accessed by a host system through the
+ upstream PCIe port on the PCIe switch it implements. The chip includes
+ an embedded PCIe endpoint that provides access to various peripherals
+ within the SoC via its BARs. These peripherals include a simple
+ controller to gate internal clocks, and a reset controller.
+
+ The TC9564 chip has a single input clock. Internally that clock is
+ multiplied by a PLL, and the PLL signal is divided internally into
+ a set of fixed rate, always-on clocks.
+
+ The clock controller exposes a set of simple gated clocks, which are
+ controlled by two registers. Each is derived from one of the internal
+ fixed-rate clocks. A total of 21 gated clocks are implemented within
+ the chip, but support for enabling and disabling only a subset of them
+ is provided at this time. Two clocks (I2C and PCIE) are marked critical
+ to make it clear that they should never be disabled.
+
+ The reset controller uses two other registers to control a set of 13
+ resets that can be asserted or deasserted. Here too, only a subset
+ of the resets can currently be managed, and the I2C and PCIE resets
+ are treated as critical.
+
+ Clock IDs are defined <dt-bindings/clock/toshiba,tc9564.h>, and reset
+ IDs are defined <dt-bindings/reset/toshiba,tc9564.h>.
+
+properties:
+ compatible:
+ items:
+ - const: toshiba,tc9564-clock
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ "#clock-cells":
+ const: 1
+
+ "#reset-cells":
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - "#clock-cells"
+ - "#reset-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ clock-controller@1004 {
+ compatible = "toshiba,tc9564-clock";
+ reg = <0x1004 0x10>;
+ clocks = <&tc9564_xo_board>;
+ #clock-cells = <1>;
+ #reset-cells = <1>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index e7652ab2061a2..0a30100222123 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -28723,6 +28723,14 @@ F: Documentation/devicetree/bindings/media/i2c/toshiba,tc358743.yaml
F: drivers/media/i2c/tc358743*
F: include/media/i2c/tc358743.h

+TOSHIBA TC9564 CLOCK CONTROLLER DRIVER
+M: Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxxxxxxxx>
+M: Alex Elder <elder@xxxxxxxxxx>
+M: Daniel Thompson <danielt@xxxxxxxxxx>
+S: Maintained
+F: Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
+F: include/dt-bindings/clock/toshiba,tc9564.h
+
TOSHIBA TC9564 PCI DRIVER
M: Alex Elder <elder@xxxxxxxxxx>
M: Daniel Thompson <danielt@xxxxxxxxxx>
@@ -28730,6 +28738,13 @@ S: Maintained
F: Documentation/devicetree/bindings/misc/pci1179,0220.yaml
F: drivers/misc/tc9564-pci.c

+TOSHIBA TC9564 RESET CONTROLLER DRIVER
+M: Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxxxxxxxx>
+M: Alex Elder <elder@xxxxxxxxxx>
+M: Daniel Thompson <danielt@xxxxxxxxxx>
+S: Maintained
+F: include/dt-bindings/reset/toshiba,tc9564.h
+
TOSHIBA WMI HOTKEYS DRIVER
M: Azael Avalos <coproscefalo@xxxxxxxxx>
L: platform-driver-x86@xxxxxxxxxxxxxxx
diff --git a/include/dt-bindings/clock/toshiba,tc9564.h b/include/dt-bindings/clock/toshiba,tc9564.h
new file mode 100644
index 0000000000000..540fef71016be
--- /dev/null
+++ b/include/dt-bindings/clock/toshiba,tc9564.h
@@ -0,0 +1,26 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+/*
+ * Copyright (C) 2026 by RISCstar Solutions Corporation. All rights reserved.
+ */
+
+#ifndef __CLOCK_TOSHIBA_TC9564_H__
+#define __CLOCK_TOSHIBA_TC9564_H__
+
+/* Clock IDs */
+
+#define TC9564_CLK_I2C 0 /* critical */
+#define TC9564_CLK_PCIE 1 /* critical */
+#define TC9564_CLK_MSIGEN 2
+
+#define TC9564_CLK_MAC0_TX 3
+#define TC9564_CLK_MAC0_RX 4
+#define TC9564_CLK_MAC0_125M 5
+#define TC9564_CLK_MAC0_ALL 6
+
+#define TC9564_CLK_MAC1_TX 7
+#define TC9564_CLK_MAC1_RX 8
+#define TC9564_CLK_MAC1_125M 9
+#define TC9564_CLK_MAC1_ALL 10
+
+#endif /* __CLOCK_TOSHIBA_TC9564_H__ */
diff --git a/include/dt-bindings/reset/toshiba,tc9564.h b/include/dt-bindings/reset/toshiba,tc9564.h
new file mode 100644
index 0000000000000..942a284b0d2f8
--- /dev/null
+++ b/include/dt-bindings/reset/toshiba,tc9564.h
@@ -0,0 +1,24 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+/*
+ * Copyright (C) 2026 by RISCstar Solutions Corporation. All rights reserved.
+ */
+
+#ifndef __RESET_TOSHIBA_TC9564_H__
+#define __RESET_TOSHIBA_TC9564_H__
+
+/* Reset IDs */
+
+#define TC9564_RST_I2C 0 /* critical */
+#define TC9564_RST_PCIE 1 /* critical */
+#define TC9564_RST_MSIGEN 2
+
+#define TC9564_RST_MAC0_MAC 3
+#define TC9564_RST_MAC0_PMA 4
+#define TC9564_RST_MAC0_XPCS 5
+
+#define TC9564_RST_MAC1_MAC 6
+#define TC9564_RST_MAC1_PMA 7
+#define TC9564_RST_MAC1_XPCS 8
+
+#endif /* __RESET_TOSHIBA_TC9564_H__ */
--
2.53.0