From patchwork Thu Sep 8 18:49:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 603949 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 97DA6C6FA89 for ; Thu, 8 Sep 2022 18:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232319AbiIHSus (ORCPT ); Thu, 8 Sep 2022 14:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbiIHSur (ORCPT ); Thu, 8 Sep 2022 14:50:47 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 765A0EB869; Thu, 8 Sep 2022 11:50:46 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id u22so18756256plq.12; Thu, 08 Sep 2022 11:50:46 -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=Ww0ekzasU09lAMoy3JxdtzROyoI253SLR5Bo2xJU5E4=; b=Q/Hke5nLpcs16jf8LBaIP5ShEjGQG9BHfLUjXuJd5HcsGXg6z6us464wketBEM4xkR iaaNMtmt98aRN/0s9z+KFmOpVyi1KfBEPZO3ZT+MF6ZH1G64onlvIDdsBtY0z/elfGwG qF4Bj6GUcIFfIPRQUzB1WkuBoW6ImugyvviKE8XDHxDBzfieF9mXzhgxcJNC/vzj+ZCx gbJTrgW4ad0Okle32qOOgx73QTiGOhc3dk9W+G/09ryAPxb1gOsJRihmRXPolqVVuJrk rCCWKIRbGuJJ/olcahLlhSD1k4Xziu5AwEvgrkyABUt/HBsxONCqAQh4WCX5vC7V/9U7 7LtA== 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=Ww0ekzasU09lAMoy3JxdtzROyoI253SLR5Bo2xJU5E4=; b=ZjWvBgU4xOATw18FesHPaaBp/XzxwELdKUqIeaATdmmv3dQmfJFgH4YmNGNs+e0wDp FLbh0Run4znpjVfQu8q3yaTOEDdesQchbdc3zbwF2BrsWaARanUZ7lSc3vIsGE+qnE3v F3EiAh+LcJx4hyiH5yW08VosyCDKoZv3l4lRttpCMQ2HPC+cuw7grHuOI1zIuUzGUI/7 STx4CZAwYCTmIF8cFdbqw8YOviEynRUsQGO93BhxJX36e71t8WNhkvYoUAfms9VWIvgY 6U3HX85szu3VUj5i5R+Mnm6UKQpJy4GERx6MBCp+MltAXmMXlj3TXfIw+vPvS62WLKyr rkAQ== X-Gm-Message-State: ACgBeo2XDqrtOgD1Aaxe823M/QDGVFJPGPvNnRlZfeDJ8ThDo3wzI3FU 4SJofYP03ZRVlsKHZqdZj0VhQ6QockjUWngi X-Google-Smtp-Source: AA6agR5UykrVNqh8zF4Y2mL1HJTj7x8gybd8YczcF0tSht5WOzX5kjlbqgLFlP0jSJJgrT4yM52Gow== X-Received: by 2002:a17:903:54a:b0:174:ec04:53ea with SMTP id jo10-20020a170903054a00b00174ec0453eamr10012332plb.3.1662663045545; Thu, 08 Sep 2022 11:50:45 -0700 (PDT) Received: from skynet-linux.local ([2406:7400:61:ce83:3779:42da:b5f7:bc9e]) by smtp.googlemail.com with ESMTPSA id 21-20020a170902c11500b001714c36a6e7sm8746030pli.284.2022.09.08.11.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 11:50:44 -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 Cc: bjorn.andersson@linaro.org, Vladimir Lypak , Sireesh Kodali , Andy Gross , Konrad Dybcio , Mathieu Poirier , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 1/4] remoteproc: qcom: qcom_wcnss: Add support for pronto-v3 Date: Fri, 9 Sep 2022 00:19:22 +0530 Message-Id: <20220908184925.2714098-2-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220908184925.2714098-1-sireeshkodali1@gmail.com> References: <20220908184925.2714098-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, 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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c index 68f37296b151..ff18bfae5eb6 100644 --- a/drivers/remoteproc/qcom_wcnss.c +++ b/drivers/remoteproc/qcom_wcnss.c @@ -141,6 +141,18 @@ 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_pd_vregs = 2, + .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 +687,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 Thu Sep 8 18:49:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 603948 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 46E8BC6FA86 for ; Thu, 8 Sep 2022 18:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232452AbiIHSvN (ORCPT ); Thu, 8 Sep 2022 14:51:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232441AbiIHSvJ (ORCPT ); Thu, 8 Sep 2022 14:51:09 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19CE9FE4A1; Thu, 8 Sep 2022 11:51:08 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id u22so18757114plq.12; Thu, 08 Sep 2022 11:51:08 -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=FWmlh2yojHtL2OQ0rHu6CbD2eXHTcufw4oWIJCcOon8=; b=GDr+fUXJz91IpMO/pIHRQ3t9rZOhXF58tzim33qqwkyXlKO1JLSQoii7gJ4wWYWhp8 qThoOfBQZ3p9434HRdNhTlasw4vbHtxzOtWJyg6eWoYKMNYFpLz45eiqa+A35bG1lk0Q UKurN1InZh6ZyN+l6anrMcUJoNyU6UplQ98oEPPpeA6UZvEOx0rorpNpehdPdiSeiEen d+HtdV8QNdZ7omJUZIf9piRvMicvpsoLaeSDgU/rk3TAOlfOz6ejv9f6PGjbZXGv5ALM nqZ2H1R2QfNm6BC/sTa2YEIbjhbxeZTbycA3GSbTDJCJDixsbIp7B65ZnYEAwspHF3Ld a+9A== 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=FWmlh2yojHtL2OQ0rHu6CbD2eXHTcufw4oWIJCcOon8=; b=VtUufyEhS/LIYMgGybxN5XQW9fUh0W9T0yE/skJl6kAS+SvTOxdDwGr8T/VRlbUlrI Fv1FHslYgs5MGOqDmS61Dx984Ix/Wq/s8eIaTl1tToQVOhBhVmVo46rGjZLYjaEQZ0C7 L4YVcwT4HprH8YExXxn/jHrYFi/kbetMwSfftWgJhLtRZgHTzzFFFyiuWHVJtQkqoVVV FPF8hGPStWze0sUJvQpSyIFDdXhI3IhIMNKUOdqk8eb55jUB6wXryB20+bQhs/VjeQrl IHqlIjbyU3CEo6PH4F11CteqPHwjdxx6VH/voIpTa1mDUHabqtJ+SUGA4JqWzJnjvCxs UgKw== X-Gm-Message-State: ACgBeo1XqNnet93Nf1dQC8F40Me2zQ6BGQ7TxcE7Udj323rLr2h31KEg b8eac2KSWaHfKrGGNPusj063jmbjp9ci6M0B X-Google-Smtp-Source: AA6agR5H6jpOP0uXQRmOgG+aty9TBH/fHeIUQp30kYGBJOH+qdhz9+9MLK255a2PusqY23+SXNeN6w== X-Received: by 2002:a17:90b:4a08:b0:200:e221:e98a with SMTP id kk8-20020a17090b4a0800b00200e221e98amr5605333pjb.55.1662663067284; Thu, 08 Sep 2022 11:51:07 -0700 (PDT) Received: from skynet-linux.local ([2406:7400:61:ce83:3779:42da:b5f7:bc9e]) by smtp.googlemail.com with ESMTPSA id 21-20020a170902c11500b001714c36a6e7sm8746030pli.284.2022.09.08.11.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 11:51:05 -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 Cc: bjorn.andersson@linaro.org, Sireesh Kodali , Andy Gross , Konrad Dybcio , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 3/4] dt-bindings: remoteproc: qcom: wcnss: Add qcom, pronto compatible Date: Fri, 9 Sep 2022 00:19:24 +0530 Message-Id: <20220908184925.2714098-4-sireeshkodali1@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220908184925.2714098-1-sireeshkodali1@gmail.com> References: <20220908184925.2714098-1-sireeshkodali1@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The qcom,pronto compatible is used in the wcn36xx driver to determine which register to access. However, this compatible was not documented. This patch documents the existing compatible as is, since it isn't immediately clear why the wcn36xx driver uses this extra compatible, rather than relying directly on the regular compatible string. Signed-off-by: Sireesh Kodali --- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml index bc18139fdb91..5e4a97e9d330 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml @@ -15,10 +15,18 @@ description: properties: compatible: - enum: - - qcom,riva-pil - - qcom,pronto-v1-pil - - qcom,pronto-v2-pil + description: + Append "qcom,pronto" if the device is actually pronto, and not riva + oneOf: + - items: + - enum: + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + - enum: + - qcom,pronto + - items: + - enum: + - qcom,riva-pil reg: maxItems: 3