Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4946633ybi; Tue, 11 Jun 2019 15:53:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBCqK6UHia4BxgiT1d7y85qtafAPdq6pDWQHSaeV9Uhwmk+hv00IiU0nAAB3YhLNwIzJ1v X-Received: by 2002:a62:2784:: with SMTP id n126mr16032564pfn.61.1560293624794; Tue, 11 Jun 2019 15:53:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560293624; cv=none; d=google.com; s=arc-20160816; b=Rht1qhWBh/yQ7Tytm16fXNWFTcyX6ZtDHb8XdWwvBi9f+AH+z/aa5U7/PlglYq8+2e zAssNcvfpWdtNA/vFp1sdfUO8Jy9FgJuDJ5XKMaW1czlMILYQzDx3h3MLc4gteP7TuiJ vE9fN0S/nHcTprJqmPdShquN3lkSQb9NBcIf22znp5q+qzVqSViZWbmWPPISECbgSanl 7bdBx8FrVKrZdYnONRO3H48PXyNiSw42xKTfZG5mn07GS0dm6yVMIrPoey60tNvEB8XA rb8nkjqZLiQ56vMhk1yE9fEtI1i3EhHAPoCbkY68YvWeSriRvVykwqEYwBGKwd5VjLn6 OxBg== 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=QwgqI2RG85dQJXnvVUZ5JcoiVTF6tI8/bzwmmmQhNzE=; b=k4pMm6o4WCz1Ust2oVUX1pTBrGu8+OfoNjSRnnNTlDWgYYKVlKOT054qTlCS8HCQio Pxe4dOQ6jaNzidGhW4dCpw2LQniVdicUixZrgWXFt3djN9Hji0pD/ndqI73XW+vM6Y3y alUxNgFh5b4JXhqsAMUwuyu1w16NFballvJDHnB+mzngz2MyzbMC1tO4nBIuPOLBD5MX mgrJ2eSUaDgBuU7zoYVCv105z1bANtnXBUm3fczTwZwkwcxxP/iqVI/0ltWSizvxdwzC MvL0OKqpXLFW5tbvafofwZ31a2CDQ9oN7bQkKkZ0kejpYx98zHasqWz4xrOXfyalpdc8 2cIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=gLcApO+w; 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 b3si1243731pgb.474.2019.06.11.15.53.29; Tue, 11 Jun 2019 15:53:44 -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=gLcApO+w; 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 S2407489AbfFKTVQ (ORCPT + 99 others); Tue, 11 Jun 2019 15:21:16 -0400 Received: from smtprelay-out1.synopsys.com ([198.182.47.102]:37604 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404789AbfFKTVQ (ORCPT ); Tue, 11 Jun 2019 15:21:16 -0400 Received: from mailhost.synopsys.com (mdc-mailhost1.synopsys.com [10.225.0.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 1610FC014E; Tue, 11 Jun 2019 19:21:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1560280876; bh=tHIJCAqTF+UPHZ5DtLIcgsUdC1LXsknXPaU2PJfFj5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gLcApO+wN86rDTtu12tkhOzLIR/ojbxyBB39+/3vliFulgKmtv48gGR0k9IafoCM7 cVFQ4on43WaeutuTEU8zWRbLqC1oZy7dsne5SlcGatx37gNdRYEktZMmd9reRxlaVq 0o7bN/qKr/ee71pdjr0fivPjXK4NS17PhtwMoejCzgnT5DPgV36SW3CmGagHgjSwg5 e6dyQMwcISQgwdeZOP0LOKoMwu0IwzrqA1TFNmmeq99fcebMptoRQlVd0GvuK3dMJo M9cJv+MW2NlffYV4Q/m9yS+h23g0QnzdUapVddKLl7lATnzLiOEsEmg3pOYi8uIQsU x9qqekphIqOuA== Received: from de02.synopsys.com (de02.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 6C18BA005D; Tue, 11 Jun 2019 19:21:13 +0000 (UTC) Received: from de02dwia024.internal.synopsys.com (de02dwia024.internal.synopsys.com [10.225.19.81]) by de02.synopsys.com (Postfix) with ESMTP id 4AE9F3F896; Tue, 11 Jun 2019 21:21:13 +0200 (CEST) From: Luis Oliveira To: mchehab@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, robh@kernel.org, nicolas.ferre@microchip.com, paulmck@linux.ibm.com, mark.rutland@arm.com, kishon@ti.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joao.Pinto@synopsys.com, Luis Oliveira Subject: [v4 1/6] dt-bindings: media: Document bindings for DW MIPI CSI-2 Host Date: Tue, 11 Jun 2019 21:20:50 +0200 Message-Id: <1560280855-18085-2-git-send-email-luis.oliveira@synopsys.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1560280855-18085-1-git-send-email-luis.oliveira@synopsys.com> References: <1560280855-18085-1-git-send-email-luis.oliveira@synopsys.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luis Oliveira Add bindings for Synopsys DesignWare MIPI CSI-2 host. Signed-off-by: Luis Oliveira --- Changelog v3-v4 - remove "plat" from the block name @rob @laurent - remove "phy-names" when single-entry @rob - remove "snps,output-type" -> went to the driver config @laurent .../devicetree/bindings/media/snps,dw-csi.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/snps,dw-csi.txt diff --git a/Documentation/devicetree/bindings/media/snps,dw-csi.txt b/Documentation/devicetree/bindings/media/snps,dw-csi.txt new file mode 100644 index 0000000..613b7f9 --- /dev/null +++ b/Documentation/devicetree/bindings/media/snps,dw-csi.txt @@ -0,0 +1,41 @@ +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" +- reg : physical base address and size of the device memory + mapped registers; +- interrupts : DW CSI-2 Host interrupts +- 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) + +The per-board settings: + - port sub-node describing a single endpoint connected to the camera as + described in video-interfaces.txt[1]. + +Example: + + csi2: csi2@3000 { + compatible = "snps,dw-csi"; + #address-cells = <1>; + #size-cells = <0>; + reg = < 0x03000 0x7FF>; + phys = <&mipi_dphy_rx>; + resets = <&dw_rst 1>; + interrupts = <2>; + + port@0 { + reg = <0>; + csi_ep1: endpoint { + remote-endpoint = <&camera_1>; + data-lanes = <1 2>; + }; + }; + }; -- 2.7.4