From patchwork Mon Feb 4 12:00:35 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: 157395 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3827790jaa; Mon, 4 Feb 2019 04:01:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN6f4WRfkgUcfGPEXCo7La7WVvBKu+rCb2xv7gv8bJdYxDmIDlHe+TMOSJL8IVuDcLCCQt59 X-Received: by 2002:a17:902:5ac2:: with SMTP id g2mr51471407plm.313.1549281671985; Mon, 04 Feb 2019 04:01:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549281671; cv=none; d=google.com; s=arc-20160816; b=er88bMZbpa82uLIz2UZMG+s5Hellihfd5pV9WbzQ7aWPZg8ZG3XA0pn7G9Ch7pyG+6 tYl3ggWFhdwDpAv1s4ZTMljf79RUceOl2E7eYJVlpJ7mtGvTIcZjILIi2bkVWd14WdbX 6C4NLMZnFq0DoyJtcJnl99g7j4OC9e3OlxcSpGfhjVnYO9ezcSl3z3sEvbO7udlxzEtw rNHvn+mKavwvvs74y6Wm+BlB/OSBq+A/nKFqolPWLmBz3E9PiqzvjT2vxmkaOrZARa27 Vfl7UqI1NXTfCs9KDPavwYK4B9sl8xU4fkkCGiLhA7Urk+K310Yphy6s1GdRnnd+tXo3 YSVw== 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=HmdvvMOoyQvP8tNwTBQ7l3RWaAr5UgAmQlRNpurQCq6lvE+G1Os5gs2R89Q+V61wXo 0N3e8GejGcNI4R8cQWNRGUw9fBHYPfWqQiaBslv8Qo7sb1kA8TZBq7TgrKYU3CXG0L+u z9mk4hU5ABvlQhtAWId1rQtPMIxMYuYcuyTUwxaB0DZN1XMx8pA2EiShP3GbsUv112qx 3sMyXCAVk0dLQ837HmXAVuq4hybjfayBoqRR7+FpmKMGv8KOpv5rHwhrkguwYfZw42OV 3vDGI3RxboFiLTSgqYDvV4LARnlN9B+4itBUzn7cg9MhdiGdDsjGEQCQTFCL6Rf/Y/yY 6xQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kgncw76Y; 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 d9si15213387pgb.105.2019.02.04.04.01.11; Mon, 04 Feb 2019 04:01:11 -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=kgncw76Y; 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 S1729247AbfBDMBL (ORCPT + 4 others); Mon, 4 Feb 2019 07:01:11 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36911 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729300AbfBDMBK (ORCPT ); Mon, 4 Feb 2019 07:01:10 -0500 Received: by mail-wr1-f65.google.com with SMTP id s12so14094775wrt.4 for ; Mon, 04 Feb 2019 04:01:09 -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=kgncw76YRcilmegRV1s5UMGO5uULeB7qoy5HXxdyA/LKTQXP+xxDl58+vHqVQgqgJo uee0qlhgsPuoGWngXHEjZzQq280JEwEmvxZOzqClkTO+H0T19V6uPRPqS1v8wx0UKCRb YSbDjpNB1Syb5j9pa7040xESQK/3bLGOZ2WH4= 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=nKf6JVQnsQGKE11dQNIKVjC01Qx5r0WcyB9tdjn1HHhiL+VTmtful+Q6tYaOTsj9hb iHfcukYDoDhxSCWyfKHWEcOQRzM0jcyf6wroa6BL3Zi85s/8CtykWOZ3zDQVYbfBNyU8 SsZK63rb4SGKdjKdI+AT5g4Ej4TVjggTWYozw8mdDnx03Eb+IKXft1TfgKu1a58KB2A8 NyKoWIooZXgTT1UtrEL7XgiWZ/Vy/ABKKqFycw15HjZmuZNflx4u4337Ikk4y5POVlRI i8o6N18USMyFy9DR+sdZcwGTQFPxf41Lo5+XewMYzF94PGetQomDJBBdDQZYX0+Md/zH Y+eQ== X-Gm-Message-State: AJcUukcaqJU0Bvy3cgddiGfg71KelfWDHgVkSMq25IU0sWSp35/oxvEx AipCML2hKl7rOwyPoPN5x3nzqg== X-Received: by 2002:adf:c846:: with SMTP id e6mr47141839wrh.243.1549281669045; Mon, 04 Feb 2019 04:01:09 -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 s8sm15404543wrn.44.2019.02.04.04.01.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 04:01:08 -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 v12 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Mon, 4 Feb 2019 12:00:35 +0000 Message-Id: <20190204120039.1198-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190204120039.1198-1-rui.silva@linaro.org> References: <20190204120039.1198-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