From patchwork Wed Jan 23 10:52: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: 156363 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp576399jaa; Wed, 23 Jan 2019 02:53:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN41yyn0MlyweDp6oGFAqlLRv4zXg0sYGur6p2Ygw6a/2cFOHz/4qB5PNtq3+L85DxffvU+k X-Received: by 2002:a17:902:2b84:: with SMTP id l4mr1724875plb.191.1548240788401; Wed, 23 Jan 2019 02:53:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548240788; cv=none; d=google.com; s=arc-20160816; b=sJbt5xvVtkGJXVomjJuvNWJAC/W49A4qwkN7QXoQIkKhg/FaxXC2jVGKMCUcFJnN1r i+AmjVQihptbGf28uEGEzoAfYZqlxV+sXy207guxPl+zal/KY3WAtOX5zRcgo8EHlU6f z8V8QI/gmIMIB5UhzUQHkRaZvCYnspzmYjyEBMquwPB32a5GEcwXAGufqySxptdhstLj I/eJ+pINZCYmcs7/d+RRBh7/ChnszhCLfqsiX2lqPMOJYj2pL4mlnqVArq1KZUWvf6MX ZkRroiKvmO1SjGsxL2QEMkRcHoe0KyTF8ZZm0HzMy/cHc5OGos2q6e6pmFjsiB50MxYD aBIg== 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=plKgr4q9q2TjTB8ekI4TdVwQrKjUVJ6/iMfrSyrJZnYZ9w76MTy15J6EZUOcyzaecd oJOgJoL5MlDlaTzFLSf2922lG/e5hfYJKFpC/Hgmw4KENmDgK2YlnHYlk62xDF5Btxer g1orVpaEvn/kYgntYJoeCI13Kg0+evVa6st6Pkaqkv6yaAX+dDHA0MAWkqFIIRZoHR2a DLLlz/G2/hmTqfq4wv2lhnIhkuGXv5+tXY34RXMa7M8/TRJz/OuL/hDRrsnsjvJBALkJ Vr8XEkVQkNbrEOgrNINK1FQIK+8enMtXdSm4jeDDMCGVqZJxNbnZXp/pk1jHQmq0LcPn mGVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bLeGcaeS; 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 a6si18061494pfa.227.2019.01.23.02.53.08; Wed, 23 Jan 2019 02:53:08 -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=bLeGcaeS; 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 S1727495AbfAWKxH (ORCPT + 7 others); Wed, 23 Jan 2019 05:53:07 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43763 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727512AbfAWKxH (ORCPT ); Wed, 23 Jan 2019 05:53:07 -0500 Received: by mail-wr1-f65.google.com with SMTP id r10so1831760wrs.10 for ; Wed, 23 Jan 2019 02:53:05 -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=bLeGcaeSvywC9yZI8sxQzP31RpgovAORn9ODss/K15LJKogXZ5uMPqP4LbrUZoagMh QIzJud2wR1EjnvK533FBngv7Dk8pnOqNVcAVxOy+YHEygBNwOxFhl5FepFSWX8b0Anqn KalgoRHsCjCUvGDLSSzF5sAE64I7pwdM2vv28= 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=arpMaw+k5+I699pVS+aZmOJYfGjvOhuiNxxrxCXo9G8PBtvfXWSvFcHru9HKshH+qW G135DafFo7ZFGL/41movl9ySfgjhh92DEjMu7VLLgF5GvNsAJMmR4CIl6YBCo9cP3JbM pWo/dn1WIMioj4ggtDQzdGwD5HMZvpKxhNH9jlBcXKm3n5zkfXA/zND2G63gFOUIPreL YpVfo+GOh+2teKBKSmEBawAQ4R9SN0UEv/QAjNYGZtXPKhW0jSaz9RkZQhpl2ANV4k7w EAMtO3pkjjd0Jhhz4x7oU0/L6ynLmeijjqqDSBAYRv94aZgdzeEKlU0JUQJZrvabqylw H8ug== X-Gm-Message-State: AJcUukcSJtlLy8NdEmJqP0k1hSr6oM4enKIvRgf1mOjFDIhd3wy7rUmn ebbogKDuTaZlMmPaWu7Sw4SrBA== X-Received: by 2002:adf:f984:: with SMTP id f4mr2158477wrr.234.1548240785113; Wed, 23 Jan 2019 02:53:05 -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 143sm120717646wml.14.2019.01.23.02.53.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Jan 2019 02:53:04 -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 v10 09/13] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Wed, 23 Jan 2019 10:52:18 +0000 Message-Id: <20190123105222.2378-10-rui.silva@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190123105222.2378-1-rui.silva@linaro.org> References: <20190123105222.2378-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