Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp299188rdh; Mon, 18 Dec 2023 21:53:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPLD9PrIbV1qtO0tLI3GrZdfTQyIqDXuVxMkQIjRWqxd17aJglR6sd0JlgHD9QmY00Lxu/ X-Received: by 2002:a05:6358:3393:b0:172:8991:8120 with SMTP id i19-20020a056358339300b0017289918120mr11682010rwd.60.1702965210535; Mon, 18 Dec 2023 21:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702965210; cv=none; d=google.com; s=arc-20160816; b=N4Us5lB9mXAvOpk9jqXSK+vFptPaXcAbsWgGE0ko9JzBudNY0Eqk24W2RKsFzN7XQB LRe5mtfbn4r+gKo66rFLp4KN9INJmz4Fh+LScmxi0MnZrUTjWZeIyO0BtB7bdDsAzWtW XZ9Kmd1iIXtWHNeqOPcEaeMbuO7dpje0FXCxtX2b/NUusEoBPo9R8q3i1++xdld61nvX +JGdrIasTCxcHb9X4HLXzy1y47SvJnNHLdKncI4HfhHev6H5yKWKgbT6OfcPaWqTS/0Q ERAXn/ZP1FKTWM6sNUk1z02sIfbImF/XhT1N0RYtyYvFLMxi5AGmj1tfWGxZv6XhlSbF 09Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=rmSyZ4sduvfoyQfQe7H5zGEUZauStbsqnu0SsBLIs7g=; fh=54X88S0f5q+6X+H5Og7XfQ1JdaJD3dd69HashEzzGoA=; b=HJuqq5fVlSNOqkDuf3FcDww5Gmj2MOM/Zsv1ichmjUlQZu+nZMx9+fRWVJlKAeD7RJ 4/QlF7fdyHLly8OAbSwTk1oyYkxvL4m72zBFzZq5TVmQMMUktLOChcuP6o9ecfvJs9nS Sx+RLXz9IqhomW/X7VjzJXErsLMgF+e+ibFsulGuv8MkvXXy97TxPBKWJVt6mAzIUL9G HV3+a18vTX25BUZfp8GJS6p6Cw5wGFEE+G+aBTKfg+Kp/aWLvwX+T+yBg5MBPjuEiH0/ NdrTWXCKXKXw92Q5xeVE+nKKE2QQ0eIHGbtCFHExyXrak+o0dR9fugxdISPs9HqPEWb5 TSOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4724-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4724-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p9-20020a17090a4f0900b0028b1b004548si616950pjh.112.2023.12.18.21.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 21:53:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4724-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-4724-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4724-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 30BE12850DD for ; Tue, 19 Dec 2023 05:53:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AF558826; Tue, 19 Dec 2023 05:53:12 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A8A6849C; Tue, 19 Dec 2023 05:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id B23E724DFED; Tue, 19 Dec 2023 13:53:01 +0800 (CST) Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 19 Dec 2023 13:53:01 +0800 Received: from [192.168.151.176] (172.16.6.8) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 19 Dec 2023 13:53:00 +0800 Message-ID: <60d091af-95d0-6f26-d535-4c3d8f38b5c1@starfivetech.com> Date: Tue, 19 Dec 2023 13:52:53 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 2/3] dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver To: Conor Dooley CC: , , , , , , , References: <20231218061201.98136-1-joshua.yeong@starfivetech.com> <20231218061201.98136-3-joshua.yeong@starfivetech.com> <20231218-pawing-unripe-e45ad62ff8c7@spud> Content-Language: en-US From: Joshua Yeong In-Reply-To: <20231218-pawing-unripe-e45ad62ff8c7@spud> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: EXCAS081.cuchost.com (172.16.6.41) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag On 18/12/2023 7:17 PM, Conor Dooley wrote: > On Mon, Dec 18, 2023 at 02:12:00PM +0800, Joshua Yeong wrote: >> The StarFive Meu Mailbox allow communication between AP and SCP cores >> through mailbox doorbell. >> >> Co-developed-by: Sia Jee Heng >> Signed-off-by: Sia Jee Heng >> Signed-off-by: Joshua Yeong >> Reviewed-by: Ley Foon Tan >> --- >> .../bindings/mailbox/starfive-meu.yaml | 66 +++++++++++++++++++ >> 1 file changed, 66 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mailbox/starfive-meu.yaml >> >> diff --git a/Documentation/devicetree/bindings/mailbox/starfive-meu.yaml b/Documentation/devicetree/bindings/mailbox/starfive-meu.yaml >> new file mode 100644 >> index 000000000000..dbc5cfdb90ff >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mailbox/starfive-meu.yaml >> @@ -0,0 +1,66 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/mailbox/starfive-meu.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: StarFive MEU Mailbox Controller >> + >> +maintainers: >> + - Jee Heng Sia >> + - Joshua Yeong >> + >> +description: | >> + StarFive's Message-Exchange-Unit (MEU) is a mailbox controller that has 62 >> + independent doorbells. Each MEU channel consist of 31 doorbells and consist of >> + a pair of Tx/Rx links that shall communicates with remote processor. The >> + sender set the bit in the SET register to indicate data readiness for the >> + receiver. An interrupt will be raised whenever receiving notification doorbell >> + from remote processor. The receiver will clear the bit in the CLR register >> + upon handling the doorbell notification. The sender should poll the STAT >> + register before starting any transaction to ensure all on-going doorbells are >> + processed. > What is/are the consumer(s) of this mailbox? > Is part of your RPMI implementation? > > Cheers, > Conor. Yes, it would be part of StarFive RPMI implementation. Regards, Joshua > >> + >> +properties: >> + compatible: >> + enum: >> + - starfive,jh8100-meu >> + >> + reg: >> + maxItems: 1 >> + >> + interrupts: >> + items: >> + - description: mailbox0 >> + - description: mailbox1 >> + >> + '#mbox-cells': >> + description: represents index of the mailbox/doorbell paired channel >> + channel 0 - 30 for mailbox0 doorbell >> + channel 31 - 61 for mailbox1 doorbell >> + const: 1 >> + >> +required: >> + - compatible >> + - reg >> + - interrupts >> + - '#mbox-cells' >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + soc { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + meu: mailbox@1f370000 { >> + compatible = "starfive,jh8100-meu"; >> + reg = <0x0 0x1f370000 0 0x8000>; >> + interrupts = <170>, /* Mailbox0 */ >> + <171>; /* Mailbox1 */ >> + #mbox-cells = <1>; >> + }; >> + }; >> + >> +... >> -- >> 2.25.1 >>