From patchwork Sun May 6 14:19:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10382809 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 105BF6037F for ; Sun, 6 May 2018 14:19:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F24C72892B for ; Sun, 6 May 2018 14:19:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E729828970; Sun, 6 May 2018 14:19:52 +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 D54342892B for ; Sun, 6 May 2018 14:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563AbeEFOTu (ORCPT ); Sun, 6 May 2018 10:19:50 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35916 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751431AbeEFOTs (ORCPT ); Sun, 6 May 2018 10:19:48 -0400 Received: by mail-pg0-f67.google.com with SMTP id z129-v6so14277890pgz.3; Sun, 06 May 2018 07:19:48 -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=iMfD6aUmq70OO2ZaJBsO/YNobZ63IWLkkPr99QcQyxs=; b=bcxyY3rCwZVbt3/Lg/JZjZucoCDffsFCBXIHHmcs0Z/LZ3Xl0xzI7Z1wRVvq0sKD07 clRsjMjnn6zwMy2e9PKOOaxh7qjNAPL6GBgQHj1iMeW4QUUJHE7eHG0a0tAug/fa2zVJ dLGuOb03sB0PH77emgS5PaY5gwNY2tUYkc1TtqzzvV4jgS3szfCSik7QEb4T0j28jBfL 975aB2s1sbNGQxbtZ7fQhbbK5lMh2xUZT24UWxYCeFRRfZAo+UFGl75cQ4rAI+Gb4Bdc 0tu3+ZQ6SKRLbYwbv5ZVKwmlE4GGZ69xVqAsnWvw3D2BfqWLpyf6dTjvlW+JYce215sN PrTg== 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=iMfD6aUmq70OO2ZaJBsO/YNobZ63IWLkkPr99QcQyxs=; b=EvRCFxv8h+hChNtsXJOI0ZAsETtn6BRV8xPEHK43XaMnputvhQX5+EUVag0mzgpB/c gPeOTIO+PcCf3K6L9h+hzt7zZcFxQHseGbYcXoEplydCCg9h+TC61ZguRUka90O+OW+u 0gSBDDQefpvLPtD5L2mDjXbWxiLPc7WOsoUVYODfeOmODtlSKD0s+S9MzecCIKOIlbCm hg+J7DmwpfyLRnjNxG+Sm6y3Vs49ri8/41+0F4+tCvIZR04SaA8qqQoL1DDqKfFbHUcw Lc00pkY86hGiIT9VnZs1YjocoSMzUnki6jUCm5o2QXksan1zhqAOa3yTjS/i44UXjGPo r6rw== X-Gm-Message-State: ALQs6tAm2QO6IXmA7BDdOa3/b6wGYm/77EMstb9AgHc5HCQ4OqaJHsKM gpI7ADS5tI/UglT8ELdvwjioIg== X-Google-Smtp-Source: AB8JxZrYB2fRsJ70PftMHmO0qjvLFLHloqFhYMxo0EBQc9cHIYHWeEXeXfAB0PzUdbKuvvccZ2VhPQ== X-Received: by 2002:a63:5f4c:: with SMTP id t73-v6mr27858135pgb.226.1525616387741; Sun, 06 May 2018 07:19:47 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:141a:15e1:5268:11ce]) by smtp.gmail.com with ESMTPSA id s88sm58766771pfe.43.2018.05.06.07.19.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 May 2018 07:19:47 -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 v5 01/14] media: dt-bindings: ov772x: add device tree binding Date: Sun, 6 May 2018 23:19:16 +0900 Message-Id: <1525616369-8843-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525616369-8843-1-git-send-email-akinobu.mita@gmail.com> References: <1525616369-8843-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 Reviewed-by: Laurent Pinchart Signed-off-by: Akinobu Mita --- * v5 - No changes .../devicetree/bindings/media/i2c/ov772x.txt | 40 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 41 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..0b3ede5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov772x.txt @@ -0,0 +1,40 @@ +* 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. + +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>; + + port { + ov772x_0: endpoint { + remote-endpoint = <&vcap1_in0>; + }; + }; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index df6e9bb..cd4c270 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10356,6 +10356,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