From patchwork Fri Aug 23 02:29:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao via B4 Relay X-Patchwork-Id: 13774506 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AD4FAC5321E for ; Fri, 23 Aug 2024 02:30:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rpUWgzmOWWUD5AurwHE7wREGpDuOtddRa/Wov/0Mep4=; b=U62KQVBOw76x/FfbR11uGwG0Iu WpLz78C2kS3KY/6Hp7yt4jyka+59m8N1i73I8OMidDsZfUoE6bZT9Zr37PqM93GaWqo6SFYx3KC1Y /7gEdno8/vzoPNWxJDo8qj+TnmW+KO0po5QHb9yh7UMNRLuzoJci+UYp2ixTEWctzTcj3ilYil6Tj TzRQ5zhTKhV9vjIM3ZD3s7eIrsym9d34Y+v6VYVaDSWpqxyDph/LBwxebqWfTc0lCm1O6CdyqKMrU yH4+As16uNDk6tRcunL8Zee4XFghg12v4lsfLTCDHfIiEb5wkY8TDwNM3J+KgkRZIZ067FFmuYpdO xLU/1aew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shK43-0000000Evw2-0C6w; Fri, 23 Aug 2024 02:30:11 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shK3F-0000000EveA-3kRM; Fri, 23 Aug 2024 02:29:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A442A61302; Fri, 23 Aug 2024 02:29:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 0FE1CC32782; Fri, 23 Aug 2024 02:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1724380160; bh=j0bfX7RwioxZel71Y7a7ItvYplwaW9cdPPAEsz+h/o4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=HuyefCcxv8nRuagOUejt7Jb/i+NuVRF06X+W1VV0nG1fCE/krTmPqYxqNv5MPt9jc r9yir9VOerBW6qGaLgkMZaMNJqt6zQe2Ssjf0Ea/DHSsGPzRplSBVfvoAXwWq1PIoV 0lQmE5xWP6O9TyJhyRfbr47H7OMEFUsvnwyt2ihAQErH1w7Wf3i9QMfVbigKvGzzve +Xj7AELqgLtU8IAGqDkwqXyRQKUgxj8F1VgLKEhB+4v4gBLXlXVCgmdLNGslViRFyy I8EOMv9IAiJfktCyTg+VderPOjN/j7ksSNFJ3x0103oE6//miuhBEurW4EoviyAd55 d1Jz+FAgVfUpA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2A0DC5320E; Fri, 23 Aug 2024 02:29:19 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Fri, 23 Aug 2024 10:29:17 +0800 Subject: [PATCH v3 1/3] dt-bindings: clock: fix C3 PLL input parameter MIME-Version: 1.0 Message-Id: <20240823-c3_add_node-v3-1-3648376037f4@amlogic.com> References: <20240823-c3_add_node-v3-0-3648376037f4@amlogic.com> In-Reply-To: <20240823-c3_add_node-v3-0-3648376037f4@amlogic.com> To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chuan Liu , Kevin Hilman , Martin Blumenstingl Cc: Krzysztof Kozlowski , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1724380157; l=2021; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=EZulQ5wpUmaV7Lvp/UM+s8rjmGBRsUnekPSl5hxqIH4=; b=FOnaCsVmFwP8l5psqP1H2cZPbDXq0jdUvEUdjL9j5DJUURUcRcy8Y2qd2a3skK7/OJNh6+MoY lLPcgN1Pwu3Bi6FkCe54El0cDTX5XloX/aY/FZLe2wChfrtFW/DlY3R X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_192922_107163_41A45186 X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Xianwei Zhao Add C3 PLL controller input clock parameters "fix". The clock named "fix" was initially implemented in PLL clock controller driver. However, some registers required secure zone access, so we moved it to the secure zone (BL31) and accessed it through SCMI. Since the PLL clock driver needs to use this clock, the "fix" clock is used as an input source. We updated the driver but forgot to modify the binding accordingly, so we are adding it here. It is an ABI break but on a new and immature platform. Noboby could really use that platform at this stage, so nothing is going to break on anyone really. Fixes: 0e6be855a96d ("dt-bindings: clock: add Amlogic C3 PLL clock controller") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Xianwei Zhao --- Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml index 43de3c6fc1cf..700865cc9792 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml +++ b/Documentation/devicetree/bindings/clock/amlogic,c3-pll-clkc.yaml @@ -24,11 +24,13 @@ properties: items: - description: input top pll - description: input mclk pll + - description: input fix pll clock-names: items: - const: top - const: mclk + - const: fix "#clock-cells": const: 1 @@ -52,8 +54,9 @@ examples: compatible = "amlogic,c3-pll-clkc"; reg = <0x0 0x8000 0x0 0x1a4>; clocks = <&scmi_clk 2>, - <&scmi_clk 5>; - clock-names = "top", "mclk"; + <&scmi_clk 5>, + <&scmi_clk 12>; + clock-names = "top", "mclk", "fix"; #clock-cells = <1>; }; };