Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3139817imm; Fri, 19 Oct 2018 05:55:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62TuhKf3NukQREZJnngOrqYWt3RKIkWwongh4er4qv2H2Q2mNFYahCNOZ5bWW8GlRF3TEEb X-Received: by 2002:a17:902:1744:: with SMTP id i62-v6mr33621820pli.216.1539953700304; Fri, 19 Oct 2018 05:55:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539953700; cv=none; d=google.com; s=arc-20160816; b=s2MMAdW3MAKplbLu+7nFoUhkVCJKQbIu1DTTbzWaOEux9jw30PpRlq6KjyfxHpAg69 G/u+rLC7xK7hm+6rTNjHSat67bby/W5EIM+IeuwZdQVJkt8Ig4+T4omcC1m4ENK53YD0 YHlK1vM/eqA9jhBFpJgP47wfJWKP+GgUcXZJ/gelVqJ77tGFajaaE9dzU+sKERmtLjNJ X0u9Qi6u+t40/yc1RANgI4ICu4ok+1AK9HQDPeP+AbSdSA2RnMds/Niit4fh2zbU5ifP Nvg48JYxMSQ+dlzc2tPS1W3kFZk+415j2gXDRXucLYSINh1ZCgGshPl4/CiBGgfkuduu NAFg== 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=KtzQG6LjcIwe8FqXiMd6Y73TlGPP6hcRoaKkF4tArN4=; b=SUbRKonFZXprC4wsoaNcJPor+JNA7bm7iBHWK6fBksOrV0VoJ2SbuYkwouoW7A4Tf0 9vgMf97KgxwLMdM5ozbJEzvoJ4aM4XHa5O47z/Rtaw7lJg7+FyZVtY/KjNWQVLdRA/y4 WO0V1H3uIS4MpN+E9UrdrDXhty23mab7UQ+fWFtW29ZDHmwx3Q6T88h+7kexxeOg9M2R QVvoXAroDyRmMz3uq8U8DxzB3HAvAl4QaeEkEjLHx2L9av/EdEjJoSwr4yc9CrCU0nod pPtzcKGs0q3xJPXWeW321ivBOJJR1/uh6ZFYg/D82UXgcRcJ8pH9PfIqz6eUnzYDh73j /JGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=bF02DjtM; 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 p19-v6si24375570plo.26.2018.10.19.05.54.44; Fri, 19 Oct 2018 05:55:00 -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=bF02DjtM; 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 S1727632AbeJSU7Z (ORCPT + 99 others); Fri, 19 Oct 2018 16:59:25 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:50616 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727011AbeJSU7Z (ORCPT ); Fri, 19 Oct 2018 16:59:25 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id C6FE610C1320; Fri, 19 Oct 2018 05:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1539953605; bh=ex4lGGpItYuoY0EDFugUQQL0dyxJ+bksDaJcx+H91LQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bF02DjtMU7ewwq+bxtM2zIz9pQyqOLDmRT8iGvMibq7W70MINXFCdhBCpn40o5yXj TT/uxuimAjgc41bWdkL1mcdZ57uqmqRZ/ORcuW6RgJOi++o68FUlrmEIhgw39Zgpll UCxJYyV3JzWPw3O3qYRaAxFcjSqZGoigKlAHOyfbtxuc1r6ZLzSpctM+xvIyZgxPCc sTRTdeAxvszfv9VFswU9YZtCFX/c7M8HrMu8imRRRo4zFC9wrRgU/wDxtQP69Mhuc0 L2aHDpGO5sDI3d9FIJvVFHjVRlxZijwPQv0kzxtuqKgCVAPdow9m4xcPv1Zjz5zdeX 6azadr//4hPlA== Received: from de02.synopsys.com (germany.internal.synopsys.com [10.225.17.21]) by mailhost.synopsys.com (Postfix) with ESMTP id 760AF3C9B; Fri, 19 Oct 2018 05:53:25 -0700 (PDT) Received: from de02dwemt290.internal.synopsys.com (de02dwemt290.internal.synopsys.com [10.225.18.64]) by de02.synopsys.com (Postfix) with ESMTP id A84E47E67; Fri, 19 Oct 2018 14:53:24 +0200 (CEST) Received: from de02dwemt290.internal.synopsys.com (localhost [127.0.0.1]) by de02dwemt290.internal.synopsys.com (8.14.4/8.12.3) with ESMTP id w9JCrOPf035884; Fri, 19 Oct 2018 14:53:24 +0200 Received: (from lolivei@localhost) by de02dwemt290.internal.synopsys.com (8.14.4/8.14.4/Submit) id w9JCrIXA035882; Fri, 19 Oct 2018 14:53:18 +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 , Laurent Pinchart , Arnd Bergmann , Geert Uytterhoeven , Neil Armstrong , Philipp Zabel , Keiichi Watanabe , Kate Stewart , Todor Tomov , devicetree@vger.kernel.org Subject: [V3, 3/4] Documentation: dt-bindings: media: Document bindings for DW MIPI CSI-2 Host Date: Fri, 19 Oct 2018 14:52:25 +0200 Message-Id: <1539953556-35762-4-git-send-email-lolivei@synopsys.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1539953556-35762-1-git-send-email-lolivei@synopsys.com> References: <1539953556-35762-1-git-send-email-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-V3 - removed IPI settings .../devicetree/bindings/media/snps,dw-csi-plat.txt | 52 ++++++++++++++++++++++ 1 file changed, 52 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..be3da05 --- /dev/null +++ b/Documentation/devicetree/bindings/media/snps,dw-csi-plat.txt @@ -0,0 +1,52 @@ +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) + +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"; + + /* 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.7.4