From patchwork Thu Oct 5 00:06:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leon Luo X-Patchwork-Id: 9986015 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 32692605A8 for ; Thu, 5 Oct 2017 00:07:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2569C28B11 for ; Thu, 5 Oct 2017 00:07:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A21F28C29; Thu, 5 Oct 2017 00:07:03 +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 CC40A28B11 for ; Thu, 5 Oct 2017 00:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbdJEAGa (ORCPT ); Wed, 4 Oct 2017 20:06:30 -0400 Received: from p3plsmtpa12-09.prod.phx3.secureserver.net ([68.178.252.238]:57575 "EHLO p3plsmtpa12-09.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbdJEAG3 (ORCPT ); Wed, 4 Oct 2017 20:06:29 -0400 Received: from localhost.localdomain ([75.84.179.146]) by :SMTPAUTH: with SMTP id ztgEdBISB7jpvztgJdDsNW; Wed, 04 Oct 2017 17:06:29 -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 v8 1/2] media:imx274 device tree binding file Date: Wed, 4 Oct 2017 17:06:20 -0700 Message-Id: <20171005000621.27841-1-leonl@leopardimaging.com> X-Mailer: git-send-email 2.14.0.rc1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJFC4t4qNU7ZFcD7QN2RutTiQ5XwcAv1pWtS7jDo23GSAXDd52WM3VppnBFe6an61epbmhy58lMIFCBuRmoQfk6iXO409QIdATsohi/VfblUWMcbaAMb Q4cjInvWBwkv1RqSEp8fnShb+u6P2277FvsmMDo3dpH+MMwJOeZOcgyDD262j1ldzylOTlGmSDg+0mqqKE+BdK0n3dmTBQn3o4Iqd1eGjehGIG5MuvXSrY9j Kio8euNVRPP3VyUtG8y9rPJMNQ2PY72cdvhuZnnicCpQV/QzZMbtI54S60g4Rktw2UH/BeZ0j+UYUqaH5qTOTGdEwVtXeApvMIoPxkj8RLLRw3n4oJaJLKbn PtpKek0pUENzDTCjUxaRU28g0Jj1Tb7wEoDyuKFr27L8xnIfHB5WqpgJVVu0c4Sr3nMWDuYRJh2ZmwMSWHPXg4Zxw2dcfKO5DZzXSAZgGjzpP9J+zJO6Z0nR X/vvxLDPm+Lq7WSBV7VWaoL86KouUEWW192K7u+z8pWvWzBzJ2/J970ODrE= 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 --- v8: - no changes 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>; + }; + }; + };