From patchwork Tue Nov 17 10:02:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 324556 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp4037639ils; Tue, 17 Nov 2020 02:03:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwqb5if+t6OesFFXjnqDJ3/iKRuF+XSPP8OebgXK5+R/m/T9lnaVkG6cT1/hfHyywaGsB+ X-Received: by 2002:a17:906:b852:: with SMTP id ga18mr20298078ejb.80.1605607432030; Tue, 17 Nov 2020 02:03:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605607431; cv=none; d=google.com; s=arc-20160816; b=unIcGvnhfPyX0g7bm/6iIbs62GyZBxB4AzE4aabF+/O7SCNGEtTG9ScTFE472ffote KxmmlNh0olPTMIOGRCsHZBX5owbvjm3eCVNOTLJ1R6p1YqvhdcrycVqDWHqT88IVgJMx Kva/t/gQWGaGpL2RYpR22VVRKAIf1S9XvtcxwSX4E0K6jEvy/V7z43sgYZbv+nf22ivj 8EKFa4GT5PHkLxV6+qab9RL0bez270rAl5L5aK4rk3QgCvfZxvGl+XMwIBY4BXJCIK9J acfNiPoD1HaqBewO6BAgrWw2mnYxB08dlpm5+JR9kzjy73bHOrc+tv/51KNdsLl2L0Lb 3LCg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=26jUaXgkOpdN+N/zxNBvWC7RCK+cgJsa+0NL5In8szs=; b=bsmyypdWrWH4xR8Yk6WuC5w99jwA/NnvJvBBJ6HMEdDSr/a++UMuxm4ftYPGcdihZD vPWCWsyb1MJSt2xvTVutiw6lFB2ebQ30esHnq2xdLmJzJRlDFkn58xElzz8RrCd+L6cB gvUbdtVzs5ZLSFTP4wMcvhTPAISRyjoIwFqIyNTZRmER7Ty//A4tCZqSOO+d3myudvJW ZHZdR328rSuctnZgb0CL92CmmMFlx4xHTEY4sRpvCgCHVupDCF6nMMXKmxOWa14gDtVt 6hByscetKFDNG6q3auf6ocYxAI6JayL55z5sXhi6QDU8pCt84xoY+KibG9fvsETdBrf0 l5TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d+TRbT7D; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si13113168edm.185.2020.11.17.02.03.51; Tue, 17 Nov 2020 02:03:51 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=d+TRbT7D; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727827AbgKQKCO (ORCPT + 6 others); Tue, 17 Nov 2020 05:02:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbgKQKCN (ORCPT ); Tue, 17 Nov 2020 05:02:13 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFA0EC0617A6 for ; Tue, 17 Nov 2020 02:02:11 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id m9so6196321pgb.4 for ; Tue, 17 Nov 2020 02:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=26jUaXgkOpdN+N/zxNBvWC7RCK+cgJsa+0NL5In8szs=; b=d+TRbT7DnLWPzB0SCStAavu+nQwfwhdt25ut79ivY+kq7c5ate3R9C3W/U+m6aZKz4 +wy3LW7qslQ0i2/GQwanm/a3aWVFgtE19GhE+AvrlUdXe280m/581oH9pyJkPlf00Z5l qw1n5IF2kZp5AXPHVGew/GXKqfFaHfaEh9wbBCh8+NVf/49G+dnWMOOUXg+dLKw2hYWc jR0dfhQVjNPGg4hQYvxaYY7D60FKKo4hmcFnAlHDjowad14qF87enx1A1N2tc0tiD3uX AWVsXkz1h3CsYHcB8iPNmA2QSLyMfH4GRewHQvZiiL5qM0O2DQjrdgWtHqcwkEVVc9zN U2yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=26jUaXgkOpdN+N/zxNBvWC7RCK+cgJsa+0NL5In8szs=; b=hHIEBB9I1LALmEz+LcrEFuu/yu6ZgfWwwk4Zg+L/5IBuCvCl737CiPzmCFsT2dxiGi ppR6JzjsMTCi1Iza+MSoYt84Y+27taf7CjRVutFjAs/7vYBdUfqaLwMJGBaqY0+9Nwux U4gioMMbd0dLQbWfpWHh2D3Nl/ILnz26RF0EaOGGr5M4y/sqFNtn+LuxJARUIlwkq2r5 PHse1azsYEThuBs9hxwoE3A6+Q0C9G5HApX48P1M7WK3hjTdbz6AUf+cHPMOilQAoUuP i5ENcxeKKe9XToAEVLfaBD1AHtYvVeAIPOAchyBaMvG6rGCXNmXD0sAkv6kQvAuBgycg plzQ== X-Gm-Message-State: AOAM531wwHW95ME3wOk+0lkEc7EPumWHRhpVOT6WBO0KqV6lwvG+3KV5 ukeS5RyiKJdZJ13tTw2fsnoKog== X-Received: by 2002:a63:c90b:: with SMTP id o11mr2985326pgg.453.1605607331298; Tue, 17 Nov 2020 02:02:11 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id x66sm5770248pfc.43.2020.11.17.02.02.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Nov 2020 02:02:10 -0800 (PST) From: Viresh Kumar To: Jassi Brar , Rob Herring , Tushar Khandelwal , Viresh Kumar Cc: Vincent Guittot , linux-arm-kernel@lists.infradead.org, Sudeep.Holla@arm.com, morten_bp@live.dk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tushar Khandelwal , Usama Arif Subject: [PATCH V5 0/2] mailbox: Add mhuv2 mailbox controller's support Date: Tue, 17 Nov 2020 15:32:04 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Jassi, Here is the updated version based on your suggestions. I feel bad that I haven't implemented the single-word protocol as a special case of multi-word one in the earlier attempt. Perhaps I was too consumed by the terminology used by the ARM folks in the previous version of the driver and the reference manual of the controller :) V1/V4->V5 - The binding patch already had 4 versions, while the driver had only 1. To send everything together, I had to bump the entire thing to V5. - Removed single-word and multi-word protocols and introduced data-transfer protocol which works with 1 or more windows. - Moved register names to small case. Rob, I have kept your Reviewed-by tag as is, please let me know if you would like to revoke it. -- Viresh Viresh Kumar (2): dt-bindings: mailbox : arm,mhuv2: Add bindings mailbox: arm_mhuv2: Add driver .../bindings/mailbox/arm,mhuv2.yaml | 209 +++ MAINTAINERS | 9 + drivers/mailbox/Kconfig | 7 + drivers/mailbox/Makefile | 2 + drivers/mailbox/arm_mhuv2.c | 1136 +++++++++++++++++ include/linux/mailbox/arm_mhuv2_message.h | 20 + 6 files changed, 1383 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/arm,mhuv2.yaml create mode 100644 drivers/mailbox/arm_mhuv2.c create mode 100644 include/linux/mailbox/arm_mhuv2_message.h -- 2.25.0.rc1.19.g042ed3e048af