Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7192207rwp; Tue, 18 Jul 2023 11:22:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0q9zIPUXDDb52ee/s5r5N1XkFfcVHCcJTo7NNxh31UQ0o0Gx+OehjiKST+3m6dTTHCtE2 X-Received: by 2002:a05:6358:93a7:b0:134:e503:dfb3 with SMTP id h39-20020a05635893a700b00134e503dfb3mr348781rwb.4.1689704524149; Tue, 18 Jul 2023 11:22:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689704524; cv=none; d=google.com; s=arc-20160816; b=lXsG8Zu5xAsPDfuf7OEx8DI8PZbntNaYE8pOBsCh/UMT04FRDxtME6yuRaPqgpvXoi 4w6PGgujYn+ZzTTHg6KNA7u6eyEvl+PZLgfEPBBsr3Xp2o2Bc1rLsvvbYuevGBgjVz58 eC7/IS/euwKnU26JSjlG1ai/1RIOjjGvJF5kGiRG+owURKWY8QMWhHmNomTERrLracaF 8Dmj4GTUItB4GjwZA+izWx/+e6Pn1gGf1+s7LPd6Lglhr4hfiehQLA4cF8hpMzuaZgQ0 LZe01qf8QXWiiEITNUjax/CKDUQMXd1gyq0sCUYU4hCcaXqzdrTQw8DQ21iFyQhRlbQB wa8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=G6/8N7r9NBloAE8WS8tLLSB/dGe92+uxsdAAiPO77KA=; fh=TULWyCF5Shn/VIlQb0eGRCImjMs1ZqpmrCsPq/qxVrE=; b=D9ReH3a1nTI/oBOSXgbxZexm089GyT/wK0RYKorPtHAQlwQ/ZiUHjqKXZZdmc2w5ak UuBP1xerPnjh6dgMao98h66FbOlV7MiTT25Opf6jhC3jju5TPV/XneXdFoLL0y0qx5nW /QzzHpaZnpoFZtrpOGn5DB+D3dYYNtHNunpuUVVIGr9ZhIUSduItwAmbEjq3ujzQAECm KrMUewysVjNATWOQ0IyJgQnWYvBv1/cwR9YdMymqIpq8brptN5d/GP8rDE6T1muQiuZu KcGigxnJmOJh0QXUdsHb3KaOGyZTL/fXDh+MCoYFkvfpDmKHga6Ki09lLiFUrAh70+k8 PK5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oSI5k08o; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h184-20020a6383c1000000b0051394ccd19csi1920744pge.55.2023.07.18.11.21.51; Tue, 18 Jul 2023 11:22:04 -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=oSI5k08o; 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 S231546AbjGRSMR (ORCPT + 99 others); Tue, 18 Jul 2023 14:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231375AbjGRSMO (ORCPT ); Tue, 18 Jul 2023 14:12:14 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AC58DD for ; Tue, 18 Jul 2023 11:12:11 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-991c786369cso778515566b.1 for ; Tue, 18 Jul 2023 11:12:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689703929; x=1692295929; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G6/8N7r9NBloAE8WS8tLLSB/dGe92+uxsdAAiPO77KA=; b=oSI5k08opg8zIeSQxaPflm1lUXIVvEVqYOhxD5tQkyFBV9gAnPEVEtqCR7dFYvDnic FKVy0HWkhEdYW+u5H1UtrjyeUd8iz6aKE9BaZ4L+cACl/hpOFCPK+8sPFWdVpJBLV+CL 59rLvRBit9BkPeXWDCpWH7hbAJnmN6A1RJBEU5IHrbcZAH2KFldaHd6v7Zh3FknlJRzF eZeruZcmHuJoH0lrGlXVGIqtGXXbsi+mhxw+r11eMPH2QPMay8CHMTq6VpP1Jp3upmoi Qao4AkWOxolfnm2BsSJ9jivCxGsCEjwHObpF4aoxWctu44LdrK7ZYJw8wqQoy2rH7x33 R3Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689703929; x=1692295929; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G6/8N7r9NBloAE8WS8tLLSB/dGe92+uxsdAAiPO77KA=; b=V4NaNpiewUuOFe07435E/BUaDvOt6MhrYMA4SwcdL8t6UPV1RiDe5InphMmhy43byW EP759zE7YpBS8NLy5TzklVsXOta1jKnpqTmx2Xd1cZtNnA3GtEPpLQLGxne5gGTyhC2k MIRvPw/90cjTBthl/ShysXp9UBG+1B594p4KLeo7rcK3zmKA71QAx/A0Yr6RHfrGmW5a 0UO54p+nFesb0hHml3Iw97ASrntwyUREnLiuySIPngrw5322BDSLxpxlv/PaobZBcOq7 nvk5RqWXWfqY7P9+BYANs5O/tbFW9vWQ0+FDqp+iYVg2GiP6SBTl/DyZ5yDcpIbtU06u SmWA== X-Gm-Message-State: ABy/qLbx2K//jHtFrYacofyZqkPXrVCgauMv2ZpaHG/SisQFpoKqM/UE CDznRunTvm6iQbloWS+nogEbVw== X-Received: by 2002:a17:907:a48:b0:98a:29ca:c58e with SMTP id be8-20020a1709070a4800b0098a29cac58emr599294ejc.27.1689703929650; Tue, 18 Jul 2023 11:12:09 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id sb6-20020a170906edc600b009888aa1da11sm1272105ejb.188.2023.07.18.11.12.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Jul 2023 11:12:09 -0700 (PDT) Message-ID: Date: Tue, 18 Jul 2023 20:12:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] dt-bindings: arm: Add qcom specific hvc transport for SCMI Content-Language: en-US To: Nikunj Kela , sudeep.holla@arm.com Cc: cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20230718160833.36397-2-quic_nkela@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20230718160833.36397-2-quic_nkela@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org On 18/07/2023 18:08, Nikunj Kela wrote: > Introduce compatible "qcom,scmi-hvc-shmem" for SCMI > transport channel for Qualcomm virtual platforms. > The compatible mandates a shared memory channel. > > Signed-off-by: Nikunj Kela > --- > .../bindings/firmware/arm,scmi.yaml | 69 +++++++++++++++++++ > 1 file changed, 69 insertions(+) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index b138f3d23df8..605b1e997a85 100644 > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > @@ -45,6 +45,9 @@ properties: > - description: SCMI compliant firmware with OP-TEE transport > items: > - const: linaro,scmi-optee > + - description: SCMI compliant firmware with Qualcomm hvc/shmem transport > + items: > + - const: qcom,scmi-hvc-shmem > > interrupts: > description: > @@ -321,6 +324,16 @@ else: > required: > - linaro,optee-channel-id > > + else: > + if: > + properties: > + compatible: > + contains: > + const: qcom,scmi-hvc-shmem > + then: > + required: > + - shmem Unfortunately this pattern if-else-if-else-if-else does not scale well. Please convert all entries first to allOf:if:then,if:then,if:then (in new patch), and then add new if:then: > + > examples: > - | > firmware { > @@ -444,6 +457,62 @@ examples: > }; > }; > > + - | > + firmware { > + scmi_dpu { No underscores in node names. Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "qcom,scmi-hvc-shmem"; > + shmem = <&shmem_dpu>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + scmi_pd_dpu: protocol@11 { > + reg = <0x11>; > + #power-domain-cells = <1>; > + }; > + }; > + Add only one example, but then only if it differs significantly. I see no differences - except compatible - so maybe no point of examples. > + scmi_gpu { > + compatible = "qcom,scmi-hvc-shmem"; > + shmem = <&shmem_gpu>; This example for sure is not needed - you duplicate above. > + > + interrupts = ; > + interrupt-names = "a2p"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + scmi_pd_gpu: protocol@11 { > + reg = <0x11>; > + #power-domain-cells = <1>; > + }; > + }; > + }; > + > + soc { > + #address-cells = <1>; > + #size-cells = <1>; > + > + sram@95c00000 { > + compatible = "mmio-sram"; > + reg = <0x95c00000 0x10000>; > + > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + shmem_dpu: scmi-sram-dpu@95c00000 { > + compatible = "arm,scmi-shmem"; > + reg = <0x95c00000 0x3f0>; > + }; How does these differ from existing example? Best regards, Krzysztof