From patchwork Wed Mar 6 09:50:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bibby Hsieh X-Patchwork-Id: 10840753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90890922 for ; Wed, 6 Mar 2019 09:52:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7862B2D421 for ; Wed, 6 Mar 2019 09:52:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BB9F2D449; Wed, 6 Mar 2019 09:52:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D9422D421 for ; Wed, 6 Mar 2019 09:52:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=Z8l2kHhlLExts+EUnZ7Nv04iZgOEPt7jylCzib8Zjj4=; b=QkCZoGKKMXcXOJ sVpYVEogDG/jymrXOiW3hGlxBSQTW01FaV3rib57+IP3/ZsE3V9zCfhBJOR22EnJTo+0HzMEwvXKU iXrX345LfvvLYRjpWet9UyuZ8sZ3OBlrQ0hM0FmVdQYBRFHnowimv03vZtSYi6hw5FevafEW8n6y8 OjiOG8HlR9TCiOBAZg40FbUZHckT4bAdGrbsMSta9FBb5Hd3yTROtsY6OkxLcCVmNYCqAEiHaeHSR 0wS1Vxybqdel4UmiMMYXtUKm1xrR8/Jx56K+bVmOV+JfKsFVybnM7NyqAxb/Ldi5r73PjvwCJdVng jXl0dC4UDIaBGBMjVozQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1TDd-0005ZR-AK; Wed, 06 Mar 2019 09:52:09 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1TCN-0003mV-5v; Wed, 06 Mar 2019 09:50:55 +0000 X-UUID: c565546690174c1daef60a6ddf4639a6-20190306 X-UUID: c565546690174c1daef60a6ddf4639a6-20190306 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 959789407; Wed, 06 Mar 2019 01:50:45 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 01:50:44 -0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 6 Mar 2019 17:50:37 +0800 Received: from mtkslt302.mediatek.inc (10.21.14.115) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 6 Mar 2019 17:50:37 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU Subject: [PATCH v2 00/10] support gce on mt8183 platform Date: Wed, 6 Mar 2019 17:50:25 +0800 Message-ID: <1551865835-50974-1-git-send-email-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_015051_509016_F5070872 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Nicolas Boichat , Philipp Zabel , srv_heupstream@mediatek.com, Daoyuan Huang , Sascha Hauer , linux-kernel@vger.kernel.org, Dennis-YC Hsieh , kendrick.hsu@mediatek.com, linux-mediatek@lists.infradead.org, Houlong Wei , Sascha Hauer , Frederic Chen , Jiaguang Zhang , Bibby Hsieh , linux-arm-kernel@lists.infradead.org, ginny.chen@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Changes since v1: - add prefix "cmdq" in the commit subject - add dt-binding document for get event and subsys function - add fix up tag in fixup patch - fix up some coding style (alignment) MTK will support gce function on mt8183 platform. dt-binding: gce: add gce header file for mt8183 soc: mediatek: cmdq: add mt8183 compatible name Besides above patches, we refine gce driver on those patches. soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: cmdq: clear the event in cmdq initial flow In ordet to enhance the convenience of gce usage, we add new helper functions and refine the method of instruction combining. dt-binding: gce: add binding for gce event property dt-binding: gce: add binding for gce subsys property soc: mediatek: cmdq: add packet encoder function soc: mediatek: cmdq: add polling function soc: mediatek: cmdq: add cmdq_dev_get_subsys function soc: mediatek: cmdq: add cmdq_dev_get_event function Bibby Hsieh (10): dt-binding: gce: add gce header file for mt8183 dt-binding: gce: add binding for gce event property dt-binding: gce: add binding for gce subsys property soc: mediatek: cmdq: add mt8183 compatible name soc: mediatek: cmdq: move the CMDQ_IRQ_MASK into cmdq driver data soc: mediatek: cmdq: clear the event in cmdq initial flow soc: mediatek: cmdq: add packet encoder function soc: mediatek: cmdq: add polling function soc: mediatek: cmdq: add cmdq_dev_get_subsys function soc: mediatek: cmdq: add cmdq_dev_get_event function .../devicetree/bindings/mailbox/mtk-gce.txt | 33 +++- drivers/mailbox/mtk-cmdq-mailbox.c | 18 +- drivers/soc/mediatek/mtk-cmdq-helper.c | 202 +++++++++++++++++---- include/dt-bindings/gce/mt8183-gce.h | 177 ++++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 5 + include/linux/soc/mediatek/mtk-cmdq.h | 61 ++++++- 6 files changed, 439 insertions(+), 57 deletions(-) create mode 100644 include/dt-bindings/gce/mt8183-gce.h