From patchwork Wed Feb 20 07:48:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerry-ch Chen X-Patchwork-Id: 10821649 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 C2A56922 for ; Wed, 20 Feb 2019 07:54:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAEFA2B923 for ; Wed, 20 Feb 2019 07:54:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9ED232DB04; Wed, 20 Feb 2019 07:54:44 +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 430342B923 for ; Wed, 20 Feb 2019 07:54:44 +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:References:In-Reply-To: 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: List-Owner; bh=DeU/QaxImFp43kg8sfsMreqoVdWUc0cF7zsJ1kXYgI8=; b=X7sCiqMbAlAwQ7 0qDltRCAFe/GXuoGOmtG2Hk8+qCQG3pUFeJDegvvnKaHrHUvdtc/jWegbQSEViS7bs6aG2aQKiSsl 7zEiypoHB7phVqS3/BrVOHl6zGYh4BRp5np+zUaRT7iPpF5oTcQXoca6EukgQv0M9Fz/vWS4EYJ/f va0r3LJiUWWWDiZ+xOJooD2dtUzMwslz+RcvXz5O4fB3TPbgudy5gtFr+wjAKZttXIZRV8OwbToie oQN37hc3P171JXIbrMonPfqp+LcmtBhsbhY9oUgJ7vYu9E7dZMB3yCLLNwExXYVj7IVUGzdez3vbs 9dYRvpAMGJkrMYlFMSkg==; 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 1gwMiI-0000LR-C0; Wed, 20 Feb 2019 07:54:42 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwMhz-0008Uf-G6; Wed, 20 Feb 2019 07:54:24 +0000 X-UUID: 6f0d2cf2bf78466696e89aefc8ce59bb-20190219 X-UUID: 6f0d2cf2bf78466696e89aefc8ce59bb-20190219 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1668174344; Tue, 19 Feb 2019 23:53:10 -0800 Received: from MTKMBS01N1.mediatek.inc (172.21.101.68) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 19 Feb 2019 23:53:08 -0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 20 Feb 2019 15:53:07 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 20 Feb 2019 15:53:07 +0800 From: Jerry-ch Chen To: , , , , Subject: [RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added FD-SMEM dt-bindings Date: Wed, 20 Feb 2019 15:48:09 +0800 Message-ID: <1550648893-42050-4-git-send-email-Jerry-Ch.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1550648893-42050-1-git-send-email-Jerry-Ch.chen@mediatek.com> References: <1550648893-42050-1-git-send-email-Jerry-Ch.chen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190219_235423_569076_2B3880E7 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@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, Sean.Cheng@mediatek.com, Rynn.Wu@mediatek.com, srv_heupstream@mediatek.com, holmes.chiou@mediatek.com, Jerry-ch Chen , jungo.lin@mediatek.com, sj.huang@mediatek.com, yuzhao@chromium.org, linux-mediatek@lists.infradead.org, zwisler@chromium.org, christie.yu@mediatek.com, frederic.chen@mediatek.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the DT binding documentation for the shared memory between Face Detection unit of the camera system and the co-processor in Mediatek SoCs. Signed-off-by: Jerry-ch Chen --- .../devicetree/bindings/media/mediatek,fd_smem.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,fd_smem.txt diff --git a/Documentation/devicetree/bindings/media/mediatek,fd_smem.txt b/Documentation/devicetree/bindings/media/mediatek,fd_smem.txt new file mode 100644 index 0000000..6f7c836 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,fd_smem.txt @@ -0,0 +1,28 @@ +Mediatek FD Shared Memory Device + +Mediatek FD Shared Memory Device is used to manage shared memory +among CPU, FD and coprocessor. It is associated with a reserved +memory region (Please see Documentation/devicetree/bindings/ +reserved-memory/mediatek,reserve-memory-fd_smem.txt) and +provide the context to allocate memory with dma addresses. + +Required properties: +- compatible: Shall be "mediatek,fd_smem" + +- iommus: Shall point to the respective IOMMU block with master port + as argument. Please set the ports which may be accessed + through the common path. You can see + Documentation/devicetree/bindings/iommu/mediatek,iommu.txt + for the detail. + +- mediatek,larb: must contain the local arbiters in the current SoCs. + Please set the larb of imgsys for FD if you are using FD function. + You can see Documentation/devicetree/bindings/memory-controllers/ + mediatek,smi-larb.txt for the detail. + +Example: + fd_smem: fd_smem { + compatible = "mediatek,fd_smem"; + mediatek,larb = <&larb5>; + iommus = <&iommu M4U_PORT_CAM_IMGI>; + };