Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp887478rwd; Thu, 25 May 2023 05:31:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5TS4hpl8accsjkyp2nTvp3tkfxL0YOUWYOzGhSZj8jNJCHF6vpupUaSPHUqjrAli2YIdpL X-Received: by 2002:a05:6a00:1486:b0:63b:64f7:45a0 with SMTP id v6-20020a056a00148600b0063b64f745a0mr8596585pfu.12.1685017905384; Thu, 25 May 2023 05:31:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685017905; cv=none; d=google.com; s=arc-20160816; b=PEBUn8yBUz3khWFXwJSiBproM0IG9XTsk5CoAts++MkhwpUeEVHrsbXDXtnTnVdT/M /8c3Y3gNM8Oao0dEIkqbNFW4OPz0ICvPd9LUgL5DIdBWClAk6/jkgMxjO+JHhjuMB+zM VviDcsMn3GNa3JGWhd3W7VsM9B0RidBnC0C7VrkG0Kzq9O8Q6K1gwVFA1drbyPscOpSz mqP8XN42lg2tLmel2HG8wLeQjJfxFBI3TAUDs4L3tn0/oHDPiKdOjm8ERp43eZ2y6UJd YGgTPO8cItkEdDFXqbnAVUIhth5p08Ui2OTkxoXg6tj5lB97H14zDeMxaiBo+0d30fku Sj/A== 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=WVu9HOtYzHZwvpuN2gTTPEs8228CUSLathJuRQieOBU=; b=RMx37RQ4YyhOgTP9t5UWwXL7pqIo0F+f2s5ceptslwwh9Us+8P0uOGu/GrZyIZRIfm Wtkkj7poQnMuZ0Sb7lxzpDwgmKCXJUosfYGCoWBuDzUckAVX6sxtntVgjfJoNwy94wIs 19cDhv8yQEUkBXqKxlziQkZnFKkvQhF2XJi3cXanUXZYYs90pp7trHX5cPE52BlxxewT u3WzvIVdB4v7S+cy4jbaPdVSrVVB8ddOCR+bxZXcZU9wsbVUspDG2+ZyJ+dPOAnknGTb 3GTnEOHcNugT0Q73VNWcfeWw+ABusTVEz/1LuSzBVDelAGPQ9rmWzxsT+1BUxeGx2e7r Oyyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FYFUUoDf; 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 x8-20020aa79a48000000b0064d2e108cecsi1353217pfj.104.2023.05.25.05.31.31; Thu, 25 May 2023 05:31:45 -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=FYFUUoDf; 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 S241122AbjEYM37 (ORCPT + 99 others); Thu, 25 May 2023 08:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241089AbjEYM3s (ORCPT ); Thu, 25 May 2023 08:29:48 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39129183 for ; Thu, 25 May 2023 05:29:47 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-30a892c45c4so1366743f8f.3 for ; Thu, 25 May 2023 05:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685017785; x=1687609785; 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=WVu9HOtYzHZwvpuN2gTTPEs8228CUSLathJuRQieOBU=; b=FYFUUoDfFC8eDhN6tmFQqkssXETTQaFCFsulLoqLxKzJ9aTnu4Jqi3+pVv4eZGmyuV OaTd6IN2zZw4Z50Rwrjy8vYtNSx+jjEWoYXiw7TXPNcdGZDyW4Y6RVA3R4/XXeaXdZR2 qVoyhem44nKHOo5GsCLPY6B6DleSpLZh77gYEZfuhpj+rcWafLYqtIZRlh2rU7uDyImC yZkIEpX6z89xt/DAPEMO/8SJaO30bNRVrv/wYVob466v2sHIX6TjfXE5SdZzRMb0eW5d s2sE6dZAJg7thq5C2CKeaWWq4vX3Ql0QyRqJ+DpHsZpIv2nXYzs+P88VXApzMY4UC+p7 iP5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685017785; x=1687609785; 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=WVu9HOtYzHZwvpuN2gTTPEs8228CUSLathJuRQieOBU=; b=OXiiasUJLd7hy7T4hDigZlggw3WM9tENnBCFV2+6IweWsrcDOl+ans/jrdfF/Cj/PE 79iDGeUFr3nwGhAlzk+LshhgW/5lL60RX2L/PoqjBvCpZePeJQQYpVl/k8RdOVO9gNdG JbWywCpzjoAEaCRA+hUsON2ugS/myaYZeobw/12jLOk28658QJceLKsRHdKnKYB3gSPw cBBhy7+yPNk458mdcVP1DBBujJu2lqoa5mRGQEvMmo+CHaCiFfgkCwRFf9abPzLfLlhs 8Kr1hK3qkZ1gKRlHxMN/zFdJGcaL4FD/+yLEx/xZ1H1JSx4j0+1aF0rr8uvMlGJxkIDB VZxw== X-Gm-Message-State: AC+VfDwUoAy/zmJtK8nh9TPHSG48/cw21XF8BZYJXXQhYOC3O4w0z50N w9exK9gGazNAfqv+yJZLK9pJuA== X-Received: by 2002:a5d:4a92:0:b0:309:43a2:8e9f with SMTP id o18-20020a5d4a92000000b0030943a28e9fmr2173055wrq.27.1685017785708; Thu, 25 May 2023 05:29:45 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id k7-20020adfe3c7000000b003062b2c5255sm1700227wrm.40.2023.05.25.05.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 05:29:44 -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 v2 2/6] dt-bindings: clock: Add YAML schemas for LPASS AUDIOCC and reset on SC8280XP Date: Thu, 25 May 2023 13:29:26 +0100 Message-Id: <20230525122930.17141-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230525122930.17141-1-srinivas.kandagatla@linaro.org> References: <20230525122930.17141-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,URIBL_BLOCKED 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 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 --- .../bindings/clock/qcom,sc8280xp-lpasscc.yaml | 11 +++++++++++ include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml index 08a9ae60a365..0557e74d3c3b 100644 --- a/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml @@ -21,6 +21,7 @@ properties: compatible: enum: + - qcom,sc8280xp-lpassaudiocc - qcom,sc8280xp-lpasscc qcom,adsp-pil-mode: @@ -45,6 +46,16 @@ required: additionalProperties: false examples: + - | + #include + lpass_audiocc: clock-controller@32a9000 { + compatible = "qcom,sc8280xp-lpassaudiocc"; + reg = <0x032a9000 0x1000>; + qcom,adsp-pil-mode; + #reset-cells = <1>; + #clock-cells = <1>; + }; + - | #include lpasscc: clock-controller@33e0000 { diff --git a/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h b/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h index df800ea2741c..d190d57fc81a 100644 --- a/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h +++ b/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.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.21.0