From patchwork Sun Apr 22 15:56:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10355621 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 B644860231 for ; Sun, 22 Apr 2018 15:56:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5A742893D for ; Sun, 22 Apr 2018 15:56:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A54B2897A; Sun, 22 Apr 2018 15:56:51 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, URIBL_RHS_DOB autolearn=ham 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 209CE2893D for ; Sun, 22 Apr 2018 15:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754598AbeDVP4s (ORCPT ); Sun, 22 Apr 2018 11:56:48 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34481 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754201AbeDVP4l (ORCPT ); Sun, 22 Apr 2018 11:56:41 -0400 Received: by mail-pg0-f66.google.com with SMTP id p10so6665452pgn.1; Sun, 22 Apr 2018 08:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZR69uFHCZLbhQUa4WoRyIJk66xI+6yHcFmcYtu8TbEw=; b=qvUi925sVLkn0HdPO2ySMBtdr9GM+nLYoPiNOEFVTMIhMKjblQWmHIy5MGxswaEjha k1TEZFxNTU/HEg2oII7ffsByJiJyM1ysXlhxUf1SuV3nP6umBOeJoSB8WNp3dZNhvHeg UgxjQ3zTwrgjJDqjlQHk+ns6mympDp2SYCAl2X8c6EqbXZS68MSLk24CNJer/YCax4hf OOQ3lbesD3Y1YohZLEPDIlu9t2IOcRJ4wwgBc5w5m6ehFsE9bp2wTIz3J4cGLbquZWFI yaUM8+N/bc7i2GyOriHa3vXE8Hm81hgJvASc/5buT6ce/RZHD6zNGKJZltMCiUD/p4Lb WiQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZR69uFHCZLbhQUa4WoRyIJk66xI+6yHcFmcYtu8TbEw=; b=peZTRhshZbi1TDoKjeP1uj8PjZcLFpDMt8nSpDx8jdMYYLjtpRtaQFDqztNerIQYZX MTVrd0XBWKQhQlRYjmin4ZM0xH2fpbG4vSAtmtHDOC6BcGYWbwWfSBv0sDt+GqLRRCOv UpsQJ6aot+6AethF8xuJr5wHEHfpSsgsF2Ig+FtfqxcG8Yup0i5sqwtA136jrv12j3xx QZWfYk4Dkpyugl+DTK8zcda02vNTLcGR9qVZg20oMdvw6+rEwWJQ77F0eydhGWQCUuTc S5+tBAXurOydGv0e/TA9/Kib2X+SMuWYRVlmLIIG8mx8Wsn6kDc6fAJeSvd0+t3dMtR8 HUdg== X-Gm-Message-State: ALQs6tAx4wwVtosBqJ1qDdOERy0MX2lWsFPEicjMPop5t4hbCZawYbtt JoS/vQjuKeFXSF9qQ6eNY52Wfg== X-Google-Smtp-Source: AIpwx48JMzobtLAMlZwVx7X7C6gYHn6QhNLnIAbgTK+GS0D/hLv8Ve5MsBHeE2FmNSYyupaijCGMIA== X-Received: by 2002:a17:902:31a4:: with SMTP id x33-v6mr17830588plb.355.1524412600343; Sun, 22 Apr 2018 08:56:40 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:a9a1:96f3:29de:6e47]) by smtp.gmail.com with ESMTPSA id y29sm255461pff.42.2018.04.22.08.56.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Apr 2018 08:56:39 -0700 (PDT) From: Akinobu Mita To: linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Jacopo Mondi , Laurent Pinchart , Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Rob Herring Subject: [PATCH v3 01/11] media: dt-bindings: ov772x: add device tree binding Date: Mon, 23 Apr 2018 00:56:07 +0900 Message-Id: <1524412577-14419-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524412577-14419-1-git-send-email-akinobu.mita@gmail.com> References: <1524412577-14419-1-git-send-email-akinobu.mita@gmail.com> 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 This adds a device tree binding documentation for OV7720/OV7725 sensor. Cc: Jacopo Mondi Cc: Laurent Pinchart Cc: Hans Verkuil Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Cc: Rob Herring Reviewed-by: Rob Herring Reviewed-by: Jacopo Mondi Signed-off-by: Akinobu Mita Reviewed-by: Laurent Pinchart --- * v3 - Add Reviewed-by: lines .../devicetree/bindings/media/i2c/ov772x.txt | 42 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov772x.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov772x.txt b/Documentation/devicetree/bindings/media/i2c/ov772x.txt new file mode 100644 index 0000000..b045503 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov772x.txt @@ -0,0 +1,42 @@ +* Omnivision OV7720/OV7725 CMOS sensor + +The Omnivision OV7720/OV7725 sensor supports multiple resolutions output, +such as VGA, QVGA, and any size scaling down from CIF to 40x30. It also can +support the YUV422, RGB565/555/444, GRB422 or raw RGB output formats. + +Required Properties: +- compatible: shall be one of + "ovti,ov7720" + "ovti,ov7725" +- clocks: reference to the xclk input clock. +- clock-names: shall be "xclk". + +Optional Properties: +- reset-gpios: reference to the GPIO connected to the RSTB pin which is + active low, if any. +- powerdown-gpios: reference to the GPIO connected to the PWDN pin which is + active high, if any. + +The device node shall contain one 'port' child node with one child 'endpoint' +subnode for its digital output video port, in accordance with the video +interface bindings defined in Documentation/devicetree/bindings/media/ +video-interfaces.txt. + +Example: + +&i2c0 { + ov772x: camera@21 { + compatible = "ovti,ov7725"; + reg = <0x21>; + reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_LOW>; + clocks = <&xclk>; + clock-names = "xclk"; + + port { + ov772x_0: endpoint { + remote-endpoint = <&vcap1_in0>; + }; + }; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 5ae51d0..1cc5fb1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10353,6 +10353,7 @@ T: git git://linuxtv.org/media_tree.git S: Odd fixes F: drivers/media/i2c/ov772x.c F: include/media/i2c/ov772x.h +F: Documentation/devicetree/bindings/media/i2c/ov772x.txt OMNIVISION OV7740 SENSOR DRIVER M: Wenyou Yang