From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C11733C8725 for ; Tue, 17 Mar 2026 13:06:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773752815; cv=none; b=OEEJjue6Ixs//P1QkdVaeO52bM5PZXHfbEg57clcu9uEAYFBSkaI+Z+gJlRlhqmLYZr+5AcgknKzTkmiOCO497jj4TEgsKUpmWDlw3/EmORrP7on54Rgycbr7APsmedRWWh9jZFwHMQs5LtGe8wGcc4OVFckafWVJ60Vujuck9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773752815; c=relaxed/simple; bh=eywiuJMaarmR4gXa9r17Jp3anb72uz5fUEzoM+TcjMY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b4a14vfBHd5ZMj06G9OWheZDf6jgZ50Fdui0DY1mzC01/mFNVJNjUjafLIQxsZMFiAdBNFlSXOFwK915ZGWWfLXL3WVgSW5+AjctALJq3XZmUXXccXDfvP6isBrzBJoBOOeQtJovZ1wtrlYfrfDQS3SkRKecinJpLYEK00uZ/CM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=cQDjlp5y; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="cQDjlp5y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=i5leJTNSZ9xqKS zodyw9T9EgJC3Lw9Mg26dnbg+U0gI=; b=cQDjlp5yklbzV1cPTIRYSCNkrARDGo 3F4KK0eRjKIkeX5EcD2eylUfJbxgOXlTYKh4mlo2GMf9xMXWXvnnARBG0us1ZGkx JZXe7fo4UYgTX9sZlajhFgW/d6B636+Tpk4mX8tXHbyGL/VLJPMcWKhhWDlV5vSK TP4zB4M28nnGoRPXVm16sqwegBhuZb2FNnmtwa/eI1owuww8Jxkl7CfOxTD1qYZc ARZrCAromtVYGDCztMZTtEa9+3z/rC9qA5PlFQBErSJghJycqPFhBiwGzyNoxPf3 47MvHigec8Fj8mDoiX60R76VG8GM/i4cnMZ4OzKGDu9PdLnYTBQobzww== Received: (qmail 287502 invoked from network); 17 Mar 2026 14:06:47 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 17 Mar 2026 14:06:47 +0100 X-UD-Smtp-Session: l3s3148p1@eDgFAjhN6o8+XdJ7 From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jassi Brar , Wolfram Sang , Conor Dooley , devicetree@vger.kernel.org, Geert Uytterhoeven , Krzysztof Kozlowski , Magnus Damm , Rob Herring Subject: [PATCH 0/3] soc: renesas: add MFIS driver Date: Tue, 17 Mar 2026 14:06:33 +0100 Message-ID: <20260317130638.2804-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Renesas R-Car MFIS offers multiple features but most importantly mailboxes and hwspinlocks. Because they share a common register space and a common register unprotection mechanism, a single driver was chosen to handle all dependencies. (MFD and auxiliary bus have been tried as well, but they failed because of circular dependencies.) In this first step, the driver implements common register access and a mailbox controller. hwspinlock support will be added incrementally, once the subsystem allows out-of-directory drivers (patches already under review). This driver has been tested on a Renesas Ironhide board (R-Car X5H) and is able to communicate with the SCP via mailboxes. Also, the mailbox-test driver was used to confirm back-and-forth communication between two application cores. Because of its multifunctional nature, the driver lives in drivers/soc/renesas. As large parts of these patches handle mailbox support, review from mailbox expeirenced people is much appreciated. A branch can be found here: git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/x5h/mfis-single-driver Thanks and happy hacking, Wolfram Changes since last internal RFC: * no functional change * extended parts of the binding description * reworded parts of commit messages * dual licence the dt-binding header * dropped unneeded Kconfig dependency on HWSPINLOCK * rebased to linux-next as of 20260316 Wolfram Sang (3): dt-bindings: soc: renesas: add MFIS binding documentation soc: renesas: Add Renesas R-Car MFIS driver soc: renesas: add X5H PRR support .../soc/renesas/renesas,r8a78000-mfis.yaml | 160 +++++++++ drivers/soc/renesas/Kconfig | 9 + drivers/soc/renesas/Makefile | 1 + drivers/soc/renesas/rcar-mfis.c | 325 ++++++++++++++++++ drivers/soc/renesas/renesas-soc.c | 8 +- .../mailbox/renesas,r8a78000-mfis.h | 27 ++ 6 files changed, 529 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/soc/renesas/renesas,r8a78000-mfis.yaml create mode 100644 drivers/soc/renesas/rcar-mfis.c create mode 100644 include/dt-bindings/mailbox/renesas,r8a78000-mfis.h -- 2.51.0