From patchwork Sat Oct 1 03:13:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 611483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31B48C433FE for ; Sat, 1 Oct 2022 03:23:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233218AbiJADW5 (ORCPT ); Fri, 30 Sep 2022 23:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233175AbiJADWU (ORCPT ); Fri, 30 Sep 2022 23:22:20 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED1A4BA54; Fri, 30 Sep 2022 20:15:07 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id u69so5632960pgd.2; Fri, 30 Sep 2022 20:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=WS8+aHrpEJcPx+GL0ClM0OpEIxuUEQEiHn73/H2YPtI=; b=OifcXVKgL/Y2MR8NT6VuBy0ERXN+g28z9Z0Tn9ortQcDze37w0ZylmrF7KACE9WIkA L65S0lgi3brOlvLdjUKvd+FsCfN1tI2Y51nePP5mDgt9wP5McLaSYSindE63TCH/jfmf mk6e2IRb0K9ypp/aRAlcv9v/gNPW6QRuCXtnIXjrxQilcvkNUM2QHzoP+1pdO19OU8lq gVSbeIl1HkMxJKfoNYxWc2r04Qz3zJoV+777ZfqCPjaiIY7kgeXHM2TXLXCojhH8JupY lqDkePVV/P/1GE+otFYBWtZrtjxktKyqsYgzkKIbFDt5PPChDNAGd81mFMpRNh+60C9c u5wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=WS8+aHrpEJcPx+GL0ClM0OpEIxuUEQEiHn73/H2YPtI=; b=OwvHDqRj6EWeHuS0JnbSyEGSsK5gUY9iFxRP2zbUSat5r6Vkl5/9Iwx5CIcWYRi1H8 y6rmH72wZRK0S8PA2mJCyOVbZTKcGvjmjLTqRO3SPKvIy14T/GsS+9+lpIFMxUKZZpi+ pjjCxdmm/kHpoYD2gjY3urCO5uBdFK9npWJ4IWAG5kOnHI9HI6GquQ7MtpktYVxltr0n DPbkPz8+aaW4ZRp82tnlVBB8aRqLw9ipzE4RtelA85nSAWIlWg2ivpr56CQ42e1MYfFk bpzFyjGtJNSJnxeFdGQ1YAScLPO1BYsBKXQ4xSDlANHrRLd7SF1zKZtFt9tf70Dey5ga GTfQ== X-Gm-Message-State: ACrzQf3TR1mdFe0Q4j4siYhRSjYYxTMmOPEFYm/SVlQIskypnfcBaFzj lkdSJpyYsrFh2VvZyYlO4HFQncaUaUZoio5q X-Google-Smtp-Source: AMsMyM7Ya4zNiDzlQhvFBKSCqIoTqCJ+bIjL9mMOIXZ59mxgEuLN8Ft5BFS06JWUhvZx9/87kUmDWg== X-Received: by 2002:a05:6a02:4a:b0:447:f9d7:4e32 with SMTP id az10-20020a056a02004a00b00447f9d74e32mr608935pgb.412.1664594041901; Fri, 30 Sep 2022 20:14:01 -0700 (PDT) Received: from skynet-linux.local ([2406:7400:61:5d7c:3fe4:8f6d:b1b6:f2bf]) by smtp.googlemail.com with ESMTPSA id cp1-20020a170902e78100b00172a567d910sm2627371plb.289.2022.09.30.20.13.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 20:14:01 -0700 (PDT) From: Sireesh Kodali To: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org Cc: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, Vladimir Lypak , Sireesh Kodali , Andy Gross , Konrad Dybcio , Mathieu Poirier Subject: [PATCH v6 1/5] remoteproc: qcom: qcom_wcnss: Add support for pronto-v3 Date: Sat, 1 Oct 2022 08:43:40 +0530 Message-Id: <20221001031345.31293-2-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221001031345.31293-1-sireeshkodali1@gmail.com> References: <20221001031345.31293-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Vladimir Lypak Pronto-v3 is similar to pronto-v2. It requires two power domains, one regulator, and it requires the xo clock. It is used on the MSM8953 platform. Signed-off-by: Vladimir Lypak Signed-off-by: Sireesh Kodali --- drivers/remoteproc/qcom_wcnss.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c index 68f37296b151..f599d5d5719d 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -141,6 +141,17 @@ static const struct wcnss_data pronto_v2_data = { .num_vregs = 1, }; +static const struct wcnss_data pronto_v3_data = { + .pmu_offset = 0x1004, + .spare_offset = 0x1088, + + .pd_names = { "mx", "cx" }, + .vregs = (struct wcnss_vreg_info[]) { + { "vddpx", 1800000, 1800000, 0 }, + }, + .num_vregs = 1, +}; + static int wcnss_load(struct rproc *rproc, const struct firmware *fw) { struct qcom_wcnss *wcnss = (struct qcom_wcnss *)rproc->priv; @@ -675,6 +686,7 @@ static const struct of_device_id wcnss_of_match[] = { { .compatible = "qcom,riva-pil", &riva_data }, { .compatible = "qcom,pronto-v1-pil", &pronto_v1_data }, { .compatible = "qcom,pronto-v2-pil", &pronto_v2_data }, + { .compatible = "qcom,pronto-v3-pil", &pronto_v3_data }, { }, }; MODULE_DEVICE_TABLE(of, wcnss_of_match); From patchwork Sat Oct 1 03:13:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 611481 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC266C43219 for ; Sat, 1 Oct 2022 03:23:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233119AbiJADX2 (ORCPT ); Fri, 30 Sep 2022 23:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232606AbiJADWo (ORCPT ); Fri, 30 Sep 2022 23:22:44 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35B16F555; Fri, 30 Sep 2022 20:15:13 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id g130so5178364pfb.8; Fri, 30 Sep 2022 20:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=juW9wu13y489Hph7sR+dhrqUMWDs6TD8KFYBRB4JbO4=; b=UkOShts6IW9u9T3yFTtjI42gi0TloGaPV7bC/5ddCl9hAmmPunhkNDifa3/wCzAVFW 6A1IZTMl1PxRXBs/zAPJ2TiwprwX93nBQ8mSS+eqQdc84vnX+zBCswUO0XVr6BhwPY3V KpcB40QjlrkAy+0HpYoXWXh8H6ORb0zRQJlHBpXFCHt6kSAKPV+Vnwd7yKOt4MdXXY6Z PEvOHoT1od5DKOOGtR9m92YgTgLLfFGx7yTG/z7lMYK4R8VWq6TS1nkj2aJ5HmBYhL4s CSLBcLBSaOUeUombfP8ac/a4sOqlxS7+kKKQdo/ZMijWKbFcqgZSrTPQBEkmy3Wx1ZoV oD8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=juW9wu13y489Hph7sR+dhrqUMWDs6TD8KFYBRB4JbO4=; b=e56wSsfiJY62y3oVkQwUkwC0yhMv8A/VsfWkYHAZSzJHo33nSzXLXfFEUb2OjsBaGQ gUZ7pYB1amCRNqSkIrKuUs9E/IH4m4pxC1JXi2XpL5vw6sj6Y80CceOhKKioFcT0b5WN 0lFqKw1tSzC6rQ2ZLqdIXyHzsHD/+7XkSeqO5b5j8X2tIwpiSdoSgwpusNsu9ojV6XOQ W/itZNt2dP843PeE2nDvC2K3/CsatSJREG/fbHSZFC6w/CINs5sTcA2hVbFL7j/IQo6Y W4WPhxjrFeiUYAqUWvZjyjUQIWhth5Sh9/dLiOlprTsuTKmYAneP+J7wD5qYn352kx6B 5mYA== X-Gm-Message-State: ACrzQf1fdGS36M1qxnN0iorc/SrSmIH1rUapOotleKRSywTMLuAU8V6L 0udHF4EwcZawXwG75SrmJZYFX7ASFoYFLadG X-Google-Smtp-Source: AMsMyM5D4l9JsGqXgs9A63E6didLWcsPaoFzBxMa/D8qX5FCUImVpo7wKrQKlyj/Z2649h6to7tzFA== X-Received: by 2002:aa7:880f:0:b0:558:12e9:178e with SMTP id c15-20020aa7880f000000b0055812e9178emr12167552pfo.23.1664594057305; Fri, 30 Sep 2022 20:14:17 -0700 (PDT) Received: from skynet-linux.local ([2406:7400:61:5d7c:3fe4:8f6d:b1b6:f2bf]) by smtp.googlemail.com with ESMTPSA id cp1-20020a170902e78100b00172a567d910sm2627371plb.289.2022.09.30.20.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 20:14:16 -0700 (PDT) From: Sireesh Kodali To: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org Cc: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, Sireesh Kodali , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Mathieu Poirier , Rob Herring Subject: [PATCH v6 4/5] dt-bindings: remoteproc: qcom: wcnss: Add compatible for pronto v3 Date: Sat, 1 Oct 2022 08:43:43 +0530 Message-Id: <20221001031345.31293-5-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221001031345.31293-1-sireeshkodali1@gmail.com> References: <20221001031345.31293-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The pronto v3 remoteproc is similar to pronto v2. It is found on the MSM8953 platform, which is used by SDM450, SDM625, SDM626, APQ8053 and other SoCs. Since the configuration is same on all SoCs, a single compatible is used. Signed-off-by: Sireesh Kodali Reviewed-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml index 0eb2617e3482..2ba2b6cf11fb 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml @@ -22,6 +22,7 @@ properties: - enum: - qcom,pronto-v1-pil - qcom,pronto-v2-pil + - qcom,pronto-v3-pil - const: qcom,pronto - const: qcom,riva-pil @@ -199,6 +200,21 @@ allOf: - power-domains - power-domain-names + - if: + properties: + compatible: + contains: + enum: + - qcom,pronto-v3-pil + then: + properties: + vddmx-supply: false + vddcx-supply: false + + required: + - power-domains + - power-domain-names + examples: - | #include From patchwork Sat Oct 1 03:13:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 611482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6CC0C4332F for ; Sat, 1 Oct 2022 03:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233114AbiJADXX (ORCPT ); Fri, 30 Sep 2022 23:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbiJADWn (ORCPT ); Fri, 30 Sep 2022 23:22:43 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2AC885AB6; Fri, 30 Sep 2022 20:15:19 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id f23so5441276plr.6; Fri, 30 Sep 2022 20:15:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=5Bev8D6ZYJiqDjBpp+o/3o3sID8wHikuW24dd+pn+/w=; b=PGe1+HcPTAw6H/e/EvSr1dQxZUhqMjOFMEr7JegNTuuF3B6VllEtzC6cY1vS6ObK/6 Mv5MSa+H3Zjk126gmSaI7WsLGWb8Msya+uraVcpAKYwvvJcjt6gOkNmx1tm4dSk7boSv pz50WfKjdDOZbUCloD7aiRKLueQBTTVdrKxIAzjfGAzyElXA8eiCSdsYv4WT63QZATY7 fcKsr5ffvsuAn2L2Ga/GQ00wPzn4jM1eiZkFt1+WIxQAzHNvtT878nS6ZbToHr5Qqbxb 49V5IizKhGY++oixBP7xfGY8JDbQEp3gNLehA8WD9QuFYSMUFCGDBzI/rddaXYYeshV9 XQGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=5Bev8D6ZYJiqDjBpp+o/3o3sID8wHikuW24dd+pn+/w=; b=JlKaDQObG8lc7U2ym4o2d7lK6Mj6/dJO1RY5/YkVXzss4gwVIgh1TF9GPX6mQbJO4r 4JZ1WTn6byInbhPI+OeTzLTNcEW0zj/V2ekDuPcYCo9g+AQOsHFcFaujjxC3kCWXWgQV ELqLGNkOrLMWXa3w4BfVCbjT/YB9BCXeBWSFWxoomn+OHybBMwXJ0M8pYD4Hd0EL20zB hOgTR1W9/8Bd6tR1Iuqiz4lmYv/dHrB2dZ1YfR1CYlTeQdf1o1YTlTHcnU7yrdgOeFsi PFSd+1YDE3VG8F6i4D4uZBfZizS6S+DQNGr/AXLa2axjCj2ZgeXkN2+sGjGpaz3xe+BS 1M6g== X-Gm-Message-State: ACrzQf3ZN91yfYodsOIBdvQs1qfaqiUlQjS7jysU7eeHPD1L25IFGkeD c9MPvTzkFXEQCmC4cYNS+PkirY1tvdSrOzdl X-Google-Smtp-Source: AMsMyM44ANcunkldxLZFZ73zNKxVK1ToZcJq26NjvxGQy1aPM74t/R3klkbu5we1SvAQ6FGhKHCazA== X-Received: by 2002:a17:902:f684:b0:178:84d:ddc5 with SMTP id l4-20020a170902f68400b00178084dddc5mr12184099plg.62.1664594061730; Fri, 30 Sep 2022 20:14:21 -0700 (PDT) Received: from skynet-linux.local ([2406:7400:61:5d7c:3fe4:8f6d:b1b6:f2bf]) by smtp.googlemail.com with ESMTPSA id cp1-20020a170902e78100b00172a567d910sm2627371plb.289.2022.09.30.20.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 20:14:21 -0700 (PDT) From: Sireesh Kodali To: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org Cc: andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, Sireesh Kodali , Krzysztof Kozlowski , Andy Gross , Konrad Dybcio , Mathieu Poirier , Rob Herring Subject: [PATCH v6 5/5] dt-bindings: remoteproc: wcnss-pil: Make supplies optionally required Date: Sat, 1 Oct 2022 08:43:44 +0530 Message-Id: <20221001031345.31293-6-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221001031345.31293-1-sireeshkodali1@gmail.com> References: <20221001031345.31293-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On MSM8974, power domains are not yet supported. The platform uses regulators. This patch marks either the power-domains or *-supply as required (instead of always requiring the power domains). Signed-off-by: Sireesh Kodali Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml index 2ba2b6cf11fb..45eb42bd3c2c 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml @@ -196,9 +196,13 @@ allOf: deprecated: true description: Deprecated for qcom,pronto-v1/2-pil - required: - - power-domains - - power-domain-names + oneOf: + - required: + - power-domains + - power-domain-names + - required: + - vddmx-supply + - vddcx-supply - if: properties: