Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5365889imw; Wed, 20 Jul 2022 04:28:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6+EvL02dzD0UiQDWgMuvMega4zwvWDFB9LgCMy3yxsem4SnAfRthMTZMPcOGXEFKKhTeM X-Received: by 2002:a17:902:6b86:b0:16c:eaef:6b3c with SMTP id p6-20020a1709026b8600b0016ceaef6b3cmr17135132plk.173.1658316503508; Wed, 20 Jul 2022 04:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658316503; cv=none; d=google.com; s=arc-20160816; b=l5RUPsK993pbQpTlMm8tFv4Ilv3QJY/xwWv+852ovTIvZKFIjsnhOokvlQKEVqjqht e/dg2M36wmYOLcwctlVuq1Ne+wuED57ZY0tPRCDnmvvDaRWE2mvE/dqjx+rl5cYvtCL6 2IHiMxrAooaIe0Sf/dilyrAzk4/qU8vQfVHmtB7n3f7MwZz4e8HnFBcFAHTJSnXRdlEn y1nlhER2Xlnmjyg0csqvmpdF25sfaJVmO9zSjHDvleRmxPqqdnXgGkvjRta416qO6Guy dmNyBf1GPiVkPJ+UDv5DHpah8ex4KmJDgaSWiiv9M+SyazvLmn7DxeXvqA3tW0eWeYAG 8Hlg== 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=kAjjWLiiEM0pdfTrehQE5WDcpM33oDPnXSZyjJF9leQ=; b=Nx67p2Ow/Sy+9RU/s6vL13Hh56ExI6i86rh0M3ybrlWfH0Biz+rBY/L+mW70p0lCur 2c/kBjExLqIWzM04WBYQvAY0PywTczrWWGnYb7Jg6mHFxPCmWTN2H7mXArbAShk4+8A/ v1SucAeeTCRsYYsj1e61mTcwxpZCXATXeQ/6wMgcaLQCLSowoWEyIhZRjTzfsEJQP6mM b+d9NeXOTmHd9B8kb9FqcQMceD36M/vM0HPbeAnrf/LB6w7DT8WIJ07+8s+rWdDyG2Mt AvMjv7ip1fxSsgMue2Th9qt1iPHyTD7fAo1Ul+8ZuXgvTYx0HVXF/i6hTVaoCycP140/ LTQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=vDXp+Io4; 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 p2-20020a170902b08200b0016cb873d32esi18838481plr.608.2022.07.20.04.28.08; Wed, 20 Jul 2022 04:28:23 -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=vDXp+Io4; 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 S240639AbiGTLE2 (ORCPT + 99 others); Wed, 20 Jul 2022 07:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237760AbiGTLEZ (ORCPT ); Wed, 20 Jul 2022 07:04:25 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951B86E2FD; Wed, 20 Jul 2022 04:04:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1658315064; x=1689851064; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=kAjjWLiiEM0pdfTrehQE5WDcpM33oDPnXSZyjJF9leQ=; b=vDXp+Io4YLZLydQwQ7wIf5sfiuNw1F+RhENNyseqJqkQ2K26iXT7zDCH Kjqpkxy2UYjOUp0/+CoSBAwX6Uuf7w5Hnzt6GKYM0QFqSdpoklp9dT9FY k9IlbiLcStjoJD0X+lC6D8sMIUsj/Ij9cB873x8X3eYp4SsEwsxQV3c1g M=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 20 Jul 2022 04:04:24 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 04:04:24 -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, 20 Jul 2022 04:04:23 -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, 20 Jul 2022 04:04:19 -0700 From: Satya Priya To: Stephen Boyd , Michael Turquette , Bjorn Andersson CC: , , , , , , , , Subject: [PATCH V6 3/5] dt-bindings: clock: Add resets for LPASS audio clock controller for SC7280 Date: Wed, 20 Jul 2022 16:33:41 +0530 Message-ID: <1658315023-3336-4-git-send-email-quic_c_skakit@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1658315023-3336-1-git-send-email-quic_c_skakit@quicinc.com> References: <1658315023-3336-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 --- .../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