From patchwork Sun Jan 7 16:54:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10148397 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 CB7A56037E for ; Sun, 7 Jan 2018 16:54:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC826286C7 for ; Sun, 7 Jan 2018 16:54:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B041F2874E; Sun, 7 Jan 2018 16:54:53 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 4F302286C7 for ; Sun, 7 Jan 2018 16:54:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754169AbeAGQyu (ORCPT ); Sun, 7 Jan 2018 11:54:50 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:35053 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754144AbeAGQyt (ORCPT ); Sun, 7 Jan 2018 11:54:49 -0500 Received: by mail-pl0-f68.google.com with SMTP id b96so6262498pli.2; Sun, 07 Jan 2018 08:54:49 -0800 (PST) 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=AYIVmNIkVatQYr1UY1RrBCkXPwkjPUKJINMj8OerGJQ=; b=ulv6FZn62If3OcWpf8k5XFKoZdCxC8xLij6+hh9qdMqeXNzFFwikXyIzx4L7qb7b/M UwTwZnG9wGvoE4DPy/Qk623kilyG6Gb+qIoGBHzxN7k8gz47j36WZgqu0gV3BreCKXl9 XwBjat83PffAZv2pTGK4YqddkgEI2ImreGXNsrMHkIhdnLXXyH3eWFD9MSgbB0fH5wYf 9kYZ+PCoymllv/CadNipUX7rQr5F/kh/ayi0JkBaM8uiRzFaBpPbF4fZ1w3jBkBmygRO I2JqvXPIM3R6MSQnOtUiFJmO4tQMMrXx//PPYuyoemj7IDuqdg7ftn50R0h1YCSX9/pr IGsQ== 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=AYIVmNIkVatQYr1UY1RrBCkXPwkjPUKJINMj8OerGJQ=; b=enbA5NxjoUHwl8yTJIsq/NIKsPaLby+fXlos1JYg/FVcjD0KnTeIUv/Dt/XcomLEu5 ugYxtHmSYq7R6n5z3nWJZM3is0TcelcmKR3HRHkHcFUlIH89xHEKQNa1wqSl2Ib/TQ+E hCs14a0iezcf8FQ5SEiud2mOCpAAy1eAEZAArOwNUSfJXiDmxuqicvC4f6dR+ccFdjVn yuBmc8TfNWaPoVusFhzxow/9L2XsvA53rvNMoJ8Jy1EoGm64vX1c/+hcXgCz+iVDiz+P cYvMYMqhrL2UDdXi40m+ZCnfB/ohkiyOPMeZqK69DqTIYmXCEmbLbViv3b/kK+PktB88 yquQ== X-Gm-Message-State: AKGB3mJRNq/h4gwAgpxXIQOtDs8x7IfAbBm41tcV9uRSj7tRn7yX4j4h ZGSzEjTiRS76yc84mAaJwyE3eQ== X-Google-Smtp-Source: ACJfBotbINKxKRra40yheGYJYz3d9gAyq1N3ERyQqGa+A0wrg5PaEoarViFAnOQdZcCK30pJFtBYrw== X-Received: by 10.84.132.33 with SMTP id 30mr9643783ple.126.1515344089019; Sun, 07 Jan 2018 08:54:49 -0800 (PST) Received: from localhost.localdomain ([240f:4:c2bc:1:84a5:3115:5ee0:1ded]) by smtp.gmail.com with ESMTPSA id b10sm23056318pfj.20.2018.01.07.08.54.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Jan 2018 08:54:48 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Akinobu Mita , Jacopo Mondi , "H . Nikolaus Schaller" , Hugues Fruchet , Sakari Ailus , Mauro Carvalho Chehab , Rob Herring Subject: [PATCH v2 2/2] media: ov9650: add device tree binding Date: Mon, 8 Jan 2018 01:54:24 +0900 Message-Id: <1515344064-23156-3-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515344064-23156-1-git-send-email-akinobu.mita@gmail.com> References: <1515344064-23156-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 Now the ov9650 driver supports device tree probing. So this adds a device tree binding documentation. Cc: Jacopo Mondi Cc: H. Nikolaus Schaller Cc: Hugues Fruchet Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Cc: Rob Herring Signed-off-by: Akinobu Mita Reviewed-by: Rob Herring --- * Changelog v2 - Split binding documentation, suggested by Rob Herring and Jacopo Mondi - Improve the wording for compatible property in the binding documentation, suggested by Jacopo Mondi - Improve the description for the device node in the binding documentation, suggested by Sakari Ailus .../devicetree/bindings/media/i2c/ov9650.txt | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov9650.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov9650.txt b/Documentation/devicetree/bindings/media/i2c/ov9650.txt new file mode 100644 index 0000000..506dfc5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov9650.txt @@ -0,0 +1,36 @@ +* Omnivision OV9650/OV9652 CMOS sensor + +Required Properties: +- compatible: shall be one of + "ovti,ov9650" + "ovti,ov9652" +- clocks: reference to the xvclk input clock. + +Optional Properties: +- reset-gpios: reference to the GPIO connected to the resetb pin, if any. + Active is high. +- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any. + Active is high. + +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 { + ov9650: camera@30 { + compatible = "ovti,ov9650"; + reg = <0x30>; + reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_HIGH>; + clocks = <&xclk>; + + port { + ov9650_0: endpoint { + remote-endpoint = <&vcap1_in0>; + }; + }; + }; +};