Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp887594rwd; Thu, 25 May 2023 05:31:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6nnqA1RhSBms4RYPPjTjpqRKA5/wTaCa3gwqIv4q6Z9IU6lWIDn7wh5CD1uj3YYni0o6f1 X-Received: by 2002:a05:6a20:7495:b0:10c:90ac:442d with SMTP id p21-20020a056a20749500b0010c90ac442dmr8872651pzd.13.1685017910458; Thu, 25 May 2023 05:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685017910; cv=none; d=google.com; s=arc-20160816; b=w8Z4I0ipWhRrWFnQ9a6AKNPJN019bTmc9m29+sTXJu37b9nK2XU4muzXoL09olwi4g 9EAXnRcFJkUAK5rw2GgKP9WX80bqz2okwzk0+B2kUKt7lmXFKd/eoXiiQotzChxD1kZW hFG0eQ8l72hV2RHPhMQCCtVxJKPStx4hnvPLB9c4sjscXw8xW4y1vi8E/mpFlI1J9n+i 87VTH9K0o5+byYbYbfv71EETtM2W8tKIv7YvrGs9o7qz+84Pq4qZSRSEbc1Hvq5TyF6Y 68wp8zbPOxntcCTRLs6E7s/comLEKaf1xWIyQLuoq4515Z9znU5TISZUkoFTPYghVeiw YgSg== 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=OuvRuDicrDkTpiapZ9qbY9ea3wcS797f7ELyYZDyHDI=; b=lbukeNIaekIaiW17Pc7iXWUeJ+8gtXeOWa4hY2waOqabCH3kyGklfKuc6HcpwxeDJ5 JVT2bHrrOvaMTCwfxXjazl2S/oje6r+aIYT78fdxSJ/tTRkTj+nfscb5mDqoahljUviw xvyMOPFK9vzWmIEqu0yVXhs20p6LTCwTNuzQU6G9lW28QUCvkO71nX+f7nhYeyALJvDL 35ziF4eoewj3tyswWo3YuSasmTH6cOLeMjjKBCEItHRjoj9CyDCI81GYBvCUh2+OLnHw n104GtKVQbEZqqF7Wzsb1R/8nKjYTBXxmI0sMWjg0MXcggu6X/6fgonB9HwYBjYdLi0S FzxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="S/JIetgc"; 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 k7-20020a635607000000b0052feffab90esi1096242pgb.93.2023.05.25.05.31.37; Thu, 25 May 2023 05:31:50 -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="S/JIetgc"; 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 S241145AbjEYMaE (ORCPT + 99 others); Thu, 25 May 2023 08:30:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241076AbjEYM3r (ORCPT ); Thu, 25 May 2023 08:29:47 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9138318C for ; Thu, 25 May 2023 05:29:45 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3093a778089so1355615f8f.1 for ; Thu, 25 May 2023 05:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685017784; x=1687609784; 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=OuvRuDicrDkTpiapZ9qbY9ea3wcS797f7ELyYZDyHDI=; b=S/JIetgcXgA1A05nAOKXcZ9zKRE/D7BI80rlLZOkS0HH7qzevd2EASNBuHAl1QRiIR Z5rhHStymQH3/wRF4OhUt6QSnpULTb2HcRb8wkpsrB+LNejwEq/aG8b76PGp9BlmRCyI bB/o5CPJIEIm5w7Zj9B1QeasBGCkDOqTJ7Mv21FzZchz+Yi7wI1rt+oEC/UBtLyWWDib G02Dpy8RIJkl2iMLzqkGVXPzKYNFQK93lwIDIy6OSAPlpbScbTzrI77xfWa0NSVCs2/H OuU3PGH6eoqjrv//EsL9ODgMoyF5yuz9oy8dE76ZowSkatjZDetipM9P8q9ckeOBEBYk 9W/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685017784; x=1687609784; 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=OuvRuDicrDkTpiapZ9qbY9ea3wcS797f7ELyYZDyHDI=; b=faTKSS06F5ZbZcKR1GF68N3WUHbaq2VDEmkkW4jPAiMCwjXiDdnbOhfGj8Z/riHwSp UgiLjn6ATVPbCSarbJs6TKPLWj3wa8yF9cmrZwcn0cSfQG7r6O3nfYm71UjjFhp7B0Qp N+m22g7UJAC/KjrwJ5tpYyS4NwrO4kBM17c3DDVvTMZ7ZwfxULbQklCNFb5qKUJJj6oH AjLlNtvyy7/FRQnGlkw7T2i1gjVMqKi2vLgby+0O2fPujXIfpl8NizTavetVyEKV0ys7 Ag6+L59P3Tf+u3MT9rhmWGCDG7QFHP+efuviJXaolBo6ImNWVQ09JscAXB+PjRdP68Kx mneg== X-Gm-Message-State: AC+VfDzS9pmyLsRSb3N0+aN/2kamTSyVIMkTTjyYUL9Vzf7sDjVyErVn kz+t2dmNyuaZqRFP6kZffoyFmw== X-Received: by 2002:a5d:61d0:0:b0:306:489b:3c6 with SMTP id q16-20020a5d61d0000000b00306489b03c6mr2000407wrv.58.1685017783888; Thu, 25 May 2023 05:29:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 May 2023 05:29:43 -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 1/6] dt-bindings: clock: Add YAML schemas for LPASSCC and reset on SC8280XP Date: Thu, 25 May 2023 13:29:25 +0100 Message-Id: <20230525122930.17141-2-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) 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 | 57 +++++++++++++++++++ .../dt-bindings/clock/qcom,lpasscc-sc8280xp.h | 12 ++++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml create mode 100644 include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h diff --git a/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml new file mode 100644 index 000000000000..08a9ae60a365 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,sc8280xp-lpasscc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,sc8280xp-lpasscc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm LPASS Core & Audio Clock Controller on SC8280XP + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm LPASS core and audio clock control module provides the clocks, + and reset on SC8280XP. + + See also:: + include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h + +properties: + reg: true + + compatible: + enum: + - qcom,sc8280xp-lpasscc + + qcom,adsp-pil-mode: + description: + Indicates if the LPASS would be brought out of reset using + peripheral loader. + type: boolean + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - qcom,adsp-pil-mode + - '#reset-cells' + - '#clock-cells' + +additionalProperties: false + +examples: + - | + #include + lpasscc: clock-controller@33e0000 { + compatible = "qcom,sc8280xp-lpasscc"; + reg = <0x033e0000 0x12000>; + qcom,adsp-pil-mode; + #reset-cells = <1>; + #clock-cells = <1>; + }; +... diff --git a/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h b/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h new file mode 100644 index 000000000000..df800ea2741c --- /dev/null +++ b/include/dt-bindings/clock/qcom,lpasscc-sc8280xp.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2023, Linaro Ltd. + */ + +#ifndef _DT_BINDINGS_CLK_QCOM_LPASSCC_SC8280XP_H +#define _DT_BINDINGS_CLK_QCOM_LPASSCC_SC8280XP_H + +/* LPASS TCSR */ +#define LPASS_AUDIO_SWR_TX_CGCR 0 + +#endif -- 2.21.0