From patchwork Wed Nov 21 11:15:55 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: 151665 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1790280ljp; Wed, 21 Nov 2018 03:16:45 -0800 (PST) X-Google-Smtp-Source: AJdET5ezv94ksoH2S7DJdr7FcTcXoRXLh+QSeFdJPoQBhyU3ceMCWm0cnpp29/+ck8+M/tGVZeLf X-Received: by 2002:a62:5504:: with SMTP id j4-v6mr6390293pfb.166.1542799005811; Wed, 21 Nov 2018 03:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542799005; cv=none; d=google.com; s=arc-20160816; b=uBjJPi1JZrLF6Av1vpX0LBBMw2QG06qnQutfjZhP7rzTyBAUf6KGWP7ZLZLBTZv26s GPFUsHggBZB/uJDqPWcDnfibfCZ/+2UcUpkySw4yw8rUp8PHAbP3au3XDH7yHFL7pUxB CRLhuSM0W/CkICCGolHCbDJmncJg5pNaGVoBb9YxDEx0kODGdLcaNlpQVqbm6Oxa4cgc A29fgWKqbHnZB62Gl1AMisHgOSB3ZRul6uTPx6Itjdgg1aZaTPYxm7wfSLhJTjXcJWXh E7j/zhQO/sjqZy3txM78RYXStXDUrMTMV+0pRCajuqTB7mGRcWVhMrO7HuuS3MH0EhDT 5OqA== 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=hwILDOZ2K8BoWjQk+MB5dbRSXpF5/BEpNZgvyLxuSP4=; b=zX2DY+aXPKuv4I2aSfxFxh1Aa/kxzdzYDslFqa96uRiT3aTV8mMdGuJaeEU2qzUlVK jooA7I8dtyWdRF8ZNMTLjtLYM7PdO4GTyhctHfcFPaEaksN2XoNwjuIcUjKTcBERaT7F w6F8+GAqUWqIvfP3zh8Xz7bZCqb9HODLV9ofgvnomGkIEbHoabukSiifciWS94jdV+ZV +xVnSTQrJVtKDK6G8oDznwGJcAMrMdgK0l9iIqVNvjf1i8fFNxUhqlTVm0jyZS59oMbl YBlV/KyFFja5wQb1rnB44No7RA1Y4vpfYPkAOagE56jSkJd06rP6IJv4a6+12gECe5Nd rM+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YYStklGi; 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 n3si9574252pfn.285.2018.11.21.03.16.45; Wed, 21 Nov 2018 03:16:45 -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=YYStklGi; 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 S1730074AbeKUVuo (ORCPT + 4 others); Wed, 21 Nov 2018 16:50:44 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39840 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730058AbeKUVun (ORCPT ); Wed, 21 Nov 2018 16:50:43 -0500 Received: by mail-wm1-f68.google.com with SMTP id u13-v6so5352000wmc.4 for ; Wed, 21 Nov 2018 03:16:43 -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=hwILDOZ2K8BoWjQk+MB5dbRSXpF5/BEpNZgvyLxuSP4=; b=YYStklGiU1jlb0siLRuH0qKjvY2c5GmA5339CwBsGT8HjjkFBclekq44/OOK6Or5Hz FIuNYVD1KaC9mCgvJNNw8AYG2mwjm0rVGVEKDTQz9uHKLeXdegbcdNxdKF7BACq0U1JP SePL49O5DgMaYGLvuG/z/pc9U0qap2k4WCrf0= 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=hwILDOZ2K8BoWjQk+MB5dbRSXpF5/BEpNZgvyLxuSP4=; b=PZD46oN3J81WxHco80iPt0gW2qgEPVh3UZDzhzLVTPd5WcGNGMG8gMQp7QqM/z7aRt kU6347GzOUfCHXc1uIp+Pj80Nol7wyFgWBW0RSn8XQpXBN+zxXETReyCnCJOvo+6zkKY Yzj7DHT6jAcxcPUrOos7UmH9ZCiZMr69LdfR7jOqhMyuhm5kiHJxNNMI67dqw7BnXXuR D6fwdur6Ip0aqGig7MsAve7t4bQ0vdvJiFlj4YlBccVzCzHgHUsukDIStjmUDNI6Lij/ zO8D0crOcW2yZFx8WWwd0/mnMN6SNTs6QjB6r0Lf8rtO3gFVBMYZjZ3P7XHFuvegyZLh AdSA== X-Gm-Message-State: AGRZ1gKQq6wj1pZaoN1FIS2gdiC3Uxxo6uTQ2mDz4DkFONVAneLlw4DP lDgGUzNVq/4mpTUesLDOI6JrMg== X-Received: by 2002:a7b:c397:: with SMTP id s23mr5204981wmj.127.1542799002573; Wed, 21 Nov 2018 03:16:42 -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 a125-v6sm771526wmf.8.2018.11.21.03.16.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 03:16:42 -0800 (PST) From: Rui Miguel Silva To: sakari.ailus@linux.intel.com, Philipp Zabel Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Rui Miguel Silva Subject: [PATCH v8 09/12] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Wed, 21 Nov 2018 11:15:55 +0000 Message-Id: <20181121111558.10838-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121111558.10838-1-rui.silva@linaro.org> References: <20181121111558.10838-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