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: 12970524 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 889E4C38145 for ; Thu, 8 Sep 2022 18:50:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232380AbiIHSus (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: linux-arm-msm@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:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 12970525 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 C3944C54EE9 for ; Thu, 8 Sep 2022 18:51:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232419AbiIHSvA (ORCPT ); Thu, 8 Sep 2022 14:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232421AbiIHSu7 (ORCPT ); Thu, 8 Sep 2022 14:50:59 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF526FDBB4; Thu, 8 Sep 2022 11:50:57 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id i15-20020a17090a4b8f00b0020073b4ac27so3407279pjh.3; Thu, 08 Sep 2022 11:50:57 -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=Iyw15Up3SGizo1zKvWpnFD/JaWyOv/VL9C9xu5PlBg4=; b=FWihZgI5unW37D+/4+9443N54Q8x3HgHBUIYwbH0AD11/MHM6ccXd4+kHPqMUx6+R1 Psa5I8ixqN/2LlZu00GgGz/EzJAiUOYPQ5X9CCZFbxg0rP1LpoLY6DYTyQFBQXkVjuk7 /PvKP377ZznZIZDPnZEnotHIT+ImZZHlae3caN2mkGrxfrZm11vQifBZq91t8nCuJyL2 UsSNh0FOplQ8jMFQ0sGzyS5tBmFwEm30QTGaA2Uf22uo5UvdoHtj5mxeoNi2PG5kWqL6 NUvnrH84dGJKJ2iaNmriWlwANZ7WFLHRlZdVegF7ulO9jghxDhXuznclLjL9ybyWHHSR EZxQ== 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=Iyw15Up3SGizo1zKvWpnFD/JaWyOv/VL9C9xu5PlBg4=; b=hDLtePBgDsefSoaJs65RsTPDg27oOgO5ziEmZImuKEqF/2IOjdLe86wBtruw6/FslN 8TyOW+TxA0M37vsG9KJTWQHneWP9sKe8F46Gy9FgLyVeJTZ+gEPyQfiqy5j7FIATTRDr EetLGOQbBo+f+own1Y9DyADqhPnHFZ3WQshVi/n9X6F2U7wG1TjeoycFCBtOuBnh/va/ 9tt4RSWiekeG5yYbaw1gvG1FlykdX5MN+smI63RMaU3KzuztloVyQW3szftqElOh4Z5E NyuSTMJpdoAXLfnozpWtWhgLOucB146KNq03g9dsEl5JZwFZIPIpV6vgLtWkOGrUeNf1 6Wig== X-Gm-Message-State: ACgBeo2fXOCNVmNC3rukjBDiUgcy8npRc/JvSSjx1OM6C+YsZ86/753S lrT3ppxFFyL2jBmKAJoejb1L2zENJgh4XlAT X-Google-Smtp-Source: AA6agR5VxbvdX0w3VaWBKAQWVNvWDSHx8kypoTN6YK6kADZHFbChenTqVmPjLh/34ZR3bSSsKemByQ== X-Received: by 2002:a17:902:7b95:b0:172:9dc3:6c12 with SMTP id w21-20020a1709027b9500b001729dc36c12mr10425106pll.94.1662663056791; Thu, 08 Sep 2022 11:50:56 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 11:50:56 -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 2/4] dt-bindings: remoteproc: qcom: Convert wcnss documentation to YAML Date: Fri, 9 Sep 2022 00:19:23 +0530 Message-Id: <20220908184925.2714098-3-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: linux-arm-msm@vger.kernel.org This is a direct conversion of the existing txt documentation to YAML. It is in preparation for the addition of pronto-v3 to the docs. This patch doesn't document any of the existing subnodes/properties that are not documented in the existing txt file. That is done in a separate patch. Signed-off-by: Sireesh Kodali --- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 263 ++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml new file mode 100644 index 000000000000..bc18139fdb91 --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml @@ -0,0 +1,263 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/remoteproc/qcom,wcnss-pil.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm WCNSS Peripheral Image Loader + +maintainers: + - Bjorn Andersson + +description: + This document defines the binding for a component that loads and boots + firmware on the Qualcomm WCNSS core. + +properties: + compatible: + enum: + - qcom,riva-pil + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + + reg: + maxItems: 3 + description: + The base address and size of the CCU, DXE and PMU register blocks + + reg-names: + items: + - const: ccu + - const: dxe + - const: pmu + + interrupts: + minItems: 2 + maxItems: 5 + + interrupt-names: + minItems: 2 + items: + - const: wdog + - const: fatal + - const: ready + - const: handover + - const: stop-ack + + firmware-name: + $ref: /schemas/types.yaml#/definitions/string + description: + Relative firmware image path for the WCNSS core. Defaults to + "wcnss.mdt". + + vddpx-supply: + description: + PX regulator to be held on behalf of the booting of the WCNSS core + + vddmx-supply: + description: + MX regulator to be held on behalf of the booting of the WCNSS core. + + vddcx-supply: + description: + CX regulator to be held on behalf of the booting of the WCNSS core. + + power-domains: + maxItems: 2 + + power-domain-names: + items: + - const: cx + - const: mx + + qcom,smem-states: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + States used by the AP to signal the WCNSS core that it should shutdown + items: + - description: Stop the modem + + qcom,smem-state-names: + description: The names of the state bits used for SMP2P output + items: + - const: stop + + memory-region: + maxItems: 1 + description: reserved-memory for the WCNSS core + + smd-edge: + $ref: /schemas/remoteproc/qcom,smd-edge.yaml# + description: + Qualcomm Shared Memory subnode which represents communication edge, + channels and devices related to the ADSP. + + iris: + type: object + description: + The iris subnode of the WCNSS PIL is used to describe the attached RF module + and its resource dependencies. + + properties: + compatible: + enum: + - qcom,wcn3620 + - qcom,wcn3660 + - qcom,wcn3660b + - qcom,wcn3680 + + clocks: + minItems: 1 + items: + - description: XO clock + - description: RF clock + + clock-names: + minItems: 1 + items: + - const: xo + - const: rf + + vddxo-supply: + description: + Reference to the regulator to be held on behalf of the booting WCNSS + core + + vddrfa-supply: + description: + Reference to the regulator to be held on behalf of the booting WCNSS + core + + vddpa-supply: + description: + Reference to the regulator to be held on behalf of the booting WCNSS + core + + vdddig-supply: + description: + Reference to the regulator to be held on behalf of the booting WCNSS + core + + required: + - compatible + - clocks + - clock-names + - vddxo-supply + - vddrfa-supply + - vddpa-supply + - vdddig-supply + +required: + - compatible + - reg + - reg-names + - interrupts-extended + - interrupt-names + - iris + - vddpx-supply + - memory-region + - smd-edge + +additionalProperties: false + +allOf: + - if: + properties: + compatible: + contains: + const: qcom,riva-pil + then: + required: + - vddcx-supply + - vddmx-supply + + - if: + properties: + compatible: + contains: + enum: + - qcom,pronto-v1-pil + - qcom,pronto-v2-pil + then: + properties: + vddmx-supply: + deprecated: true + description: Deprecated for qcom,pronto-v1/2-pil + + vddcx-supply: + deprecated: true + description: Deprecated for qcom,pronto-v1/2-pil + + required: + - power-domains + - power-domain-names + +examples: + - | + #include + #include + #include + pronto@a21b000 { + compatible = "qcom,pronto-v2-pil"; + reg = <0x0a204000 0x2000>, <0x0a202000 0x1000>, <0x0a21b000 0x3000>; + reg-names = "ccu", "dxe", "pmu"; + + interrupts-extended = <&intc GIC_SPI 149 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack"; + + power-domains = <&rpmpd MSM8916_VDDCX>, <&rpmpd MSM8916_VDDMX>; + power-domain-names = "cx", "mx"; + + vddpx-supply = <&pm8916_l7>; + + qcom,smem-states = <&wcnss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + memory-region = <&wcnss_region>; + + pinctrl-names = "default"; + pinctrl-0 = <&wcnss_pin_a>; + + iris { + compatible = "qcom,wcn3620"; + + clocks = <&rpmcc RPM_SMD_RF_CLK2>; + clock-names = "xo"; + }; + + smd-edge { + interrupts = ; + + qcom,ipc = <&apcs 8 17>; + qcom,smd-edge = <6>; + qcom,remote-pid = <4>; + + label = "pronto"; + + wcnss { + compatible = "qcom,wcnss"; + qcom,smd-channels = "WCNSS_CTRL"; + + qcom,mmio = <&pronto>; + + bt { + compatible = "qcom,wcnss-bt"; + }; + + wifi { + compatible = "qcom,wcnss-wlan"; + + interrupts = , + ; + interrupt-names = "tx", "rx"; + + qcom,smem-states = <&apps_smsm 10>, <&apps_smsm 9>; + qcom,smem-state-names = "tx-enable", "tx-rings-empty"; + }; + }; + }; + }; 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: 12970526 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 5709BC6FA89 for ; Thu, 8 Sep 2022 18:51:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232449AbiIHSvN (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: linux-arm-msm@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 From patchwork Thu Sep 8 18:49:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sireesh Kodali X-Patchwork-Id: 12970527 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 A23C8C6FA89 for ; Thu, 8 Sep 2022 18:51:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232461AbiIHSvT (ORCPT ); Thu, 8 Sep 2022 14:51:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232441AbiIHSvR (ORCPT ); Thu, 8 Sep 2022 14:51:17 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7B4F56B9F; Thu, 8 Sep 2022 11:51:15 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id v4so17562381pgi.10; Thu, 08 Sep 2022 11:51:15 -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=//ahTCx3bhYNJd5yPM2nHuiCGNaCYjPsuZnXD1+4jjc=; b=MHMdLh0ved+WU+eOWTR4tEZ0DUZJkXuFx1lK8j881yoCK+dg6Hbvi4Y/NELQjjPfNg KP1LuZVcsiK4shcEdgTJ9/Ui81qG3QoAp20rYz2CnAnp4H4nMhH2BhbUye9zUa5hqtOn F2ch39sbPvqUO1sNJ3jklpOG3k+DcbM2IcnBrmwZGAImM9z4NyNUxwfFPkjcWQcz+bQ0 151l/353PhIZ1RZgmXrwBS7KYbyht5D5ogSnDKzUno98KiZHRXNbm35IGaljKaYSEMrM qZcIsaDl2x8ZxP3l9w4e6Af1U0Ji5i2DNjJQ+O4Zo0LAgw8cRTXYXTZpBNWp44OBpcwq Y2FQ== 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=//ahTCx3bhYNJd5yPM2nHuiCGNaCYjPsuZnXD1+4jjc=; b=a/WsmB8n5vzvFLrZoNQmvRZJBRYJ/uZSeGTtvQbDiyn3zN4o7FNcHvY6J3afHwqbbK bnr6kSeqg1eO9zAwXAUBSt9s4MeaqyBiXzGNp2T2jqAqaQ84AhsJPWYK1QnaTf9MT1+M /saMMQr13PVV96XwV1/2NuxdvHf2IObEwV6GVIccZQqU/2yZ9YAY1uyiaVzTEa+64F5E K8H9jbWXSHuVpy+sU+gPqB89L2bZJc7O9aXM8ZgKNwZDrCsj7xvja+WHsH9rKhl6IZnh DBNvDM6sKucdfAHM8v3ybIiTKyo2KyG7e0gfkUCbeSTgKIiF8NDbe4hitBEvirnyQbaX uezg== X-Gm-Message-State: ACgBeo2iZyVFwJ/12qrzHcS9bpjyX15CPGYwkKydnikLqBM8fH6EaSZ7 MeUDL6CpxPE2X61W0vYUV70eBQGq/t1qC+Tg X-Google-Smtp-Source: AA6agR528LJU3DYP6R8ldvcXBcBCtWMQW/nj6if1gifReTsaEeEhycVZH6QkWiQ3KrMUKYhYauWlOQ== X-Received: by 2002:a63:f40e:0:b0:434:e565:3304 with SMTP id g14-20020a63f40e000000b00434e5653304mr8670112pgi.111.1662663075020; Thu, 08 Sep 2022 11:51:15 -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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 11:51:13 -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 4/4] dt-bindings: remoteproc: qcom: wcnss: Add compatible for pronto v3 Date: Fri, 9 Sep 2022 00:19:25 +0530 Message-Id: <20220908184925.2714098-5-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: linux-arm-msm@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 --- .../bindings/remoteproc/qcom,wcnss-pil.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml index 5e4a97e9d330..becd9c611798 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 - enum: - qcom,pronto - items: @@ -200,6 +201,22 @@ allOf: - power-domains - power-domain-names + - if: + properties: + compatible: + contains: + enum: + - qcom,pronto-v3-pil + then: + properties: + vddpx-supply: false + vddmx-supply: false + vddcx-supply: false + + required: + - power-domains + - power-domain-names + examples: - | #include