Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp663139rwd; Thu, 8 Jun 2023 06:14:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Q3v3F92m4lSOFrpoQ/JRzMjhfRB5gUUuGs1w1dM5HZ+YDanLX02J9skBX/zEYssAi5ADP X-Received: by 2002:a05:6a20:e18b:b0:10f:9317:153a with SMTP id ks11-20020a056a20e18b00b0010f9317153amr3529482pzb.62.1686230058952; Thu, 08 Jun 2023 06:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686230058; cv=none; d=google.com; s=arc-20160816; b=fTjhrt+GoTvv2PjrMK2kfCqL0gNCjnzpL6iLlAF8Hv8rIWoqHGrgy1S83wHYV65VJH bCGH1NTH5e0nEOUMiCyU47M7BmEdTu8/BP3DBuX7NzMwFJteQA9/xAlbuueBD74dGcS7 f4GA0yZgee0C0LZ7AsuvSLIJkbdO0W5WcmCFZJ7sVs/sd8ja/8RNSDvaHxnEjr23wpnY OFb4j9YLCo8cqEeqp2g13m1V2F/dVBGvaH3XFgUak5KzjsyDgV2/30vBA4rnBD7LcTcs S21tVd9pcrIPyFYmBzsz+pyNHMSnRDjTawYaTiH/4LAdDnhs1QiM+MrTPKMoxdrLRKM6 mAlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zkiJ1lamn9YAQsXMt6pIlRsr7SwfYoQpGX4MukexgX8=; b=RKimH/ju/HeeaCpTp7cAuzKd5MZzeCPeP6idK+3FZPaq8N2kGqV3sssC2CBvjFJWfS 2Z0/wT9X2WBOzqk9mxFqBmdzqv/TYLkj2DVmj/uIpFTpmjkHYl3QyIWwkmE7aFapYpMf fDBOM4vl3b2V7fgtOLVFlVnQ83QKb8Tu5qJqcbtnd5rsIYhD4Z5hnw/QrCVD2vvxIKNV NkUkZWsRwiqFH+An8bVvFBFN2iSv//N2UgNS+l0LL9WExCLm0gqyGerqrxpQJc3jg5bm VOpkAqbht4TvhSeiKQrzNARfhre5F+tAiKFilJRajD5OcfBxc9WfaCTOgQOMI5ySWlb3 ZQQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BgicEj6Y; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o5-20020aa79785000000b00654355ac8a5si860709pfp.56.2023.06.08.06.14.04; Thu, 08 Jun 2023 06:14:18 -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=@linaro.org header.s=google header.b=BgicEj6Y; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236177AbjFHMxm (ORCPT + 99 others); Thu, 8 Jun 2023 08:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236611AbjFHMxb (ORCPT ); Thu, 8 Jun 2023 08:53:31 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B9D30D1 for ; Thu, 8 Jun 2023 05:53:23 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3f732d37d7bso3680575e9.0 for ; Thu, 08 Jun 2023 05:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686228802; x=1688820802; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zkiJ1lamn9YAQsXMt6pIlRsr7SwfYoQpGX4MukexgX8=; b=BgicEj6Y6pHyifovoeJYIwtjRyz4IJdqnXuKHyHtL33sDLVoZ69dyXsvzn8UH4UXwg vwu8iLE9Ggg/g4ILZ7CedeK3a89dNaSE/lyBEhwASMXH0/LebsirfFnEabQT3ZB0vTfL Jrms9O3kehKrHbvuNx94J7uXXfRDfnN6r6f8mJZuKhul8hwy3yNmcGmCLgAlDNrjgu8q y+dtMqOotVcfyClTxdCwKQzPnaxSNoJjhrP9CseXPpVwHuIAg8mBnMQBLqxjiGUn7kWj GMUBSJ8I2eYVaHCIK3d4JP31JIskvk8l437ygt95GQqhG2fLv0K1l9SUXnLNRwKKmlhY Bw9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686228802; x=1688820802; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zkiJ1lamn9YAQsXMt6pIlRsr7SwfYoQpGX4MukexgX8=; b=MhG9BJyA8HYJmK+yfd358yxslOK0M/b5k5DQxuf5RkmZn9lCJeprMM0SzR3oEKDMRr WMqMTS2qSiHVyzYH1PHUKmZ7TNrlu/ZDwfJQiG5mhGbNQr9N8cwdrbbMYGoM1SjxAnOb wonvsVh0+kpsEZz3QSyZ1VbcB9P1bTEzu5ej5trTkivsxKqhlES7t4yW/mhskI/fe+4j ajrOWCZLkDHAPAaVbMoKSDi4NJ3T16ibA7HxWvpAn334xBoD6sOVsWAVrdQJqN2X6Sed IMz7uSB30Y4zz3zoNOFnWZGwIG3lkcmQ7xySkX8Ya1tsnO5CfIq+MwctGuw6jy0R0dQ+ w0kg== X-Gm-Message-State: AC+VfDzOF5aoYdm2u2eGTeMO5RqvsNmQepAcyoAOPnV7ZRdOB6y7NRpj LGj9Mj0s2/y/pfr216SUlwg8vA== X-Received: by 2002:a7b:c40b:0:b0:3f8:1a:6b9f with SMTP id k11-20020a7bc40b000000b003f8001a6b9fmr272735wmi.2.1686228801988; Thu, 08 Jun 2023 05:53:21 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id m22-20020a7bce16000000b003f7e4d143cfsm1894032wmc.15.2023.06.08.05.53.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 05:53:21 -0700 (PDT) From: Srinivas Kandagatla To: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: johan+linaro@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v3 2/6] dt-bindings: clock: Add LPASS AUDIOCC and reset controller for SC8280XP Date: Thu, 8 Jun 2023 13:53:11 +0100 Message-Id: <20230608125315.11454-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230608125315.11454-1-srinivas.kandagatla@linaro.org> References: <20230608125315.11454-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 The LPASS (Low Power Audio Subsystem) Audio clock controller provides reset support when it is under the control of Q6DSP. Add support for those resets and adds IDs for clients to request the reset. Signed-off-by: Srinivas Kandagatla Reviewed-by: Johan Hovold --- .../bindings/clock/qcom,sc8280xp-lpasscc.yaml | 10 ++++++++++ include/dt-bindings/clock/qcom,sc8280xp-lpasscc.h | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml index 047cae91f443..3326dcd6766c 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml @@ -19,6 +19,7 @@ description: | properties: compatible: enum: + - qcom,sc8280xp-lpassaudiocc - qcom,sc8280xp-lpasscc reg: @@ -39,6 +40,15 @@ required: additionalProperties: false examples: + - | + #include + lpass_audiocc: clock-controller@32a9000 { + compatible = "qcom,sc8280xp-lpassaudiocc"; + reg = <0x032a9000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + - | #include lpasscc: clock-controller@33e0000 { diff --git a/include/dt-bindings/clock/qcom,sc8280xp-lpasscc.h b/include/dt-bindings/clock/qcom,sc8280xp-lpasscc.h index df800ea2741c..d190d57fc81a 100644 --- a/include/dt-bindings/clock/qcom,sc8280xp-lpasscc.h +++ b/include/dt-bindings/clock/qcom,sc8280xp-lpasscc.h @@ -6,6 +6,11 @@ #ifndef _DT_BINDINGS_CLK_QCOM_LPASSCC_SC8280XP_H #define _DT_BINDINGS_CLK_QCOM_LPASSCC_SC8280XP_H +/* LPASS AUDIO CC CSR */ +#define LPASS_AUDIO_SWR_RX_CGCR 0 +#define LPASS_AUDIO_SWR_WSA_CGCR 1 +#define LPASS_AUDIO_SWR_WSA2_CGCR 2 + /* LPASS TCSR */ #define LPASS_AUDIO_SWR_TX_CGCR 0 -- 2.25.1