Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793753019; b=xJK9IrQGJJQzVM1/Bv5nJwlaju6U92qR7q3IHPN5YOQUtIACYggmq412gzxqYiWC/cW8 flPnt5pC0DtFqyaGMh/IaedhCcrfOzMrIxJrU2H/ZmXNaB4uJ6A9GuG6KXxRwufSvPJIs rR9QJ3n8iwfJOh69Jrn1vha9E/TlAV/f3tbYfPQ/4VPHdy87CkadB0654ZFwvxuDx49Ud bLSGnyQPLLSEGMrkGsNgcqlOBCq2IiBFY6VOWCGrTtrVT04J+AhW5TB+5gMYKz14lLQPe g+1Dwb966znUSViR5mEKgZy84TXlbxZprN34Mmhy3BTnRwrPSSl/gH7AbMf+HLzCmeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793753019; 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=GJmsUCfA9ifxE6S9S2wXh1BgJJ14biPpsYcozlXnQF8=; b=P91F4njvYBTGmQU90WYYEKb2RDbB9F8xs6nose1mwm/LkrzGAs2d3mOB35cvm96aZdr5 iZKh25LlfW0lgdr0VXx3Z6HdAdzcU/z50udhVpbbICfmn5EoXXI4F2k+3oVfridBREV9z jgL1H0u3XHDD9VFrmhFzazcF7ch0YTAOkQOyMhPvYRR6ZJ2me/JNl5Dx/bmoc7PhvCXVa d3VnTVU4fuBYgwGJ6/FqADi0FKBntdEHwXZ4iABXxrm7pMImDpxJSH53eQW332q5fOeeR nJCxmnX1Z5wQl/olpVwbnshRL6+8XU5JrWsgIEuDTK518ow6t3PbmKOcmATkyCSoj8w== 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.20260707.gappssmtp.com header.i=@riscstar-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=qh5mjT0v; arc=none smtp.remote-ip=209.85.160.51 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (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 A3FA2606A32C for ; Wed, 4 Nov 2026 00:43:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A3FA2606A32C 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, unprotected) header.d=riscstar-com.20260707.gappssmtp.com header.i=@riscstar-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=qh5mjT0v Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-43bf9548df4so222270fac.0 for ; Tue, 03 Nov 2026 16:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20260707.gappssmtp.com; s=20260707; t=1793753017; x=1794357817; 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=GJmsUCfA9ifxE6S9S2wXh1BgJJ14biPpsYcozlXnQF8=; b=qh5mjT0vrjKucm4mSJqKh4njRTmVaTzTGIESvGr1XYhpjoS879WHj3IqJCC9W3DVzp l+jOV9n5VICpLAXTdcmWs+46X59N1zhEObM9D7QDxTg7hZfoZLoZNo8gSg9/UtCWS4Pk GdJSdmI9ng/Ezj4rXEoUV6ip2YqsxcXsrNUbm/YCO5RxXzgniTzXlTMfQwGwzJP3W+7g 2U2bqqV8rwKLO9Bf6KOS9SbAA81OjRDDcMnN/hpseEaL4k6DI5IUn3oZmYRGCgodEt5R FgZcpSEnrj6Mm64020fRz/mMBR2cD4RMica7Jatw8IFXoV2LMHdkZAK6IaSMy8mTZFjs LA8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793753017; x=1794357817; 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=GJmsUCfA9ifxE6S9S2wXh1BgJJ14biPpsYcozlXnQF8=; b=YGF34WqHwVhrCHnE2dowaD2vDcxuOWdhPC/sPukbsE9zklb0ek7Yil+6p0R+6c33RD JzDD2o2GTTierU+zXHhNJ3s+cy+QLK+X/Ymcr86DxXLqXXY9MwC8BtRez90yWiCYffOP OtUXKUtlikRz1RPjg1d8GyaNR4Jx/VDzaCgCb5BLMPlY1dZ8jI9PBNk/11fbSS5HcCcs EOlvyPIpp/NerNosT2agepOr5ChPz9LmS17VumE93vHdol91qzRM8VpRnfOEB9ccLXH0 ySkqG/ZifsdH2NOLUqpmXuttpjxhAzkwrwxvSjWPIaMMlhXF9k2pnh2NwF1VvuhDvBVx ZhuA== X-Forwarded-Encrypted: i=1; AKwUvBxuqRqLI8ex3amzw9sJhrlY95Ms5EdzGxRbLhADqB4NeeLmySJUObGgq9t/YQ4fWgisGmvIA2wdUi8=@vger.kernel.org X-Gm-Message-State: APuU4Z/aWrGLQqDOr4xfEN0VFs/bgMlcSc8LW30dtc9OYdE8aRmObV43 yDun3Dhx0RPffr1jrpQIkP65djFvg6mUT1jS2sYP48elyAeJ6MtCZ3lkIth1yAzQoZU= X-Gm-Gg: AYBFou3mKDL9VE2DXG9QZBfsowxs7oeI4O6eJuklxoTqhy3DdtFDJxaxsUOoPNjcy/2 QWCoW0J47N538CDJromt9Yc/THhsZG9H5vliqqoyZGNRIt4ea6m0GAMaMSS/0Ddh3soumG0axJO 6BjgRlC1rQ7V+JAbMlHBQ9bnDfYECB2nx6mw6YvFSRVXlmjpg/R+TEqrJHHkrQKx3opJC4Lg/kX wamZGRpD4LXUm6nP2J1Yg5xiXLfPF2r8em0KSENdz29UWW5cPQc7F463b3uf0fjjB/KS9qHVx0K lIfEMnZ2C7ckfgE4qQnSSydMmve7mGNawi7wX/zNtIcWUIf5FFmRiHuqQD0zhCGZ7jRStRg+M/z z3YoXyD+29XOf5/v+Lch7tkKKEGFxhHTIAdQqOZhfYXwLblgZHjowjUfmIyeB2bIj+143E2ivcS LsXXWOqh06Lp+oK3N14jEHB5Tw1yKLcd3h4TGvn5eUWd7yzRp7WVSt0loLb15n78Gln5bGTxTtk lzXfvCjei9rBJ9rz/vdRqimFFbTtvUzRGtDTEC1RNqnGVy2BNzb3oZFD5Sf9NDFcbmAUsFaqjPP yP/yzeLdkN6v7+/flX5wU3OazTLERfPR6tEFlzoqxMEGYY7/lb0jiQI= X-Received: by 2002:a05:6870:6c05:b0:4a7:83dd:599f with SMTP id 586e51a60fabf-4a9076be157mr8419340fac.23.1793753017556; Tue, 03 Nov 2026 16:43:37 -0800 (PST) Received: from zippy.localdomain ([73.62.185.64]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4acea61f0c0sm513493fac.14.2026.11.03.16.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2026 16:43:37 -0800 (PST) From: Alex Elder To: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, p.zabel@pengutronix.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.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, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: soc: introduce toshiba,tc9564-config-syscon.yaml Date: Tue, 3 Nov 2026 18:43:28 -0600 Message-ID: <20261104004332.2141282-2-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261104004332.2141282-1-elder@riscstar.com> References: <20261104004332.2141282-1-elder@riscstar.com> X-Mailing-List: linux-clk@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 system controller that implements the clock and reset controller functionality present in the Toshiba TC9564 SoC. Co-developed-by: Daniel Thompson Signed-off-by: Daniel Thompson Signed-off-by: Alex Elder --- .../toshiba/toshiba,tc9564-config-syscon.yaml | 68 +++++++++++++++++++ MAINTAINERS | 8 +++ include/dt-bindings/soc/toshiba,tc9564.h | 46 +++++++++++++ 3 files changed, 122 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/toshiba/toshiba,tc9564-config-syscon.yaml create mode 100644 include/dt-bindings/soc/toshiba,tc9564.h diff --git a/Documentation/devicetree/bindings/soc/toshiba/toshiba,tc9564-config-syscon.yaml b/Documentation/devicetree/bindings/soc/toshiba/toshiba,tc9564-config-syscon.yaml new file mode 100644 index 0000000000000..5a241a9c915d1 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/toshiba/toshiba,tc9564-config-syscon.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/toshiba/toshiba,tc9564-config-syscon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Toshiba TC9564 Multifunction System Controller + +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 switch + includes an embedded PCIe endpoint that provides access to various + SoC peripherals via its BARs. These peripherals include a simple + controller to gate internal clocks, as well as a reset controller. + + The clock controller uses registers within the same page as a reset + controller, so this system controller controls access to both. + + A total of 21 simple gated clocks are implemented within the SoC. + At this time, support for enabling and disabling only a subset of + them is provided at this time. Similarly, the SoC implements 13 + resets, but currently not all of them can be controlled. + +properties: + compatible: + items: + - const: toshiba,tc9564-config-syscon + - const: syscon + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#clock-cells": + const: 1 + description: + Clock ids are defined in + + "#reset-cells": + const: 1 + description: + Reset ids are defined in + +required: + - compatible + - reg + - clocks + - "#clock-cells" + - "#reset-cells" + +additionalProperties: false + +examples: + - | + syscon@0 { + compatible = "toshiba,tc9564-config-syscon", "syscon"; + reg = <0x0 0x2000>; + clocks = <&tc9564_xo_board>; + #clock-cells = <1>; + #reset-cells = <1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 93abbb315065d..2b1b29169e0e9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -28339,6 +28339,14 @@ S: Maintained F: Documentation/devicetree/bindings/misc/pci1179,0220.yaml F: drivers/misc/tc9564-pci.c +TOSHIBA TC9564 SYSTEM CONTROLLER DRIVER +M: Lorenzo Bianconi +M: Alex Elder +M: Daniel Thompson +S: Maintained +F: Documentation/devicetree/bindings/soc/toshiba/toshiba,tc9564-config-syscon.yaml +F: include/dt-bindings/soc/toshiba,tc9564.h + TOSHIBA WMI HOTKEYS DRIVER M: Azael Avalos L: platform-driver-x86@vger.kernel.org diff --git a/include/dt-bindings/soc/toshiba,tc9564.h b/include/dt-bindings/soc/toshiba,tc9564.h new file mode 100644 index 0000000000000..66bcdf837f958 --- /dev/null +++ b/include/dt-bindings/soc/toshiba,tc9564.h @@ -0,0 +1,46 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ + +/* + * Copyright (C) 2026 by RISCstar Solutions Corporation. All rights reserved. + */ + +#ifndef __SOC_TOSHIBA_TC9564_H__ +#define __SOC_TOSHIBA_TC9564_H__ + +/* Clock IDs */ + +#define CLOCK_PLL 0 + +#define CLOCK_62_5M 1 +#define CLOCK_125M 2 +#define CLOCK_250M 3 +#define CLOCK_312_5M 4 + +#define CLOCK_MSIGEN 5 + +#define CLOCK_MAC0_TX 6 +#define CLOCK_MAC0_RX 7 +#define CLOCK_MAC0_125M 8 +#define CLOCK_MAC0_312_5M 9 +#define CLOCK_MAC0_ALL 10 + +#define CLOCK_MAC1_TX 11 +#define CLOCK_MAC1_RX 12 +#define CLOCK_MAC1_125M 13 +#define CLOCK_MAC1_312_5M 14 +#define CLOCK_MAC1_ALL 15 +#define CLOCK_MAC1_RMII 16 + +/* Reset IDs */ + +#define RESET_MSIGEN 0 + +#define RESET_MAC0_MAC 1 +#define RESET_MAC0_PMA 2 +#define RESET_MAC0_XPCS 3 + +#define RESET_MAC1_MAC 4 +#define RESET_MAC1_PMA 5 +#define RESET_MAC1_XPCS 6 + +#endif /* __SOC_TOSHIBA_TC9564_H__*/ -- 2.53.0