Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp74519rdb; Sun, 17 Dec 2023 22:13:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHP4gtRItwmfY7NOryZgg7aiSEq7EA7Um6AmpTJC1LfsI9IpB0e4+BSO6fymMBw8aTCEXY X-Received: by 2002:a92:c565:0:b0:35d:a8cb:e6c5 with SMTP id b5-20020a92c565000000b0035da8cbe6c5mr17556199ilj.1.1702880015163; Sun, 17 Dec 2023 22:13:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702880015; cv=none; d=google.com; s=arc-20160816; b=Bd3+x5V5YkdmC6D1xoNyowUzZS9RI1NONUoNR8x6tbjaWl5X1Js1mErNa3C6y4DCFE 2B/d0azB5yP43FoHfyTm1VlkLLarjfWV2b2DJA+ppZ5xALhEQ2Qn4t4ogeyfNewiF53N 78vEPRJcN10ImwczrFflwrUzlqs77uHKQOuywY9c5bJzoecreOpSAoEy0SKksY9dup92 F+iZZU+x5n3O+0dL8ZJi5hrH7Uh/1GdiOBZXuh2x0V5LLXtXv+4AebrB0T9Ae2dV/CJq yCO9wEvVbI2nF539ItQXZf4ou3MbuPQ4W6cZ15jtMSYJlrkmXHtL+BFOLRPpP51xVO/a 7puQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=hgCDb37WQuElkf4E7aCkpGcQbI2P+Ssb4rvKaZ2LfV0=; fh=MQdqZ/DkCtPHjE1rfPqJmemhc68uZI0cQqPOGgcxlv0=; b=xXQ1QoWzXUPIYVUCj5B/YY3y2iPsaFfottyAahGvVILTd1zgR80uw8UQFCBiG9Z70G Vf2DoMvD4NGAjKY5vL8neajjXSRnLe7yLFWEi80ZO/aojXtlXeyt8pgowT7UcPre5h3q jk9DFGCKBUOnJsZBNrNZGJwBEDqmwCOdMd0/i0l6boRzKvDmp0iq3wN4744p7b2xI8kp 9TUHKGo+oZYIXsOzBrX1s0+xeHwZfSxyaWhYrtktiWL5MJbkxYpM4zEldTWTqpYsbKnh bQK9dH22wkL94SMkod4+8mzYvhUEBDJd9Hl4Ab7Wk8TfMQa3nkg/WnNZhJQsdXBNnyuP aTWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-3032-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3032-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 j8-20020a635948000000b005c5ff4675d8si17388119pgm.734.2023.12.17.22.13.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 22:13:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3032-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-3032-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3032-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 CC9E4281F38 for ; Mon, 18 Dec 2023 06:13:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63FF26FD0; Mon, 18 Dec 2023 06:13:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B405C7460; Mon, 18 Dec 2023 06:13:11 +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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 146F68016; Mon, 18 Dec 2023 14:13:04 +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; Mon, 18 Dec 2023 14:13:04 +0800 Received: from localhost.localdomain (202.188.176.82) by EXMBX066.cuchost.com (172.16.6.66) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 18 Dec 2023 14:13:00 +0800 From: Joshua Yeong To: , , , , , , CC: , Subject: [PATCH 2/3] dt-bindings: mailbox: starfive: Add StarFive Meu Mailbox Driver Date: Mon, 18 Dec 2023 14:12:00 +0800 Message-ID: <20231218061201.98136-3-joshua.yeong@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231218061201.98136-1-joshua.yeong@starfivetech.com> References: <20231218061201.98136-1-joshua.yeong@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX066.cuchost.com (172.16.6.66) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: quoted-printable 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-me= u.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 ha= s 62 + independent doorbells. Each MEU channel consist of 31 doorbells and co= nsist of + a pair of Tx/Rx links that shall communicates with remote processor. T= he + 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 regi= ster + upon handling the doorbell notification. The sender should poll the ST= AT + register before starting any transaction to ensure all on-going doorbe= lls are + processed. + +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 =3D <2>; + #size-cells =3D <2>; + + meu: mailbox@1f370000 { + compatible =3D "starfive,jh8100-meu"; + reg =3D <0x0 0x1f370000 0 0x8000>; + interrupts =3D <170>, /* Mailbox0 */ + <171>; /* Mailbox1 */ + #mbox-cells =3D <1>; + }; + }; + +... --=20 2.25.1