Message ID | 20230526-topic-smd_icc-v3-1-5fb7d39b874f@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp60996vqr; Mon, 12 Jun 2023 11:36:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6F5Zl85HZT/88V7o4CUHnwYQqlfYVda9vMH/eT8o6Wp7pGOaJ/1XDtgpVYEJy2SLAEMMFg X-Received: by 2002:a17:907:787:b0:970:71c:df58 with SMTP id xd7-20020a170907078700b00970071cdf58mr9573212ejb.42.1686594971798; Mon, 12 Jun 2023 11:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686594971; cv=none; d=google.com; s=arc-20160816; b=o4BCE756sbQSuEJJOf3FBGdxq2ExnpzlqFcegliqrwFe5D8V1lpwob4PlGY2Ye3m8G +B2dXPLIc6P2bTnNig1SPH7r2d9uy3CzzPetTLm8Qe+hHYH5IYLlYNLMTcK+yoyUvz1o QHdTs9fTEPt2Sran+PXRz2JdV35Mkaz10v9lEReY53RDawr9w/Ji8dzH3jrWWHPJfC49 kycEkR4b/n2ie/ucVrz7/35z6asieLerXVMQYHr4goAxdfCjc2OKlFNdNN78/rad8Gcq hEN8bHOIMLGP3AAi0Ozjr99i+b4ib1WaqrvTPf6AmTzIenui7a8Jql6+fJTtrwuiUqJB 91VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=BEi5qpheZl2BQaOFoE3kkQOdFO7lJ+DrcH7akRlwpqQ=; b=A5bh9h38Gepx1x/9wR6S8rptN/iZ4VvWHJ++QanVhmFUmqA51hFaXg6QTebY5RuoUz VgZHWs8MoV/eBzaYvixUy/W5csnJZQTO/AFvytmtioGjsvHl43fCePuNDroET4r1BLpB Kqy5h4r3mw+FKmM45swIj4cgD+IGUUlG/3Xe/tTdfe6szAhHe83liy0GXDEAjZa0YIF8 dlkbZcrXBT4ruyO9vqVBweJXOwm7yRIhX8ZCoHmHVV0Epj9lQU0O2G88yXmSUqpmCnzy LeZzx2Ci2yJkgrsB8/fYk7c/x8Z5Ok3MwoPd59ZPJcIKgoDNtR6rxLkMY4/tHMOxBnCT I3mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AEvWiL5C; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju25-20020a17090798b900b00977ca868696si5911044ejc.243.2023.06.12.11.35.46; Mon, 12 Jun 2023 11:36:11 -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=AEvWiL5C; 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 S238398AbjFLS0S (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 14:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237588AbjFLSYn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 14:24:43 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03413E7B for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 11:24:41 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f6454a21a9so5513820e87.3 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 11:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686594279; x=1689186279; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=BEi5qpheZl2BQaOFoE3kkQOdFO7lJ+DrcH7akRlwpqQ=; b=AEvWiL5CQwyLRex0IfiH5wBk6r1CyDyBAbbBy4kaWDDim0oBPXxRL7RBaZs2IBQ3l7 qp1OmAADeoxQ1cd4KS86PhNBxxOTeyKk+GaThXC8kkv1TiHX20upsGR6momGd0MV2PQJ B9iDBnjjovOIxtQfvlnkOOUx0vcpQgMLTZGVG0PPL+BkXEyoPfNqNokYKY9oue85WsKQ iY8zouPXv9151NK8y17VV6LMGixxNhKYVqHRjPZEjf6eCt4BQnOKKf9fYb9JVJWS4yha 8WaftODBStZM0cBCL/meWkOjVS6PRK7fASpa4MaN7DW1ASG+4tBfiX4HSJl1PulWit4B qDoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686594279; x=1689186279; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BEi5qpheZl2BQaOFoE3kkQOdFO7lJ+DrcH7akRlwpqQ=; b=FeRYQ3iZR4/nLU+w5cIJBFyFP/40ODaoDlzYEVGZe3nv+ne5/NYy2iRe4ggci6H6C6 9Ugn+Bgtz5RXLqTCpJIDIi2gY6j68RCN/dQ4UceOr5BVWb2ZWytuNBKiL0Z3Ye42amKS VRu/44ng7E5eSRGQDrhS/oiQBx4/ixYrYNsRw6Z0zeF9VDleKt6uCI689RJz3WYPSqPX iCN1sIFQ4Gs2++v+O2RpV33zZqTW0+oPs4osDlBWXLyET/9vB7d12R3hxdECE5lxAlQ1 gL+fkEcUSE3XmYFiU/Fc1DvmGaf+goZA05VDsjT8ij62W1ZNNOuTnObtxHcUJz0AkoMy Yj6w== X-Gm-Message-State: AC+VfDznGNeeBeMaOhNU79IybV5igNzq45baFC5Ay39FIl4J9Rgpkjp4 Ml9972QWzu9avYWyN89G69JEog== X-Received: by 2002:a19:691e:0:b0:4f6:26fe:9e7 with SMTP id e30-20020a19691e000000b004f626fe09e7mr4022151lfc.10.1686594279359; Mon, 12 Jun 2023 11:24:39 -0700 (PDT) Received: from [192.168.1.101] (abyj190.neoplus.adsl.tpnet.pl. [83.9.29.190]) by smtp.gmail.com with ESMTPSA id v24-20020ac25938000000b004f64073a252sm1502035lfi.96.2023.06.12.11.24.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:24:39 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Mon, 12 Jun 2023 20:24:18 +0200 Subject: [PATCH v3 01/23] dt-bindings: interconnect: Add Qcom RPM ICC bindings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230526-topic-smd_icc-v3-1-5fb7d39b874f@linaro.org> References: <20230526-topic-smd_icc-v3-0-5fb7d39b874f@linaro.org> In-Reply-To: <20230526-topic-smd_icc-v3-0-5fb7d39b874f@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Georgi Djakov <djakov@kernel.org>, Leo Yan <leo.yan@linaro.org>, Evan Green <evgreen@chromium.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686594276; l=914; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=WkcyB5namzazMLShg6tQtS2xLtUOn1uXhB52w/vW+S4=; b=N3RAdLW3q/eh3dgOQwlZl4DhmB3Ou3ae5Bqj7LaNSkHzmsPzpF3Bjl4+5dmYaqTXuH0bDIUU9 8/0JeuRSKbdA6VaeQeJ80kMWxigbimQTLMrI/7Hlq7pr/zmOK1LiUkK X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768523009318407127?= X-GMAIL-MSGID: =?utf-8?q?1768523009318407127?= |
Series |
Restructure RPM SMD ICC
|
|
Commit Message
Konrad Dybcio
June 12, 2023, 6:24 p.m. UTC
The SMD RPM interconnect driver requires different icc tags to the
RPMh driver. Add bindings to reflect that.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
include/dt-bindings/interconnect/qcom,rpm-icc.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
Comments
On Mon, Jun 12, 2023 at 08:24:18PM +0200, Konrad Dybcio wrote: > The SMD RPM interconnect driver requires different icc tags to the > RPMh driver. Add bindings to reflect that. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > include/dt-bindings/interconnect/qcom,rpm-icc.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/include/dt-bindings/interconnect/qcom,rpm-icc.h b/include/dt-bindings/interconnect/qcom,rpm-icc.h > new file mode 100644 > index 000000000000..ef61006c9c58 > --- /dev/null > +++ b/include/dt-bindings/interconnect/qcom,rpm-icc.h > @@ -0,0 +1,13 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > +/* > + * Copyright (c) 2023, Linaro Limited > + */ > + > +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H > +#define __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H > + > +#define RPM_ACTIVE_TAG BIT(0) > +#define RPM_SLEEP_TAG BIT(1) BIT(n) doesn't work in dt-bindings (syntax error), can you change this to (1 << 0) / (1 << 1)? Thanks!
On 13.06.2023 13:11, Stephan Gerhold wrote: > On Mon, Jun 12, 2023 at 08:24:18PM +0200, Konrad Dybcio wrote: >> The SMD RPM interconnect driver requires different icc tags to the >> RPMh driver. Add bindings to reflect that. >> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> include/dt-bindings/interconnect/qcom,rpm-icc.h | 13 +++++++++++++ >> 1 file changed, 13 insertions(+) >> >> diff --git a/include/dt-bindings/interconnect/qcom,rpm-icc.h b/include/dt-bindings/interconnect/qcom,rpm-icc.h >> new file mode 100644 >> index 000000000000..ef61006c9c58 >> --- /dev/null >> +++ b/include/dt-bindings/interconnect/qcom,rpm-icc.h >> @@ -0,0 +1,13 @@ >> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ >> +/* >> + * Copyright (c) 2023, Linaro Limited >> + */ >> + >> +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H >> +#define __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H >> + >> +#define RPM_ACTIVE_TAG BIT(0) >> +#define RPM_SLEEP_TAG BIT(1) > > BIT(n) doesn't work in dt-bindings (syntax error), can you change this > to (1 << 0) / (1 << 1)? Just including the binding did not show it.. You're right.. Konrad > > Thanks! >
diff --git a/include/dt-bindings/interconnect/qcom,rpm-icc.h b/include/dt-bindings/interconnect/qcom,rpm-icc.h new file mode 100644 index 000000000000..ef61006c9c58 --- /dev/null +++ b/include/dt-bindings/interconnect/qcom,rpm-icc.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2023, Linaro Limited + */ + +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H +#define __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H + +#define RPM_ACTIVE_TAG BIT(0) +#define RPM_SLEEP_TAG BIT(1) +#define RPM_ALWAYS_TAG (RPM_ACTIVE_TAG | RPM_SLEEP_TAG) + +#endif