From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.231.138 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796328595; b=M5zh1SGc2NIHDSr8caTkSE5USdkdpXJJfkr0Ss+6qHUv7JTzCCf/OrZ7Tc+cOrLlzNij e75CD3Y/XCitwZ+af/bPJyguIexZxh0CsXMqxk79WOvtP10cNS5zhKw51VTwWxwChdeFT GZFf2ngjFqrlva3kOFWSJd5NEPvCcf1UKCcs13H6VBa1Blmf1HtBoSMhO5XEPOPdakNx8 TsSxEAx7ubLfYhAOYmboOwrDVUw8P7BalhlARbkOJH9chUYLIO79SLuSsDFEvCdWVKhn8 ugNVr9Z7yPPmZ5/iWFyccnaVfaDKvdvADycRsyH+YmSEXj9XuH9Yi0krtDOMP1Mm9jw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796328595; 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=8k5klmpjsRpxxmW92fr5jkytFlIa8tnOnsXy9ZeU0cg=; b=5XY2Cu0+UkGTGwtmZGpmVbQcDesR7flAJluqTC2eD1fn/8jwrheH3kXu0HSuRqFwCraD rm2Pt3ZwXc8f+Mg8GD6bEzGnF4bv1AJuYemzUubuPn+sw6cwr06SPN3TtYx5lttDLIeYB v1ZmnqD5vp61RcXEEbAaafEbXYEls8XMMiIu3VCyHx/CLE+lOmYrMc5QWQXi5wHlOLo7l yjxD1yc87HQWP93vFzJHrlBiEgk6QU8Ub3K4Mp2YR4G2PbFjiR1M9pho5GKj6YVaKm2Cz u5LCko3lGPLEKfMXREA0cK3wRtaPgf5HgQH8a7eKa4erBPatK7mlHuLIqG0emXrU/ow== 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=noPIpLG5; arc=none smtp.remote-ip=74.125.231.138 Received: from mail-oo2-f10.google.com (mail-oo2-f10.google.com [74.125.231.138]) (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 F1B98606A690 for ; Thu, 3 Dec 2026 20:09:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F1B98606A690 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=noPIpLG5 Received: by mail-oo2-f10.google.com with SMTP id 006d021491bc7-716d85c01f6so47322eaf.0 for ; Thu, 03 Dec 2026 12:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1796328594; x=1796933394; 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=8k5klmpjsRpxxmW92fr5jkytFlIa8tnOnsXy9ZeU0cg=; b=noPIpLG5qW2RK+LlIvgDf6El8ByjAkxL7gGzycHIgti/2XdIzHKCZxCXpDi81Bjai/ FoZm90z38tjddYiczWQ+eQieD6m2f64Aj/Neww8RG+0aUsMX3WnzlXlOBLLa/MhbfMRx xKVcS70pzNJMM5IybLUxeC/lTksERjpC0NZciOv3wwrTifgYOpgmJLVpN+i3/42MQV7C X7i6fH4kJQrG/yl+Uo7CkVa3VSin3aZf1kfWT2Dvyo4vZ1cZ69DOHSKbFH70M2Nb2Fzx TpnIe2D78MN8qQutIWNRktNnSnoWeJxk+BgsmRsYaihKDG3dmqY4jjGi20o/uwIKOXFE rJnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796328594; x=1796933394; 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=8k5klmpjsRpxxmW92fr5jkytFlIa8tnOnsXy9ZeU0cg=; b=Gw8r3/ZxYLxn8UI/BMNU5779gRlK6Y9lkm7PcrtKFwt8hUNfczmAqBy/x17fjf7Hbz JC5HMkiSkXD2UuklioQ5i3Zu1VDs9gArXAVmQjvTyk2UYVV3VFwJog7hEYTcx40WnxCG y/rhMvpCmJxqp/ARbEhN3NJYMO0n4pJexzjkq7Etstm6uGYgg35D6Ma8XfJmhIo3j/2j chm5q5rw0CTkqsQADiEAaf4gPRv76Diww2xj5QxUkoF1C8EGe3yK9DJrpaFQOcG4Po7u 0V6iK35qnghBiiUcJ7fRE1AZEPEXdOkMr0o3gIguN6umv85tLkC0fnoBfFS5b6+VWcm9 42eQ== X-Forwarded-Encrypted: i=1; AL+hErHUv9IkH7G3FN/CmV/rzQzLG3ZHGbEsQDlR8CSvjFv9bF10TaTVR18NcV0V/m1eMDjj2stJ0IgHSvx8FFg=@vger.kernel.org X-Gm-Message-State: APuU4Z/3RxVsN+YGFtokBNgU/kRbqPVj0/xRXPbwTUtIKslP1I9YSdiC bqqosgf59X1tCT4f9jcxpNJM9tmP09PHmveVspiNB/MfCtpotLm1vn9QUIIF1Jdm1zc= X-Gm-Gg: AZFdTZdU5BvTm4hkXeDIqoj5veJd20ZQV6pXV1kA4YiHD1rUl5QggfCPAhmSYlIJ0O4 aQ43L8RAwexVq8ErIV6X8Fs1jursiq0RZBuJ2sT19kxwb3rqe5E1j+Jn7o6cHufXkHYRnhsJE5p nZgMNvFZ+iKb4Y3fJdvivSzDjxZJjXVs5VzLDTFUJlI+Fx9Es+oQBnfDODRduPQT+DoFv60xvPs guUFQJjBcxP1mhuwA1XTiIz0vzLrexrqkS1L4YRjyYIy/qJ1/JYCmJzJtbBiilFVzphoqWDi+OB WWD0SKaiEDdixOBNiWSkZcpfNOp7/frXMCTxsVsmAlk0kNQEGf+3dIHo07GqkkTKoK7iwPSpjqT jYgTs8q8NaBAmKgqIUGW9q8y5ndEQtBm0GuSjKy8Hwy7l5u0eV59C1bY6AgN2LhIJhkues/d2mt O/NvxPk9cXEhsco1P3Thu2QlQyiBefQk3SePeJd02bafIyeB5TAlpSB65lZuwcYQh4cGPl3uQ4g CQpHs1Xsp3fAtnfQKbVIHqjxPWbGljIkp114Dz8MRTXBTY/rn03VPCsv8S2iWl3fq4PShX9ri4V KOASHvOjU8j58Eel71ezc7hvUJbNYLPbMI5i X-Received: by 2002:a05:6820:3419:10b0:71a:fb0f:8148 with SMTP id 006d021491bc7-71b394d855fmr27642319eaf.51.1796328593892; Thu, 03 Dec 2026 12:09:53 -0800 (PST) Received: from zippy.localdomain ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4bd3008160dsm42590227fac.16.2026.12.03.12.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 12:09:53 -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 v5 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Date: Thu, 3 Dec 2026 14:09:44 -0600 Message-ID: <20261203200948.1595470-2-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261203200948.1595470-1-elder@riscstar.com> References: <20261203200948.1595470-1-elder@riscstar.com> X-Mailing-List: linux-kernel@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 --- v5: - The I2C and PCIE reset IDs have been removed. - The I2C and PCIE clock IDs no longer indicate they're critical. .../bindings/clock/toshiba,tc9564-clock.yaml | 73 +++++++++++++++++++ MAINTAINERS | 15 ++++ include/dt-bindings/clock/toshiba,tc9564.h | 26 +++++++ include/dt-bindings/reset/toshiba,tc9564.h | 22 ++++++ 4 files changed, 136 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..2217eaea05e21 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml @@ -0,0 +1,73 @@ +# 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 a PLL multiplies + that clock, 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. + + 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 a20ba230b7f0b..5d9fc5c5fbcd8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -28792,6 +28792,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 @@ -28799,6 +28807,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..39353a8832fde --- /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 +#define TC9564_CLK_PCIE 1 +#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..73af49a0a3bc8 --- /dev/null +++ b/include/dt-bindings/reset/toshiba,tc9564.h @@ -0,0 +1,22 @@ +/* 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_MSIGEN 0 + +#define TC9564_RST_MAC0_MAC 1 +#define TC9564_RST_MAC0_PMA 2 +#define TC9564_RST_MAC0_XPCS 3 + +#define TC9564_RST_MAC1_MAC 4 +#define TC9564_RST_MAC1_PMA 5 +#define TC9564_RST_MAC1_XPCS 6 + +#endif /* __RESET_TOSHIBA_TC9564_H__ */ -- 2.53.0