From patchwork Tue Apr 17 09:10:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 133526 Delivered-To: patch@linaro.org Received: by 10.46.84.18 with SMTP id i18csp4489822ljb; Tue, 17 Apr 2018 02:11:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+4D77N10IlrYv2DjHMCndvA1ShbXnx9dcFIgGPEZ6ob9M00uxTjfxssTK63ZZFasOTi6z5 X-Received: by 10.99.39.135 with SMTP id n129mr1122762pgn.167.1523956289305; Tue, 17 Apr 2018 02:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523956289; cv=none; d=google.com; s=arc-20160816; b=orMXzhpeeEVFSKlBKlYoR7cTMdbgvNemrlyh/UOKx1fFqhB+G8db8Yi7nuKdifKzdQ hWUaZK1j2hQ/aZIl8Ld8qPKN9eH61yj/sC2O631fuDOzUxf2hwQ14CSzGqIiT8C/DlaP H0QGrsqe9UKoOXs0mfWzAklfP7QHmWeWj6R+ndZhRDvHOq/03xvscl9We/MbZo+WTY7Q o+Yc3gnhq23B4VxHXnGGClCUYq4pQSC/o84n7I75ssUnIgAF4Dqz6KPWw4suzok4aMDM m79WXEysFjhRFjAFcadyrgpoYlMA0Z/DpwpJS4T48cVy8PKMsXqFcTrALESe+/0MMWu8 8wDg== 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:dkim-signature :arc-authentication-results; bh=t/1pC2ubJQyGaGabjnENFlvW8PEpHpJ6qrkWxMUq8QI=; b=lcUt5F76jnUnvj8QBBy6u5/Q63V/DKaVB0JaT+JL6F1z/D1U8Dw72touyXDOqRTznI eklL7gPtnKiqj3vfqdH+oBke/lGvI3OmUWNSk14GMkS0ZsPI0V8FLwH/yIJOK4+f9aw4 2/wZcOpqusBcFrwRTLIetpZBp1f89tpl12gWQvFEdDv+Oc1HrfVdqllTIhb+jW9Hm5QR 8QtoLrDkxABhJ1OOAHmn9t/pSWvjzAlKc6hfpzemNpgyOduyPgAQfB60MbrdQeQfQ1hn 1EdPD0bO7ELA20Dsj4ur+Y4kdlfy52/2RJBUYr9xBkndWXUGUTEZdgYNmlaYPk1LdodG Su0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=ENlI0xQC; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25si12132209pfh.2.2018.04.17.02.11.29; Tue, 17 Apr 2018 02:11:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=ENlI0xQC; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752288AbeDQJL2 (ORCPT + 6 others); Tue, 17 Apr 2018 05:11:28 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:13945 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbeDQJL1 (ORCPT ); Tue, 17 Apr 2018 05:11:27 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w3H9B6wr017922; Tue, 17 Apr 2018 04:11:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1523956266; bh=+SLVhGFjjTi00+rhsuzzoVog2ph9AII9GwV8gXWxO0s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ENlI0xQCdETSdHL9hs9QyF3DN47rPL9usfQTf8DLEOSXCq2MhgeDTeCAJ15WrtJeo qXgBCZSi6mSUrzrwWS7fPpN5WJDMq/9aetT0RNEv+Ctt+AFJi7KvB6DAnLIa+4veYe IJKJe0WuC39X6SVnKKx/ZLmpIuEMPx3r7jKwe58w= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9B5QR021687; Tue, 17 Apr 2018 04:11:05 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Tue, 17 Apr 2018 04:11:05 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Tue, 17 Apr 2018 04:11:05 -0500 Received: from gomoku.home (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w3H9AdnC031430; Tue, 17 Apr 2018 04:11:01 -0500 From: Tero Kristo To: , , , CC: , , , , Benoit Parrot Subject: [RFC 07/13] ARM: dts: ti: add camera overlays Date: Tue, 17 Apr 2018 12:10:09 +0300 Message-ID: <1523956215-28154-8-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1523956215-28154-1-git-send-email-t-kristo@ti.com> References: <1523956215-28154-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Benoit Parrot Add two different camera overlays for am57xx-evm, mt9t111 and ov10635. Signed-off-by: Benoit Parrot Signed-off-by: Tero Kristo --- arch/arm/boot/dts/ti/mt9t111.dtso | 44 ++++++++++++++++++++++++ arch/arm/boot/dts/ti/ov10635.dtso | 71 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 arch/arm/boot/dts/ti/mt9t111.dtso create mode 100644 arch/arm/boot/dts/ti/ov10635.dtso -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/ti/mt9t111.dtso b/arch/arm/boot/dts/ti/mt9t111.dtso new file mode 100644 index 0000000..80e77ae --- /dev/null +++ b/arch/arm/boot/dts/ti/mt9t111.dtso @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2015-2018 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include + +&i2c5 { + mt9t11x@3C { + compatible = "aptina,mt9t111"; + bufen-gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; + camen-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>; + oscen-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; + reg = <0x3C>; + reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; + + port { + cam: endpoint { + hsync-active = <1>; + input-clock-freq = <32000000>; + pclk-sample = <0>; + pixel-clock-freq = <96000000>; + remote-endpoint = <&vin3a>; + vsync-active = <0>; + }; + }; + }; +}; + +&vin3a { + status = "okay"; + + endpoint { + remote-endpoint = <&cam>; + slave-mode; + }; +}; + +&vip2 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/ti/ov10635.dtso b/arch/arm/boot/dts/ti/ov10635.dtso new file mode 100644 index 0000000..856f5de --- /dev/null +++ b/arch/arm/boot/dts/ti/ov10635.dtso @@ -0,0 +1,71 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2015-2018 Texas Instruments Incorporated - http://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include + +/ { + fragment@101 { + target-path = "/"; + + __overlay__ { + clk_ov10635: clk_ov10635 { + compatible = "gpio-gate-clock"; + #clock-cells = <0>; + clocks = <&clk_ov10635_fixed>; + enable-gpios = <&gpio5 10 GPIO_ACTIVE_HIGH>; + }; + + clk_ov10635_fixed: clk_ov10635_fixed { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; + }; + }; +}; + +&i2c5 { + ov10635@30 { + compatible = "ovti,ov10635"; + clock-names = "xvclk"; + clocks = <&clk_ov10635>; + powerdown-gpios = <&gpio5 11 GPIO_ACTIVE_HIGH>; + reg = <0x30>; + reset-gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>; + + port { + cam: endpoint { + hsync-active = <1>; + pclk-sample = <1>; + remote-endpoint = <&vin3a>; + vsync-active = <1>; + }; + }; + }; +}; + +&vin3a { + status = "okay"; + + endpoint { + remote-endpoint = <&cam>; + slave-mode; + }; +}; + +&vip2 { + status = "okay"; +}; + +&gpio6 { + p11 { + gpio-hog; + gpios = <11 GPIO_ACTIVE_LOW>; + line-name = "cm-camen-gpio"; + output-high; + }; +};