From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD58149A3D8 for ; Mon, 12 Oct 2026 15:24:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791818656; cv=none; b=Eat5E70yxOq6cCfSwqt6gQPOG5L+K204HU/WB3U45iDFFI8CuZSnwj1VctheybQCrOchvc7KGBdwtnRGRxfz4qlMOKGCFOZ5p684bT6o0tttHwEhA8Xx0CksYGY849dllDf3roW6sCjA8mOPH+7ei+VHfOZkmIrIWE3MzL5lvMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791818656; c=relaxed/simple; bh=t6eFtMdnbeLAWs9+Zc1CmjUrkbOAv/Qra0BQsqVHMTM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b8KnvFVbgderwIyP1TNPsOignAtfzXzVNoBELkrW9+5X7npzFC51VKN/KiQgfM0h/i6EPvVm3T+Shnjwydr9n+tkIqgx72JHLGZhfbCwMhA/LB6I/45Pw6vyNx5a4WuLj9Y/oj6UQvjfyOO+/bt5P4vncjyUd76xgD3WuvLrnWs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20251104.gappssmtp.com header.i=@riscstar-com.20251104.gappssmtp.com header.b=ZQsNU7Jk; arc=none smtp.client-ip=209.85.219.52 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.20251104.gappssmtp.com header.i=@riscstar-com.20251104.gappssmtp.com header.b="ZQsNU7Jk" Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-91986c5cb75so26912516d6.0 for ; Mon, 12 Oct 2026 08:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20251104.gappssmtp.com; s=20251104; t=1791818654; x=1792423454; 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=soDkmis7yB2hVDrGvKOiPMeBW9Ns9vua5JCb60V5dzM=; b=ZQsNU7Jkq0JZfhSanU/WYvehB3+TVpG2NKjd0LGqFHadCseDQYEFxAaCVMe36AXtjz PYYVHfoYe0f/x7VIMbxCm9kB2IGr+hmQN4G4YI6XjCEhnq1Q1pJODG1tBOby+Yk6C64k DkoS6LPtjCnB8DZ+ia92f83aAyVdKjqvmWukQOSmYNfuYGty//owapM7+jeDSR0enZp9 vevmOOftuJyBQ2y4mOSnbITJ/0fvk8HMnwyzJ6gk1wqXSbuSZWUpfhxErk1Z2sHCLb2G nlrDecD+lBZaUWFcLeKqsZZswL3wjb+SwQS6VQ0i5F8zdr4FpNAkgxLVwzyYq0Qe/5an MXUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791818654; x=1792423454; 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=soDkmis7yB2hVDrGvKOiPMeBW9Ns9vua5JCb60V5dzM=; b=NZn4XF9I6VILR0df13O4+SzlIwJn1ikm/Ae6Jc1c/EOmlJyjTYhTFLt9IVp0Rc5JfG 99j4yk3FgtNKlI3EmcXFrq37DeC1gVq7Nx6U1/4PQnOS5ImnZyfTVTHvDbY4bHR7+xOp L0o62Za9QHIeXEyq5tbX3pPy2CNgF+fUKRcRE5kQOC8+j8EJRKQhGny2VOUYk7GneZpc Yh/6XmL40usj3trhdml8fBLJ0nIjB9Tg8TP65xOqrrZBWHb+r7UepSL3st4kEV4a9KP7 9t8rKN1OIDQeEL52vbirDyhwmWJxdAdcD6+kOG0rsWg1EY91SFJ50T2N9+PsEEd35yK5 PDfg== X-Forwarded-Encrypted: i=1; AKwUvBxAmWG459qJzC5y/f48DQs0vvXhNzrUFFyjCNfJiTzFvjhROi7r0ZMyy+eybpT4eLkLYqlHvLjRuvWz@vger.kernel.org X-Gm-Message-State: AFq9FYIsqCo2B3jJMGq85vs4jXm9i2RSSsus7HRwA1KvY1JmtshJDMpx L4FGp+AdrVHjs/QMWiRm+4jI66ZHss16ODxWaRyADWCMYaf2UxkXBL3fR7blP8q5YLc= X-Gm-Gg: AYBFou3+/uLw2j3POCxX+Z35fJ5hxYA9aJ+m+EI2O2E6atRjLt77Az96qc79hgeCzJs qgww0RFEXUrFQc/05UjuQoTGHCY5DZuflCo9tvJKRAPaRutyE7Dbzh4fPbZegbo1mh7OYEb3hah WMlOxoJQOe3HWiltb71A/ZLK4i43RIRnvAGu4gPLMFrKqG2Uwa/lL2p5ynyHXtPJndQtG+gnkeP E7KoaTp42Rg0WvckxZF9bwoeIFnrF/uY8/uc0uuYrUxbiNyTxaI/EmQP6eiwbwqW/s9Oui+mfP9 b/larl/40YjVp0KYWfmltZfGNNMxxLAO/M3d0Ae5oHHMNdGEW+2stj3czSEfpz4NoVaCzn462Qy B6cLAi5heB2x99vnhniwyHtUCziMbgbkro9LNunC1hX+Az39A9nwepSsdpMywGUqRVd1tuMgMLl Mss3Bo8jVulrjiH1gCY8n/uh6uDZXyhliRj9bKZsgOF+C85WkopkfFlgCtE6JSYQVMpo7hnt6as Gc= X-Received: by 2002:a05:6214:4a04:b0:91b:979c:57fe with SMTP id 6a1803df08f44-91b979cc6b4mr714656d6.25.1791818653565; Mon, 12 Oct 2026 08:24:13 -0700 (PDT) Received: from zippy.localdomain ([73.62.185.64]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91b97178de2sm659086d6.0.2026.10.12.08.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 08:24:13 -0700 (PDT) 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, andersson@kernel.org, konradybcio@kernel.org Cc: abelvesa@kernel.org, kees@kernel.org, gustavoars@kernel.org, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, danielt@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Thompson Subject: [PATCH v3 1/4] dt-bindings: clock: introduce toshiba,tc9564-clock.yaml Date: Mon, 12 Oct 2026 10:24:04 -0500 Message-ID: <20261012152408.3729237-2-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261012152408.3729237-1-elder@riscstar.com> References: <20261012152408.3729237-1-elder@riscstar.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Define the binding for the clock controller functionality present in the Toshiba TC9564 SoC. Co-developed-by: Daniel Thompson Signed-off-by: Daniel Thompson Signed-off-by: Alex Elder --- v3: - What was formerly described as a "clock" node is now "clock-controller" - The clock-controller DTS node, which dropped its reg property in v2, is now a sub-device of the config syscon - The config syscon is now (also) compatible with "simple-mfd" - The clock-controller DTS node no longer defines a toshiba,config-syscon property, and the config syscon no longer requires a label - The clock-controller now requires a (parent) clock property - The header file is no longer included in the binding example - The binding example now includes the definition of fixed 25 MHz clock .../bindings/clock/toshiba,tc9564-clock.yaml | 65 +++++++++++++++++++ MAINTAINERS | 7 ++ include/dt-bindings/clock/toshiba,tc9564.h | 34 ++++++++++ 3 files changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml create mode 100644 include/dt-bindings/clock/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..24e07d4aead32 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml @@ -0,0 +1,65 @@ +# 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 Controller + +maintainers: + - 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 (including a clock controller) via its BARs. + + A total of 21 clocks are implemented, though two of these are not + controllable. Access to the clock controller relies on PCIe being + functional, so the PCIe clock is assumed to be always on. Similarly, + the PCIe controller relies on I2C, so the I2C clock is also assumed + to be always on. + + Clock ids are defined in . + + The clock controller uses registers within the same page as a + reset controller, so both devices are defined as children of a + "config" syscon. + +properties: + compatible: + const: toshiba,tc9564-clock + + clocks: + maxItems: 1 + + "#clock-cells": + const: 1 + +required: + - compatible + - clocks + - "#clock-cells" + +unevaluatedProperties: false + +examples: + - | + tc9564_xo_board: clock-25000000 { + compatible = "fixed-clock"; + clock-frequency = <25000000>; + #clock-cells = <0>; + }; + + syscon@0 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x2000>; + + clock-controller { + compatible = "toshiba,tc9564-clock"; + clocks = <&tc9564_xo_board>; + #clock-cells = <1>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 77bd64bae919f..b19c62eabaa7e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -28166,6 +28166,13 @@ F: Documentation/devicetree/bindings/media/i2c/toshiba,tc358743.yaml F: drivers/media/i2c/tc358743* F: include/media/i2c/tc358743.h +TOSHIBA TC9564 CLOCK DRIVER +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 diff --git a/include/dt-bindings/clock/toshiba,tc9564.h b/include/dt-bindings/clock/toshiba,tc9564.h new file mode 100644 index 0000000000000..2106e4199ed45 --- /dev/null +++ b/include/dt-bindings/clock/toshiba,tc9564.h @@ -0,0 +1,34 @@ +/* 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 CLOCK_MCU 0 +#define CLOCK_INTC 1 +#define CLOCK_SRAM 2 +#define CLOCK_UART 3 +#define CLOCK_MSIGEN 4 +#define CLOCK_PLL 5 +#define CLOCK_SGMII 6 +#define CLOCK_REFCLKO 7 + +#define CLOCK_MAC0_TX 8 +#define CLOCK_MAC0_RX 9 +#define CLOCK_MAC0_125M 10 +#define CLOCK_MAC0_312_5M 11 +#define CLOCK_MAC0_ALL 12 + +#define CLOCK_MAC1_TX 13 +#define CLOCK_MAC1_RX 14 +#define CLOCK_MAC1_RMII 15 +#define CLOCK_MAC1_125M 16 +#define CLOCK_MAC1_312_5M 17 +#define CLOCK_MAC1_ALL 18 + +#endif /* __CLOCK_TOSHIBA_TC9564_H__*/ -- 2.53.0