From patchwork Wed Feb 6 10:25:18 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: 157598 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6240710jaa; Wed, 6 Feb 2019 02:26:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IaPlLnxgbPfBHoYJW7F25wxOd1C0xTq9GUYki6bO2bvkdwV+hobLre2G7OnQMxjO/Xwq3uV X-Received: by 2002:a62:868b:: with SMTP id x133mr10240535pfd.252.1549448772754; Wed, 06 Feb 2019 02:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549448772; cv=none; d=google.com; s=arc-20160816; b=PrfyGvVhpBQf7PIUm8aoIvqAAni4FxBoBzDmZXPu8YSl8/8E2Som4kvw60Ea6ZeiXs P2+pQ0zJ1WXiApjWtaXF2Ie/7CeIPH+a4g0qvNsxnOrxirCe3hc4jKsty7pvzf71X+Zw U8BADC8Jt46sqg0p7CP1mgGoqnIGHM2h5w9iS16Z70zvCnuJMckH5n5co88+zIPGzzho 0D5HbMnGQqlls52WhybET+DIqkNh4oJ+39lkSGCX/PqEgLAhcuxeGwAX9o8xwNlnrrYF 5VOxk6UnA7vYpez5LzjfJa/L7Cod/JCgs+qBWcClFyq8Cv1Vr9W5CP5T3fVpym+qnSMR W0Cw== 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=xsBpAjkwnOghXshkWL7/K3aX+ey4xILxaNaKuXgjAqKPFedtHuiIjk8mWC0TMFM66o cRsjE6vb4hqH7recJDd1/BjfmftNruTFRUmZkWi4y9PuRu6cq0nJ+V8OPN30Vbd+LtQX SV/61NRnjVeVkbQrLMGpxRSguDxaxvzOws/GGFjOu4HObIqiWOLl4DJB1e+xN0UUFFst 5mkZ4tLgWLe7W9mE5DIVQ1Wai/pVNErSrP8Yj1A1UR/7DrYEO2ONyhJ6FuH8R6XlEa9k 1FNyxpXxji+kTQU52/F/bXyf2Rmn+d+WZhGazg+fxG+z/6FPNiPiEk+DnUpEA93kAnXR OVtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBtymwPv; 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 90si776785plf.62.2019.02.06.02.26.12; Wed, 06 Feb 2019 02:26:12 -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=aBtymwPv; 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 S1729007AbfBFK0L (ORCPT + 7 others); Wed, 6 Feb 2019 05:26:11 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41172 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729404AbfBFK0K (ORCPT ); Wed, 6 Feb 2019 05:26:10 -0500 Received: by mail-wr1-f65.google.com with SMTP id x10so6874033wrs.8 for ; Wed, 06 Feb 2019 02:26: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=aBtymwPvHO1cBX2tolfLE0YU1lq0FcKYV86QVTV/0QDpX+pk6fsgw7TUM+Knye/Tp5 EdXyXCSAOfIaQuIAn8bUVw9QTKbpgN4svtvURG1nLc/nAJdY+wBUJBAHfWYuy/VocUdU dvvl22EQHuH+hT0hZU/blREy2nnv705E7JOgNBDhXx2xW/YADRwTTHn568iz2/3IR7vl igrtKCem0LOa348jbUQQOF3BC2156gtZbx1s4qQ90Vs72V82EQPMPUiDfKLNizZpPFob BAjpizauQjiY5avu00iA0rRiut2ZooiJiyIjvqZM0tc/D8fzF+4y0CWzFxln43fePxnS NI4w== 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=NdnAVfJPGe70kDq2hHyho0Fb2GXwMB1UY5RrsR8xH1A+EW4ILfMrB1XQ3S9LsJZOz2 SENcfw4lS3lLt4jB0OfkLGzFLGgUpM9qwy73RhxEj650wm18dDWCd5zdfy8kbeqO6UaZ /DMPDv4fkE72SYAArJKw2RQi+LMhAg94M1JG+2ZYiZRHC0GujBBeWnXuQX8HG4rDLgk/ SWDUdMGTGwYkR3YlNZO7P0bnkXuFe4yvdPkN5SjdCOrrHQQqE/biyLVSfR+06osizPzr 1wQUSKptjuznQX3tZE//pNDv1CmxcVaV+jbfNSX5nfl0NcpsILg89Cm5tJNj9uA2nkvG uqyw== X-Gm-Message-State: AHQUAuZFPLYVlHUSSOWWPoMANt5EsD4LAlS22zNeDfEDn3Ie0xW2n8zt 0sNOEwrf2auW7txpAJTN7kh/EQ== X-Received: by 2002:adf:e589:: with SMTP id l9mr6989269wrm.312.1549448768824; Wed, 06 Feb 2019 02:26:08 -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 i192sm18149631wmg.7.2019.02.06.02.26.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Feb 2019 02:26: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 v13 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Wed, 6 Feb 2019 10:25:18 +0000 Message-Id: <20190206102522.29212-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190206102522.29212-1-rui.silva@linaro.org> References: <20190206102522.29212-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