From patchwork Mon Oct 2 20:26:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leon Luo X-Patchwork-Id: 9981231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20C7560384 for ; Mon, 2 Oct 2017 20:35:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14442288EA for ; Mon, 2 Oct 2017 20:35:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09250288F4; Mon, 2 Oct 2017 20:35:01 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98F05288EA for ; Mon, 2 Oct 2017 20:35:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751214AbdJBUeO (ORCPT ); Mon, 2 Oct 2017 16:34:14 -0400 Received: from p3plsmtpa11-08.prod.phx3.secureserver.net ([68.178.252.109]:60825 "EHLO p3plsmtpa11-08.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751204AbdJBUeN (ORCPT ); Mon, 2 Oct 2017 16:34:13 -0400 Received: from ubuntu.localdomain ([75.84.179.146]) by :SMTPAUTH: with SMTP id z7Igdq2PR0Wb5z7IkdLp3L; Mon, 02 Oct 2017 13:26:54 -0700 From: Leon Luo To: mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, hans.verkuil@cisco.com, sakari.ailus@linux.intel.com Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, leonl@leopardimaging.com, soren.brinkmann@xilinx.com Subject: [PATCH v7 1/2] media:imx274 device tree binding file Date: Mon, 2 Oct 2017 13:26:48 -0700 Message-Id: <20171002202649.10897-1-leonl@leopardimaging.com> X-Mailer: git-send-email 2.14.0.rc1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJGtKZyaazZsBmVAEhMGcHIIVBjcQj9e5TUmoW+V6QiQaxyOqtUFIzs26oeRAl2qffcVfx3x17z6ittQCMqojEE/lQ2nb1Q4XuTWDhOLrRc2B8cUXK12 6ve5zInSMtJgKLx4Cokcg2ScbCHX/hQ0HYUTj2z0XVZlog2ZElezfJTAdiy1KVBZZmMHpx9pHSJ+oQ7QZ8J7ijwS1q0BAlL+fCbKmw/QAF61omGOqAw0O0pX g+dneY38Hk5pUmRcNnKv8AWXd1ZRqhXPxbpOV5+DEebN1vudM5UC8y9bqgyksM21iZksU1grbe/svcKc3NOSWF4kHqIhaAPjJ6bKyhHoihq7LlmKIqT/GWYX g3aTGwwSqdCV3yhzteEBL3LiBCyQk2DnWaxvSwhx5oErxDH4xdDIFxIoks4tzq+4ZKkseZ2KhtriQvHR7wPuBHkPCK+I6ZIIHiok4du8KqBMeTh4nAklN511 MO8iZQcKUWQJfAJ+FTM8GFaTF7ilsTnaeXk5EQf1yvaKh007exmN9qbGJzs= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The binding file for imx274 CMOS sensor V4l2 driver Signed-off-by: Leon Luo Acked-by: Sören Brinkmann Acked-by: Rob Herring --- v7: - no changes v6: - no changes v5: - add 'port' and 'endpoint' information v4: - no changes v3: - remove redundant properties and references - document 'reg' property v2: - no changes --- .../devicetree/bindings/media/i2c/imx274.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/imx274.txt diff --git a/Documentation/devicetree/bindings/media/i2c/imx274.txt b/Documentation/devicetree/bindings/media/i2c/imx274.txt new file mode 100644 index 000000000000..80f2e89568e1 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx274.txt @@ -0,0 +1,33 @@ +* Sony 1/2.5-Inch 8.51Mp CMOS Digital Image Sensor + +The Sony imx274 is a 1/2.5-inch CMOS active pixel digital image sensor with +an active array size of 3864H x 2202V. It is programmable through I2C +interface. The I2C address is fixed to 0x1a as per sensor data sheet. +Image data is sent through MIPI CSI-2, which is configured as 4 lanes +at 1440 Mbps. + + +Required Properties: +- compatible: value should be "sony,imx274" for imx274 sensor +- reg: I2C bus address of the device + +Optional Properties: +- reset-gpios: Sensor reset GPIO + +The imx274 device node should contain one 'port' child node with +an 'endpoint' subnode. For further reading on port node refer to +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: + sensor@1a { + compatible = "sony,imx274"; + reg = <0x1a>; + #address-cells = <1>; + #size-cells = <0>; + reset-gpios = <&gpio_sensor 0 0>; + port { + sensor_out: endpoint { + remote-endpoint = <&csiss_in>; + }; + }; + };