From patchwork Fri Sep 9 12:53:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971737 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 D2E3FC6FA82 for ; Fri, 9 Sep 2022 12:54:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbiIIMyN (ORCPT ); Fri, 9 Sep 2022 08:54:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiIIMyM (ORCPT ); Fri, 9 Sep 2022 08:54:12 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64707102D6B for ; Fri, 9 Sep 2022 05:54:10 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id f9so1784328lfr.3 for ; Fri, 09 Sep 2022 05:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=75CorfCsd+9LhpjM0urxQbB572kQdfftYJf3yRFVugE=; b=EjrWFSixA3swGXmE4+agZjoTyXw2COYEhdoVGhqoZfFh6dAQUCjjHXNcBWt0Zo6W1Y eT3q+OVG/hB8DK7yLi78ryyo6qtzAxB3tBb9vt8779ECIqYgwjbYWYT1VE568HPDw/1v WV7e3KpRn2oPhVd2G8TnG0TpDrT+KedlUVu2quyo6IDjszOifo215dAanza1ubv2Efqv wLMEHGyDpZqr/r5jUDdaDnKJqx0zg7AD3O7fcO2HgNcg9LpgD+pH14nEuQFnARcFAk4M GJ822onSUnJRmYRVXUJa/Gi6WmJd25bxdyFjqDgjJl5ZtnbnfNfwv+snRkhNTnvMGEfa iydw== 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=75CorfCsd+9LhpjM0urxQbB572kQdfftYJf3yRFVugE=; b=WjSj7KM9UR6sgYUXBJPWmZloC6Sd2qZ2fC9Pku+/zXaWTEbS0fS9OVe7YGXPY+ThHj cImujoQiUUKP5S+3AUQyjo/oKdcdo4qukdliCHEz8q6x2x7wZ0lcv24P7Hg7XWho3Zrc z8ppLMLqp/M1vYqzK84ieqNZYkZE9Lxe1TwUQP2LXfPxdoFNSXvDJIrT3Kek9IVbDnMF tXiblJIwUn8USEk3D5WsOfvBLmieHJm73WSOcYjm+8JETfsm7er7kECCqnexD3TFgJk2 r7xJVML0YXzxfsrbWA5WyXZ6mz0y2b5FxBC4gz325d8FKC6PeiEk0SGrkyqolU3w0ecg 2NaA== X-Gm-Message-State: ACgBeo27Zbf35mtJdYw1QkVlOB6RU467j6fk2xcqiKr9VUQPC0MI4M6d b5XNrTYhJVTI25KyxFD796IGJ8P54Ve73A== X-Google-Smtp-Source: AA6agR7jxXFuX+Pfxbc5tkTSedio5EIlH8nQEA9HXEU4XdW/wvX1DiiYZpDl7eO5TM4QL54V3hgNUw== X-Received: by 2002:a05:6512:36c1:b0:497:abef:cce5 with SMTP id e1-20020a05651236c100b00497abefcce5mr3703150lfs.472.1662728048697; Fri, 09 Sep 2022 05:54:08 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:08 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/7] dt-bindings: misc: qcom,fastrpc: correct qcom,nsessions name Date: Fri, 9 Sep 2022 14:53:57 +0200 Message-Id: <20220909125403.803158-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The property in old TXT bindings, in Linux driver and in DTS is qcom,nsessions. Fixes: ed18a9b140bc ("dt-bindings: misc: fastrpc convert bindings to yaml") Signed-off-by: Krzysztof Kozlowski --- Fixed commit in Rob's tree. --- Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml index f25924d33fa9..4b4072b6be1c 100644 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -70,7 +70,7 @@ patternProperties: reg: maxItems: 1 - qcom,nsession: + qcom,nsessions: $ref: /schemas/types.yaml#/definitions/uint32 default: 1 description: > From patchwork Fri Sep 9 12:53:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971738 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 995E0ECAAD3 for ; Fri, 9 Sep 2022 12:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231315AbiIIMyQ (ORCPT ); Fri, 9 Sep 2022 08:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiIIMyP (ORCPT ); Fri, 9 Sep 2022 08:54:15 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3507B102D70 for ; Fri, 9 Sep 2022 05:54:12 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id i26so2487086lfp.11 for ; Fri, 09 Sep 2022 05:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=+M7usIL1UBKOSaYCum2sbivjEepOZO9lCMezSOTId5o=; b=SRbPAS7sRrfEKyrj1lSOrt5AzOIDyyykqTBUNKTn5OEbd7+U80yl6snRLxfTonJk2X u4jdXcyrNr6qPcjgzP0G7MVvuKq5Qbt2aVml4e3nIVq1wXQsnkJmArV51I1MU80rrDx0 fFp5yuuEt8v1ZGSfbLHUOfmhBW1HcNk/Yc+0pjB2sYuXjwT5exvMgt3yLjUbrzM3Oaka 739trqEOAoDFxkZYSGcLQjEASLsC9bbzMXyjxN9wNYwePErZ4adMe/qBaUkR3i8oC/on 9hDczp8+AdnM+CqJi77CYDxnwxleiF9klM8/LV/saRDAZZxgZfoedNCqMLtqeIdFVyeu iVBA== 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=+M7usIL1UBKOSaYCum2sbivjEepOZO9lCMezSOTId5o=; b=J/3yAsU/UPJm5TeFudYCadpmMY3OV5b4HkazHWUpdV7VfTVGP901ejcjjBToqcm3aw 4Hz38ZSTPX39NzYXf/kEpq2kQcFzvVeLcnloLzZpMYJXa9b86wQQPIxcgqEJuzPv4Dpc zLOK9L2onrY0oqSkI6qxkeB9btkb+tFR4miff+HcwKAgQFYXmLmu3j39ZXSUqvnDcle6 i6cXxST9vBqZX+78dINFyPmlwTRwyejB9RLeULo/kLZyUKt6JqlteBwgyL646ysz3hOu A+fjIEkKzbYps3W53xt7L0dILXPX0N62QwyMlxkfBzYZnZ2UJ3IiqbbVYmo0qsdrwroF 0jqw== X-Gm-Message-State: ACgBeo3AawhNntWiEO+KhXOVgTCMbp4XZyf7jMblSM+lWnGCdIN1ZI/Q lYD8zmEP2OyfM2NuB28szkfMnQ== X-Google-Smtp-Source: AA6agR6Nwp8HMLeKt/flW5sgc5rPxmQY4GPbJfqaKFV8XM/OJEP4c3BWNPQ8e9sx2kXjRIcDx2CcyQ== X-Received: by 2002:a05:6512:b9d:b0:48b:2567:4bad with SMTP id b29-20020a0565120b9d00b0048b25674badmr4410678lfv.9.1662728050367; Fri, 09 Sep 2022 05:54:10 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:09 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/7] dt-bindings: misc: qcom,fastrpc: add compute iommus Date: Fri, 9 Sep 2022 14:53:58 +0200 Message-Id: <20220909125403.803158-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The children of FastRPC have either one or two IOMMUs in existing DTS (SM8150, SM8450 and others). Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml index 4b4072b6be1c..809de43afe35 100644 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -70,6 +70,10 @@ patternProperties: reg: maxItems: 1 + iommus: + minItems: 1 + maxItems: 2 + qcom,nsessions: $ref: /schemas/types.yaml#/definitions/uint32 default: 1 From patchwork Fri Sep 9 12:53:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971739 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 00F1CC6FA86 for ; Fri, 9 Sep 2022 12:54:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231468AbiIIMyS (ORCPT ); Fri, 9 Sep 2022 08:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbiIIMyP (ORCPT ); Fri, 9 Sep 2022 08:54:15 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 894BB102D79 for ; Fri, 9 Sep 2022 05:54:13 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id f11so2507984lfa.6 for ; Fri, 09 Sep 2022 05:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ZCn0GXiANcQyKgY9nJuVQIOooC9FiUvx8arkQzAhTjA=; b=NJwi1XURZwjxJWSP/FP1Ny/k149KULPjvRUsBNwUg9CDptARDut2sw1/XupZf53bh/ qZGKlOchtHZlbu3GECtIl/IgWXAQfgYoFM1xa8LMKhXIkJpsm6KSyFK42DhTv9FrZt8m whQnrXrBFrafnYpxWe7t3Wd2g3pIBrenhQVF1YLXgagYsqq6PBTBgAySbL69q2oJxG/g g4uuY6MFqj85MwQ0/jlq+xhfh4ULMOXCzuiKNaAKkr+Jr76vImEa6NE6GfIz8dmDHE3Y tzyb0wa+jO+LqVmxqAPaHfUAtE2x6ZDgYSKOSJKpBuY4wnjUGkCWzIC2st+V1ieypElN t2lw== 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=ZCn0GXiANcQyKgY9nJuVQIOooC9FiUvx8arkQzAhTjA=; b=DIXDYJYBJ5Jk5D7Syggak1ANraP9mewkj8/JW7285WkrPGIszixSFpJfSUeKKlXEzA uzeRZpVjQb2TrvC9AcMMF5NVx2PkMyGpzF5E28/ViCUOxnFis8eastnNogZNnPZ/+ETQ tZ5UH8/UCu985RxYKciEfGDsNJzoJJgCMfa5r7/P7p7sx512lmq5U6q7LDRkx0IjQY+s Y825LozMKH9WXvkg2y4J0U2cXqxnBHbBuQ1jmLCK6Ng78ynEJpjh56YnWywtRmJ8uSBX UnOWYqwzkqI3CzZqvKCamK8HRfwCCEEIhRc/L9v+4U8G7LG6i6GQmPiRGrtCVW8sdiyX Ko6g== X-Gm-Message-State: ACgBeo21ZfHXjj3LtLzMOom+LJbOVyJV98wnLLPEm/KIJRg5oz/mVMSe R1/oxiIOwREIy3Q06+Z2DhGqKg== X-Google-Smtp-Source: AA6agR4f50I/Or/c9b7nX9faAawZV7glusqu6EbfTDJbrxAJfZ52ZAAYt4fyjWipoeuBt7AvYCZSUg== X-Received: by 2002:ac2:4e10:0:b0:498:f132:d5c1 with SMTP id e16-20020ac24e10000000b00498f132d5c1mr2502595lfr.648.1662728051901; Fri, 09 Sep 2022 05:54:11 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:11 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/7] dt-bindings: misc: qcom,fastrpc: restrict channel names Date: Fri, 9 Sep 2022 14:53:59 +0200 Message-Id: <20220909125403.803158-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The Qualcomm FastRPC is expected to in GLINK or SMD edge node and its channel name is always the same. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml index 809de43afe35..1ed0ce0f3cbe 100644 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -32,7 +32,8 @@ properties: A list of channels tied to this function, used for matching the function to a set of virtual channels. $ref: "/schemas/types.yaml#/definitions/string-array" - maxItems: 1 + items: + - const: fastrpcglink-apps-dsp qcom,non-secure-domain: description: @@ -43,7 +44,8 @@ properties: description: Channel name used for the RPM communication $ref: "/schemas/types.yaml#/definitions/string-array" - maxItems: 1 + items: + - const: fastrpcsmd-apps-dsp qcom,vmids: description: From patchwork Fri Sep 9 12:54:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971740 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 DAA4BC6FA8E for ; Fri, 9 Sep 2022 12:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231621AbiIIMyV (ORCPT ); Fri, 9 Sep 2022 08:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbiIIMyR (ORCPT ); Fri, 9 Sep 2022 08:54:17 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E07E10BA43 for ; Fri, 9 Sep 2022 05:54:15 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id w8so2484313lft.12 for ; Fri, 09 Sep 2022 05:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=JVmh6rRJJh9fFbvfhhGsQ4CvxM0Mj/AolpCm/GBTJoc=; b=wOfgpHvifdpE4+bzN3l34seJRMNWvZhRIbBGmUwvWaUvhWKCASEoKuwIOG6o+8ZZoh 77phVf/VfC7+kvLNg3XnaV5fIbQ5U4AVFxYyTwbFnMQPh6fDYxHeFcq3Ne6Z7uLWPS4g mMnqmZGmG4qZIbja65BVyblXatYAxhupEkqUxchXnznlzMrAnftCz4eDFPeiXOJvVHi0 zWyYnkq5N05hDQ4k2N5ca9h6FX+8KuXROzzMzF5q3AV2tDgew76buO+dGFI14OG7g9p+ kwXk0eMiDsrNDZVFGJ5/X/Pyl4XPjlyXEcIAG0QM+T5O/xrENHcQjmOD/R7vf9ooGl0l RWLw== 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=JVmh6rRJJh9fFbvfhhGsQ4CvxM0Mj/AolpCm/GBTJoc=; b=4XNwpJnhGLOn+2jXNIs1x8mznqXJp/NLqpiexoAeYAHLGjFyq3YHmo655kXXKEW0mV qnwvul5og5Uvhlx9u6zNEcv8pFTdvMeFFbyrhuJnxZioPVDqNkMQKswV8QJZgkNUoEMy xZKz7s/8Ih/B6NACRJMYGRCaiv+OVXllHn/GZEx1cmm4/6UXnO42hcc3E/OJRkxETs0b AHaktNbX9DyUhsiZ4bzQxBWsq6d2bOrCLR8SK+2A3qcpkv01neFhHqZ76QKhu2yrCFsd htqaosdF3VmgJGZTBZrdeiujDvaY+MA0w380V0nFyuj07b7b+e4DjrhZRPbh24nYnOFK osAQ== X-Gm-Message-State: ACgBeo2gG2n4OMKYmmbssS6/3FvqvH2iVXkkvuynQchf+eHonXEOQMb8 wzCP/0dQST9UQVYS7jmtnBrmzg== X-Google-Smtp-Source: AA6agR4JumIvJUyDuU0nv/yxtZRsqeAU42EMRkWqEi4H2x2NXWWNqJp78Wbm5zFZ7l/I8O3YC+XiAQ== X-Received: by 2002:a05:6512:3e4:b0:497:a649:6627 with SMTP id n4-20020a05651203e400b00497a6496627mr4780121lfq.326.1662728053556; Fri, 09 Sep 2022 05:54:13 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:12 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/7] dt-bindings: misc: qcom,fastrpc: correct example for GLINK edge Date: Fri, 9 Sep 2022 14:54:00 +0200 Message-Id: <20220909125403.803158-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org The parent of FastRPC node is GLINK edge, so the properties should be matching GLINK, not SMD. Correct the example and extend it based on SM8350. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/misc/qcom,fastrpc.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml index 1ed0ce0f3cbe..439b3f4a801b 100644 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -112,19 +112,28 @@ examples: fastrpc { compatible = "qcom,fastrpc"; - label = "adsp"; - qcom,smd-channels = "fastrpcsmd-apps-dsp"; + qcom,glink-channels = "fastrpcglink-apps-dsp"; + label = "sdsp"; + qcom,non-secure-domain; #address-cells = <1>; #size-cells = <0>; compute-cb@1 { compatible = "qcom,fastrpc-compute-cb"; reg = <1>; + iommus = <&apps_smmu 0x0541 0x0>; }; compute-cb@2 { compatible = "qcom,fastrpc-compute-cb"; reg = <2>; + iommus = <&apps_smmu 0x0542 0x0>; + }; + + compute-cb@3 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <3>; + iommus = <&apps_smmu 0x0543 0x0>; }; }; }; From patchwork Fri Sep 9 12:54:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971741 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 ED0D9ECAAA1 for ; Fri, 9 Sep 2022 12:54:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbiIIMyg (ORCPT ); Fri, 9 Sep 2022 08:54:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbiIIMyT (ORCPT ); Fri, 9 Sep 2022 08:54:19 -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 1AC43112B16 for ; Fri, 9 Sep 2022 05:54:16 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id bq23so2510774lfb.7 for ; Fri, 09 Sep 2022 05:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=9yt0jEq+pc8s2OJEJHVFLa3aiH3pkCOI+VxSLX+sCE8=; b=SkxCE6R/deryI7nWW/c6D64WutFNZy3A6sOqad+2MqeXJkbqmO2rTKJEmtDOnJBdi6 Nb5a2ifXvg8fekXjeG0OoLsdUrysU8VywDjeviaLsl4NO+ufy0yFp8LVpKGPf9w90Vgq 0dl8uIbtmKmzDYzQsNaJJLeZc/RvN5ikBfo8ff69MfHmd7shjQGEHRj6Lu71nIqkPHQp WJ//gWZcDiDIcj7TQT/7bmAN0t+eu3BV8jWESVWCMfaPggUHDyv1xxIrAe6OVf0sRfh3 sgV9j58kfFwFr8Rjhah/a4vsIQkC0doBRdP4CHF/sjxx7GVa9rgsLnyZ4lCKI5Wu3zJl uytQ== 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=9yt0jEq+pc8s2OJEJHVFLa3aiH3pkCOI+VxSLX+sCE8=; b=bR3SC6aKLh+vagUw0rL7v1WPuWrzM/363gvUtPI5wmJBq4J5BWEDM5Sr9u/zgB0/43 Cl9IpzINomxFRYezCYY5m3stuO0OkZHzy9NOOT01Khx1ELFAefhOWGrigPgD8HozaIYf U9Symd9x92Y+31RAA2Z5MWhbVFBeDTja8TUqj7LKExHBNB7amzbOOQhLw5RPNPcFFTrs iVN5bgzMf4pQ3SbK/3dMQg3A7C9oGrpKKmnxGaIGW7S8jPtpGYzNJAxsrezDJJWNA3N0 54KMVOOCbkWuvCeHpPSTtl8miYMhzV6sCyLifRvpeGlQN8sHgFf0mA3ZmE+6BaGzEHh4 8KJQ== X-Gm-Message-State: ACgBeo0qhBRoK15pLGtIJoQVm3GjVx4l+Rai8tGZgyyiHCioUS3v4pR0 GqihNa9I42MYFHpTJzmyFCNKMg== X-Google-Smtp-Source: AA6agR5+2Qty0DSA8nwCBoIUTICc1XG28SSb65tGJl3BU+MeDv/C4NLiBhCW0htFG+nM/Q4g/auEcw== X-Received: by 2002:a05:6512:3d07:b0:498:f201:5679 with SMTP id d7-20020a0565123d0700b00498f2015679mr2444850lfv.161.1662728055229; Fri, 09 Sep 2022 05:54:15 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:14 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/7] dt-bindings: remoteproc: qcom,glink-edge: require channels in children Date: Fri, 9 Sep 2022 14:54:01 +0200 Message-Id: <20220909125403.803158-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org GLINK edge contains subnodes representing devices related to the remote processor. Each of such device (e.g. APR or FastRPC) must have a "qcom,glink-channels" property. However the APR or FastRPC device can be also part of other communication - SMD - thus their schema does not require "qcom,glink-channels". To make the GLINK edge bindings strict, require "qcom,glink-channels" for its children. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/remoteproc/qcom,glink-edge.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml index 8953678da83e..25c27464ef25 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,glink-edge.yaml @@ -19,11 +19,15 @@ properties: apr: $ref: /schemas/soc/qcom/qcom,apr.yaml# + required: + - qcom,glink-channels description: Qualcomm APR/GPR (Asynchronous/Generic Packet Router) fastrpc: $ref: /schemas/misc/qcom,fastrpc.yaml# + required: + - qcom,glink-channels description: Qualcomm FastRPC From patchwork Fri Sep 9 12:54:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971742 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 96EBFECAAD3 for ; Fri, 9 Sep 2022 12:54:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231812AbiIIMyh (ORCPT ); Fri, 9 Sep 2022 08:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbiIIMyV (ORCPT ); Fri, 9 Sep 2022 08:54:21 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBD8116B66 for ; Fri, 9 Sep 2022 05:54:17 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id f9so1784972lfr.3 for ; Fri, 09 Sep 2022 05:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=SK7F419KsULn20Qc23O2UdMj6Cm6vc/xEry45+k1nrI=; b=VAe9WzpSTg5gV/MBrdHd/oDjQx5rn3PmDUoCDgcBW9JwHkEnHoRdG5JalopfZ9Hcmv daQOg/tYbgSjhHg0xih7vFHVjbsjchcq4WXayTlkuiAiH81voDR8pAaed4qmqxwaBdQV 3Eygs8BNIgpVJHrJPz3+E34zmi6MtYyumSoQkIDk3HYJKwjQNR2VVQVRjP3k7d9PHa9O /5CMk5rbc/qxI4GSO5knjd0I5rzS+AHYw0MK9r9vQjRehwB+sCwToZu3nPLTDJDLAddo Rk6mScvg/x80g1Qvlsz+RakqqA65gq1ehOZ0pmo7HuPP3YXV6zm7jOT7z+am6akDlABQ 1C4g== 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=SK7F419KsULn20Qc23O2UdMj6Cm6vc/xEry45+k1nrI=; b=ngrUyKumKObCF6+r1dyhDVOMRScmAVpV0NH6qYvoJLopHuHeUd4WbHT3GMKYUgfZyC sX5yQjj1RrKsFgGf0qUUb7dpIzrSTl2sJjl13AFAPlfT43cmzwrB3d3UedKyhsZMJdyU XpkzmDqLkgwAXX3wfrhWLqNvXQs8U8J+7MuoZYaWyzNC4aVlwpuIeDJilBd06KFfi653 dA5yhQTHUpNu6qlB9HExOZAnZefQJFndryWx96AGKTOt8GzHR+VirXMZNrfe1T4xt5jR VN3mPl+xUXWGXlnVg9C3XLoTVbAjRJBmo55U9vaNhtZnkwyIWdXQY7bRYMnNfwOWGg7S m60A== X-Gm-Message-State: ACgBeo21KVFBDUdgTXljEEC9E7+8Qh0lSBc6/JkxcM93jyo1LbegQngl oogGBwhqbvvbqZQRSWTT5YiF7w== X-Google-Smtp-Source: AA6agR7w2LDocmgp+aIUOuWEMqoBIZQta0dJGfd0R0ve/cQMRRRIkg1RFEIHCs8EzjBb6Gdws9Vb1w== X-Received: by 2002:ac2:5462:0:b0:48b:2a7b:3c15 with SMTP id e2-20020ac25462000000b0048b2a7b3c15mr4525869lfn.489.1662728057198; Fri, 09 Sep 2022 05:54:17 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:16 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/7] dt-bindings: soc: qcom: smd: restrict child name to smd-edge Date: Fri, 9 Sep 2022 14:54:02 +0200 Message-Id: <20220909125403.803158-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org Child node of SMD must be either smd-edge or rpm, so the pattern can be narrowed. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml index 9b3efe97f47c..0e548234611e 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml @@ -20,7 +20,7 @@ properties: const: qcom,smd patternProperties: - "^.*-edge|rpm$": + "^smd-edge|rpm$": $ref: /schemas/remoteproc/qcom,smd-edge.yaml# description: Each subnode of the SMD node represents a remote subsystem or a remote From patchwork Fri Sep 9 12:54:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12971743 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 D4F39C6FA8B for ; Fri, 9 Sep 2022 12:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbiIIMyi (ORCPT ); Fri, 9 Sep 2022 08:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231172AbiIIMyd (ORCPT ); Fri, 9 Sep 2022 08:54:33 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF9312111A for ; Fri, 9 Sep 2022 05:54:19 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id f14so1545789lfg.5 for ; Fri, 09 Sep 2022 05:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=wCnjqrj2GGGlSBoOXRHfEq6CD5MpxnVT3q6Lv2UyXSE=; b=sD/KxWUkLvt9xM/WSj1l2STBGBNhn/w/JaR6SXt3MIcagvOaTQyfUkBNLJFkhzL1Nu zKCacYSWtaOQ2Y/7NjMbLACp9forkgYkEwfQGgg/usVeMCE0chFl2MMRQJhKCcXE8NSe R+FkvoHB1p4u7dgS4968T0YBj0goL9zDGLaQBiYtt9sOZQmHPpYdJq3kYvM6QcvpWAFf QYDLyc+D4X1zqC4HJbLclZzVvq+zO7yUhczMsVsRfzd9K1gCHABVh7CJelyznmCJVxdz HRMfMjeUrNFzpFTIboevWM3YE7eNbPY4KTvA6xfdlxENiBRpxo4mPQo2nOIE5qU7G+VP 7WUA== 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=wCnjqrj2GGGlSBoOXRHfEq6CD5MpxnVT3q6Lv2UyXSE=; b=5h34nV1UF2KXC2GeyHNjwKkiH5aZkvamqED7q32TY86VQ1MFCxJTF0rq6s0kPvi96G S0py8VVfw7XFtD1wdaFH8LWpb0/wIJS9oyzgsCSZ+9XhqfZuxOIXFVGGUZlj7Vp8kfIi MdTazfG9zopPfzvVEhaOZSeI5qjsp1K9bK0jE9bTaztjCriec+vPrwFCqYpP85AUMlbr +XwH3xSFyxskkmNioX7xor4uViqxhIvft9GNK6amwpCdE0FMMZY/qa2awwjLAlsFBRWS G3gyDT/NNQEmO/cXASE2RhayIwRMg1rBNQx9IXKLn/+m+Pc5cutAFyuPy6VNCBNiWTAv I9tg== X-Gm-Message-State: ACgBeo3BnfavKRWrJA1vWaT56qBRfcuYZ770YeggjkZYnCi7YC4eCewe fBhUgUMGfexAaqY5lhVFGTQVKw== X-Google-Smtp-Source: AA6agR5eO8XIwHgdRjjsK/q9mJ1Cv4/XqjJeCpXM8Cxg76ENkHUBMXuRcQGNpPd5DHZ5jQc6LqG8mQ== X-Received: by 2002:a19:380e:0:b0:497:7968:e789 with SMTP id f14-20020a19380e000000b004977968e789mr4167167lfa.242.1662728058999; Fri, 09 Sep 2022 05:54:18 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g10-20020a2eb0ca000000b00263630ab29dsm64750ljl.118.2022.09.09.05.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Sep 2022 05:54:18 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Mathieu Poirier , David Heidelberg , Abel Vesa , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 7/7] dt-bindings: remoteproc: qcom,smd-edge: define children Date: Fri, 9 Sep 2022 14:54:03 +0200 Message-Id: <20220909125403.803158-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> References: <20220909125403.803158-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org SMD edge contains subnodes representing devices related to the remote processor. With limietd number of remote processors, there is a limited set of such devices. List all of them in smd-edge bindings so schema can strictly check for subnodes. Additional benefit is requirement of "qcom,smd-channels" for such subnodes, because their schema cannot enforce it (few devices like APR or FastRPC can be part of either SMD or GLINK edge). Signed-off-by: Krzysztof Kozlowski --- .../bindings/remoteproc/qcom,smd-edge.yaml | 34 ++++++++++++++++++- .../bindings/soc/qcom/qcom,smd.yaml | 27 +-------------- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,smd-edge.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,smd-edge.yaml index 06eebf791e32..7ec8a6b6682c 100644 --- a/Documentation/devicetree/bindings/remoteproc/qcom,smd-edge.yaml +++ b/Documentation/devicetree/bindings/remoteproc/qcom,smd-edge.yaml @@ -13,12 +13,30 @@ description: Qualcomm SMD subnode represents a remote subsystem or a remote processor of some sort - or in SMD language an "edge". The name of the edges are not important. + + In turn, subnodes of the "edges" represent devices tied to SMD channels on + that "edge". The names of the devices are not important. The properties of + these nodes are defined by the individual bindings for the SMD devices. See also Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml properties: $nodename: const: "smd-edge" + apr: + $ref: /schemas/soc/qcom/qcom,apr.yaml# + required: + - qcom,smd-channels + description: + Qualcomm APR/GPR (Asynchronous/Generic Packet Router) + + fastrpc: + $ref: /schemas/misc/qcom,fastrpc.yaml# + required: + - qcom,smd-channels + description: + Qualcomm FastRPC + interrupts: maxItems: 1 @@ -56,6 +74,20 @@ properties: The identifier for the remote processor as known by the rest of the system. + rpm-requests: + $ref: /schemas/soc/qcom/qcom,smd-rpm.yaml# + required: + - qcom,smd-channels + description: + Qualcomm Resource Power Manager (RPM) over SMD. + + wcnss: + $ref: /schemas/soc/qcom/qcom,wcnss.yaml + required: + - qcom,smd-channels + description: + Qualcomm WCNSS for Bluetooth, WiFi and FM radio. + required: - interrupts - qcom,smd-edge @@ -66,7 +98,7 @@ oneOf: - required: - qcom,ipc -additionalProperties: true +additionalProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml index 0e548234611e..063e595c12f7 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd.yaml @@ -22,37 +22,12 @@ properties: patternProperties: "^smd-edge|rpm$": $ref: /schemas/remoteproc/qcom,smd-edge.yaml# + unevaluatedProperties: false description: Each subnode of the SMD node represents a remote subsystem or a remote processor of some sort - or in SMD language an "edge". The name of the edges are not important. - properties: - rpm-requests: - type: object - description: - In turn, subnodes of the "edges" represent devices tied to SMD - channels on that "edge". The names of the devices are not - important. The properties of these nodes are defined by the - individual bindings for the SMD devices. - - properties: - qcom,smd-channels: - $ref: /schemas/types.yaml#/definitions/string-array - minItems: 1 - maxItems: 32 - description: - A list of channels tied to this device, used for matching the - device to channels. - - required: - - compatible - - qcom,smd-channels - - additionalProperties: true - - unevaluatedProperties: false - required: - compatible