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: 11911859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86AD9C2D0E4 for ; Tue, 17 Nov 2020 10:03:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 123082463F for ; Tue, 17 Nov 2020 10:03:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vmGG/pWy"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="d+TRbT7D" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 123082463F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=jm2e4vpZidlL4fb5+caTTDWjE3FYdUjaUGpUJhZB1QM=; b=vmGG/pWyftC234wAgbJkvoTkEA RWSXQZ0Z5UP8lJUoUJTIGC7avxAsvyAvMFUJKSUyAiUtoBjUji5RZaycjs5XqLxsO3P7CQ6VR6+k6 bHFCWVlU+GC5XI8ZRUWOVhe67kOF1W/9L+se8S3nfpNyHugMG3z8KaY9XKUHuWlqs8ivhbSIZt918 FDBpMUA5n4IraXkXIyyU/TBs6Izx0YlPdd/72m0YRKlNkUDoY9JKdfJNGKRaUneBwl4JsV2SRKqs9 qjKaslfR+ozpk6pT5o1S5aZnKAtusoS4dk5MEwFjs+70jkUhJvmFpGto9UBTNZfWTk+CFVQLgDiCK C9KqfXAg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kexoZ-0004If-Cy; Tue, 17 Nov 2020 10:02:19 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kexoW-0004HL-6G for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2020 10:02:17 +0000 Received: by mail-pg1-x543.google.com with SMTP id p68so5339994pga.6 for ; Tue, 17 Nov 2020 02:02:12 -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=feJL8hY5fl+EzhC8qfeblmP3BAg/fW168RSsFvtYSRSSh3esQWuBvB7FKO+oaa54MN M2v9AgeLiP12Oi61f3haReATje1meTtXPWjQDvSnsi/2zLjzo8ZXdIdslSVnYSNohtql 0xo8sAq+McazIU5XNUbUleMswy1vKbDAUT1sN/oKrZ+mHSVf6ou3qXd26YJOxNzGLmZ/ d2i/I4Eah3zclgM50PaH2kze7fKiRAyn/NTi9oEaWrwCv07eqgBgHhWOer+0DpbAdGy4 nAQaGgEluJwoPolE07C9Cdl9GDHC9jP0uYaSRdoffGSZBXr4PCc5DaF9G7mX0D8rWmM+ QjXw== X-Gm-Message-State: AOAM531Ot1YDk9gqrHKReFEPfrHA9RWELXJlLG5TbNLzXnSLHMBKNwOl qU+NM7spcPqvLug4fduZ9ht/OA== X-Google-Smtp-Source: ABdhPJw72mee3Ie/hh9YLmqwohDfqLW9HAujs+K05Oy97webs0QsO+cpBnSCMvCThhs3BNs2tO09gw== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_050216_559211_BE9EBF4B X-CRM114-Status: GOOD ( 17.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vincent Guittot , Usama Arif , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Tushar Khandelwal , Sudeep.Holla@arm.com, morten_bp@live.dk Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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