Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1871074imm; Thu, 20 Sep 2018 04:21:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbCqE21x/bZOnTSp5TGEjpA4A+TdwJ5e8r4ABBz9kIImmxir4qgyyMLl/IbZO2s8oqLqYm X-Received: by 2002:a63:c912:: with SMTP id o18-v6mr35610567pgg.331.1537442513983; Thu, 20 Sep 2018 04:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537442513; cv=none; d=google.com; s=arc-20160816; b=xOKxAKy9YBHIyo73zDqX94q71Q3hv04BFXpXgZobFFQwxrgZyPV7/K/HZJOps+YXqD QOWeHDm0dpoMZvAfSr/fSDccYvnAhOqjE9FN2Ipi3UOr+hxTB3mEwMZ3L1aTS1eQ44HC oqxQdf/2/5c9uuqh/GXESlYCbgNYq5Fv0NZlW44jfdnh0omz8kLLBUXS/vWzJsFfx65o o9yy0hQVeuZGwBFRxItLHjJSfjGgenKorsu+4sKLrzlb0H3AHxxENUUwyXmvUfQSxxTe k9wDa5EQouvSTsXO0lm161hPAeQmgv9Q1m4KdJzEgx7dzqNvalEKKxF8l5BIE9MCa84d smvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bYWu13falhcDq0gJxT15BXcQRyANGIEjvHnFFh6u/Oc=; b=dvheedGB1AZ6CLdkBp30UMRJld+af460NcaLr3750FBkcZKVqoHK9xuKFTMnoanzSY m0hJbcRh5wD26mLup5wmpkTM40KUXdkpGyXZebvX9od49PEoI0skFuUu8EjkrcvmkUWy +ozvJDJMCf+/6ovSckoHCkkd4XKSDtWnslMpyDhPM/AfSyCvZeuiLdcfE4bYWxH3luE8 Gjm9HjWp9G4x+9F5LhJe0FqAxkddxgxUrFUynU9zoN00CJ7EghRLR4IS7IqTwHXUusxZ EsfVE/yDvhtEHQFax95uWrWzgI2VQ+57iSihahD+prZtvGbY0l6HOof7XSmRnBtiQU/r oSkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=ZlGh0OsD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p24-v6si23965599plo.52.2018.09.20.04.21.38; Thu, 20 Sep 2018 04:21:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=ZlGh0OsD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732622AbeITRDD (ORCPT + 99 others); Thu, 20 Sep 2018 13:03:03 -0400 Received: from smtprelay.synopsys.com ([198.182.47.9]:35906 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbeITRDD (ORCPT ); Thu, 20 Sep 2018 13:03:03 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3080624E0F95; Thu, 20 Sep 2018 04:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1537442404; bh=fMYJbfE9hMA2GAwf+yfyRNTuvk/LnARre0T7AkK97kw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZlGh0OsDC4B2cSYnpacjqmS+t6wgfcBlxH6sXw/fGCyOD602uRtMWZKePOHRk0foe PgUY1YvXCbfwQQwL9DaCHxUTLZMCmYxFV/5uQ+aJTis+ShNe/PliD8Thr/Jz4GBwaf xpfYXJIQBAFA7RvzhybI7++GFtT5cRQClsrkklhh3FG6JaGQXvWZtEv3/fiPiJbXm+ ooElFQJw642RZClUI+gHO+vnMCLA2E9bnTLPcqkWv70C9Lnu33rAy6zcBIq//4tJvY oLFbdOe/N/PP1tO64s6JeUU6EiUa1mxO+abdk5s2+eaOPCEKTXFh4c6VZBSxSeNril U9f22OnIKNHQQ== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id CBAEE5AB3; Thu, 20 Sep 2018 04:20:03 -0700 (PDT) Received: from de02dwemt291.internal.synopsys.com (de02dwemt291.internal.synopsys.com [10.225.18.65]) by de02.synopsys.com (Postfix) with ESMTP id 01C853E4DC; Thu, 20 Sep 2018 13:20:03 +0200 (CEST) Received: from de02dwemt291.internal.synopsys.com (localhost [127.0.0.1]) by de02dwemt291.internal.synopsys.com (8.14.4/8.12.3) with ESMTP id w8KBK2Jd028603; Thu, 20 Sep 2018 13:20:02 +0200 Received: (from lolivei@localhost) by de02dwemt291.internal.synopsys.com (8.14.4/8.14.4/Submit) id w8KBJuXP028601; Thu, 20 Sep 2018 13:19:56 +0200 From: Luis Oliveira To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joao.Pinto@synopsys.com, festevam@gmail.com, Luis Oliveira , Luis Oliveira , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Hans Verkuil , Geert Uytterhoeven , Laurent Pinchart , Arnd Bergmann , Jacob Chen , Neil Armstrong , Keiichi Watanabe , Kate Stewart , Philipp Zabel , Todor Tomov , devicetree@vger.kernel.org Subject: [V2, 4/5] Documentation: dt-bindings: Document bindings for DW MIPI CSI-2 Host Date: Thu, 20 Sep 2018 13:16:42 +0200 Message-Id: <20180920111648.27000-5-lolivei@synopsys.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20180920111648.27000-1-lolivei@synopsys.com> References: <20180920111648.27000-1-lolivei@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bindings for Synopsys DesignWare MIPI CSI-2 host. Signed-off-by: Luis Oliveira --- Changelog v2: - no changes .../devicetree/bindings/media/snps,dw-csi-plat.txt | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt diff --git a/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt b/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt new file mode 100644 index 0000000..028f5eb --- /dev/null +++ b/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt @@ -0,0 +1,74 @@ +Synopsys DesignWare CSI-2 Host controller + +Description +----------- + +This HW block is used to receive image coming from an MIPI CSI-2 compatible +camera. + +Required properties: +- compatible: shall be "snps,dw-csi-plat" +- reg : physical base address and size of the device memory mapped + registers; +- interrupts : CSI-2 Host interrupt +- snps,output-type : Core output to be used (IPI-> 0 or IDI->1 or BOTH->2) These + values choose which of the Core outputs will be used, it + can be Image Data Interface or Image Pixel Interface. +- phys : List of one PHY specifier (as defined in + Documentation/devicetree/bindings/phy/phy-bindings.txt). + This PHY is a MIPI DPHY working in RX mode. +- resets : Reference to a reset controller (optional) + +Optional properties(if in IPI mode): +- snps,ipi-mode : Mode to be used when in IPI(Camera -> 0 or Controller -> 1) + This property defines if the controller will use the video + timings available + in the video stream or if it will use pre-defined ones. +- snps,ipi-color-mode : Bus depth to be used in IPI (48 bits -> 0 or 16 bits -> 1) + This property defines the width of the IPI bus. +- snps,ipi-auto-flush : Data auto-flush (1 -> Yes or 0 -> No). This property defines + if the data is automatically flushed in each vsync or if + this process is done manually +- snps,virtual-channel : Virtual channel where data is present when in IPI mode. This + property chooses the virtual channel which IPI will use to + retrieve the video stream. + +The per-board settings: + - port sub-node describing a single endpoint connected to the camera as + described in video-interfaces.txt[1]. + +Example: + + csi2_1: csi2@3000 { + compatible = "snps,dw-csi-plat"; + #address-cells = <1>; + #size-cells = <0>; + reg = < 0x03000 0x7FF>; + interrupts = <2>; + output-type = <2>; + resets = <&dw_rst 1>; + phys = <&mipi_dphy_rx1 0>; + phy-names = "csi2-dphy"; + + /* IPI optional Configurations */ + snps,ipi-mode = <0>; + snps,ipi-color-mode = <0>; + snps,ipi-auto-flush = <1>; + snps,virtual-channel = <0>; + + /* CSI-2 per-board settings */ + port@1 { + reg = <1>; + csi1_ep1: endpoint { + remote-endpoint = <&camera_1>; + data-lanes = <1 2>; + }; + }; + port@2 { + csi1_ep2: endpoint { + remote-endpoint = <&vif1_ep>; + }; + }; + }; + + -- 2.9.3