From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-m49248.qiye.163.com (mail-m49248.qiye.163.com [45.254.49.248]) (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 46D3D31AF21; Wed, 15 Oct 2025 09:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.49.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760521751; cv=none; b=Atf3OMvrKwzk4AMxXOJ3Yr0akn2mRjCbPbKVo5q5VoJkX4GXII5XuR11i83tF9//irCxLVLY35Zd1yf4DGn+tK8XwqpK/RNY9DorLITXkuBhDyOE1IjQC02rBQVmvRgpjl787vSsbJ3ceXnTMUSuSUCcTP7249TVIha6JZPLLTU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760521751; c=relaxed/simple; bh=7ZV23ped06ten0xAh0CwDtJ8SvlO97AA0a+/3Dis79Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lseX2en9W/HKs9F3vzLZgLn4Ws4HoJbfsaAy5bW+6QFjiZsH4F1yyC1PdbnetiV3A6v8pyoRup6NR4s/btS1/3SEU0Ii23PuQ5imu26SpAi9Dk2+wStMow7KpiU1ahsUQm827a8g8EaVR2SWSk/jd7/4LEnEovTHH/mQsMB8Vjg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b=Lq87zOiL; arc=none smtp.client-ip=45.254.49.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="Lq87zOiL" Received: from rockchip.. (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 25fe0168c; Wed, 15 Oct 2025 17:13:33 +0800 (GMT+08:00) From: Elaine Zhang To: mturquette@baylibre.com, sboyd@kernel.org, sugar.zhang@rock-chips.com, zhangqing@rock-chips.com, heiko@sntech.de, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, huangtao@rock-chips.com Subject: [PATCH v1 4/5] dt-bindings: clock: Add support for rockchip pvtpll Date: Wed, 15 Oct 2025 17:13:24 +0800 Message-Id: <20251015091325.71333-5-zhangqing@rock-chips.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251015091325.71333-1-zhangqing@rock-chips.com> References: <20251015091325.71333-1-zhangqing@rock-chips.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Tid: 0a99e7256dc603a3kunmdd11480e6b2129 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQhlLQ1YdGUJJGR9DTkkfQ01WFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSU9PT0 hVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=Lq87zOiLnWEvXgh3ArsdWKfVi5wrgBhY2sxhj1vOEII0tTVDAbhbw1MJsVdXDx0xl0Pg9L88cJRCOiIZwfB1Ob9gpU0G3FHeMVS2c7fETGKYePpb7IW6YOSou5GlRVPO8QwT99ltpHCf/7dz9GztxuSpa44l+cbq5Z3MGlzfDR8=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=3feRxQwXj8UVW8icsO/FwpsLSsQskq8tcnSYVzYE0IQ=; h=date:mime-version:subject:message-id:from; Add pvtpll documentation for rockchip. Signed-off-by: Elaine Zhang --- .../bindings/clock/rockchip,clk-pvtpll.yaml | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,clk-pvtpll.yaml diff --git a/Documentation/devicetree/bindings/clock/rockchip,clk-pvtpll.yaml b/Documentation/devicetree/bindings/clock/rockchip,clk-pvtpll.yaml new file mode 100644 index 000000000000..91cb1f475048 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/rockchip,clk-pvtpll.yaml @@ -0,0 +1,100 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/rockchip,clk-pvtpll.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Pvtpll + +maintainers: + - Elaine Zhang + - Heiko Stuebner + +properties: + compatible: + enum: + - rockchip,rv1103b-core-pvtpll + - rockchip,rv1103b-enc-pvtpll + - rockchip,rv1103b-isp-pvtpll + - rockchip,rv1103b-npu-pvtpll + - rockchip,rv1126b-core-pvtpll + - rockchip,rv1126b-isp-pvtpll + - rockchip,rv1126b-enc-pvtpll + - rockchip,rv1126b-aisp-pvtpll + - rockchip,rv1126b-npu-pvtpll + - rockchip,rk3506-core-pvtpll + + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + + clocks: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + rockchip,cru: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle to the main Clock and Reset Unit (CRU) controller. + Required for PVTPLLs that need to interact with the main CRU + for clock management operations. + +required: + - "#clock-cells" + - compatible + - reg + - clock-output-names + +additionalProperties: false + +examples: + - | + pvtpll_core: pvtpll-core@20480000 { + compatible = "rockchip,rv1126b-core-pvtpll", "syscon"; + reg = <0x20480000 0x100>; + clocks = <&cru ARMCLK>; + #clock-cells = <0>; + clock-output-names = "clk_core_pvtpll"; + }; + + - | + pvtpll_isp: pvtpll-isp@21c60000 { + compatible = "rockchip,rv1126b-isp-pvtpll"; + reg = <0x21c60000 0x100>; + rockchip,cru = <&cru>; + #clock-cells = <0>; + clock-output-names = "clk_isp_pvtpll"; + }; + + - | + pvtpll_enc: pvtpll-enc@21f00000 { + compatible = "rockchip,rv1126b-enc-pvtpll"; + reg = <0x21f00000 0x100>; + #clock-cells = <0>; + clock-output-names = "clk_vepu_pvtpll"; + }; + + - | + pvtpll_aisp: pvtpll-aisp@21fc0000 { + compatible = "rockchip,rv1126b-aisp-pvtpll"; + reg = <0x21fc0000 0x100>; + rockchip,cru = <&cru>; + #clock-cells = <0>; + clock-output-names = "clk_vcp_pvtpll"; + }; + + - | + pvtpll_npu: pvtpll-npu@22080000 { + compatible = "rockchip,rv1126b-npu-pvtpll", "syscon"; + reg = <0x22080000 0x100>; + rockchip,cru = <&cru>; + clocks = <&cru ACLK_RKNN>; + #clock-cells = <0>; + clock-output-names = "clk_npu_pvtpll"; + }; + +... -- 2.34.1