Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2345759rwd; Fri, 26 May 2023 05:31:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bYWVB4kGjo95O9cWPBfn8uXVCQ/WCCaEYzO8PmXHd4aytt0HzFLCnNO+8M70QGd1baZV0 X-Received: by 2002:a17:90a:738f:b0:256:3f8f:fa4c with SMTP id j15-20020a17090a738f00b002563f8ffa4cmr258739pjg.4.1685104261426; Fri, 26 May 2023 05:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685104261; cv=none; d=google.com; s=arc-20160816; b=j36JkT36Z9Lau6qNTQRYhFsY3uCryXHI4zfRGiz9RNNROz+kbEslIOEnM6H9FrulTu Lmncd/i5Ns9lnLVkK6P+kC7WEEW0U8U0oAW0geZtm14/Q7UtuD+atfVdviV2Wn0Oqs/t AETlJF6HkYn4tcI9zEnD85uTP3UYNXCo07Nd69eBUmE+vD6VQ8RcpE/maLyWgqvn8EwA /c+J5bs5QSIbPfa3VtARa9Vz6t7PluNc4Qn5KCT0w+IazwbqdyZWUAoWaUKj5Dzqj2DC G4EEafPFJir0IjlnSXdhmOTS3VDv8GRi3ZDA+Bsr/DqhC384k3YzgYL9EnZA0XxUsUi9 aZrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wQwUj3QQWwhD2g0T8QaHARJwMa9krY8PTj7L29b/Sgk=; b=mWehp448jAAtMGU1FrPmyDkjpQNXqTADX78OLwyUxi9iU7kX//uwDGLV6xVgd408QD mJcNvP05WzstzP17GeRMGwZimiG0BC7MhU1Oov6Q5FJ0QMFnSJvhebyXf3S6eo+FBZFt NrCOQcOMb12UzK/lE67kEiA+5cfNx9Moss6FxNj1JaMij0bIKNQVwmVD+Ak11v/zw979 gEzNapypYipxtGmG7Zy8yvM71B65YvahS63nnEtw3CRmU9GcibBGMj/91TdXqP+YM1qK VFYZ3KLeRV14l7aqVUbA/2W0JUjtwgBUEWd6R2v9RBBwQrnyCaGwT8sjmOPO9HDBgPyY ZJsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H4lOLFYU; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t127-20020a637885000000b00524ca1b89f0si586598pgc.596.2023.05.26.05.30.47; Fri, 26 May 2023 05:31:01 -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=@kernel.org header.s=k20201202 header.b=H4lOLFYU; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242713AbjEZME4 (ORCPT + 99 others); Fri, 26 May 2023 08:04:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243328AbjEZMEy (ORCPT ); Fri, 26 May 2023 08:04:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 206EB1B0; Fri, 26 May 2023 05:04:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4680560F08; Fri, 26 May 2023 12:04:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A8B4C433EF; Fri, 26 May 2023 12:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685102686; bh=nJljWBKgOyOWAPBWpCK5MiNtzZILMZl1Ym7li47LYmA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H4lOLFYUf8/7vJ8VGhMsLinv6egM0R2/BXrrqrBWX2YoIWCdAWcezMIjvjfg+qgHi Emw+svE4rmU8qViXroYfJk/P4FHRQtkvBSl+qa/xZ6QTHZbmdAA2GmMvdtTHw/4NRT FaUcvnYfunLj8SJBe0HoHfWB2w/FnYfdJFRtkCYuVolHnpjTQJddIxCvWbRGfu3XyI XsrVWVMdsKbxsVWIzBct9XX+OYuTg0WJ0DMrWba+ysGz0M+CZJn3zb/8XzN6UV43OM W8i4B9aCiKtu+oJYQg2/A2+L4/qZm5lOBpjnXKfBSwM7QaTg/QQOgwjOXrJAdkpsyR aQZl/ipiEtXrw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q2WBm-00070Y-4r; Fri, 26 May 2023 14:04:58 +0200 Date: Fri, 26 May 2023 14:04:58 +0200 From: Johan Hovold To: Srinivas Kandagatla Cc: andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, 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 Subject: Re: [PATCH v2 1/6] dt-bindings: clock: Add YAML schemas for LPASSCC and reset on SC8280XP Message-ID: References: <20230525122930.17141-1-srinivas.kandagatla@linaro.org> <20230525122930.17141-2-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230525122930.17141-2-srinivas.kandagatla@linaro.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Thu, May 25, 2023 at 01:29:25PM +0100, Srinivas Kandagatla wrote: > 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' Nit: #clock before #reset > + > +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>; Nit: #clock before #reset > + }; > +... > 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 Reviewed-by: Johan Hovold Johan