From patchwork Tue Feb 5 06:42:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Chen X-Patchwork-Id: 10796939 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 868B0922 for ; Tue, 5 Feb 2019 06:51:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7462B2ADF2 for ; Tue, 5 Feb 2019 06:51:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 729922B2BD; Tue, 5 Feb 2019 06:51:56 +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 1FA3C2ADF2 for ; Tue, 5 Feb 2019 06:51:56 +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=GYliZzDp0PEwmw1EnvYiUp/8cZAcRb8GQkHGxD2U150=; b=uZoc7tVW1AxmVE NB6Ywf1MAAsLQvZX3oJmXxviRcmGpNIsUzC/RZ2tzPbEdhmRt4f1oBYzY3wIWNUjsY7MbGHZfE8mC V7xFicSFiQ9puego4mxxKboNfEbNZeoB2XLtlak1vUOy04aroUrzqc7lJQtoOh+4uL3hk4LaHQdHp CraE2yoouOxsVZBRseh78eqa9EHEMpUNWLekhw9HPJN+pj+LbsfZObkvR2kdU4Q6BmgKFiB5MCtN5 wnJeakkcva3zBqtVCY9VwSNx0rqumdnPSIib46Rb8kEacSF5WiPqERlRhdRLjRyiKhtIEHuAMZrUK cCD7348T/FkTc+7pOrQw==; 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 1gquaI-00009R-2u; Tue, 05 Feb 2019 06:51:54 +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 1gquSv-0004Me-0S; Tue, 05 Feb 2019 06:44:27 +0000 X-UUID: fc5603203fc5496689033a52944a77fb-20190204 X-UUID: fc5603203fc5496689033a52944a77fb-20190204 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 2006039163; Mon, 04 Feb 2019 22:43:23 -0800 Received: from mtkmbs03n1.mediatek.inc (172.21.101.181) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 4 Feb 2019 22:43:22 -0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 5 Feb 2019 14:43:20 +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; Tue, 5 Feb 2019 14:43:20 +0800 From: Frederic Chen To: , , , , Subject: [RFC PATCH V0 3/7] [media] dt-bindings: mt8183: Added CAM-SMEM dt-bindings Date: Tue, 5 Feb 2019 14:42:42 +0800 Message-ID: <1549348966-14451-4-git-send-email-frederic.chen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1549348966-14451-1-git-send-email-frederic.chen@mediatek.com> References: <1549348966-14451-1-git-send-email-frederic.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-20190204_224417_536703_DA84F070 X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. 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: Sean.Cheng@mediatek.com, Rynn.Wu@mediatek.com, srv_heupstream@mediatek.com, holmes.chiou@mediatek.com, Jerry-ch.Chen@mediatek.com, jungo.lin@mediatek.com, sj.huang@mediatek.com, yuzhao@chromium.org, christie.yu@mediatek.com, zwisler@chromium.org, linux-mediatek@lists.infradead.org, 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 From: Jungo Lin This patch adds the DT binding documentation for the shared memory between Pass 1 unit of the camera ISP system and the co-processor in Mediatek SoCs. Signed-off-by: Jungo Lin Signed-off-by: Frederic Chen --- .../bindings/media/mediatek,cam_smem.txt | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek,cam_smem.txt diff --git a/Documentation/devicetree/bindings/media/mediatek,cam_smem.txt b/Documentation/devicetree/bindings/media/mediatek,cam_smem.txt new file mode 100644 index 0000000..d0d9c17 --- /dev/null +++ b/Documentation/devicetree/bindings/media/mediatek,cam_smem.txt @@ -0,0 +1,32 @@ +Mediatek Camera ISP Pass 1 Shared Memory Device + +Mediatek Camera ISP Pass 1 Shared Memory Device is used to manage shared +memory among CPU, Camera ISP Pass 1 hardware and coprocessor. The Camera +ISP Pass 1 is a hardware unit for processing image signal from the image +sensor. Camera ISP Pass 1 is responsible for RAW processing and 3A tuning. + +It is associated with a reserved memory region +(Please see Documentation\devicetree\bindings\reserved-memory\mediatek, +reserve-memory-cam_smem.txt) and and provides the context to +allocate memory with dma addresses. + +Required properties: +- compatible: Should be "mediatek,cam_smem" + +- iommus: should point to the respective IOMMU block with master port + as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt + for details. + +- mediatek,larb: must contain the local arbiters in the current SOCs, see + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt + for details. + +Example: + cam_smem: cam_smem { + compatible = "mediatek,cam_smem"; + mediatek,larb = <&larb3>, + <&larb6>; + iommus = <&iommu M4U_PORT_CAM_LSCI0>, + <&iommu M4U_PORT_CAM_LSCI1>, + <&iommu M4U_PORT_CAM_BPCI>; + };