From patchwork Wed Feb 6 15:13:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 157638 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6525345jaa; Wed, 6 Feb 2019 07:14:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IYlvkzdqcjk36NaL1hjTXi8dsVtskMRZhpBhxTgqrPJ0xaLQY0Q3QP2Lsc8y0eGiVUv3/q8 X-Received: by 2002:a17:902:9a84:: with SMTP id w4mr2224006plp.283.1549466041732; Wed, 06 Feb 2019 07:14:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549466041; cv=none; d=google.com; s=arc-20160816; b=isMka4BP5yWhOwMa36TxRAkyclVlt8qVuaY9uLq5HbmZZcxzyno5xn4fTcs2Nrz1vM ABLGhnO3/dumzWznc3DzoN2WNcsv8jNh1D48lNkC5dxIrkgxgtwfyPmzu/FlvYSOF8L1 EQG7foWQRsISaXn8XDG1BUfD/3s65edFYsyzxNzn1N1LpA+m/O+l6OSDU+8Y+oPJgWPw cqoeEBz7/GM6A8G7v9H0HWy3SMyIC4je5FBnkjxLXYTT6qsG9Kvj9p5WXJyMuna6UfME UqMOf7xi8DnNb1h3/f+4pt/HFizaKmIArjgRAK214uBKyfqkun27nj20T+UZGP+lldLv DlYw== 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=ohoegLfKZSxjvRFUtoqBy2pbuyibvlUW+N0NidjtxBs=; b=JwdPSOKi20SFvfO/G8Fx3taTjRcunqDEBz8kWd/qBTVBgbzyg+D15hAtaCAvQqee18 PVYhnk/403HrmvA1Jci42t9j0Hth1IT1UbkdOOddUF/+6JWtflFu9n/bwL0nc9cfiUu2 7EimAS9xP3SIAblHiEGwDLne7xVJL6KnlcKRuFUQgKIeA6QVYBRDZZT1kfcvslTOFgoZ cAEkGa4gPiHvJdEqzIMCnxPA9+CrSDy5DbKHaKnM/qnEKI4N7anpVkZMXxjFSFmCuQGS 00XHgsfAoY7urfyo7m88WrEvnS7TMDLyj1T02H9HWScTGuxuoie2xQ0gdtwKWNKgpR+s Nhtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pn4K7ZYI; 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 e4si6111576pgk.127.2019.02.06.07.14.01; Wed, 06 Feb 2019 07:14:01 -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=pn4K7ZYI; 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 S1731181AbfBFPOB (ORCPT + 4 others); Wed, 6 Feb 2019 10:14:01 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:32870 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731166AbfBFPOA (ORCPT ); Wed, 6 Feb 2019 10:14:00 -0500 Received: by mail-wm1-f67.google.com with SMTP id h22so2060625wmb.0 for ; Wed, 06 Feb 2019 07:13:59 -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=ohoegLfKZSxjvRFUtoqBy2pbuyibvlUW+N0NidjtxBs=; b=pn4K7ZYIrS9u71qUxLlTeVWERspjVNub93qMf4Clp5eEdWy3OB8/Rb3BEHrQgCcR0I XOXpA4+RDmMmk1JdyL8iXM8b124/9JwFfHOr6ts0RCMO4yrAaJpRQfG1HoL8M04TxL+1 +VTvLeh8Xix5kkONNz2FOSEbxlznEKYmZPgTkOLvnbzn14c1rMfcPArmR2R2XCuKmCno 0ox8IIsALb+elFkHh9YZrgr6QljtKSqerpHotAubKpyogxw5BtWjkKZ+MA1nR8x/Dlcn VIgFKpBDn4PtMi+pwGMPtzCDToQ0fKpVUMC5Bl/EWDEJ9o8cinrIE/sB5wo+8zTdIAlf ZDzQ== 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=ohoegLfKZSxjvRFUtoqBy2pbuyibvlUW+N0NidjtxBs=; b=UZ/07ez4FLkA3Wax0tdEMDGHl1YUS2hRdNGfZ/YNX7lrJlKSd3tTeR0YALCI1S9Vsc LNe0+oe+lM0W0Z3OAzPhpgs1ahw8dhh2ZZKBhb4mCaCPlxf3Y83mabJ+OeJVOClkfJfL odBscR/7FYASuOen8BQwh26te9yVDG2oqcGqCMs5b007zf4291GfVkN7uzrYCBN3y/+X rJEcUBBzc4pzD7dQx1/LeXtRA1TEZwuY5lzag+WZAAWOiGezVFliUEo2oeob7gdwV+tK cp6Mc1nUQJ0yJBdajp3BS1TQvsrVVBHRjjex/50/4RJYGUk3SQFrj1ik2ye1qSL/AlLU CxUQ== X-Gm-Message-State: AHQUAub7v7sceMLZD8Qr0A5lQZFh0MiWrrXt5ivPs2fvCfxhs1VjCG3w jJVfQ0ToEdR4Euc6XP2N3MF8vA== X-Received: by 2002:a7b:cc03:: with SMTP id f3mr3221195wmh.95.1549466038528; Wed, 06 Feb 2019 07:13:58 -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 f22sm11207836wmj.26.2019.02.06.07.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 07:13:58 -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 v14 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Wed, 6 Feb 2019 15:13:24 +0000 Message-Id: <20190206151328.21629-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206151328.21629-1-rui.silva@linaro.org> References: <20190206151328.21629-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.20.1 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 358bcae7ebaf..58d1a89ee3e3 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -55,6 +55,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"; @@ -178,6 +186,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 { @@ -319,6 +348,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>; @@ -382,6 +420,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