From patchwork Thu Aug 8 09:22:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dongchun Zhu X-Patchwork-Id: 1143911 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4642vv3L15z9sNy for ; Thu, 8 Aug 2019 19:22:35 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731955AbfHHJWe (ORCPT ); Thu, 8 Aug 2019 05:22:34 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:18033 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731960AbfHHJWe (ORCPT ); Thu, 8 Aug 2019 05:22:34 -0400 X-UUID: 5feaf8afa18445ec85910ceea3339057-20190808 X-UUID: 5feaf8afa18445ec85910ceea3339057-20190808 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1700404041; Thu, 08 Aug 2019 17:22:26 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 8 Aug 2019 17:22:27 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 8 Aug 2019 17:22:26 +0800 From: To: , , , , , , , CC: , , , , , , , , Subject: [V1, 1/2] media: dt-bindings: media: i2c: Add bindings for ov8856 Date: Thu, 8 Aug 2019 17:22:14 +0800 Message-ID: <20190808092215.5608-2-dongchun.zhu@mediatek.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20190808092215.5608-1-dongchun.zhu@mediatek.com> References: <20190808092215.5608-1-dongchun.zhu@mediatek.com> MIME-Version: 1.0 X-MTK: N Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Dongchun Zhu Add device tree binding documentation for the ov8856 camera sensor. Signed-off-by: Dongchun Zhu --- .../devicetree/bindings/media/i2c/ov8856.txt | 41 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov8856.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.txt b/Documentation/devicetree/bindings/media/i2c/ov8856.txt new file mode 100644 index 0000000..96b10e0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov8856.txt @@ -0,0 +1,41 @@ +* Omnivision OV8856 MIPI CSI-2 sensor + +Required Properties: +- compatible: shall be "ovti,ov8856" +- clocks: reference to the xvclk input clock +- clock-names: shall be "xvclk" +- avdd-supply: Analog voltage supply, 2.8 volts +- dovdd-supply: Digital I/O voltage supply, 1.8 volts +- dvdd-supply: Digital core voltage supply, 1.2 volts +- reset-gpios: Low active reset gpio + +The device node shall contain one 'port' child node with an +'endpoint' subnode for its digital output video port, +in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. +The endpoint optional property 'data-lanes' shall be "<0 1 3 4>". + +Example: +&i2c7 { + ov8856: camera-sensor@10 { + compatible = "ovti,ov8856"; + reg = <0x10>; + pinctrl-names = "default"; + pinctrl-0 = <&clk_24m_cam>; + + clocks = <&cru SCLK_TESTCLKOUT1>; + clock-names = "xvclk"; + + avdd-supply = <&mt6358_vcama2_reg>; + dvdd-supply = <&mt6358_vcamd_reg>; + dovdd-supply = <&mt6358_vcamio_reg>; + reset-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; + + port { + wcam_out: endpoint { + remote-endpoint = <&mipi_in_wcam>; + data-lanes = <0 1 3 4>; + }; + }; + }; +}; diff --git a/MAINTAINERS b/MAINTAINERS index 783569e..7746c6b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11889,6 +11889,7 @@ L: linux-media@vger.kernel.org T: git git://linuxtv.org/media_tree.git S: Maintained F: drivers/media/i2c/ov8856.c +F: Documentation/devicetree/bindings/media/i2c/ov8856.txt OMNIVISION OV9650 SENSOR DRIVER M: Sakari Ailus