From patchwork Sat Apr 7 15:48:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10327895 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 16673600CB for ; Sat, 7 Apr 2018 15:48:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06EC62951C for ; Sat, 7 Apr 2018 15:48:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFAC529529; Sat, 7 Apr 2018 15:48:57 +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 1B3CE2951C for ; Sat, 7 Apr 2018 15:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751886AbeDGPsz (ORCPT ); Sat, 7 Apr 2018 11:48:55 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33499 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbeDGPsy (ORCPT ); Sat, 7 Apr 2018 11:48:54 -0400 Received: by mail-pf0-f195.google.com with SMTP id f15so2878853pfn.0; Sat, 07 Apr 2018 08:48:53 -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=eHYkoHTIAGyZXamDnamwX6GrHrj86BZOBieNz5ShiHM=; b=aHk0Biun925dSAddfiPJHq0Wegsn7EK4IKZ56li8yuyMZHe5Ip6e23U2MKXs9tSscR 1Qc4++wnOOvEJuyD+702N4qzutJDIAVNXiTuXo5fWlzwNWOFQTyu5gyH4fa4WofEY3D4 4h+hTh23GYtJ13s2YSiSbAH9Tl6VTdzpCsytx3KgTLlX7njxwb0ne4nYGFO/5gbHavfl ir3ksv6sWgsjrkMGDjZbDstrmjJ7bObgcRvjGf38xVD/aTTTpfN4gfOyie6mM84Chgr1 XvtyRkYynS4zo6/yfH915wI97+tcAW0ijBeGqzh4AYE9DinCem4EgWpYb0ssZqNv9T01 YMIg== 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=eHYkoHTIAGyZXamDnamwX6GrHrj86BZOBieNz5ShiHM=; b=NJ1iCusNgHsz/+E+OkhQZ4UYmhr9mt97RF7PRZsLPqSBneGZuAxXWt53rwmIXK82p8 L/oNTNHQ6MdRhp90v1h0q3DoNXpCxLsDdnAUsgMpDF0O0DT13s8QUzkhfDsIrrGm7o1/ kV/E3/ukyvm/WUth7jzX3nMeWMnTb45WDaCLYXOVVw0PeYZHSeaMphQAVnfoNkAz6j7y tIXAQEoaKp1rwosAWs+INlZaLWMQqeHjYl/cRR6gts3Sw/2iFhV7qpxqyKKjPstsF5Aq TBubXotmv3Pu3jBxgnvIpnnL1FAawI/hgdpfSGGK5UxOM1XaQ/ufffRGruGVVg7GFK2Q VEog== X-Gm-Message-State: AElRT7H+oyJowI9+JyZLAM550DDFK7Ex7rguJ55tqO2nfDakhqohLcYV FxCMrqalz4jHKpags7NI1N89aA== X-Google-Smtp-Source: AIpwx4+oNIMG0GJ2qh7p8TZ9nztLe/+9C4gHojEkIJtSTukRl5YJRx1MFkIG1tuPthVZMKu6Le86GA== X-Received: by 10.99.123.70 with SMTP id k6mr20531685pgn.292.1523116133541; Sat, 07 Apr 2018 08:48:53 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:3c69:7d24:eba0:888]) by smtp.gmail.com with ESMTPSA id x14sm23536871pgo.82.2018.04.07.08.48.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 07 Apr 2018 08:48:52 -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 5/6] media: ov772x: add device tree binding Date: Sun, 8 Apr 2018 00:48:09 +0900 Message-Id: <1523116090-13101-6-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523116090-13101-1-git-send-email-akinobu.mita@gmail.com> References: <1523116090-13101-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 --- .../devicetree/bindings/media/i2c/ov772x.txt | 36 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 37 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..9b0df3b --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov772x.txt @@ -0,0 +1,36 @@ +* Omnivision OV7720/OV7725 CMOS sensor + +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: +- rstb-gpios: reference to the GPIO connected to the RSTB pin, if any. +- pwdn-gpios: reference to the GPIO connected to the PWDN pin, 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>; + rstb-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_LOW>; + pwdn-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 7e48624..3e0224a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10295,6 +10295,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