From patchwork Fri Aug 10 14:20:42 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: 143937 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp16042ljj; Fri, 10 Aug 2018 07:21:54 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxEi1/Jd+6NegqisaCaO9At3zBsH6YSUI7EtajtmktIdLeRiijf+G1cuanoyJ9TweOYfD0M X-Received: by 2002:a63:bf08:: with SMTP id v8-v6mr6549736pgf.3.1533910914636; Fri, 10 Aug 2018 07:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533910914; cv=none; d=google.com; s=arc-20160816; b=0EYx06ynJh1JTX8957JuHBD5EjtaIitDPO4OsoF9C4IgVN8PRvfphHFExTCB48cxuA PNxi+39pDlOhj5RUSklkrM62NI3hdBZyNj1+W+c1XtHQDZLvFfxiOprQG7gu3ygH7pDg yLgQv/atRxcmpUttK7xCTLOi9VaLgj4yn/Ruh2vbViA5rO1yMQu2gvEMauWNpmQNZ9Yx cqMELTasb02uaQsVBDWzdQwDqeZWPyAR9Ww8555lGWusuahDyNp6ulRXRwZTfYwxtaAv HhTQOvQN4CHNIJQgNk2h1MPrBcEJBtUoQPXDYewx1ETuXJQUl6Aw/fX2oKPHavDs2Bd9 DeEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tNknw4rkY8W6ATOIefm+Gpr/5bs/KMOFzqtezxuRjSQ=; b=APJob0CITvIyYD5gMgrNJ/Uwj2Fk3vwGIY7eB3pZaeYOH8NDrkRouOEYCTTEWXezOT eplpnM5z3QxnmWRp2K/RFU8AiMdwJWF8TY+1q9LTGwZk7M7ftx4j7jRysHrMvIDeZogr CXwq5kDCEhnrv3C18a8MU2e4hOREXor7g4f1TTH/+idsPI/MJ9pNtZfykAHW6F4aNkKo BlylXP+PoKz+v6N4Urj+LsfQPx1u+2IKDXTF6+tc4sWxDD6c6rfDx7GdqEBBCZr6Lnzu pilYyBzbYwzJiNWhN6fCgYs+vbNrH3uPVxAM+ekCul1aR4s0oRFFE5XMJ6qakC5BKIy8 yJow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f6NTW4rA; 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 91-v6si7981107ply.405.2018.08.10.07.21.54; Fri, 10 Aug 2018 07:21:54 -0700 (PDT) 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=f6NTW4rA; 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 S1728229AbeHJQwA (ORCPT + 4 others); Fri, 10 Aug 2018 12:52:00 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38409 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728224AbeHJQwA (ORCPT ); Fri, 10 Aug 2018 12:52:00 -0400 Received: by mail-wr1-f66.google.com with SMTP id v14-v6so8468230wro.5 for ; Fri, 10 Aug 2018 07:21:52 -0700 (PDT) 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; bh=tNknw4rkY8W6ATOIefm+Gpr/5bs/KMOFzqtezxuRjSQ=; b=f6NTW4rAm//pcyyOJxDfjXP6gt+NTbsAjGiVpSeK3VbhOPw9kgG+wEW2o6kE41HHeC aUSm9ulF7FxSZykytoxNHTmQQ9/HHnCsLn8Vd4ucaQVCyRWttZ2inY/4MhL19ZBONbdE JPpihJAxfY1hqE8bEBcSqgeDv3uC/ZLWggNi0= 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; bh=tNknw4rkY8W6ATOIefm+Gpr/5bs/KMOFzqtezxuRjSQ=; b=o3ovU1S4evYy6Ooygi+DdpBXmDiD+0zUOtRaxz3D+O26p+WO2SVOUToABWT3R0Yd7Y GE01KxxUjHeLNXC6Zh7T18aUbNMBxGmw8b7/qe4lzgJM1CfVO1U/wvicqVKbOsLb/3Qc UNC9iZS02uADQiUrEvXUp9xlyITSso3R+pIMcXFBUF3DjheqAqLOwlQs3eFHvHmy8yFQ 7JmUqZXntjR9N0QZvKungQRTDltOx2QBxns+90u2JqDKeJGXFhG1Q7IVBA9YCOh0kB7m HFeYbf9Rk9/Zznfu82WY6HVA7w2PJHjlFTEcCjx9SbIm+i5tF+TfEH4WG9+lWzr90M2G G+0Q== X-Gm-Message-State: AOUpUlHZ2DgFN1LJdq8mD8fbHKXLZvzK75RXy5e9gJfwK9NfNFhSQXZ8 hYBnr8AVERYpJVknRhp71ElBQQ== X-Received: by 2002:adf:e287:: with SMTP id v7-v6mr4593380wri.139.1533910912234; Fri, 10 Aug 2018 07:21:52 -0700 (PDT) Received: from arch-late.local (a109-49-46-234.cpe.netcabo.pt. [109.49.46.234]) by smtp.gmail.com with ESMTPSA id b13-v6sm13077578wrn.17.2018.08.10.07.21.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Aug 2018 07:21:51 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , Rui Miguel Silva Subject: [PATCH v7 09/12] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Fri, 10 Aug 2018 15:20:42 +0100 Message-Id: <20180810142045.27657-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810142045.27657-1-rui.silva@linaro.org> References: <20180810142045.27657-1-rui.silva@linaro.org> 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.18.0 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 8e098b90c525..b1c5d8f8a2ba 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -91,6 +91,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"; @@ -214,6 +222,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>; + }; + }; + }; }; &i2c4 { @@ -348,6 +377,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>; @@ -404,6 +442,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