From patchwork Thu Nov 22 15:18:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 151796 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp877299ljp; Thu, 22 Nov 2018 07:19:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/UL27B4org1MFAKBUyBGlYp8nJsJ2SL7g2+OyqtjAtgIaUhh19n60GE9xr5L9u0OSA+cdNc X-Received: by 2002:a63:a84a:: with SMTP id i10mr10625002pgp.263.1542899955645; Thu, 22 Nov 2018 07:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542899955; cv=none; d=google.com; s=arc-20160816; b=dakgDJC/Gu9qKyLZZouX2oov/OKxnQida3crPExJmdLa7I55J7QF22Sy8OkNPkV8rc 4PJVEm6qaL5H7qhI2RDLBw4yQ1HXqODdqkGWAhBF3HeOlcIwNv9NA5nYg0mhZV5bDpa8 /P7+V7FsvmsXAgrYlz9t4kpse+I2S7g/HnCKCBW/BNUF7RTd13pp3BVW5VPwvXodafhF vQE4U1XYbW4e1D56E4SrEHmuM0GVVODeAvFhFYpSSuAV7MxzaC875ij/4S6IPBy81RxO oE+Y0YAwRckZtO/8zzEeMT/x6m/hRxhEFJj7+GMlroYHezuzb1PiyVPMhpFvL8Foq+z0 Kv9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=75uIXLgjHMqHSaLVtS+l1jKHfW+/RhI5naRHtAooAd4=; b=un5gQCS9Lyu3/RGCDwSx3h++swj4aUJ7gK+GsiEznRx0qunRdeb8he1I0gvOYq+fxq /Ysad4Y8Ms/sJnFjSOdUNqx+QI5Js1zFah4QZpTf6CLzVa0OUg8bC2o8zG17GMtBILi3 1+Pj0S/sK3i9LPWbns5FyOP3F8v4eqZYJkrpLLrvMKKdAeWeb5UjkWoB3jPEEdZo0Rtb jNjR29i1AwaS4kqC0LFJTHlDi4YpPProId0Sp57Ecyp+vmF+drFsEmp2lXdtmJinP2yJ JoFgMIKDoz+/aVdA6KVBsyrBSbSmHL4CIsO8+qdjVG2RHAB4us4b7th3KYhpM0/drQVS J6Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cAcLMH0f; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si27736717pgl.468.2018.11.22.07.19.15; Thu, 22 Nov 2018 07:19:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cAcLMH0f; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437578AbeKWB7C (ORCPT + 4 others); Thu, 22 Nov 2018 20:59:02 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52953 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437573AbeKWB7B (ORCPT ); Thu, 22 Nov 2018 20:59:01 -0500 Received: by mail-wm1-f65.google.com with SMTP id r11-v6so9290377wmb.2 for ; Thu, 22 Nov 2018 07:19:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=75uIXLgjHMqHSaLVtS+l1jKHfW+/RhI5naRHtAooAd4=; b=cAcLMH0fyt52Od+JVFJ1W1dR3/jEW6CWGSdlvgrdRECjgInP0a67+wzYOp2KxVXaYH 0b5oBo9zQfwcn0eUio2/YZhisQdkRFPCjO2sTDGP3mydLbzEQGL6eGVj+64C22xUBfOx PbaYAX9W5gqH3XFt0KG6QVJBo7MGerTXUJbRc= 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:mime-version:content-transfer-encoding; bh=75uIXLgjHMqHSaLVtS+l1jKHfW+/RhI5naRHtAooAd4=; b=tm3V/SK3srLPQq6WyN5SJqSMHb3aso4wpubPk/05w/BMuDtiesZ8jk8Q/PB8v2FhBY bk+1TxGmjCoXb8xa34zlpq5IDzqUL3UfijZvGcC1+eVoEQU4a7EbvTvO7Y6E667Msbq+ FPNk/HwlkW1bgLk+Uu/B6cFmef94x2z/zujvFqVqzg2fzfDs+8gB5NPw62ag9EP7tO+J 1PQeVwd5i16W9Iq2y0L7OqzNv1s6QbUcMJoOfvyZ0z/m1ScAzzTU0YRMgolNN1xR7gHc 9AsrKcWV8m2R65AyLCQzfdveqKxiOPlpvKmeidjtKLiVrj+q7zRR3qRxGsRucsW8jXx5 is4w== X-Gm-Message-State: AA+aEWYYfbOStnKrg/OdboJWTz66r2JBiusz+A7A8FgMXed/NeXu7LA0 SRipkERyRjGEix1yd9/XTlzOow== X-Received: by 2002:a1c:ac05:: with SMTP id v5-v6mr10793011wme.144.1542899952472; Thu, 22 Nov 2018 07:19:12 -0800 (PST) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id q7-v6sm4642476wmg.27.2018.11.22.07.19.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 07:19:12 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Steve Longerbeam , Hans Verkuil , Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v9 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Thu, 22 Nov 2018 15:18:30 +0000 Message-Id: <20181122151834.6194-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181122151834.6194-1-rui.silva@linaro.org> References: <20181122151834.6194-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Warp7 comes with a Omnivision OV2680 sensor, add the node here to make complete the camera data path for this system. Add the needed regulator to the analog voltage supply, the port and endpoints in mipi_csi node and the pinctrl for the reset gpio. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 2.19.1 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 757856a3964b..4ada85850411 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -54,6 +54,14 @@ regulator-always-on; }; + reg_peri_3p15v: regulator-peri-3p15v { + compatible = "regulator-fixed"; + regulator-name = "peri_3p15v_reg"; + regulator-min-microvolt = <3150000>; + regulator-max-microvolt = <3150000>; + regulator-always-on; + }; + sound { compatible = "simple-audio-card"; simple-audio-card,name = "imx7-sgtl5000"; @@ -177,6 +185,27 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; + + ov2680: camera@36 { + compatible = "ovti,ov2680"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ov2680>; + reg = <0x36>; + clocks = <&osc>; + clock-names = "xvclk"; + reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; + DOVDD-supply = <&sw2_reg>; + DVDD-supply = <&sw2_reg>; + AVDD-supply = <®_peri_3p15v>; + + port { + ov2680_to_mipi: endpoint { + remote-endpoint = <&mipi_from_sensor>; + clock-lanes = <0>; + data-lanes = <1>; + }; + }; + }; }; &i2c3 { @@ -318,6 +347,15 @@ #size-cells = <0>; fsl,csis-hs-settle = <3>; + port@0 { + reg = <0>; + + mipi_from_sensor: endpoint { + remote-endpoint = <&ov2680_to_mipi>; + data-lanes = <1>; + }; + }; + port@1 { reg = <1>; @@ -381,6 +419,12 @@ >; }; + pinctrl_ov2680: ov2660grp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x14 + >; + }; + pinctrl_sai1: sai1grp { fsl,pins = < MX7D_PAD_SAI1_RX_DATA__SAI1_RX_DATA0 0x1f