From patchwork Fri Jun 4 20:57:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 454175 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp750846jae; Fri, 4 Jun 2021 13:57:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrIflMP702b66zrSTU6w7scUivyenHIPgOmF3k8vb9fCD8oSA+rOzVVJPGyG1FqlNzS6WK X-Received: by 2002:a17:906:4e81:: with SMTP id v1mr5959281eju.125.1622840255231; Fri, 04 Jun 2021 13:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622840255; cv=none; d=google.com; s=arc-20160816; b=RylMll5JoZBd2QzuRDwyofN8vPHrsSbdDsRtYTroB6Ix8wvXSP4RO22qsLj0TH/VT4 7tO4cH2zPFEZ++N7ZpO8PVhMLPPO6VaxZzrwON55//uDeoc/y89dkiq2GXd75+OgH+4/ rGgpySK33qogOGueODUjbVqZcLyl/OTii8oo3v0tQa9Mnpju8Gc3M3PAucIFSfBtKxF5 JLhLwlulY4xMQynHZAxRdN6vb2iEhnsjbvqMwY42jLRI0V3HISpBkfDoNOfeHCXIKjxz VZmuyqSqHrgxd+T8w7d7dn49ypd0j5yp/gFSawyRHAzF0Xy1s2LaU48VMkd98RVi4Smz 0rCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/bXd9PhPQbC8+13VpiVOvWMc2ldt6UpM15wLyLD1lqM=; b=OV9HMS6lWshLDcXx8uMexne1ck26mSYHgil19PWpmViaSjGDdVQmf6ij1F/z3Ic6AN dA/RnBlJ3ZWv9kC4OgR6//CqzFBTON9K9JG6em8/4N8OukDa0Qj/9S4wdqVRbnrttWU0 6C7ONGuTY1UoN+x8Swwu5pC4inE4cGDxgq8SB4VKyaFyCv6BtE4uBvCAX+yjwRdo+k4u yXh/8W1BiBK9zkBY9Fiyqw5FmIDhjdELGldo0HoDNT4GHEY8OhtgO2BddH5J91AntToN mPe6RpfdyEhkj7GMa1gaN6MxDPb26DEPz9PtioGz4rCD0D6RD/e6QwAfOZGbycGhQuy4 ML4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho33si4947029ejc.1.2021.06.04.13.57.34; Fri, 04 Jun 2021 13:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231462AbhFDU7L (ORCPT + 7 others); Fri, 4 Jun 2021 16:59:11 -0400 Received: from foss.arm.com ([217.140.110.172]:48060 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbhFDU7K (ORCPT ); Fri, 4 Jun 2021 16:59:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5C9D312FC; Fri, 4 Jun 2021 13:57:23 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 729263F719; Fri, 4 Jun 2021 13:57:22 -0700 (PDT) From: Sudeep Holla To: devicetree@vger.kernel.org Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, Rob Herring , Cristian Marussi , Viresh Kumar Subject: [PATCH v3 5/6] dt-bindings: mailbox : arm, mhu: Use examples with matching schema Date: Fri, 4 Jun 2021 21:57:09 +0100 Message-Id: <20210604205710.1944363-6-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210604205710.1944363-1-sudeep.holla@arm.com> References: <20210604205710.1944363-1-sudeep.holla@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Currently the example provided in arm,mhu schema complains as below: Documentation/devicetree/bindings/mailbox/arm,mhu.example.dt.yaml :0:0: /example-0/soc/scb@2e000000: failed to match any schema with compatible: ['fujitsu,mb86s70-scb-1.0'] Fix the same using examples based on Juno platform. The old SCPI firmware used MHU with standard 32-bit data transfer protocol while the new SCMI firmware uses MHU and expects to be used in doorbell mode. Update example with SCPI and SCMI firmware nodes to demonstrate both 32-bit data transfer and doorbell mode of MHU operations Cc: Rob Herring Cc: Viresh Kumar Signed-off-by: Sudeep Holla --- .../devicetree/bindings/mailbox/arm,mhu.yaml | 48 +++++++++++++++---- 1 file changed, 38 insertions(+), 10 deletions(-) -- 2.25.1 diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml index 496308d91a86..bd49c201477d 100644 --- a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml +++ b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml @@ -101,11 +101,19 @@ additionalProperties: false clocks = <&clock 0 2 1>; clock-names = "apb_pclk"; }; + }; - mhu_client_scb: scb@2e000000 { - compatible = "fujitsu,mb86s70-scb-1.0"; - reg = <0 0x2e000000 0 0x4000>; + firmware { + scpi { + compatible = "arm,scpi"; mboxes = <&mhuA 1>; /* HP-NonSecure */ + shmem = <&cpu_scp_hpri>; /* HP-NonSecure */ + + scpi_devpd: power-controller { + compatible = "arm,scpi-power-domains"; + num-domains = <2>; + #power-domain-cells = <1>; + }; }; }; @@ -125,16 +133,36 @@ additionalProperties: false clocks = <&clock 0 2 1>; clock-names = "apb_pclk"; }; + }; - scpi { - compatible = "arm,scpi"; - mboxes = <&mhuB 1 4>; /* HP-NonSecure, 5th doorbell */ - shmem = <&cpu_scp_hpri>; /* HP-NonSecure */ + firmware { + scmi { + compatible = "arm,scmi"; + mboxes = <&mhuB 0 0>, /* LP-NonSecure, 1st doorbell */ + <&mhuB 0 1>; /* LP-NonSecure, 2nd doorbell */ + mbox-names = "tx", "rx"; + shmem = <&cpu_scp_lpri0>, + <&cpu_scp_lpri1>; - scpi_devpd: power-controller { - compatible = "arm,scpi-power-domains"; - num-domains = <2>; + #address-cells = <1>; + #size-cells = <0>; + + scmi_devpd: protocol@11 { + reg = <0x11>; #power-domain-cells = <1>; }; + + scmi_dvfs: protocol@13 { + reg = <0x13>; + #clock-cells = <1>; + + mboxes = <&mhuB 1 2>, /* HP-NonSecure, 3rd doorbell */ + <&mhuB 1 3>; /* HP-NonSecure, 4th doorbell */ + mbox-names = "tx", "rx"; + shmem = <&cpu_scp_hpri0>, + <&cpu_scp_hpri1>; + }; }; }; + +...