Received: by 10.223.164.202 with SMTP id h10csp2621943wrb; Mon, 27 Nov 2017 21:29:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMZaszfDGLaMT4FiGUwu7TqXoC6xhNmM6UCo93OV5dLMrYY2aeaCSEZb5oAnPMcEoeh+tOrw X-Received: by 10.101.100.215 with SMTP id t23mr13988464pgv.433.1511846953072; Mon, 27 Nov 2017 21:29:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511846953; cv=none; d=google.com; s=arc-20160816; b=jW/SGLDnYpxAgfjuzlSKMTQkGo+K8C5zgTFfRP+fT+ASfaBz4OIRll+I5UezBWo4Rj ni3KWoGZZbdsxYFJymTTVWQKtj6t6REjPJue/sg70xi1l1GuHm/JBP4ZIZ8s0vkWNLVu jF5L/q6Lw0lrqaduOXMU9Bv18yB5rM7sCrMjt7Bso/bL8WiHuclFO+Vw6aZ9YQdQPgFu 3xPaakTLDoWP3+qqTfnJGRDvQoqK+N3drVmcn8YnvqTjzVC8P8vui7yXTZ6lf2tW89NY +hp31UuSRcQEF0TYWOUfNxGo7eua7hw/jeI6qif1f/oZ/2BpNEzEFO8HKgMCV490LE+y FgVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=qYXTWQX3ZTREEtdht6nUbW7L4GLwV7QEkjzNiTksYZM=; b=J4xwNxI/NEZ9jlEVXh/zKohzr/8SVjAzwkmd38/fFMVEgO9jP6ntMclxZ6Q/wNCDdk z4Qa8OOI+kWU34WWZwOy54H21/G3ZiIbv+kGNXQSRm2ZCryjngmouB/KEfakL/9fz8NN 5Va1Cbzd94Ya+UNCrzXTmV+lbZdX8HiVb+sqvsr17QW8qA2HXUrKk69n5V8dvRyPWfSF z4IJsEMi+c6ZjAxJvSX7lW7QPTJdKIrbmNBHWLJIAtJ8khjQzK1dJhMnvp/ArcqdSL7B Bg+My90N7506DRqlkDxag+qzkRnQ72IfreK5owf60YL5stAtSAjaMLJ3kMjTuLKDt7Pq sBmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si24198272pgn.333.2017.11.27.21.29.01; Mon, 27 Nov 2017 21:29:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751648AbdK1F2O (ORCPT + 77 others); Tue, 28 Nov 2017 00:28:14 -0500 Received: from f5out.microchip.com ([198.175.253.81]:51671 "EHLO DVREDG02.corp.atmel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751567AbdK1F2K (ORCPT ); Tue, 28 Nov 2017 00:28:10 -0500 Received: from apsmtp01.atmel.com (10.168.254.30) by DVREDG02.corp.atmel.com (10.10.204.149) with Microsoft SMTP Server (TLS) id 14.3.235.1; Mon, 27 Nov 2017 22:28:30 -0700 Received: from shaarm01.corp.atmel.com (10.168.254.13) by apsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server id 14.3.235.1; Tue, 28 Nov 2017 13:34:53 +0800 From: Wenyou Yang To: Mauro Carvalho Chehab , Rob Herring , Mark Rutland CC: , Nicolas Ferre , , Sakari Ailus , Jonathan Corbet , Hans Verkuil , , "Linux Media Mailing List" , Wenyou Yang Subject: [PATCH v5 1/2] media: ov7740: Document device tree bindings Date: Tue, 28 Nov 2017 13:22:58 +0800 Message-ID: <20171128052259.4957-2-wenyou.yang@microchip.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171128052259.4957-1-wenyou.yang@microchip.com> References: <20171128052259.4957-1-wenyou.yang@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the device tree binding documentation for the ov7740 sensor driver. Signed-off-by: Wenyou Yang --- Changes in v5: None Changes in v4: None Changes in v3: - Explicitly document the "remote-endpoint" property. Changes in v2: None .../devicetree/bindings/media/i2c/ov7740.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov7740.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov7740.txt b/Documentation/devicetree/bindings/media/i2c/ov7740.txt new file mode 100644 index 000000000000..af781c3a5f0e --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov7740.txt @@ -0,0 +1,47 @@ +* Omnivision OV7740 CMOS image sensor + +The Omnivision OV7740 image sensor supports multiple output image +size, such as VGA, and QVGA, CIF and any size smaller. It also +supports the RAW RGB and YUV output formats. + +The common video interfaces bindings (see video-interfaces.txt) should +be used to specify link to the image data receiver. The OV7740 device +node should contain one 'port' child node with an 'endpoint' subnode. + +Required Properties: +- compatible: "ovti,ov7740". +- reg: I2C slave address of the sensor. +- clocks: Reference to the xvclk input clock. +- clock-names: "xvclk". + +Optional Properties: +- reset-gpios: Rreference to the GPIO connected to the reset_b pin, + if any. Active low with pull-ip resistor. +- powerdown-gpios: Reference to the GPIO connected to the pwdn pin, + if any. Active high with pull-down resistor. + +Endpoint node mandatory properties: +- remote-endpoint: A phandle to the bus receiver's endpoint node. + +Example: + + i2c1: i2c@fc028000 { + ov7740: camera@21 { + compatible = "ovti,ov7740"; + reg = <0x21>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sensor_power &pinctrl_sensor_reset>; + clocks = <&isc>; + clock-names = "xvclk"; + assigned-clocks = <&isc>; + assigned-clock-rates = <24000000>; + reset-gpios = <&pioA 43 GPIO_ACTIVE_LOW>; + powerdown-gpios = <&pioA 44 GPIO_ACTIVE_HIGH>; + + port { + ov7740_0: endpoint { + remote-endpoint = <&isc_0>; + }; + }; + }; + }; -- 2.15.0 From 1585425820935906774@xxx Wed Nov 29 18:24:45 +0000 2017 X-GM-THRID: 1585422000827706174 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread