From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 9074737649D for ; Thu, 16 Jul 2026 21:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784238386; cv=none; b=CraNZwnSkft5o8ecWsxrEBRWinaaWqRUHYlIjeniyUonK7hSvHXK3J7jXd9v8JymekwaH10cKFLX3AdWxhXVnsCjEI94l/uneE2C47O25OxA+lwiayX1gq5tE5Wn4qET4gr0UNSlbPSjOun2kJKKNiEmWGFKLok4Xxglo5xue9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784238386; c=relaxed/simple; bh=Xip7XKi61C0yH+sanSoYPvmiyme7cY+t6S6dmaDc+fM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=bf6aYMBVrwaN9n5p8/el4Xsdss6t8cPBj0Kp5trzCLg3r1INa+2+ZEo5PGFUruKUFaBnCAsqhAjnxzslE5ar8CwUUCptjzMN2cHk+2AqVgA6YXztAHkmXHHZs0je3gIpzcfJi+SdHT0LqE4yyLEKrkidCvpX01bAS7qBtNy+YDE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ZFBwVVHC; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZFBwVVHC" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2cf110997efso4730725ad.2 for ; Thu, 16 Jul 2026 14:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784238385; x=1784843185; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=tPcoLLAW5Uw+e40dTUDHiSrmSGK+jhTystM4taDsNcw=; b=ZFBwVVHCZBxjT0EDPdgEJ4SGcvhKUscG9okuI/j/jK+q5wMzVllE65LULr0tpzavrh YindGe60Th/+Jtz8WisrWFCfeiFBUW8nXl2iXzYVyUUKjgMkzGkULqe/N+bw+ZCiFx+A KSAN0hNzekCa07HvsJ3nE+NskTC1ZaPp6YtUGQVcyR9qPKNwivrfS9zNa/r5BtkWkY98 cku2t4pZpoF73hWzH2RsTC+5erjBWiCaMGlBamkPsBfFob32WzdVgRvvb7RndLjbTmbb RMB/RhBmK9E4INDNPSx1h2jCuisqO6fRbAMJw6oebiIlOA1HE/mrWeQzvVJlOncq8vNE 1WGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784238385; x=1784843185; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=tPcoLLAW5Uw+e40dTUDHiSrmSGK+jhTystM4taDsNcw=; b=TU/825vWkQTVM7WSjXiMbYaF8VAl7B9Ln8sqHQOCt2rb9WWF/Cqy+CCGaJclVrsAb/ ZIE0rfxMiiN+J6YtREV72I9qrNzEzfL6bHUbuVNnThvV/I1e5HUAVwXy+ABVSGOlyF7k sgL7SyKaQVe7x0/WmU4q1VYgDuZmM9cnl/j9HPULCU7cEcgJcsmqr5xrB/mAadkq3PAW PTLou9xaWXMpu4c9xIukc4q3+nCHS7KhO3HaT4jktfWmYsfVi/ARgfRW9bUehx6tXQT4 w9RRyK9TCm8B1YAnrxtOvBbkSBXwY2/gzDerpQNIpN0vJVYvRiHlp4tRMJbLqomaUdnA 2FHw== X-Forwarded-Encrypted: i=1; AHgh+RrLghCy2uSJGePdAr4FAiEmGOouqNea/wAMCMgJmLVpuWY2fzfpgoToOh9JylkSDwPiom9Rw40ZIwwKeA0=@vger.kernel.org X-Gm-Message-State: AOJu0YyTYiMb4bJSnEj3+L3g9dMS2SYZOBchJEK0T98+uM/xoM4DKZLe wnW7O2RNM1T0DDMf287E6t+d8PRheQyjN2jEHi4xMTP3J25vKCYe5NYDt8iPLQ== X-Gm-Gg: AfdE7cmrOVCDj5CDJeAa0Umy+y64d/cPXaMCh3KVokYmEhP7aEIr/gqJ/96Me/v+afJ WMT9fo1Vetud6wuKwWWMygFAs5nydDeWMX4yucZc5yomH7ma+ZwW1xH/V2m7UVB7dSfw43KVMoo +AftwW5Cnab2J9fGiLu4R2fjCSzdh2/cqMg7TJrHBOl0kEGdPLFH3aiZJrO+PnslC9jh2RhDdkD /d21MaV7pO5ka92Z39Fyek5iFCGCPkGcSZxjfZpUVvuowjz/uwuE453M8rZ6/RpzscM1C9h4fkw 4GOsFXB2VT+JVl/U75aL07Rzl5bwhCPf0TWeD3IeTT/v2fG8c8LHB/WYlhkAk6EP5wv7fvJmOJ3 AFNYM2CnZkldlQaXyEG7bdTl7NfHv+LKSsBPJWiHHkEF3SfjGJAqii2skUY62v464giwuvWStMR oN6cXHIu8kRLeyKvM= X-Received: by 2002:a17:902:fc45:b0:2cc:e7f3:d39e with SMTP id d9443c01a7336-2ce9e29f5b2mr191380815ad.2.1784238384875; Thu, 16 Jul 2026 14:46:24 -0700 (PDT) Received: from [172.28.140.252] ([2409:40c2:5428:7379:8e6c:7b85:e813:4f3b]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13cd432e848sm15267641c88.9.2026.07.16.14.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 14:46:24 -0700 (PDT) From: Bhargav Joshi Date: Fri, 17 Jul 2026 03:15:42 +0530 Subject: [PATCH v3] dt-bindings: clock: ti,clockdomain: Convert to DT schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260717-ti-clockdomain-v3-1-3c263af4e9fb@gmail.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/2WMSwrCMBQAryJZG0lev3HlPcTFM3ltg20jSQlK6 d1Ni4uiyxmYmVkgbymw82FmnqIN1o0JsuOB6Q7Hlrg1iRkIKEUpBZ8s173TD+MGtCNHqIwRDUo 0BUvR01NjX9vwekvc2TA5/97+Ua72uwL5u4qSS05KYVFio2rCS5t8f9JuYOsqwj6HvxxSnme5u ZOoakWwz5dl+QCfUjY/6wAAAA== X-Change-ID: 20260610-ti-clockdomain-a27dd0fa1ad5 To: Michael Turquette , Stephen Boyd , Brian Masney , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tero Kristo Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, goledhruva@gmail.com, m-chawdhry@ti.com, daniel.baluta@gmail.com, simona.toaca@nxp.com, j.bhargav.u@gmail.com X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784238373; l=4577; i=j.bhargav.u@gmail.com; h=from:subject:message-id; bh=Xip7XKi61C0yH+sanSoYPvmiyme7cY+t6S6dmaDc+fM=; b=9WeyKYh4k2MMl91IN95Ut0YJ9T2rvopYX+OlmHN6LITkfE52omWXB74yR+jGlYrWGB2jT+lRn FyfE7r1VH07Bcb9E5+0Ev8cnrBhjqNRfL+k7gksZGtsRSaF9QD/tHe1 X-Developer-Key: i=j.bhargav.u@gmail.com; a=ed25519; pk=IqNDwUZKECEA+n8wXctFLBbYL9NhFstZNbOznm/nX1k= Convert TI clockdomain to yaml DT schema. Drop '#clock-cells' from the required list as this binding doesn't define a new clock binding type, it is used to group existing clock nodes under hardware hierarchy. Most existing dts omit '#clock-cells'. Update the reference to the old legacy text binding in the description of bindings/clock/ti/ti,gate-clock.yaml to point to the new YAML file. Signed-off-by: Bhargav Joshi --- Changes in v3: - set limits for clock-output-names and clocks properties - Link to v2: https://lore.kernel.org/r/20260622-ti-clockdomain-v2-1-434dbe0789e2@gmail.com Changes in v2: - updating the stale reference to the legacy .txt file inside bindings/clock/ti/ti,gate-clock.yaml to fix make refcheckdocs error - Link to v1: https://lore.kernel.org/r/20260621-ti-clockdomain-v1-1-e99a56af98ea@gmail.com --- .../devicetree/bindings/clock/ti/clockdomain.txt | 25 ------------ .../bindings/clock/ti/ti,clockdomain.yaml | 44 ++++++++++++++++++++++ .../bindings/clock/ti/ti,gate-clock.yaml | 2 +- 3 files changed, 45 insertions(+), 26 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt b/Documentation/devicetree/bindings/clock/ti/clockdomain.txt deleted file mode 100644 index edf0b5d42768..000000000000 --- a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt +++ /dev/null @@ -1,25 +0,0 @@ -Binding for Texas Instruments clockdomain. - -This binding uses the common clock binding[1] in consumer role. -Every clock on TI SoC belongs to one clockdomain, but software -only needs this information for specific clocks which require -their parent clockdomain to be controlled when the clock is -enabled/disabled. This binding doesn't define a new clock -binding type, it is used to group existing clock nodes under -hardware hierarchy. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be "ti,clockdomain" -- #clock-cells : from common clock binding; shall be set to 0. -- clocks : link phandles of clocks within this domain - -Optional properties: -- clock-output-names : from common clock binding. - -Examples: - dss_clkdm: dss_clkdm { - compatible = "ti,clockdomain"; - clocks = <&dss1_alwon_fck_3430es2>, <&dss_ick_3430es2>; - }; diff --git a/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml new file mode 100644 index 000000000000..95746bfdced4 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti/ti,clockdomain.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments clockdomain + +maintainers: + - Tero Kristo + +description: + This binding uses the common clock binding in consumer role. Every clock on TI + SoC belongs to one clockdomain, but software only needs this information for + specific clocks which require their parent clockdomain to be controlled when + the clock is enabled/disabled. This binding doesn't define a new clock binding + type, it is used to group existing clock nodes under hardware hierarchy. + +properties: + compatible: + const: ti,clockdomain + + "#clock-cells": + const: 0 + + clocks: + minItems: 1 + maxItems: 64 + + clock-output-names: + maxItems: 1 + +required: + - compatible + - clocks + +additionalProperties: false + +examples: + - | + dss_clkdm { + compatible = "ti,clockdomain"; + clocks = <&dss1_alwon_fck_3430es2>, <&dss_ick_3430es2>; + }; diff --git a/Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml b/Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml index eaa727ab0d7f..438e190d1067 100644 --- a/Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml +++ b/Documentation/devicetree/bindings/clock/ti/ti,gate-clock.yaml @@ -19,7 +19,7 @@ description: | that is used. [1] Documentation/devicetree/bindings/clock/gpio-gate-clock.yaml - [2] Documentation/devicetree/bindings/clock/ti/clockdomain.txt + [2] Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml properties: compatible: --- base-commit: acb7500801e98639f6d8c2d796ed9f64cba83d3a change-id: 20260610-ti-clockdomain-a27dd0fa1ad5 Best regards, -- Bhargav