From patchwork Thu Feb 1 22:50:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Davis X-Patchwork-Id: 195496 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp74132dyc; Thu, 1 Feb 2024 14:51:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYCfucGIUX4vG0loyjVUUbnUfxkzP94TQeqraKhh5J3iwOb5q4jZwlS4ZWiXyMZLdQJtYS X-Received: by 2002:a81:9ad7:0:b0:604:b55:f078 with SMTP id r206-20020a819ad7000000b006040b55f078mr3834745ywg.7.1706827870081; Thu, 01 Feb 2024 14:51:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706827870; cv=pass; d=google.com; s=arc-20160816; b=H4nfesTeD8GLZom2Iv2tqyn0jTslzWIccFnMRzEbw9KQHnMQ/wGuIvF2QmSIW6el3K qF45OLPZQk5kv0iryO3TAqzcIPrJFM3sApHCnOcye3dQ1xh0+nL/FlYbChMkbnX++qDv /vObcBapm/AB55wJMeGflXDV9x2HV0GVLrIEsywUXNHBmWUeGaaX6+jJna0stlmidwz1 P3kmLmcUdNhJ68lGv4xkvbJLfDRgq53nTvm1C58HbghmufOykfuSelC4wa8AFJ2+fv3c O+Emrwlqrzyf1rJn/YfNvEubETKUe67PTKkM2tqYuOol+VniAptPTZCrq86NQz17jxoq ummg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=i6CmkTYh23pJDur+/EJJvrX9QKtYRf4T4sSrBNh9+6U=; fh=v2eynmWNp8Rh2ZmL381KjC6GkIAJgiSqTFlQEM89zV8=; b=MfbkKP6BNt6wU/ecLyx9SNtV/fFzEEjsVWPLOe1DGIT7sjIN/iRA6pYSpQ0U/BrG0h IF/INmfdAvosIvnOF6HA4e5ABgd10GwKH2/NNc3fMLyg+wtnTgF7gai9+uzCDL0WtlOQ GifLO3hFhf5mRdRJ66MKpxyoM1jnTOzsiuctj/lSTCnl5tENlku+FTSG2noOriIuJLyJ O9pWCBn7LVlIe+GznIWaaxf6QV77g5iRjoImSu/9ZbqjIzGm6w7zbg+dijjlsVKStKeD yhIDQMPw4CV9V2OCPTNN3PxB5QnmKAnwMd9dioQGnkW+eVXjrRYLyroSUimpZ0e/D0+5 dtww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="LQi/SdQG"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48963-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48963-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCV3HYTL+p+bcroydGIoES9zI5sq/xX5L2o6JLEcn0+3AVzj+SKB+wQIzCc8MbaXzZuhzaLibdgbl4r2zwK20ymogIZ5TA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id i20-20020a05620a27d400b0078553aea528si299451qkp.82.2024.02.01.14.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 14:51:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48963-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="LQi/SdQG"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-48963-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48963-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CD4741C21201 for ; Thu, 1 Feb 2024 22:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45BED47A4C; Thu, 1 Feb 2024 22:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="LQi/SdQG" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65E8741211; Thu, 1 Feb 2024 22:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827830; cv=none; b=SO+chLuPgrX5bj0zutM94/uH3A3auUBQbH+118dsYFhAc13rWuXjZbcJDDdsgq+C/XAYIrvUU+BxqwO9IstydwVMLo/lbgypsRjqBybtXzKPg+fnAfohX9BUJlyRQ9QE/cA9d7JoKsBuRbEvQHKI5m4IZoZHUe1wmqnvIue6K0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706827830; c=relaxed/simple; bh=M40w82G393MWoyZ27EB6SJ0A2OkBbmfdjU/T868ERGA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SWV7Aa8ejY+o0COYhsKi9S9ypUDcua9UGlMZD/OkiMGfPsOoqP41gU85e/qC/JzGxBA0qr6D0/viPsBrby2CXMlO1dlFSDvIN71ic0MoNKduBzpn6PNojU6GKwOfWFIjgHkvCAyw7apbbqVP3/97mY0oib6CCe3Uh5YzWoJOVcM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=LQi/SdQG; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 411MoOCd068936; Thu, 1 Feb 2024 16:50:24 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706827824; bh=i6CmkTYh23pJDur+/EJJvrX9QKtYRf4T4sSrBNh9+6U=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=LQi/SdQGMczrdcFolY7s4qOjlrL/rnqbsMxBv/Yu+fhLd3+pzRVQ00k8exgkGRMtS rw484iZqOA+5hVwivu5k3tIp6VeQ+6rzKwUzIWbq5THGy4dQPocJegF2NuKh5CWrlU GEbiRUQ9dvz5QhqWGBZhx5guABqN+AQmjrYwmp4w= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 411MoOmZ094249 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2024 16:50:24 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 1 Feb 2024 16:50:24 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 1 Feb 2024 16:50:24 -0600 Received: from lelvsmtp6.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 411MoNUE109168; Thu, 1 Feb 2024 16:50:23 -0600 From: Andrew Davis To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Andrew Davis Subject: [PATCH v3 2/4] dt-bindings: clock: Convert keystone-gate.txt to YAML Date: Thu, 1 Feb 2024 16:50:20 -0600 Message-ID: <20240201225022.144476-2-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240201225022.144476-1-afd@ti.com> References: <20240201225022.144476-1-afd@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789738740511935434 X-GMAIL-MSGID: 1789738740511935434 Convert keystone-gate.txt to ti,keystone,psc-clock.yaml. Signed-off-by: Andrew Davis Reviewed-by: Rob Herring --- Changes for v3: - Add tags and rebase - Update reference in keystone-gate.txt .../bindings/clock/keystone-gate.txt | 29 --------- .../bindings/clock/ti,keystone,psc-clock.yaml | 59 +++++++++++++++++++ .../bindings/remoteproc/ti,keystone-rproc.txt | 2 +- 3 files changed, 60 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/keystone-gate.txt create mode 100644 Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/keystone-gate.txt b/Documentation/devicetree/bindings/clock/keystone-gate.txt deleted file mode 100644 index c5aa187026e3a..0000000000000 --- a/Documentation/devicetree/bindings/clock/keystone-gate.txt +++ /dev/null @@ -1,29 +0,0 @@ -Status: Unstable - ABI compatibility may be broken in the future - -Binding for Keystone gate control driver which uses PSC controller IP. - -This binding uses the common clock binding[1]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be "ti,keystone,psc-clock". -- #clock-cells : from common clock binding; shall be set to 0. -- clocks : parent clock phandle -- reg : psc control and domain address address space -- reg-names : psc control and domain registers -- domain-id : psc domain id needed to check the transition state register - -Optional properties: -- clock-output-names : From common clock binding to override the - default output clock name -Example: - clkusb: clkusb { - #clock-cells = <0>; - compatible = "ti,keystone,psc-clock"; - clocks = <&chipclk16>; - clock-output-names = "usb"; - reg = <0x02350008 0xb00>, <0x02350000 0x400>; - reg-names = "control", "domain"; - domain-id = <0>; - }; diff --git a/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml b/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml new file mode 100644 index 0000000000000..e65b7383ca4a0 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti,keystone,psc-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Keystone gate control driver which uses PSC controller IP + +maintainers: + - Andrew Davis + +properties: + compatible: + const: ti,keystone,psc-clock + + reg: + items: + - description: PSC control registers + - description: Domain registers + + reg-names: + items: + - const: control + - const: domain + + domain-id: + description: PSC domain id needed to check the transition state register + $ref: /schemas/types.yaml#/definitions/uint32 + + clocks: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + "#clock-cells": + const: 0 + +required: + - compatible + - reg + - reg-names + - domain-id + - clocks + - "#clock-cells" + +additionalProperties: false + +examples: + - | + clkusb@2350008 { + compatible = "ti,keystone,psc-clock"; + reg = <0x02350008 0xb00>, <0x02350000 0x400>; + reg-names = "control", "domain"; + domain-id = <0>; + clocks = <&chipclk16>; + clock-output-names = "usb"; + #clock-cells = <0>; + }; diff --git a/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt b/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt index 463a97c11eff3..08bc83ecfd3f9 100644 --- a/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt +++ b/Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt @@ -75,7 +75,7 @@ SoCs only: - clocks: Should contain the device's input clock, and should be defined as per the bindings in, - Documentation/devicetree/bindings/clock/keystone-gate.txt + Documentation/devicetree/bindings/clock/ti,keystone,psc-clock.yaml The following are mandatory properties for Keystone 2 66AK2G SoCs only: