Received: by 10.223.164.221 with SMTP id h29csp3239177wrb; Mon, 30 Oct 2017 18:19:05 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Se/dskT7ngMOQOpiGAvrcbb9h0q1+RgoSu15gdDgaUr87aZmXLx5k3+6RRKp8+clSeu/3L X-Received: by 10.159.194.196 with SMTP id u4mr241132plz.49.1509412745689; Mon, 30 Oct 2017 18:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509412745; cv=none; d=google.com; s=arc-20160816; b=dPMn4W4RZvfD4tp953PnOniN8/gRgr8soiu8ce0YmZ6fgUvlLQ4Upp9RoynLZ/hyCC 1C1pi8ZlpWxM7oWpJAlFpGCaTspAdn5VbYkd6UbrbqJOcHMpbTKRAIcoRXE+9NGqXJG7 G11tb+4rsrKNzeysP7h+OAftn5WI967uu8TuQl5tP5wuv6QsdWpSxFyqjCYHxN7zpnBe gHuiKzROfxBj/EG4Su0Ogoce1cxu0BFMYhFxkp8wrMyGP+nJfFH0o34U/ikbSdouc6+n lDhg/K8RNZg174rKUY9CpZUccFUDqbV0vuRXMQq+U0bo3z2eVqzTtNPxHehk7pBEcDjM DPoA== 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=qVk7o9sNH2MBt6y8hQruydQL2m7qH8WVFBbuFDhuPVg=; b=IBXakD8W/948/ty6XzOn7ZaAqOrHCg1dcWU3RmTQ0mYwK3ta43VhUGzJRdpXbIlthH UJosc5zntIZXEqvGdYbNe09FwyvHZH9UVV4Pt795c+/lfZHeQvnlKVJ/Nu2opNZfpO9t RweaMEFcjTngtbFuD0afZx5JnZ9enay07BTm3cZtKmpYJ7rhF+RHRQsQBNaINQMPBIRG Vb5VfFm9Byx7oXPCEX8PO5m1z2AsRL3bzn760wDfmNOBDhAE20q8yKrv2snMnDgNZwyU 5wIVZ0LnPfAilJpPzLB2+ODnUOScE3aUmV6nATggM52HRm2swQHmG2N+GcMwIAz7Ukgt 0elw== 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 u4si219814plr.147.2017.10.30.18.18.52; Mon, 30 Oct 2017 18:19:05 -0700 (PDT) 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 S1753343AbdJaBQL (ORCPT + 99 others); Mon, 30 Oct 2017 21:16:11 -0400 Received: from f5out.microchip.com ([198.175.253.81]:52192 "EHLO DVREDG02.corp.atmel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752919AbdJaBQD (ORCPT ); Mon, 30 Oct 2017 21:16:03 -0400 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, 30 Oct 2017 19:16:01 -0600 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, 31 Oct 2017 09:21:18 +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 v4 2/3] media: ov7740: Document device tree bindings Date: Tue, 31 Oct 2017 09:11:44 +0800 Message-ID: <20171031011146.6899-3-wenyou.yang@microchip.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20171031011146.6899-1-wenyou.yang@microchip.com> References: <20171031011146.6899-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 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.13.0 From 1583027002133005343@xxx Fri Nov 03 06:56:34 +0000 2017 X-GM-THRID: 1582992637528765571 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread