From patchwork Sun Apr 29 17:13:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10370605 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 C72FD60548 for ; Sun, 29 Apr 2018 17:13:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6F5D28A18 for ; Sun, 29 Apr 2018 17:13:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB57D28A27; Sun, 29 Apr 2018 17:13:46 +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 CDCE428A18 for ; Sun, 29 Apr 2018 17:13:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753850AbeD2RNh (ORCPT ); Sun, 29 Apr 2018 13:13:37 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34332 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753559AbeD2RNg (ORCPT ); Sun, 29 Apr 2018 13:13:36 -0400 Received: by mail-pg0-f66.google.com with SMTP id p10-v6so4813688pgn.1; Sun, 29 Apr 2018 10:13:35 -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=rNaUt0qQyRTdIDTAOMyCD0b+cVPTR7l+7VjUySH1njM=; b=qiH47Van1TVab/FDxJZ9i9IEQc2bbIILpLbWH1biyLM2+tqE59RDWzY8zoNsD5VGYq fNW7utbFl7uuijGtJkH6pnf6WjVYqindRMRblTVbFJqmfoSrOBPZShAMVBFB9hvxGZWr e8pYU8v2o1q6w3eLyWLAl06gNwDyhs44/LBvJfbIfczXhn4VcMnCW0xDxYo4hbnCy7Be OzFJ87aabXocT4nTl23yIOagLE2ZF/FC9h07CqbsU15MhHOEIqFM2FxLxwCRqYzN3nBc E61fRHs725V9d+n6wIVwVC5REU6D++rIfQ7UH1e9sjJI5YgKDQUUMPRefJ1jD+LMY4Is UgGQ== 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=rNaUt0qQyRTdIDTAOMyCD0b+cVPTR7l+7VjUySH1njM=; b=Di6APQLPMgKu9PF7+0S6nebGLj99svQJDi9Bpmj3LIROE8MVSyWkegATOj8OxKMrU+ fMzEfw67EvnClQhRylKKni6+2UxAAL8MxX9nJ5dNB3h8Vlf9O+EtsQWPmL7RE8S5Jy5J F/BWV6v2ddXKrYiGwWMQ5zhTlg+y6FlJ+XeoBYnVZIsmFwdsOFJJH3OgYq0EtAHJCg3+ ymmCAGZT27BZe4wrYVpfr80YES22js7hduPoepE7HsOi2BLZCFz6xBL2IPACLMYnh590 B0qi5U20xmP5Yv4+1QK/N7bDiqL2V1vJMtzbh3KCotyRTLAPM6RZS2471M8CsLo6Tf1X W0Ew== X-Gm-Message-State: ALQs6tDVT8O1B339DN/9amUJvXgHiGQCgfmXZvhNeXlR+FAVE3PGm428 41QWNMQNMoTGLJo29Y2dqKlOhg== X-Google-Smtp-Source: AB8JxZptpbvHOrHGe6oZIfxhS+QYZ9r1ZOjhFa844GuwaKbU3Wh4fxBX662jl5ir+9i3mh8VamB2Zg== X-Received: by 2002:a63:60ca:: with SMTP id u193-v6mr7803456pgb.197.1525022015357; Sun, 29 Apr 2018 10:13:35 -0700 (PDT) Received: from localhost.localdomain ([240f:4:c2bc:1:754e:5a21:c35f:52a1]) by smtp.gmail.com with ESMTPSA id e10sm10168022pfn.67.2018.04.29.10.13.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Apr 2018 10:13:34 -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 v4 01/14] media: dt-bindings: ov772x: add device tree binding Date: Mon, 30 Apr 2018 02:13:00 +0900 Message-Id: <1525021993-17789-2-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525021993-17789-1-git-send-email-akinobu.mita@gmail.com> References: <1525021993-17789-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 --- * v4 - Add Reviewed-by: line - Omit clock-names property .../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 db2bc3f..f39d78b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10363,6 +10363,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