Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp126786imn; Wed, 27 Jul 2022 01:30:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tWEp6waKVOd6d7BPKgl2oLCQzHytskw24I9NGYFeC3eFa3s50ehUead+8le448vWN9qUf+ X-Received: by 2002:a17:90b:33cd:b0:1f2:b0bd:6da with SMTP id lk13-20020a17090b33cd00b001f2b0bd06damr3288854pjb.95.1658910627534; Wed, 27 Jul 2022 01:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658910627; cv=none; d=google.com; s=arc-20160816; b=xLvHTEuVPLosSaksAI5WlnAIQQgYnEj33ltPPX891V+FT02TVRXH+QGta60jX8Tzep GY2yRbGXeaK5tP7A8W2JBUnsPC8apdcTraXgGZmJrUCmgt3j1ViEERNtcn+BLJ1qsC97 R9uQXTgzcRTEQEDrFjIQ7II4r0Bilslgz2xiAp+BNg1ls+jGcE/qkjvXHJ2qboouv9rm 5bn/9lF4UtrPsz/YaI1tSvnYc7sQ1+OaVwVLCdUQFiywuj2mzeCWm/mp9YPCodYDBwUi FTF3YTtNvF7+zU2lUwluQPsyogutKS/GnBmrgvfp8Zm4w6Espppt+W7C6HuCrknfjYrR S7Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=x0IRMGjcA2CLorutTCaSisYtCty1JCM5WAEfbx850mo=; b=GzxzaxcOms4IWXwG45bqx3wGC7o2lr6z1RGk3ZIrvyyBwPjTm7jj5XCU5884yEVrX5 U+vF1j1mYcE8tz5wFHWjOypKx7nrP63RfbQxXYGB4qcNhDe1Z4LoIJ8bWM5CNQLPY5Jw UhKjw7ut3vEB+guYGWqFEiKLOLVb6I708zRPxvi7W+bv1J2j3cOAiHMiJ3Q5GkohsPM+ QMfgR98djbhFJSCmH4evNVmL5vMNknm44tiymOfdDa57C0mVQrtrDt9ComdIKWaK6HiJ f4AprN6BS42C1WfRIRmJTizl/q8QMG2OOj5IMFmAvfpGKdYmLP1nwF/jzkLr0UYRxel8 BuOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=atOb5sNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a656aa4000000b0041a5e8f9c66si22921853pgu.387.2022.07.27.01.30.12; Wed, 27 Jul 2022 01:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=atOb5sNJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbiG0I2j (ORCPT + 99 others); Wed, 27 Jul 2022 04:28:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbiG0I2c (ORCPT ); Wed, 27 Jul 2022 04:28:32 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D6245988; Wed, 27 Jul 2022 01:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658910509; x=1690446509; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=x0IRMGjcA2CLorutTCaSisYtCty1JCM5WAEfbx850mo=; b=atOb5sNJQemdWEtEzUBbnMJU9C6RxSI0utBaY8K2dVRw6U/0OtrY1PNA wYigfyNm8N48vYiESY9jThQHAfX1fHf5VekYEHiSiIvCf3hnUnCtudnvt eB8L+27CmTxaMtsoCMATDpAVMBAbR9gpICsTU6zEME5Wj8Y69ri0GiBdG Q=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 27 Jul 2022 01:28:28 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2022 01:28:28 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 27 Jul 2022 01:28:27 -0700 Received: from c-skakit-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 27 Jul 2022 01:28:24 -0700 From: Satya Priya To: Rob Herring , Bjorn Andersson CC: Douglas Anderson , Stephen Boyd , Andy Gross , , , , Taniya Das Subject: [PATCH V7 3/5] dt-bindings: clock: Add resets for LPASS audio clock controller for SC7280 Date: Wed, 27 Jul 2022 13:57:55 +0530 Message-ID: <1658910477-6494-4-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1658910477-6494-1-git-send-email-quic_c_skakit@quicinc.com> References: <1658910477-6494-1-git-send-email-quic_c_skakit@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Taniya Das Add support for LPASS audio clock gating for RX/TX/SWA core bus clocks for SC7280. Update reg property min/max items in YAML schema. Fixes: 4185b27b3bef ("dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280") Acked-by: Rob Herring Signed-off-by: Taniya Das Reviewed-by: Stephen Boyd --- .../bindings/clock/qcom,sc7280-lpasscorecc.yaml | 19 ++++++++++++++++--- include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h | 5 +++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml index 5ccfb24..f50e284 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml @@ -22,6 +22,8 @@ properties: clock-names: true + reg: true + compatible: enum: - qcom,sc7280-lpassaoncc @@ -38,8 +40,8 @@ properties: '#power-domain-cells': const: 1 - reg: - maxItems: 1 + '#reset-cells': + const: 1 qcom,adsp-pil-mode: description: @@ -75,6 +77,11 @@ allOf: items: - const: bi_tcxo - const: lpass_aon_cc_main_rcg_clk_src + + reg: + items: + - description: lpass core cc register + - description: lpass audio csr register - if: properties: compatible: @@ -96,6 +103,8 @@ allOf: - const: bi_tcxo_ao - const: iface + reg: + maxItems: 1 - if: properties: compatible: @@ -114,6 +123,8 @@ allOf: items: - const: bi_tcxo + reg: + maxItems: 1 examples: - | #include @@ -122,13 +133,15 @@ examples: #include lpass_audiocc: clock-controller@3300000 { compatible = "qcom,sc7280-lpassaudiocc"; - reg = <0x3300000 0x30000>; + reg = <0x3300000 0x30000>, + <0x32a9000 0x1000>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&lpass_aon LPASS_AON_CC_MAIN_RCG_CLK_SRC>; clock-names = "bi_tcxo", "lpass_aon_cc_main_rcg_clk_src"; power-domains = <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>; #clock-cells = <1>; #power-domain-cells = <1>; + #reset-cells = <1>; }; - | diff --git a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h index 20ef2ea..22dcd47 100644 --- a/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h +++ b/include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h @@ -24,6 +24,11 @@ #define LPASS_AUDIO_CC_RX_MCLK_CLK 14 #define LPASS_AUDIO_CC_RX_MCLK_CLK_SRC 15 +/* LPASS AUDIO CC CSR */ +#define LPASS_AUDIO_SWR_RX_CGCR 0 +#define LPASS_AUDIO_SWR_TX_CGCR 1 +#define LPASS_AUDIO_SWR_WSA_CGCR 2 + /* LPASS_AON_CC clocks */ #define LPASS_AON_CC_PLL 0 #define LPASS_AON_CC_PLL_OUT_EVEN 1 -- 2.7.4