From nobody Fri Dec 19 20:29:22 2025 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 E6B3C22D786 for ; Fri, 16 May 2025 08:16:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383385; cv=none; b=iE3PnT3L05bEN8H+IxN4UfHfl3D2v8Yiq5N6ItChS5MGyDDfcVU3Id8ZEI08kkmD8FjDbWTJg1QXKYLWgXpuuoYAqog0Y0MwQxisLys8FxedCaH2WX1CMWvFNw/J/DpLeoG5g+q6jb+XB8j7Pm7/uPnxSr/OQHmnwwBMMS4Q3wg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383385; c=relaxed/simple; bh=cpUqKYUQ6k913kXB8ZWWjaMDA8Rng+YG4RjU2UCgLVE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YD4ZvXARoBj0CUzIWF1YPnMZv+3Ud21kXW1yT2f2+xA8y8n7jk26hFg1qR2nBh/4Qqk0Ovvba5mzYdmfvtd02ZI+xNDi/YFOZBfV/iy0aq0msLkt7MSo6zbYVBuakN2OnByt6D7KyWq5Q5qwB2+9RPcY9UlRGdH5kP/EfouR9IA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=uCM2ThJ0; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="uCM2ThJ0" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-af548cb1f83so1643323a12.3 for ; Fri, 16 May 2025 01:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1747383382; x=1747988182; 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; bh=40VPVaeJSfBfM6eAyXRAlXX6whDz/F63k+f+Fs0Phuc=; b=uCM2ThJ0MvtPcdYNxaeLSlTNBGSd5lwncoHXrXDG1ApxrDIHsQMGqbctksXJ5FwEU1 bEDbxngvVdjBzhsYDyZfvsb1SgFPh0P+asrmeNaFS8zB/09nYifQFeCMW17vtDxqq9vg cCd+OYjFTnXZBeyQAoAGHKpEYQRe/dAUaZbNYT1xCBXkQwwEuUdzSaYqFALYPWgQ0ZeR b6dsdfhgY2efRgVMWGHJQ58+/EXHKPmkJiCPdI78RX9F9wYgIsvwIKCfVLA327NCSS4b +Ze+UtIb8THezI6iV9YhNlXxEVD6i4UfHQn8QsUopULOsIhazmkwIWAIcNVTyW5k606U GDJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747383382; x=1747988182; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=40VPVaeJSfBfM6eAyXRAlXX6whDz/F63k+f+Fs0Phuc=; b=LNFsWVGnJG7wUVSVNvA+Bkrr1cBB1YImVIu8qVcok+FqNu3vWQpl1olaTM/xhESI7d 9iYr7HJE8PvZU5YqlPa06+s2NhbsXvoVQzk4bA3WXrGNFwvMu5vz7f5fF3MfnIGY+/jR 2GhyOh0EGCZB5zmXebJ2VAF13qqaIKc/Yaz78pMy19Io51qKmombpLqEEjuGjg13odKF hGUWp7CAHZ2SMrk8+w8dyKP83n9XowG5VGY3sL84ZbSX2vh/8GZnq15VcFpCA5CaXbHy MWWEWh5Jtz+qDmtf+tP4dkoGI30lxEKgndZu+WOxJOOXGjs8Q/j9MzSCaVrmRp6mHg+T /8xg== X-Forwarded-Encrypted: i=1; AJvYcCUA0wzvY2h6gx8JfggPtc2iFMRVhk6m2vtgXZ2gSbssAlcc1cIAkPl06hzo0Ce3g6SVXJkNb3NEtlEhskk=@vger.kernel.org X-Gm-Message-State: AOJu0Yyt5Pvi+l638nT0OKHcxr49i/LPzczpGZPwEBLuIe/EwApnbBEj PM2lVHNPGAXQGX122PXH+1CTkk9pFRLOxIZOKUViFphtmMSItFfz4NCkeD9OjJZTgcc= X-Gm-Gg: ASbGncslqe6SIif16wJMQCHTRTce4XqRaskVH8ZS8MNlWcgYSAZ+gseEZXC7Ur0xi1z zdJPd4RMQlX8cqOh/iCm0D4s6g+y2e1UOmveNL9OuPDbt9zW4oYPz9AnwfXQBShiGnZKlDfeGsK xlPniFCZDI7Pz/LcRH0K5jblNeMI4sReHqTpnMguVulmU/Q2fPYLRHEoK8JZ23vnpvenNHUwK7q WLRZTZETs3xT1KnoRkqha7B2fOyiMdPKpvlTEiPmaacqFWpfMYAdfkHDYvYTMeS1r+a4pzVAgiP ehFVmj7QvBSbfcW548F/BRoKzKfCY0uOqmbFIfG0GGmNkCSfTl2c336VpUnqPIlHcB2c0aZuAgw wXGN9Che9gZWj7KnTLz4SPwyX X-Google-Smtp-Source: AGHT+IHrsc4RqgKORV3i9Dji1Vp8VQnQDZZQ+DfYtbmsiyBWdOG6WlpWNC21iMRbNCbHQrv4bmsVwg== X-Received: by 2002:a17:903:320d:b0:224:1781:a947 with SMTP id d9443c01a7336-231de36ba3cmr19379655ad.21.1747383382121; Fri, 16 May 2025 01:16:22 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-231d4e97801sm9397695ad.133.2025.05.16.01.16.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 01:16:21 -0700 (PDT) From: Sukrut Bellary To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Sukrut Bellary , Tero Kristo , Kevin Hilman , Andreas Kemnade , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: clock: ti: Convert autoidle binding to yaml Date: Fri, 16 May 2025 01:16:10 -0700 Message-Id: <20250516081612.767559-2-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250516081612.767559-1-sbellary@baylibre.com> References: <20250516081612.767559-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Autoidle clock is not an individual clock; it is always a derivate of some basic clock like a gate, divider, or fixed-factor. This binding will be referred in ti,divider-clock.yaml, and ti,fixed-factor-clock.yaml. As all clocks don't support the autoidle feature e.g., in DRA77xx/AM57xx[1], dpll_abe_x2* and dpll_per_x2 don't have autoidle, remove required properties from the binding. Add the creator of the original binding as a maintainer. [1] https://www.ti.com/lit/ug/spruhz6l/spruhz6l.pdf Signed-off-by: Sukrut Bellary Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/clock/ti/autoidle.txt | 37 ------------------- .../bindings/clock/ti/ti,autoidle.yaml | 34 +++++++++++++++++ 2 files changed, 34 insertions(+), 37 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/ti/autoidle.txt create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,autoidle.= yaml diff --git a/Documentation/devicetree/bindings/clock/ti/autoidle.txt b/Docu= mentation/devicetree/bindings/clock/ti/autoidle.txt deleted file mode 100644 index 05645a10a9e3..000000000000 --- a/Documentation/devicetree/bindings/clock/ti/autoidle.txt +++ /dev/null @@ -1,37 +0,0 @@ -Binding for Texas Instruments autoidle clock. - -This binding uses the common clock binding[1]. It assumes a register mapped -clock which can be put to idle automatically by hardware based on the usage -and a configuration bit setting. Autoidle clock is never an individual -clock, it is always a derivative of some basic clock like a gate, divider, -or fixed-factor. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- reg : offset for the register controlling the autoidle -- ti,autoidle-shift : bit shift of the autoidle enable bit -- ti,invert-autoidle-bit : autoidle is enabled by setting the bit to 0 - -Examples: - dpll_core_m4_ck: dpll_core_m4_ck { - #clock-cells =3D <0>; - compatible =3D "ti,divider-clock"; - clocks =3D <&dpll_core_x2_ck>; - ti,max-div =3D <31>; - ti,autoidle-shift =3D <8>; - reg =3D <0x2d38>; - ti,index-starts-at-one; - ti,invert-autoidle-bit; - }; - - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck { - #clock-cells =3D <0>; - compatible =3D "ti,fixed-factor-clock"; - clocks =3D <&dpll_usb_ck>; - ti,clock-div =3D <1>; - ti,autoidle-shift =3D <8>; - reg =3D <0x01b4>; - ti,clock-mult =3D <1>; - ti,invert-autoidle-bit; - }; diff --git a/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml b/= Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml new file mode 100644 index 000000000000..ed1bf182b64d --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti/ti,autoidle.yaml @@ -0,0 +1,34 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti/ti,autoidle.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI autoidle clock + +maintainers: + - Tero Kristo + - Sukrut Bellary + +description: + Some clocks in TI SoC support the autoidle feature. These properties are + applicable only if the clock supports autoidle feature. It assumes a reg= ister + mapped clock which can be put to idle automatically by hardware based on + usage and configuration bit setting. Autoidle clock is never an individu= al + clock, it is always a derivative of some basic clock like a gate, divide= r, or + fixed-factor. + +properties: + ti,autoidle-shift: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + bit shift of the autoidle enable bit for the clock + maximum: 31 + default: 0 + + ti,invert-autoidle-bit: + type: boolean + description: + autoidle is enabled by setting the bit to 0 + +additionalProperties: true --=20 2.34.1 From nobody Fri Dec 19 20:29:22 2025 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (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 8974022D796 for ; Fri, 16 May 2025 08:16:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383386; cv=none; b=KdYmrHJ8S1l5CtUnGK/vjhjtNUVDwFrwdU0Un8bTQa5NFnhrdIdwWT+/5uIl4z/ZUX7U3/xty58KyY0Cua9dM+RdzqS6b7qab9kV/FBegbxmZ0XDfKZozsplc0pC0rhzqqNdencOl9wMJWKAyzP1vx1rX1YtHUyLTqxFrWH/Y58= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383386; c=relaxed/simple; bh=AJiXTQ0EOJlS1g9vVqxLUd8SYyp7UcEk57ly1dn2WZc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=vAoDxeVukqqkqXGwNtLknF3199iVdjVKomvVeCYaegY/PLAALp4Uv/oqe3Jln22Q4V3MC507Qnoiv2hz7Sk+btHnvX8oAHONflzOPEE+uu6/dSUmda0TZTq8NPdo8aScplGOb/vE/T5Wm8JzVzL/eRv5sNImJWj05EfVYw01tys= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=DgrcO7ql; arc=none smtp.client-ip=209.85.215.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="DgrcO7ql" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-b13e0471a2dso1159796a12.2 for ; Fri, 16 May 2025 01:16:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1747383384; x=1747988184; 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; bh=YDYJgIg/XfLQ4T3AnKqpWjTJ3VlUlKaH3qQ7kODug28=; b=DgrcO7ql+9MFjL3bVPMDtZfi3y/XUQKm4pVo+VsPjxKVL6QW/qqIBhBB2AwCaiLJyw AbMqlQSCf0HpWeSgDQ8qNmLM5GEZoKqnVjb79Pb2bUPKZdZex+uZcMerU0vy/rIVpEES TSWDAiUzK0mLGn+Aou87cVpu2tMvAw2ptGafmN8j3+RIqmIskCVpxM8RzvTURKMiJT0w hdtydD6FoAA3+o3G5WrK/WfbeQT0Mwdp4LnkH0nm9Gp3+zBCIIKeHYnBAlnx+CEekZzR pwmOVmsh4FBgq8xBFlmQjKcFhwyJoNiVWRFfMWRo5DCnpBYLGi+nINz1Ejf4QSvhHi7r Hjxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747383384; x=1747988184; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YDYJgIg/XfLQ4T3AnKqpWjTJ3VlUlKaH3qQ7kODug28=; b=YJUwl1ucCD8o2zTjW0xEgeB4R5WTkgw1gIx69C++r07yz7Ac8mkuWQqxwgAggYzMCZ /WxIx1uAP1lBCnZj3aBEYrUIyCiC9+URFYeFJzfuJx3PHtb96UVOk79xGJ7WIJb3LkSs kn0ct7Ork0uRUjC/x1Y1toGXXnbFe5KoSvFDX3hkqgOEME4HR/iwLQ8mYDgK0mNIVa7o jOVfFJBaqwOLKO7AsWNne6zNmRBNk3TqF5YhjZ9G4ruBMZf43hzrYEwv/9XRTePmJTEW pnOk9jAqbDbO+8p0nCIvBn6CX920asgDVabLRA2f+JAo8y4vuzBHGbuVs6DJvn1NEhSM dM1A== X-Forwarded-Encrypted: i=1; AJvYcCVHqNySseIYLhX1eeK71ZeSbcRyYpQKSDuUfUSkrw/zNKOQvE4V4lqZAW0sLQInlX19VyHJ1e7owKLFSBU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxg26tRaiOvuvtbPfcimIIttc4v0wtfVkLTS4aSOLUODh5P9Y/U x5GPVrE3cuKMBadO7HyCNc/VQQdCmVCJUxP2+NHVIEr1tH7tBCsnzf+gDeE1tuVqteI= X-Gm-Gg: ASbGnctjXEBAXbVESBPew5SWwUhcj1rLfvsDmuvCBQTg+mI5JLwcHcjckl8nP/46IGu bEYK0sBJTvZfjPhKA5Jcf7QviNBPT+SCUmLxG6EAPrIm8jbPtyaz5pqRF9It9GHsUi2+smr4XEe pLACGitpIMEVVHRdWb9iHD2/UPiATOEA+D6YW9+tzxQteC/wj1SH/tYmRUlSBa6SRg7w119y8CO 02BX+3wqTxPvczZqX6Kl+g12vLotS2oSje5JPXEZ9IWXrsVhQbGHjTwPIyLTqxlBeMvEi3Z3mR2 4IPGAHH6QdumzCIp7onRbgx2sTlUmtZNNdZ3hANjqzhMkfKKJasR7nSDAHGrdMSPCXA2P3BY7sd QnLUfAj+FHNT7Mw== X-Google-Smtp-Source: AGHT+IHjfCQYUeoSxu9+w/ENkGRThCOfn6xGkz+JFBl6zC5TxNJfq0HP75bI2Yk1uTXbHqzVwNqrkw== X-Received: by 2002:a17:902:fc46:b0:231:cb8e:472e with SMTP id d9443c01a7336-231de3b9eedmr22826645ad.46.1747383383770; Fri, 16 May 2025 01:16:23 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-231d4e97801sm9397695ad.133.2025.05.16.01.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 01:16:23 -0700 (PDT) From: Sukrut Bellary To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Sukrut Bellary , Tero Kristo , Kevin Hilman , Andreas Kemnade , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] dt-bindings: clock: ti: Convert fixed-factor-clock to yaml Date: Fri, 16 May 2025 01:16:11 -0700 Message-Id: <20250516081612.767559-3-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250516081612.767559-1-sbellary@baylibre.com> References: <20250516081612.767559-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This uses the ti,autoidle.yaml for clock autoidle support. Clean up the exa= mple to meet the current standards. Add the creator of the original binding as a maintainer. Signed-off-by: Sukrut Bellary Reviewed-by: Rob Herring (Arm) --- .../bindings/clock/ti/fixed-factor-clock.txt | 42 ---------- .../clock/ti/ti,fixed-factor-clock.yaml | 76 +++++++++++++++++++ 2 files changed, 76 insertions(+), 42 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/ti/fixed-factor= -clock.txt create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,fixed-fac= tor-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.= txt b/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt deleted file mode 100644 index dc69477b6e98..000000000000 --- a/Documentation/devicetree/bindings/clock/ti/fixed-factor-clock.txt +++ /dev/null @@ -1,42 +0,0 @@ -Binding for TI fixed factor rate clock sources. - -This binding uses the common clock binding[1], and also uses the autoidle -support from TI autoidle clock [2]. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt -[2] Documentation/devicetree/bindings/clock/ti/autoidle.txt - -Required properties: -- compatible : shall be "ti,fixed-factor-clock". -- #clock-cells : from common clock binding; shall be set to 0. -- ti,clock-div: fixed divider. -- ti,clock-mult: fixed multiplier. -- clocks: parent clock. - -Optional properties: -- clock-output-names : from common clock binding. -- ti,autoidle-shift: bit shift of the autoidle enable bit for the clock, - see [2] -- reg: offset for the autoidle register of this clock, see [2] -- ti,invert-autoidle-bit: autoidle is enabled by setting the bit to 0, see= [2] -- ti,set-rate-parent: clk_set_rate is propagated to parent - -Example: - clock { - compatible =3D "ti,fixed-factor-clock"; - clocks =3D <&parentclk>; - #clock-cells =3D <0>; - ti,clock-div =3D <2>; - ti,clock-mult =3D <1>; - }; - - dpll_usb_clkdcoldo_ck: dpll_usb_clkdcoldo_ck { - #clock-cells =3D <0>; - compatible =3D "ti,fixed-factor-clock"; - clocks =3D <&dpll_usb_ck>; - ti,clock-div =3D <1>; - ti,autoidle-shift =3D <8>; - reg =3D <0x01b4>; - ti,clock-mult =3D <1>; - ti,invert-autoidle-bit; - }; diff --git a/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clo= ck.yaml b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.= yaml new file mode 100644 index 000000000000..7a63b0992976 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti/ti,fixed-factor-clock.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti/ti,fixed-factor-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI fixed factor rate clock sources + +maintainers: + - Tero Kristo + - Sukrut Bellary + +description: + This consists of a divider and a multiplier used to generate a fixed rate + clock. This also uses the autoidle support from TI autoidle clock. + +allOf: + - $ref: ti,autoidle.yaml# + +properties: + compatible: + const: ti,fixed-factor-clock + + "#clock-cells": + const: 0 + + reg: + maxItems: 1 + + ti,clock-div: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Fixed divider + minimum: 1 + + ti,clock-mult: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Fixed multiplier + minimum: 1 + + clocks: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + ti,set-rate-parent: + description: + Propagate to parent clock + type: boolean + +required: + - compatible + - clocks + - "#clock-cells" + - ti,clock-mult + - ti,clock-div + +unevaluatedProperties: false + +examples: + - | + bus{ + #address-cells =3D <1>; + #size-cells =3D <0>; + + clock@1b4 { + compatible =3D "ti,fixed-factor-clock"; + reg =3D <0x1b4>; + clocks =3D <&dpll_usb_ck>; + #clock-cells =3D <0>; + ti,clock-mult =3D <1>; + ti,clock-div =3D <1>; + ti,autoidle-shift =3D <8>; + ti,invert-autoidle-bit; + }; + }; --=20 2.34.1 From nobody Fri Dec 19 20:29:22 2025 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 39FB822CBE8 for ; Fri, 16 May 2025 08:16:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383387; cv=none; b=NaiDGzX3O90EYKMukes44hwO7dZX4H2gPVeexBUZGxhascP05jvyT2p7aXlDPAw2M8Z6rD1N9Pna8+ledyLnI5naKoB9RdVnyVbAr5RZKgzxX9A78B3lZLgOr76+k47U9M7e6LSyBX+noaPdtjzKPK5xvRLliL+Vmh2k4u3jiJM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747383387; c=relaxed/simple; bh=ne4PfWXtPTDke/5/uFZ5cI1NkNx1QheiiJRSL2tSd1o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M+z9zUDQOZn1NL14tAm/B+OELDx0OsxLdyfGThw2vCRx4e0SdmDqGTuZB8dlbebsB08nWlg1KcwhRjCKJYZ37bqRjehqOieou36Kfx3BQk10pdi6lYe89RiZfwFKUCZu7ncu+PPKK44U2sLknpcMdUVDJ7eQO+YMjyUXCI7aATc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=ajQIsT/J; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="ajQIsT/J" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-22e4db05fe8so18045795ad.0 for ; Fri, 16 May 2025 01:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1747383385; x=1747988185; 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; bh=/V2daD2rTNcNp3coCr/ToEF+NAYlBMkaOYzNetHBK5g=; b=ajQIsT/JNGABAJnRdU4L0P233li6jU3+9UAWxfrTa0rzIpVAIxlhcxAXvYQv7prP2r l2CZA/HUdhquexq/VK1cum58wmLFcueq7kCdh6zMlVWg8SSAvEJbnTLfC2X3bjVj/LSg Wg0ddOsfnQSkjQkl/K93UA5VPBBF1ly7iCpM44d31KvaHuGwJ5lX3NImgIG2t97nxVSQ cCgte/vEfuUICw/VG0M2yc3zY1FKRjIQTk0s+q7Re0xHDVf6vZAlISqwjqup4SmcoOKV GE3Gc1a890brdf7lvyKd70Pus7cS5n8DN2wrNv5H0phPVXWc2Ft6YZwbepYw76QkIME/ bY9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747383385; x=1747988185; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/V2daD2rTNcNp3coCr/ToEF+NAYlBMkaOYzNetHBK5g=; b=A3X3qpq4GtNnLH9QQ0UGt+DIWtc8ytOfdTG0Mpj6C4mMOQWUX8WTdx3opUrg8TAkgB KiADclhNkEExVdXWJWQ8mLH/LvYikCDrHOsRBNDFjPK/z5MV+JpwDEP6CiiNIuYGjnuU UJlEb/iWJgOAioidP2Wyy+GQ+qO6xPhAOfs0rjUDp82ouIDDuSp3jjX37cq8UIO0f/1r I89B7XsgmR9oBWXwC777FHZll8BHVvs9FH3s6zJLle9n058n4E/fmjqONOYpm9Tf2TLa IG81Xhf94jO4RremI2+bhXnrQhVIIXJZ2Eq9dLySNOckDMSNqDOsefzGd5b9OHU2EfDZ OeJg== X-Forwarded-Encrypted: i=1; AJvYcCWbUkAPQeYDMbODjC9FFaib6xRLVUOcyJ5QcnyUNIEotBSQkqJlVMnFXVGlrlL6s7PQKmQ73o49qE2Lm2g=@vger.kernel.org X-Gm-Message-State: AOJu0YxHxAn1ERnipfoPp9SW53nf6oYd95w6MJd3KmAgtfGLhY8Eituy epI27UNWGKzgkltQxm04+kpqArM2f7wizRlGFTBH9UXaeaYu2nvd1WBJX4DQ4iXPRBo= X-Gm-Gg: ASbGncvyt1GgTYWvMuLSWfKe7MG9WhIFLEeilPFMM6VwaDfoWoEN7MpqtCcIa+iVUCa 98WLwGujYWB+glp164IMqKTgtw7rKqGzFkCXnoEitFlYaKUGFbwL2z15aapPdJII/89SN+gzr7L HSLk+WII40rqTZXJNDBiUMKq3pqJpSzouYSxgOSRGgx3xmalhgL8R7PDs6yoVkDPx9i3UG5MYPq OcteT6TfaF2yB9ExCeI2GCtlgLPEgHn4KCmfSyikPI2YB/hsIgpVKop7+2/6fo0DtPKGTyFHmLe fpdlAeQHgYTIWEPCNVyhCm3OgfVdHgnQA5mVnvUpjsouSYUXIWmilLKl7isqtZJwk//gsBl87wE B75UyDehEouamwA== X-Google-Smtp-Source: AGHT+IGNwOPd4/78bjds7wJXN85y4exK0t1zW51cDsS9UCcuz87FTXGSkJI8YZ6TyRB1xxjOHnrMRQ== X-Received: by 2002:a17:902:ea0a:b0:22f:b040:9751 with SMTP id d9443c01a7336-231de3b9709mr18773765ad.45.1747383385431; Fri, 16 May 2025 01:16:25 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-231d4e97801sm9397695ad.133.2025.05.16.01.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 01:16:24 -0700 (PDT) From: Sukrut Bellary To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Sukrut Bellary , Tero Kristo , Kevin Hilman , Andreas Kemnade , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] dt-bindings: clock: ti: add ti,autoidle.yaml reference Date: Fri, 16 May 2025 01:16:12 -0700 Message-Id: <20250516081612.767559-4-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250516081612.767559-1-sbellary@baylibre.com> References: <20250516081612.767559-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" ti,divider-clock uses properties from ti,autoidle. As we are converting autoidle binding to ti,autoidle.yaml, fix the reference here. Signed-off-by: Sukrut Bellary Reviewed-by: Rob Herring (Arm) --- .../bindings/clock/ti/ti,divider-clock.yaml | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.ya= ml b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml index 3fbe236eb565..6729fcb839d2 100644 --- a/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml +++ b/Documentation/devicetree/bindings/clock/ti/ti,divider-clock.yaml @@ -55,9 +55,10 @@ description: | is missing it is the same as supplying a zero shift. =20 This binding can also optionally provide support to the hardware autoidle - feature, see [1]. + feature. =20 - [1] Documentation/devicetree/bindings/clock/ti/autoidle.txt +allOf: + - $ref: ti,autoidle.yaml# =20 properties: compatible: @@ -97,7 +98,6 @@ properties: minimum: 1 default: 1 =20 - ti,max-div: $ref: /schemas/types.yaml#/definitions/uint32 description: @@ -116,20 +116,6 @@ properties: valid divisor programming must be a power of two, only valid if ti,dividers is not defined. =20 - ti,autoidle-shift: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - bit shift of the autoidle enable bit for the clock, - see [1]. - maximum: 31 - default: 0 - - ti,invert-autoidle-bit: - type: boolean - description: - autoidle is enabled by setting the bit to 0, - see [1] - ti,set-rate-parent: type: boolean description: @@ -156,7 +142,7 @@ required: - clocks - reg =20 -additionalProperties: false +unevaluatedProperties: false =20 examples: - | --=20 2.34.1