From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796141298; b=ZzfR5RNF2nZJQ6ZM5Qz2Xspp7yoRMvf1FxNPqRrRC404n15t6Ig8ZKDsielZ84BHfVzZ 54AJIlVWBkLu/pB01n3MVfviM5bjQTnDU/9cx5halKoV3UsqSsyyi2wEzHIkOzqgiLE1/ qFdJ9xtceL1XVWew4VjCdh/lwwalXzxcf7XGYT8RPjIEMYAwLCIOyotQKTQ5yBA13qcXT mHnnNPfHzJzHN2sqm9l4PIAyEbemENh9Yr3VnybG0w4oaefZRZNGKnvGix7zre5WaLWn6 5qQ2XCgl1eIalfpmflZ2THA1f8mK/iwou2yfdCFBa/L79MfW8bypNirEb8DnNibInYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796141298; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=F9hicz3837z+E+x2RmLhM8YFl2YGGnuF1fw64SIa/NA=; b=G+4fVcIqV6G/6AbhLrcNblGKaYaE1ao/m1dcu+t8MHEWdvWnOdLd+nMl77q2LzsqvdCP xuNZ538Y8ytH7V9hO43Ch/4sIHjEI0L428P1TDgG5F3GqiqMyvJ4EFQt7XWGSpReARoo9 kEvKfMRPKjs5FkFm1wCJ+4QcFyfEo3WPs51eP0w4TyomH8qvxSnmIRVP7QhnqrILe5M2Z KAbFAcsz4UQ0iNTZy4YLAkqAjsbT1cXSqeKlt11tWsigjQPbfGomRjSVoY7xyHt6P8bzQ H0Onh7oW59Bk2buW7N7jNE7ay+D+nLSVjLEd3inzRZRKdArPEQVG0deWlOp4hWsWR6g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=EpKpVEEt; arc=none smtp.remote-ip=209.85.210.50 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C035E606A336 for ; Tue, 1 Dec 2026 16:08:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C035E606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=EpKpVEEt Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-862a5b64755so6537728a34.2 for ; Tue, 01 Dec 2026 08:08:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1796141297; x=1796746097; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=F9hicz3837z+E+x2RmLhM8YFl2YGGnuF1fw64SIa/NA=; b=EpKpVEEt0dxiKRv7t1N4Z8CJstHULIJJ7Ey0gnqeSS5PCUT6jqNwUgotEGRVCWlMdt CMDwZmzxv+d7KIpFJXwyEXmTf1RdPTsW0AjSpoluteYfkfXSDLR6RX3fJRgYExiIAFrc e5/L3FUhSWxa/TVV+gCjSkFCgT55Wq2GPEugSy43uzCiI8p93KifkqikMbH3aem6CrEQ LJhtrqfooKdP5d69kvVPfJYrsn39u+Hn6BeA2eOzQ8o0MtWZjaYkV/m0Ha5onxeT3hrw lvp7mRPVVUwz6WZBUqpGdhl/PfYF6TRxcJpvcYq1SbUwoYFK8J24UznacuoyPmBxpzWB rJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796141297; x=1796746097; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=F9hicz3837z+E+x2RmLhM8YFl2YGGnuF1fw64SIa/NA=; b=RDYVXcGe35MiWcihTOhaz2je7tTLrrXIbElPazKFnirE6PdeQDVMVaoSK3uoCYAkzA ZggK+O5glXPR31SRjryagdE6fF/oanenEaXbT+/qseTu9ObNtSRiNEMksKGTnoFTISnH /A62f7pd8dfJogsejPACKNIsZ87M69p9fR19X0b+1cjj01lheXHx4PCMB0MVJvdDpmPj PjTKdXDyEQY9Lu00vTBxeh3YbVaBXZATwslJhHjYtFFPWvs1CZRFrctnDf9SZEc06VOU S8hFOPACMWHoMcP7qvxF3ofbXLKaCl5uvC016LcK6aTBpI6YyH0x7Q7mOU5ojJDB59ee lSKA== X-Forwarded-Encrypted: i=1; AL+hErFSJQQZzZ0suAJhKCedOd4k8VbRDgg9V8HcGDHsTnG1YO4COG3Al8pmTks8q9f0KpNNwrL3rXi3YiAu@vger.kernel.org X-Gm-Message-State: APuU4Z96sV6de61Q3FV3dWbHN7YPGSsSp4SJPp3XnDD0MHLjFHErqHfF D/fLkR757s6bbtqhR+Qqfi17ScPmu2qRWJKHRo7L8oua4JyNSslrECcEKNiVk8R7pS4= X-Gm-Gg: AZFdTZcO9zR2+Nq3jixujQwKxb4plp7Kg9aeNMjHvCvXysYD8lP41h941yKVU5ZOD65 +Zsvzhx/rlI5y87iYBbA4caj4Z8U4eM11cvlN0Ugj1gcZ1X/gIiSU+yvnrbRBkPXzi6OIIQOY21 Nad3ws9buaJDxkeFwtjkLfEnl4IIDIlqTvyROkNeJ+U4ir1JmshI0yFcJoAVxFpXj0UEJp1t00C st1s2TePRRFZxm3hp5WZxPdyp9p0L6mlW9GlHIZvQ9GgHc0rX5gOgCahe2Bx6tCZSBtjCdPGNf2 QV04f39kTqpzysMJaZwMyZIQGqUvpXuBwOKrR8DpJ0lwrwe2eUWFN6ZKWnfTq8BcjXF3Kz/t+N7 T8XSqwt6qE4C8ZyfylzRwGqHDIBB7PNUR8+JBLG326kT4oTIc6Av/N2IzhCGQwHf7bKxjalqAH+ 7T7/H4UTO+6uf3+9ijT7GC3CMW23aiENQdXG2tpSFpJ+0QxIUX6R9hfLKaGLT939H5Yd9BLY3yY XTpogyG5n2idMmnL5K8R6LYl9cVf5ilgQpHbhAO/f45LuLjjEb0LINCuu0GQWPxwKiFI4M9AMLZ yRU9Z95+ropN/gxz0Yf3hi8ytqj9D8r2GbgD X-Received: by 2002:a05:6830:25d2:b0:862:9f06:8655 with SMTP id 46e09a7af769-8631549fdd7mr39130364a34.8.1796141296537; Tue, 01 Dec 2026 08:08:16 -0800 (PST) Received: from zippy.localdomain ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-8631690fd36sm27182439a34.20.2026.12.01.08.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 08:08:16 -0800 (PST) From: Alex Elder To: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Cc: daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Date: Tue, 1 Dec 2026 10:08:06 -0600 Message-ID: <20261201160810.2422466-2-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261201160810.2422466-1-elder@riscstar.com> References: <20261201160810.2422466-1-elder@riscstar.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Define the binding for the clock and reset controller present in the Toshiba TC9564 SoC. Reviewed-by: Lorenzo Bianconi Co-developed-by: Daniel Thompson Signed-off-by: Daniel Thompson Signed-off-by: Alex Elder --- 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 + - Alex Elder + - Daniel Thompson + +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 , and reset + IDs are defined . + +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 +M: Alex Elder +M: Daniel Thompson +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 M: Daniel Thompson @@ -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 +M: Alex Elder +M: Daniel Thompson +S: Maintained +F: include/dt-bindings/reset/toshiba,tc9564.h + TOSHIBA WMI HOTKEYS DRIVER M: Azael Avalos L: platform-driver-x86@vger.kernel.org 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