Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4424806rdb; Fri, 29 Dec 2023 00:54:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNEc/+lib7oA8PK4txgOot7zGAFqzUXswD4Zp6n2QBmVnzABOErpT/DOo1PPLVh/q4s49T X-Received: by 2002:a50:9f4a:0:b0:554:4d4f:6570 with SMTP id b68-20020a509f4a000000b005544d4f6570mr5469742edf.2.1703840076161; Fri, 29 Dec 2023 00:54:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703840076; cv=none; d=google.com; s=arc-20160816; b=wlgRNaHT7l7Gg6uvzbqeFhPSojYasQ8Q9834zXmWOtrJydjmoeCjbPB/5F8i5ZJOG8 SYfosB1psA9U0uMKApU6WIhpsmQxtzRtExkcZEDVCIyZvBpXLL0zTaKXMlFWJoEktd5L RxIXMI8yZSYtFVSG5p3UhkIWzuzP9Mp0Yib1UFH1ku4LjFonL13gwmE3mdvic5UuVMuZ MWMdRzYf7D8J0+FsubfWSebaRATD3PhiH9xYmvpYLXrKYJIdYOlKFBP3XTRrIEfcors7 kOLrHTNimA7yjrMIx5BI/ExBilI8SjelHJJOB5PM5Bd0kCcOBqa9+6TZ4+28CsUOl8TE 2/sA== ARC-Message-Signature: i=1; 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; bh=h50HSM8vVcWkxUa+mhtP0i7wq+LFekMNkInJjt+g3MQ=; fh=V990bj1ewoDG2ofoxse/E4FSY4ENrl4/wGWpzrifdfU=; b=bOnSXGelu5p+FXoV3qa4DpT7KJaN6/JNIUoxPhHgelqqZllODQJeE9Ke/iXtQdkaa5 Hkjkr42tFUEG9WipnQ7jUCLxSRW761FB0V/22Nv7+dNRXVsxltbkDUc04oAnCbvTpsVy bOEBVqFIicZc32GpTrzWkVo5POaMxAMc6AJRUxUMDkD3cENGlvtKfmZHAueJ/nbY6hJ8 Bfr0aIqyaYYW98z83+jiabveuf3iajcgKR4Z6qvDXOOou0O7AYrq4ZSafbQ4hPPoInud jUtzdiGMDJmt566ooJwVODrDkelGReoDV5mXutdyqRlTtk/9b0XKfnsBocMS63PtFSVy 08vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13006-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z13-20020a056402274d00b00553561914a4si7986659edd.368.2023.12.29.00.54.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 00:54:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-13006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13006-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E2AAB1F234D1 for ; Fri, 29 Dec 2023 08:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE01910A22; Fri, 29 Dec 2023 08:54:12 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from SHSQR01.spreadtrum.com (unknown [222.66.158.135]) (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 5F10F1119A; Fri, 29 Dec 2023 08:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unisoc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unisoc.com Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 3BT8qDwP094773; Fri, 29 Dec 2023 16:52:13 +0800 (+08) (envelope-from Chunyan.Zhang@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4T1f905KnDz2Qt2Lb; Fri, 29 Dec 2023 16:45:40 +0800 (CST) Received: from ubt.spreadtrum.com (10.0.73.88) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Fri, 29 Dec 2023 16:52:09 +0800 From: Chunyan Zhang To: Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang Subject: [PATCH 1/3] dt-bindings: clk: sprd: Add UMS9620 support Date: Fri, 29 Dec 2023 16:51:54 +0800 Message-ID: <20231229085156.1490233-2-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231229085156.1490233-1-chunyan.zhang@unisoc.com> References: <20231229085156.1490233-1-chunyan.zhang@unisoc.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 Content-Type: text/plain X-ClientProxiedBy: SHCAS01.spreadtrum.com (10.0.1.201) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL:SHSQR01.spreadtrum.com 3BT8qDwP094773 Add UMS9620's clock compatible strings and descriptions for clock and clock-names for UMS9620. Signed-off-by: Chunyan Zhang --- .../bindings/clock/sprd,ums512-clk.yaml | 79 ++++++++++++++++--- 1 file changed, 68 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml b/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml index 43d2b6c31357..dcad41a1fea7 100644 --- a/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml +++ b/Documentation/devicetree/bindings/clock/sprd,ums512-clk.yaml @@ -30,25 +30,38 @@ properties: - sprd,ums512-mm-clk - sprd,ums512-mm-gate-clk - sprd,ums512-apapb-gate + - sprd,ums9620-pmu-gate + - sprd,ums9620-g1-pll + - sprd,ums9620-g5l-pll + - sprd,ums9620-g5r-pll + - sprd,ums9620-g8-pll + - sprd,ums9620-g9-pll + - sprd,ums9620-g10-pll + - sprd,ums9620-apapb-gate + - sprd,ums9620-ap-clk + - sprd,ums9620-apahb-gate + - sprd,ums9620-aon-gate + - sprd,ums9620-aonapb-clk + - sprd,ums9620-topdvfs-clk + - sprd,ums9620-ipaapb-gate + - sprd,ums9620-ipa-clk + - sprd,ums9620-ipaglb-gate + - sprd,ums9620-ipadispc-gate + - sprd,ums9620-pcieapb-gate + - sprd,ums9620-pcie-clk + - sprd,ums9620-mm-gate + - sprd,ums9620-mm-clk + - sprd,ums9620-dpu-vsp-gate + - sprd,ums9620-dpu-vsp-clk "#clock-cells": const: 1 clocks: - minItems: 1 - maxItems: 4 description: | The input parent clock(s) phandle for the clock, only list fixed clocks which are declared in devicetree. - clock-names: - minItems: 1 - items: - - const: ext-26m - - const: ext-32k - - const: ext-4m - - const: rco-100m - reg: maxItems: 1 @@ -57,7 +70,43 @@ required: - '#clock-cells' - reg -additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + pattern: "^sprd,ums512-.*" + + then: + properties: + clocks: + minItems: 1 + maxItems: 4 + + clock-names: + minItems: 1 + items: + - const: ext-26m + - const: ext-32k + - const: ext-4m + - const: rco-100m + + - if: + properties: + compatible: + contains: + pattern: "^sprd,ums9620-.*" + then: + properties: + clocks: + minItems: 1 + maxItems: 6 + + clock-names: + minItems: 1 + maxItems: 6 + +unevaluatedProperties: false examples: - | @@ -68,4 +117,12 @@ examples: clock-names = "ext-26m"; #clock-cells = <1>; }; + + aonapb_gate: clock-controller@0 { + compatible = "sprd,ums9620-aon-gate"; + reg = <0x0 0x3000>; + clocks = <&ext_26m>, <&ext_32k>, <&rco_60m>; + clock-names = "ext-26m", "ext-32k", "rco-60m"; + #clock-cells = <1>; + }; ... -- 2.41.0