From patchwork Thu Jan 24 16:09: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: 156493 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2137398jaa; Thu, 24 Jan 2019 08:09:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN5PXWuPzBcYUmpzdI6ey6NY4umZhlzpE4vo48VVWdqQkpM7j2nmaCeEHzmsBhwcr1+lYPDl X-Received: by 2002:a62:46d0:: with SMTP id o77mr7126885pfi.172.1548346198553; Thu, 24 Jan 2019 08:09:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548346198; cv=none; d=google.com; s=arc-20160816; b=PSPbqEY49etRdal9Kuxyxj17FQKnTMm+4g4BUDJ+cqfeCjKO5CWR0+Aopr+936TgfH APbhs2SRNEfTbXRnHJTaWxzYZ5P8CbJ6O0lK+ShNMbUJ9n8xKZQnrODFeLGiOoYnstu5 3muPKyi3uL7vdu4LB8lVQRDfvhh5MlkNV0SfqO9VB+rh4vlxhrWhhe78IA7hqFFfrI9e OQtI9LURf7MZZBsJJPPon1vFND6eHpxOHJQqbVzjUDKJrAIuZVEPAvIibo7N5e8OM7Zv fFtBwzm/pnaD5QG9t7hxoBWeb87sFGX7nuZrsKa3CZdLP4TAkS3aU5MdIipU98FuLfpH vjGw== 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=em6EW7gFqD/FmNNgFJwD6hvdNaD0gyOs7zFWPJy0VTMrTzPyDWPKtOS5GG0lvee9Gu f+SSctMFlrDMsur3C0uC75ASvbgQqv8q+tywc8CnQ6Nv9XsZ9LtDuIvaIICop8mW7/SF RyJ7J4sDwexAtP1co+EA0oHpDMJtQKj++uR6lBtJpQzQlO1QkWtMcaUUynSeqWeMx67u /StM3YE4BKI5bO4eZrlpkJhs3FUx3/C6V6cOY0anzXUMlQG8DeiftwWQfHYsqXP2w005 eyx/7/nmMF5xTrw6gD2YAKU+xlpPwjwQ+dw19VpObIw4LrY0BIt7ZwUeT0pls2P/fSA8 uhRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gfs5M5V4; 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=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 34si15994576pgt.455.2019.01.24.08.09.58; Thu, 24 Jan 2019 08:09:58 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=Gfs5M5V4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbfAXQJ5 (ORCPT + 7 others); Thu, 24 Jan 2019 11:09:57 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51819 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728053AbfAXQJ5 (ORCPT ); Thu, 24 Jan 2019 11:09:57 -0500 Received: by mail-wm1-f66.google.com with SMTP id b11so3758026wmj.1 for ; Thu, 24 Jan 2019 08:09:56 -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=Gfs5M5V4lXwR4cGLPFh/r4JS2dAnkHGbmGiaFQqwwU3GwcK/u2rVc5AtvJUpOcGs6F Oe0KEdAEuqxDJReM4Bg6w0IAeZJPS1V8R3FG017zMLSAXcXTSjTauwvoDy0/HCv5r3gI v6npwSqwWQLctd75TKhuwwxF+N+WnnEVNKghI= 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=BV9QydhmKzv7h4nN+v4atZYVrExev7AIBWJhH46o3Idjqfx2aejzbN0Bh4PAqRVPht rhrh2VXeHKUZoc/AMPhaRjI3J9GeJG+cHgrcNR6cyGynJtwOE8u7L+uI42zcYdFfmUPF ui2m7Ej6yl9mQApwerSlvwPiMpp6NNCtxO5ceCjNk8poSWhNoaL/Uv+IHDPWFGYsm8OF UnvHlbseRIJw2Wm+1j9QwKKeKeA8NZT8XTq5lE/3cuGG9JNgDD3WFow5K8ItASloqnzX T5KoD9xADgVn939tpKmB1h1YoebLmmfAf+S/AzW9bTUVF9GBURd83ogZqzuZQFg+uLrv R1SQ== X-Gm-Message-State: AJcUukev6Au7Cl1kf7Mib4Pv71cAGDnU9CLXm8Fj/myOkD6aSJB+B9Ge M55EnPJoKDW5OPAQGae/SJZRkA== X-Received: by 2002:a1c:44d6:: with SMTP id r205mr3391338wma.50.1548346195569; Thu, 24 Jan 2019 08:09:55 -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 e16sm179880299wrn.72.2019.01.24.08.09.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 08:09:55 -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 v11 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Thu, 24 Jan 2019 16:09:24 +0000 Message-Id: <20190124160928.31884-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190124160928.31884-1-rui.silva@linaro.org> References: <20190124160928.31884-1-rui.silva@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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