From patchwork Fri May 18 09:28:04 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: 136268 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp998344lji; Fri, 18 May 2018 02:28:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqnhfyFd3g6duGlOpieOQgNMkeD8rI2LAU/D1vmJrvexJP3R+24RMuyTLrFCC0BmwUg3zVv X-Received: by 2002:a63:744c:: with SMTP id e12-v6mr6938977pgn.4.1526635733756; Fri, 18 May 2018 02:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635733; cv=none; d=google.com; s=arc-20160816; b=kfAUIEp6RRKyCf4BnMfsd1lxMCrk+QWQb/fOtUbszWDBkzzelNAE+5ycOim4wM7tbT wFognlbvJ16jgN44hD2TMPil8tKI4Qzjhoxlt1ghLV64HIdcUXkmImMQm4Ac99Em8w1s TUofUiU5S533SE+k+mdPZGbKpqNc2KUdyHbA8NMMMU+1iW2RR415QTBTe3aY9fwq/EEv Ed3u215isisvtg+/UdBmqK9NCRV3bG0sSsO3ksRqwGC3jL8278ror3WG3XS26oIh8KvF 35+OP5yXVSVQGCyLpeTLCyVFeFH+Ig7Gw0plUTjp4GtAR5GWDJuKrCtByXgI/IrzitLK 6U8A== 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=wwn0GKKeafdhFjIkrcB6KwehNTTyZECcoC5vk2XEwgA=; b=m7GLdYRrzLmY437iuL+ladPx2yf/F78iJdlTEIIETKAwQuKkfRfHOkQqj6Tt2uuqnE ir1Kbr369WcYr6SH7ZtQ+2DcZPsPAzR4VMqbTdZX843BISlCEWH1u5aIMcgmvbR6WBeU bEUA8cBddwG8UQijhu/wJo5IO8Jh6jE6OsaXiJ9KqdlE9wws26H7rBBIC6PnLZ2wUijP hYdAmF6e00yLhZvCSWuq+rm7EiCifafdGpZ7MOMgMW9fbi535YeZ3jJdSaigqSYDiZbr +BOeuuc9vSH4qVRBavdaIxfMuYRd5svolsowGA/AueCJfdV2F52WI9eWT3JC6PgUZTV6 UfCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K6eBT881; 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 33-v6si7053191plk.83.2018.05.18.02.28.53; Fri, 18 May 2018 02:28:53 -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=K6eBT881; 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 S1751531AbeERJ2v (ORCPT + 4 others); Fri, 18 May 2018 05:28:51 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38494 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbeERJ2s (ORCPT ); Fri, 18 May 2018 05:28:48 -0400 Received: by mail-wr0-f194.google.com with SMTP id 94-v6so8466630wrf.5 for ; Fri, 18 May 2018 02:28:48 -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=wwn0GKKeafdhFjIkrcB6KwehNTTyZECcoC5vk2XEwgA=; b=K6eBT881tr9tKpCVIOJ97zVmva0euaKjfwS32epArbOzFHjBsgl1MzCMCxPqjmj5/c Gc9+KP0zLl+R2LdHvyrYlfkLOYehtmHHlf/Ldw7lMX3GZw2LgQmDLfgc1j0giJbXL6SI mHxlP83y0WNXpRtSejXMAzZ2v30HIm+0P2ABI= 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=wwn0GKKeafdhFjIkrcB6KwehNTTyZECcoC5vk2XEwgA=; b=PN+GYKMOr7j8lRxKg6rqGR/+X75MNep7tTbTucQUpfkFfcYs5/xXJW9kHFL69a38RE XFAtF2nYV9UsXqFyePrAsD37+2ski4u5CWNX5rxg+RtD8h2k1H1oJEkoefHGEJe5taHL vsokaZO+LvID+wnse6kd+t1xC3DkRojh5MYJEOItwgPDKkaCi9Wy8f7mrwIgMThT4EpE +z+MSRO+seEWkv7fahcmJOOGrpLZxx63HTBRXW8QZpMidxe6pulYIz9x4J4lSi7CjXhk C/JAFQ3TP2bKjIKtfvGktcQcXbcsdJLaqjk+cpQ9aj8PxO5l0J1nWXpIarQ07GG+tVvD pbIQ== X-Gm-Message-State: ALKqPwdaENj1GdpyL9MG+cIj+2XQ4owhHPii688e2tMbHLQaVwVpi9uF lkxDhhmb+wP8VYLqFe7Tusgn9A== X-Received: by 2002:adf:a48e:: with SMTP id g14-v6mr5432828wrb.7.1526635727629; Fri, 18 May 2018 02:28:47 -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 d125-v6sm6544514wmd.24.2018.05.18.02.28.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 02:28:46 -0700 (PDT) From: Rui Miguel Silva To: mchehab@kernel.org, sakari.ailus@linux.intel.com, Steve Longerbeam , Philipp Zabel , Rob Herring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Shawn Guo , Fabio Estevam , devicetree@vger.kernel.org, Greg Kroah-Hartman , Ryan Harkin , linux-clk@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v5 10/12] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Fri, 18 May 2018 10:28:04 +0100 Message-Id: <20180518092806.3829-11-rui.silva@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180518092806.3829-1-rui.silva@linaro.org> References: <20180518092806.3829-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.17.0 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index cb175ee2fc9d..bf04e13afd02 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"; @@ -218,6 +226,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 { @@ -352,6 +381,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>; @@ -408,6 +446,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