From patchwork Tue Mar 26 11:02:27 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: 161204 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp5064943jan; Tue, 26 Mar 2019 04:02:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTTmC5pY1c6iY/AV55ZSYQNwUSQZIEnML/xfiV/TU/rUFcGdfZBG6QFzyUAoY1Y1hDdNc1 X-Received: by 2002:a63:5ec2:: with SMTP id s185mr27924367pgb.27.1553598173682; Tue, 26 Mar 2019 04:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553598173; cv=none; d=google.com; s=arc-20160816; b=ICZFgS82ZBRn0tQnVznqaQuT0Oop+xibdeUCEvs1nu09th4hq2jGz8hjLlSVOFoClr I5tGQQNF6qdNmn2UxChG7JrWFKNrbrIIGGxER3ubKoL8dAB8nrYsGnAmOGBggVYCblLR UeXX2MruzpAVBHUl3+BtgX2XZVaBqtEZE6nhzieGdtpA1pU4x4DK4bywrtY9ELieQWNP vvLgvGJAKJcRHVr01hk3/+LkPgGJETYWv/1f7u4oxrBOEOst7nYtGkNRtYqZ3eWjhBz/ lVXXZq2UudTqK3nMm8K4FxbLA6b/ch2/3l8L5OT5S6c/8rwmvUw9/RMsc22Jn/eMaAJ3 kutw== 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=wvTlrfgfGivJfHzu/0cdOFqfgwRMyE+EsI9L99cTWrg=; b=B+k+n/e5pdoJaFrAj+I4V3hfakzLmJ9jJxW7tKQciGqQgx9dN3rU7PYPWwj9urf0nL jBgc5p4nKOzEHda5JipYM3mB8E6kLltzK+uwfz3c5TZ2frF5s2bM32/Txf7hul9/Eao2 sZKU6Y9xYYXIVUolKYeJKGS/ape55IwK9yUCRm76BGu2Jax267vwMY2WmwE9bWij6ERq OF64OpCHPNvpDX5E4R1QmGaPIG1egpLMau0xdBdesHGn5TVBBiSlRnq2ioXYoyKnGFi0 i5lwlCh0zfW9pqcOR97Z3xvpLbpjQe4tpkMp6lVmuyYOXkeP6G6LUACBTxqJcZFVP94h hICg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XjyV547Z; 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 m18si5356408pls.18.2019.03.26.04.02.53; Tue, 26 Mar 2019 04:02:53 -0700 (PDT) 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=XjyV547Z; 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 S1726261AbfCZLCx (ORCPT + 7 others); Tue, 26 Mar 2019 07:02:53 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38933 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfCZLCw (ORCPT ); Tue, 26 Mar 2019 07:02:52 -0400 Received: by mail-wr1-f66.google.com with SMTP id j9so13770465wrn.6 for ; Tue, 26 Mar 2019 04:02:51 -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 :mime-version:content-transfer-encoding; bh=wvTlrfgfGivJfHzu/0cdOFqfgwRMyE+EsI9L99cTWrg=; b=XjyV547ZJzqlhufuxJ/3eqCb+x+Ooumd03crshPyZ2pCVmydkrlDwP9KkXTa/6zsTu zPsktdeaadjoWdz1Gs2UGwr71LhQbD5FLJgaBmSEPbq7ybdTIKnvgx0GFwZcEUIG0p89 ETTgHDWpdkTAQcuu3x7BWMGbp1rOkHhQ6DBbI7otYiz5P64XVIo6u0Ixi6SZc6QmD8X3 t4gZ75BKMg8IrmmqSyW/3/jI2ak6bD7SOuKqEis2MC67AmIr2jXTZIATi4xdiP5AZDwx spT3B1T+o/5o39mUlgACu/xQC0BMUGt+KcjD+OFYBIj0+qIhl2fZknkVAeJBE2L8VfbK /afw== 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=wvTlrfgfGivJfHzu/0cdOFqfgwRMyE+EsI9L99cTWrg=; b=iZeijlNAymJ9HAmUI2pIrqHLoBmgSUhIRBjckgpyWiJ3vZf8CSDWtdP8AFh2sgGhhH bEX9Q/Ns+6MeAavviZT7f27hmJvi8CvNLL5cyk1b/X7yorMcSvYnGwcDlBGhdLA07b4r QGWCyBhFzoRhY8YHyLy6FxmHJ4abRIpYUJD8qdQ4EWohxme/WMAzxtl1uEbYAfeJQKqc p50zvAXfkxv9rRQY5GExgC1VSh1ThEBcSX9qYUcZGnj3qZrvLLyYDEwe+AAWeQFibA5R WvdsLR3sMsK1cN6CT5ZMKhgXBbyULd0OSQ+lQaZAyg6dmRqvk9Y9yucZEr5YLxf4kVUz 6hZg== X-Gm-Message-State: APjAAAV0thbc/Nmrw8a22hBMRZtVtEceE8lSKgdTTZPy2UgFMFktmvkH U1TS9/pvXYaT9hwshkEWns00aA== X-Received: by 2002:a5d:428f:: with SMTP id k15mr20564980wrq.113.1553598171206; Tue, 26 Mar 2019 04:02:51 -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 q63sm17958010wma.21.2019.03.26.04.02.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 04:02:50 -0700 (PDT) From: Rui Miguel Silva To: Shawn Guo , Rob Herring , Fabio Estevam Cc: Laurent Pinchart , devicetree@vger.kernel.org, Rui Miguel Silva Subject: [PATCH v2 5/5] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Tue, 26 Mar 2019 11:02:27 +0000 Message-Id: <20190326110227.7324-6-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190326110227.7324-1-rui.silva@linaro.org> References: <20190326110227.7324-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 | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 0063fabfcd30..3bcae72d33e2 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"; @@ -184,6 +192,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 { @@ -221,6 +250,16 @@ clock-frequency = <166000000>; fsl,csis-hs-settle = <3>; status = "okay"; + + port@0 { + reg = <0>; + + mipi_from_sensor: endpoint { + remote-endpoint = <&ov2680_to_mipi>; + data-lanes = <1>; + }; + + }; }; &sai1 { @@ -343,6 +382,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