From patchwork Mon Apr 16 02:51:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10342069 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 4C963601C2 for ; Mon, 16 Apr 2018 02:52:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DDFA201CB for ; Mon, 16 Apr 2018 02:52:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 308E12228E; Mon, 16 Apr 2018 02:52:37 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 653CC201CB for ; Mon, 16 Apr 2018 02:52:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824AbeDPCwc (ORCPT ); Sun, 15 Apr 2018 22:52:32 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36661 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752630AbeDPCwa (ORCPT ); Sun, 15 Apr 2018 22:52:30 -0400 Received: by mail-pg0-f65.google.com with SMTP id z135so732605pgz.3; Sun, 15 Apr 2018 19:52:30 -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=f+wL/xe8dPQivxFY+iZpSWz2vB+IZahsTRQKoC/GP1Q=; b=LGW/Ebrk7p2oDiv6SYLssm+XiwzBrYOVkPu+iXIvwsFBFTTiFGGrHhvWh7b2jsql0X /FzSc3mg60LYw5JoHuEPg8EVEORZowypP8vPonjbZEtf6a4Mmfq5eB9hEA2P2hhVj3/U fd0GbR+MTrUDRxbNZXtRoro2g5vH5nse0OZElTluuHKy9iZ6bzyuC0e9oBJG3gbErpq5 mL2pQwZKhVD4r1tInpNlcD/PcKWNqcBZmrAHTrz2xljCW1TmyectlYykuxepQ+Va3z0Q 5xbJ3bo6lQIK3bTUYBOHYVpGDm0nrT0S7yC/wNWNCvDJWTzpom1m3xZr/MIR3lgbziwM rHog== 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=f+wL/xe8dPQivxFY+iZpSWz2vB+IZahsTRQKoC/GP1Q=; b=fl8CXTniMZzl1ZpW3PxuQCo7IWxrW7VhNZxGFnrCo1RYrBPzPhEngMBydcuqCA75RC Br97ye3jnLn+Pqn8JB/YXQ0n41MXA2W7nqWAbaWZkX26/lPiItVxrXWXWP8GpiJKVCW7 I5ydbffNVOnUEPgEXIbIpGSq6aNrN7/F83wur6PliIwpyVwKKeohPO8+reDGnaGHdyIw oP3Ov9lmz6F8RoVd/CEnsGDAcohUqtqBigNmnCmBbau4d2ueEwm9vfDLsXhVN0mLY4dv KXem4A2a6RLA+mN2mcLFB83nMIb81s7g2jg+sBkZ9UuPkTHLEzf38mIoKftl6i3pGuMx mrXA== X-Gm-Message-State: ALQs6tAx8YdC9RDmvr//Lb+1vBjhwueDjY4D+cjVApGve74YKw5ehUKp dO5+kbr0GNmmwEO+k4JUdk9Q4Q== X-Google-Smtp-Source: AIpwx495QjxUfJ1xL/EUKgEhiXOlLB4tP2SCXGjje52/Td2CHcVHUoJF3bX81BXz9l+2PmP65yYHaw== X-Received: by 10.99.37.196 with SMTP id l187mr11522165pgl.221.1523847149885; Sun, 15 Apr 2018 19:52:29 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:3df1:9c88:51ad:c027]) by smtp.gmail.com with ESMTPSA id e1sm3694274pgt.49.2018.04.15.19.52.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Apr 2018 19:52:29 -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 v2 06/10] media: dt-bindings: ov772x: add device tree binding Date: Mon, 16 Apr 2018 11:51:47 +0900 Message-Id: <1523847111-12986-7-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523847111-12986-1-git-send-email-akinobu.mita@gmail.com> References: <1523847111-12986-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 Signed-off-by: Akinobu Mita Reviewed-by: Rob Herring Reviewed-by: Jacopo Mondi --- * v2 - Add "dt-bindings:" in the subject - Add a brief description of the sensor - Update the GPIO names - Indicate the GPIO active level .../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 0a1410d..f500953 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10344,6 +10344,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