From patchwork Thu Mar 28 14:25:16 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: 161315 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp781581jan; Thu, 28 Mar 2019 07:25:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqCAx94QgVo8ErBOXIorjub5pMhKgcwfi7SdV6n6M613kR8688KqRfHFG2NxU6ogcB3k8R X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr44208299plo.235.1553783136929; Thu, 28 Mar 2019 07:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553783136; cv=none; d=google.com; s=arc-20160816; b=wcm+1tnjbMlLu8JbH+xuzJ5LBMwEs1MC+cKvsQxSInPiq0RpSpGLAMNK6ZBp6Fw1tr d/ZTP6RUhnO4GYMgmv/8sapAl8rYQbaXISqnaoMcZLFNtxHe7RTkSugApZBjynGT+iIm 90NZtcqn13+EqhvqEf8k/tAiJSV70Rmkx+67ssZUAjk3bRs031XMvbBkgTVyaW+WOwMD 3XOtHZClg4RLut+XmyT04B/Fpo4JGJk338vdAST9lEoehIRBnaLw/CLmSUc+I3+eubAb PwUIgDjB9aycqm4UfNsj/xbEHD0HfXy01dB5jDY1VgNJVSfPEVTOzPvO3vVvj0MOXJmg Ge3Q== 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=adWGaawJ/NWO/zZIGtpflKP2f/ZrXDXlxDAdob6OOXU=; b=dBLKDxLkfpcb7ZqTBC0pH9VyWJGzMR0o3PbdpDFTWxvl/Y1BkFmnPGs3xjI7A0GZSW WmgFWZvHVGLOg5YaEIl11fZ2virvuTO/gjo94FbO6lsMkueQG4GCTR23D0MzhogOLZEg pKGu4WDm1ovT/41hbklB8ItuRt1UF/P210pl+QMXQAvqPRHPLgEJ8N6xvv476JKYApo2 I93/noGBW8cPcTu60Wrgxx0Np7/wRU8Aqrwc8EAWjAgY9H3MKJLvZySr1skS7Qo2yEed 0ea3rZf9G1s/MKXmqSqbA9GG7zI8+lQvgi/ekV/nMSZXUu6O5jtgQDoDnG65qS7vILyo 5skg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X9+2TA5X; 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 g6si20730742pgs.236.2019.03.28.07.25.36; Thu, 28 Mar 2019 07:25:36 -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=X9+2TA5X; 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 S1726322AbfC1OZg (ORCPT + 7 others); Thu, 28 Mar 2019 10:25:36 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41764 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfC1OZg (ORCPT ); Thu, 28 Mar 2019 10:25:36 -0400 Received: by mail-wr1-f68.google.com with SMTP id r4so15463129wrq.8 for ; Thu, 28 Mar 2019 07:25:35 -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=adWGaawJ/NWO/zZIGtpflKP2f/ZrXDXlxDAdob6OOXU=; b=X9+2TA5XgJa56peCutd9qPsdseN8hvBfMkpgyLuFDFlkU9Fk2sieJfLOxKkxNm80im Rz06C70HqU/1blmH51pbH8U6cHHrfkSUNToMjZAfMKK5g44uBKZ3zuti94tXOD/fSckW FWTB2BfIf/nBadkYseFscR8/HJ0h5mqnYdZ8Ev6NOX+q4/pKg3+BvRraA+CZsjEo9TU6 r2BlJwKeoeeMHlHAKYtuFZ8E6+nsqM12H8Ai1jpyhyJjw1TCU1wUfSbH8FDeEND+H2gM tszvC23Ild72uZEmJ0cQQ1A6PQet/+hLLPUzRguzmqAwOmuSwLURnHNv2NInK/gvvKSd QpBw== 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=adWGaawJ/NWO/zZIGtpflKP2f/ZrXDXlxDAdob6OOXU=; b=QoTw0Vthre2omzdf//gwZuaNhxRfJ7YnBguqCA67s38u785qjyk23my9a9Wnqpr9ue Un6ZFVJOYIqScRvho9p9Jl9BPKRD6A+uDq3KQtdGTkHX8DMIfB2sbcfJzyLXvGoryiHa SLQq5AjhjCm2XGQpUdVK/ZSSIcsjUORQHxPeydzhAZOtdGuSRZs9stfamaFs3jfzOqh/ 6mnliLUjkQzvCev9vULLmyXSU/cd30zGnWxdJcmfH62oeccCGqS9XpBPIVPj85JK/sW5 eWYB69e9Ewe+W1KCl3xev0vkPllfqmOl7Y58b7mwIykDRPyv9MeigF9SekR3mFXJqRXG d8cg== X-Gm-Message-State: APjAAAVRB69ONo9ytqlJFgpEEANVAJYyR6hHv91ePR+aMuyyC8dY/yEy bBqm/ceixDe+ajavSpYdFCl4hQ== X-Received: by 2002:adf:ef0c:: with SMTP id e12mr27186386wro.170.1553783134389; Thu, 28 Mar 2019 07:25:34 -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 o10sm24021680wru.54.2019.03.28.07.25.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 07:25:33 -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 v3 5/5] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Thu, 28 Mar 2019 14:25:16 +0000 Message-Id: <20190328142516.30372-6-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190328142516.30372-1-rui.silva@linaro.org> References: <20190328142516.30372-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 2d1a0105e6a6..d6b4888fa686 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 { @@ -347,6 +386,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