From patchwork Tue Mar 19 16:59:59 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: 160584 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4106373jad; Tue, 19 Mar 2019 10:00:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyv4yWbfJQgYeW1wyLRebLQq7hQmo/q/AmxzRY8gLV1D22Y0araVqp+tjP4cBdLqqdFEd5T X-Received: by 2002:a17:902:1744:: with SMTP id i62mr2990122pli.24.1553014818651; Tue, 19 Mar 2019 10:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014818; cv=none; d=google.com; s=arc-20160816; b=FyW1fmGRAzZfLWdGPARBh6DTziv8uW2J15RGMzk0gRVgVIuT+jnP2LlLt6JU9DOmoa /ns8HF80qkSWUdteh6XO7t0uPS6yjSiOhoOcV1/YAzwnT9whKz+MV6LSEAZhlBE/eLfP TVNtZ9gLnz6miN8DBDzlc6iWNMc3YO4zZ67CX6x1yDoTEMWCkehMXNyRMDq7WHeWOFJt KZJAFbToU0EjyulanFmNSmwhAA90hyRHXanVyezBT53uIjC2v9owmE5N70pzkaWQUEoz VnGyc6Bv6/QSfAm9tB6mtVfs9q0BYAK1uGAVdhibx7LGl+37kLi3Ea82Papuk+FvT01X puBg== 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=or2H0XX3fpoft+bcRNSVhU9ZpCFzIIJHGEXLzy1JLT8=; b=q4T+RxWf8jgMvxuRl/4tXnDpY5mbul2i1aqvs8nNG1++Aibk+jWCW0dO2keVjPam5N NXkJliy+3rY+MWzVOkWbgFZBuXyFtWX4WTtmzgBwbBkmNE0/u2+S/oU7kHX0fOfnWh5K 2W4YV/vdsTNQ6/4zm9AHR7wUWu6VG5MRnPcsPK/fdzCGF/xXQT/y02StEKo486MpnJqJ FLs6TfTGZZNEN8w12PvKhOOcewqO6XE5WX5ZAtO29rDUPViG+jhrUZ1GdRw71eNGZbGV Vuydgfb9UM3TKwLdANBJ2YAqW/d6MUNOdTeKrxHDucuX+5+K5r+U9HMtyNN5fY0s5Tw3 LygA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ev7OxLz6; 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 o6si11257341pgk.470.2019.03.19.10.00.18; Tue, 19 Mar 2019 10:00:18 -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=Ev7OxLz6; 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 S1727018AbfCSRAS (ORCPT + 7 others); Tue, 19 Mar 2019 13:00:18 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40280 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfCSRAR (ORCPT ); Tue, 19 Mar 2019 13:00:17 -0400 Received: by mail-wm1-f68.google.com with SMTP id u10so14801571wmj.5 for ; Tue, 19 Mar 2019 10:00:16 -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=or2H0XX3fpoft+bcRNSVhU9ZpCFzIIJHGEXLzy1JLT8=; b=Ev7OxLz6ExyaIygrbr3cI4OwWJ5CfGxVapQWYTzV85kPrwl5c6G8fcpyEHIpDvkD/W O7ECDOaYc4X/xeKgnXj1UQSdbMhz0ZVjgs45QXPyZK+9pfS+1P6H9BuHeNb8D2EUhPl5 0VUuGK5176YZ840Zbf87GeU1z1jj90LxZIS3zrTL3AMpkGJWGDJ5Sp/8AerfxePBbTBR tAIczMPLRpn/FXRmGz+k7J10dJF62g2mxuofxItwlaTOs4ZXypc5D4TqrFvT5NOHPzWy aXQ0kSbyZRwERd8wCvzor79P23uVsQOklJMl82A4tThkUllRgGM+U8TY7shatH9W4oGG vj9g== 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=or2H0XX3fpoft+bcRNSVhU9ZpCFzIIJHGEXLzy1JLT8=; b=mAVdpRT/VIgnp4PdHdwDHeyOWksuSuhtMKKSbd+mxhSFW3F0NFiZvS/6BZnDzo8VeC Dh1zPD5+NFmvjb3jdbZLM4fSx3IF7aX4DJ96otqcOAzYyoQCajurX8jSAaDJSpEgUDUE M6Obl88tWWAQ3NhHYQr6cRyD3mAW03IrLPaQmzm0oZ29Wp3T0lB6qsRQM5uUvr97sK1o pz4ErZEJMHVJIvTjcTsY3jQhH8T94VMsce8JFLd88jxAhn8jI5qqFYoSKTkGXvEpza7L aJyr8LWocgDFewZKKdnxXQjikgb9AuBiV5KTnLQnWfr8xhpXBgpKv02ImI9ov1NO87Cp v3LA== X-Gm-Message-State: APjAAAX4Kmf6nfMFPvkUXIfi6PkR8hIIe/J5AXrop/MGExzj8k3pih2Q wpFAq/PtkmsDuKVuUVo3ZVawgQ== X-Received: by 2002:a1c:ed03:: with SMTP id l3mr4579295wmh.28.1553014815996; Tue, 19 Mar 2019 10:00:15 -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 l4sm9479711wrf.35.2019.03.19.10.00.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 10:00:15 -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 1/5] ARM: dts: imx7s: add mipi phy power domain Date: Tue, 19 Mar 2019 16:59:59 +0000 Message-Id: <20190319170003.21261-2-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319170003.21261-1-rui.silva@linaro.org> References: <20190319170003.21261-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 Add power domain index 0 related with mipi-phy to imx7s. While at it rename pcie power-domain node to remove pgc prefix. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index e88f53a4c7f4..9a680d3d6424 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -606,7 +606,13 @@ #address-cells = <1>; #size-cells = <0>; - pgc_pcie_phy: pgc-power-domain@1 { + pgc_mipi_phy: power-domain@0 { + #power-domain-cells = <0>; + reg = <0>; + power-supply = <®_1p0d>; + }; + + pgc_pcie_phy: power-domain@1 { #power-domain-cells = <0>; reg = <1>; power-supply = <®_1p0d>; From patchwork Tue Mar 19 17:00:00 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: 160585 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4106411jad; Tue, 19 Mar 2019 10:00:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4dj9u2se1EbUgXGizB3JWMp/2CWx3zjvAwed8FdIQTn1l2yvFjmZhRS6Oa7CBIRnEe/2l X-Received: by 2002:a17:902:e60e:: with SMTP id cm14mr3069115plb.192.1553014820585; Tue, 19 Mar 2019 10:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014820; cv=none; d=google.com; s=arc-20160816; b=vdUfjuyUsJyTHfjPzhMBuLiLAhemTRXz3Zvuq8dq5a2LdmtJw+AhdtKbkV6M+4Hf3W 7DCsrkarfUr9NmPf3uj8JC1hvlfXRZd5CG73GSLVc31QOr0/XHwNbcJBFBcFjkI+4bxu +ZZ6DUIkLEWwGjTviihmMHoe8HJhU7gznZKxALCdXkIW7Wqltl0R/6OrhQbasX+D7FeP WVbqyhy7nfXtPI95mkrOiLEldfq9EuTaExmMdDvUjoq999oUi7/A3lHiho0sjBaX6AhR v6qcJeUHK8KXOH8UujTm3VeYEVaPfq+EwLe0fpEj5T0kYLxaJiTkUexgtId+sIryAnB3 pZYA== 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=Km9F0+MNLg3bsKJa/pUludwKxgF0kSDjShLunfY0CCM=; b=vO8kieiCErunNLj5jiBpcNI5PIsSUgUQn5YWkL6oJQH5F0mm+AFaqL3rR7VsIEURRK oVlrYW61BgrZeh2GiRlSDuPpbIUmQF6LQqZfumlCo75Qkyha/1SacrdmIzPQbYT/HjVE OO+WnWHtl5bup05c2z/xsCxP0LCVnpG09V0sOrAI9mPUDtk0Yf70MmaYepR+BJEIDAoh 7rSRDrh1uEs84l+PHGwUqH17n1DrBn75FkluQrMFLQ4no478GeIxy2TTmhaP9G+KXxhT wbXECQgaBG8Xx/XvXYmWP2HWCpqw3WFsn0jGyZAc4o4d552sRucIoKSfmLn2Km8RbMmZ x5CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C5UTFazL; 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 o6si11257341pgk.470.2019.03.19.10.00.20; Tue, 19 Mar 2019 10:00:20 -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=C5UTFazL; 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 S1727069AbfCSRAU (ORCPT + 7 others); Tue, 19 Mar 2019 13:00:20 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:40284 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfCSRAT (ORCPT ); Tue, 19 Mar 2019 13:00:19 -0400 Received: by mail-wm1-f66.google.com with SMTP id u10so14801722wmj.5 for ; Tue, 19 Mar 2019 10:00:18 -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=Km9F0+MNLg3bsKJa/pUludwKxgF0kSDjShLunfY0CCM=; b=C5UTFazLnDsT15H5bqlk4QG/UWGQA7es3l8+qJTAePflzJZ9Ar/V7m9G2sr3nAGY/D mh8/d5nbzG0xd42/J7562G8Ueq9ZM2pKzWaqs7gNF0NKRRuS69fqxIoaZ7fSWDS3EXN0 efZgM72bDRerBaC/Io23k5nEMeYoBQLGIQkirkf0LBcZ+4ma+NJXlBC2bRTCbzjuqUia ls+qzqdFEFUjFgukLGQxGsaBzN4dfcM+GwmORtRPWPwyxSo0mLNwGICDi5HfaxO+507e NjA4nFqmbapDV2OHL3Uj1Ou9NiUcQvztKArH8ZcJV8Z053Z7xkbSpGK7fL6jiqfZgHRo tTVQ== 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=Km9F0+MNLg3bsKJa/pUludwKxgF0kSDjShLunfY0CCM=; b=j2dbcSI21wn0dNALaZviA7Ykt3iwi5ZqdhMMPth85MSHPic9slTqjN/00AcpLLHUhW Vl5oMlmXfdBK7Aul3szS/Abcn+8xRRmsJyerRRMBFhHwNwQ8b7xCDTDPYk/jYDpvc1PG xp9JRCQiW0iWaNE8+aMkOsIw2Qcjji2/8K7oHR40i++Hh8cNrt7ls2ARcHnmTmtUyvyh 7HVi4q49jg53qCfnDwji5F8PVk0ixxobiL6Xn/02xfa+xbodar3hvPbq9Kbzs+qfAEIm Qg8++JvUnPqpkFOSCw6JLJQrAfhvhy5wkKSYpENLzuHF75uqBij/ZAoLc44LxvqNJ9U1 2jyg== X-Gm-Message-State: APjAAAUieGL8lz1OMhANdiBYUIkoCeM501bq44VjeXq2wje5R8KQcFlK mXSjioqboHKniC38IIdozVu0wi77Jlo= X-Received: by 2002:a7b:cb1a:: with SMTP id u26mr4742481wmj.46.1553014818077; Tue, 19 Mar 2019 10:00:18 -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 l4sm9479711wrf.35.2019.03.19.10.00.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 10:00:17 -0700 (PDT) From: Rui Miguel Silva To: Shawn Guo , Rob Herring , Fabio Estevam Cc: Laurent Pinchart , devicetree@vger.kernel.org, Rui Miguel Silva , Philipp Zabel Subject: [PATCH 2/5] ARM: dts: imx7s: add multiplexer controls Date: Tue, 19 Mar 2019 17:00:00 +0000 Message-Id: <20190319170003.21261-3-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319170003.21261-1-rui.silva@linaro.org> References: <20190319170003.21261-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 The IOMUXC General Purpose Register has bitfield to control video bus multiplexer to control the CSI input between the MIPI-CSI2 and parallel interface. Add that register and mask. Signed-off-by: Rui Miguel Silva Reviewed-by: Philipp Zabel --- arch/arm/boot/dts/imx7s.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.21.0 diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 9a680d3d6424..792efcd2caa1 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -497,8 +497,15 @@ gpr: iomuxc-gpr@30340000 { compatible = "fsl,imx7d-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + "fsl,imx6q-iomuxc-gpr", "syscon", + "simple-mfd"; reg = <0x30340000 0x10000>; + + mux: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <0>; + mux-reg-masks = <0x14 0x00000010>; + }; }; ocotp: ocotp-ctrl@30350000 { From patchwork Tue Mar 19 17:00:01 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: 160586 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4106467jad; Tue, 19 Mar 2019 10:00:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7LdTcWC3O7p+JwiEwJI8aEStEh69hiYFe0l2UilxPWSYXnY3Trn2M7lPNuXRwXE9LvZBC X-Received: by 2002:a17:902:788d:: with SMTP id q13mr3121369pll.154.1553014823486; Tue, 19 Mar 2019 10:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014823; cv=none; d=google.com; s=arc-20160816; b=NOEjrLX3j+kgZHUd/RyHK0GnqI+t2bk1fcjY3RF+vM4/+C0eCIqe8LoJOrufLLgU3m xBUXl9sMWIvfuJFCsw+tJoMZhlV17tYgUm5+P1d0QzePeUfdo3gN1q18JEf8DohqgG2S 3NNcyX44IqZZ+DuyqtbuPKVyCeddm2JaC72yTYti7vt1ooVQW7doijJ8FHmy4k3nHPuo /GvRoeG8Xzht/4fMnIcLFB74sV+x5HRUNIV4SVy1OxXnyNVK/AU39mAue778iwXiZ4wz wULtTMds9ju1jcXg+gN6DjS7q0IfAomtRL3t82MCjxTg72BTbH/YBW8njldr1NqQJb+7 c6kg== 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=ZpWS+2Bz+Lvl4Jr2idB9qJjHyw7/lmjgA6eif7naiEs=; b=M0fkdwQzvHDCTL4LkcoBVEhvvm1tUFLrUHCF1pBAIXiwBvzL2DoxXD3GhsKPYb2CHR aq90ZrjnXO+ar34j+yFKy8ngLJN4iCAQX6mGlrKFeaREb4/ZWvRRLV0C9Icb9J6S/vTo IghBwGjcpuulBJh0/TwLnmOJbgJ75zq+ZJpCDDK7UG94znDiE7qaCrI6JiCOEXyLX8RW C6HuedJY+HI47f1zQczL3MbY9P+z3Sl/0Gpt6TJKlwzCbOy3hAi5WutNgNNOSf7sEwHH /xOTg7grES55y9nhduseRD33CiojHuTyuHl4Xkg6h2VFvPg5FV2+sRrxswGQY3NWNjRP PKIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XucQHs8N; 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 o6si11257341pgk.470.2019.03.19.10.00.23; Tue, 19 Mar 2019 10:00:23 -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=XucQHs8N; 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 S1727336AbfCSRAW (ORCPT + 7 others); Tue, 19 Mar 2019 13:00:22 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52522 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfCSRAW (ORCPT ); Tue, 19 Mar 2019 13:00:22 -0400 Received: by mail-wm1-f68.google.com with SMTP id a184so3685609wma.2 for ; Tue, 19 Mar 2019 10:00:21 -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=ZpWS+2Bz+Lvl4Jr2idB9qJjHyw7/lmjgA6eif7naiEs=; b=XucQHs8NKlfMsjrATLZ1nYPMeVZIb7fa8eBFMyDE0DBxtYKT9u9qAIhYA6mSEfp6sK VT749q90U0Q7iCagFYNwYeAVm5XBVT4meHJLTQ7ywSuZ+MTpDo4Q/k4ypJd55XU4cDiT CW/D90TYUIN6m9fyTRIcHlwIq0EONZTSR2nHIIpO7yzBhKH3n19cbwpvo1C5BYa0R8Ne MHWPbkDixxIUIU36M/mli4e5sb7Y2/4D6Okl7ivezsOgRbp5PoirpuvoAcJSrY9+xHRG Fj/eAoc4JIBAYhERBji1llk9BAn09C+7Silp8+kWkxYkEnwhv4ZNLVHfoLhre6SXD2XY b0Uw== 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=ZpWS+2Bz+Lvl4Jr2idB9qJjHyw7/lmjgA6eif7naiEs=; b=si25qlRjkc5e/N/MsMKb8+89sCo4qR9MizMwSouv6hQP8utFup4NSiC9Gf+WvOKcek iiIKQMoW4W2jfAedrPd324EypTVqc/79L40BnjhwSbgnvB/2TvIIMy1ZpBosUxGKaIUp xhLEi5QPzQ4uJlgR9X3Bu+n8eWWXEg/Hlswlbirq06T4Tsp+7bsclPzJmY4EOStW+inO wk5NldHvMijMPFBcAWRFhGealH0ix29ZLSpsTpCygNZAHAd5WG5XiZTKD0ajPEkkcaOc s0S0qyeNyjEp+NG2LsqfzsDvIZtjcNIEUA3GKXO9pENGC2oJy63cVoqqIuYI5cBG+d73 de6A== X-Gm-Message-State: APjAAAWtZ0ZnqwqiMM7FSOZ6AFddPOOcaLiQF9AI8xOVzJXvS6e2n7u+ 22DEnM2rncRZdPkt/7riCjz8viTSlh0= X-Received: by 2002:a1c:c707:: with SMTP id x7mr3413823wmf.149.1553014820981; Tue, 19 Mar 2019 10:00:20 -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 l4sm9479711wrf.35.2019.03.19.10.00.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 10:00:20 -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 3/5] ARM: dts: imx7s: Add video mux, csi and mipi_csi Date: Tue, 19 Mar 2019 17:00:01 +0000 Message-Id: <20190319170003.21261-4-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319170003.21261-1-rui.silva@linaro.org> References: <20190319170003.21261-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 Add device tree nodes for csi, video multiplexer and mipi-csi. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s.dtsi | 70 ++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 792efcd2caa1..1992e32a9731 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include "imx7d-pinfunc.h" / { @@ -506,6 +507,29 @@ #mux-control-cells = <0>; mux-reg-masks = <0x14 0x00000010>; }; + + csi_mux { + compatible = "video-mux"; + mux-controls = <&mux 0>; + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + csi_mux_from_mipi_vc0: endpoint { + remote-endpoint = <&mipi_vc0_to_csi_mux>; + }; + }; + + port@2 { + reg = <2>; + + csi_mux_to_csi: endpoint { + remote-endpoint = <&csi_from_csi_mux>; + }; + }; + }; }; ocotp: ocotp-ctrl@30350000 { @@ -709,6 +733,23 @@ status = "disabled"; }; + csi: csi@30710000 { + compatible = "fsl,imx7-csi"; + reg = <0x30710000 0x10000>; + interrupts = ; + clocks = <&clks IMX7D_CLK_DUMMY>, + <&clks IMX7D_CSI_MCLK_ROOT_CLK>, + <&clks IMX7D_CLK_DUMMY>; + clock-names = "axi", "mclk", "dcic"; + status = "disabled"; + + port { + csi_from_csi_mux: endpoint { + remote-endpoint = <&csi_mux_to_csi>; + }; + }; + }; + lcdif: lcdif@30730000 { compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif"; reg = <0x30730000 0x10000>; @@ -718,6 +759,35 @@ clock-names = "pix", "axi"; status = "disabled"; }; + + mipi_csi: mipi-csi@30750000 { + compatible = "fsl,imx7-mipi-csi2"; + reg = <0x30750000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks IMX7D_IPG_ROOT_CLK>, + <&clks IMX7D_MIPI_CSI_ROOT_CLK>, + <&clks IMX7D_MIPI_DPHY_ROOT_CLK>; + clock-names = "pclk", "wrap", "phy"; + power-domains = <&pgc_mipi_phy>; + phy-supply = <®_1p0d>; + resets = <&src IMX7_RESET_MIPI_PHY_MRST>; + reset-names = "mrst"; + status = "disabled"; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + + mipi_vc0_to_csi_mux: endpoint { + remote-endpoint = <&csi_mux_from_mipi_vc0>; + }; + }; + }; }; aips3: aips-bus@30800000 { From patchwork Tue Mar 19 17:00:02 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: 160587 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4106521jad; Tue, 19 Mar 2019 10:00:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDCFdN7qL3EJbAoqaX1lWPYrCf+yeeBRZDRbVxPpdKeQ5+mA1nZMsivi9JZQaKJhf3VJWK X-Received: by 2002:aa7:8719:: with SMTP id b25mr3014220pfo.90.1553014825489; Tue, 19 Mar 2019 10:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014825; cv=none; d=google.com; s=arc-20160816; b=ir6VlUkH04x5lNEOhBD613MOPjZcq0ouXe9HPsyZW1RF9OZcN06yM/oY8VvEEzZZSa EV4UhYNoc+1ln6YEOwv8SlDQpuTvchdqBFiBBIHpq4Zoq7vB6Kck/KkWE8m4KAmDFbD7 L4lBrXl5GMshQDdU18TRXtXO5smlpzMAbiLgbYtKljUoU+WAVnedkCfLWt2xminhVITI MVneEiOdJsn6XYMIngcCt0+S4qr/+fYsjxwQUY3+ffXvLz6wefB17gZOxQk0kB1GlXMg lSmKN5cvnb4wIQN6RJrFW/GKjPBWp/83Bxv+xgajTjiCmrgfVWQW36Mp7LiQVsU2+IR7 uzwA== 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=hXaaeqw1NA8nRCDhsHswevb1ojzhzBSN+I9Duwuzf60=; b=OcswPjXGyuKqvygXupvefbqDH7HUT3IUCechealSGN3aYR7rp2Eg1NAaLmY7lObylq CHMulrZv+dHSqhOYI3X8PNFmpuT0w5bf6v2RtiZuuayEU+uFIqd1hBXdcWmjvahGFI0+ 9LtWsx2JEix+ubexUzl97nai1eS6bWO0WCJ+HOa2ykmEprYP9i2AxQ7J5ZCOLpzDCOVt qC+dMRiav+50jMQ21jnwD2aTeAZIcttXiIDiAHkk8kB3e32nXVep5gTzaEolDfX0zQpi D4/8utfC5/QsjUAuL1uuoj7D7WRv5g19kBzNEz+VTzFG/yGgBMBTU86qOaz1LgEKDUe4 aOqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aSY+HIvY; 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 o6si11257341pgk.470.2019.03.19.10.00.25; Tue, 19 Mar 2019 10:00:25 -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=aSY+HIvY; 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 S1727371AbfCSRAY (ORCPT + 7 others); Tue, 19 Mar 2019 13:00:24 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40231 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfCSRAY (ORCPT ); Tue, 19 Mar 2019 13:00:24 -0400 Received: by mail-wr1-f67.google.com with SMTP id t5so22022901wri.7 for ; Tue, 19 Mar 2019 10:00:23 -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=hXaaeqw1NA8nRCDhsHswevb1ojzhzBSN+I9Duwuzf60=; b=aSY+HIvYvnnxp0JWAKdOq3rwR0UIGurdqzJhii6fdjxM+TjoD45kgsP2KszooOY+/R DjnE81HIm3zNLoxWI/WEhNNjZA/3qrxddeYQuZFOrHHnshgK4HD4PLjTkDCxdUGQ7Hzr yHbKeP45mbMNxXdxE/yWwz8rRXICWWNJmnrrZKWVnR0G7aFtCxFqUfCL0sqyQY5kzB+d jkbaDAKBTQHl67P/2WPSie889SjfVGMGnaCtxaX+y9/a622QrFo160Nizu3CFtFswotE gPyN18AExGAR8KqGcZZVdYmU+dO9r7RkAjvgY7LBIGA70YL/HOCH/A4f8Fl2CtwVYLGX g0aw== 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=hXaaeqw1NA8nRCDhsHswevb1ojzhzBSN+I9Duwuzf60=; b=cjQi1WcCMUdn+zUcwO1m0OLxrQxcJcF7j04FA4kc/n00k5H9sjORCb2CN7TiZH/t8s xCCru4dYQ9bV4/pAxjHgPVrgib2SygF4FF55nrqoFwctr6yS8HP//lL6au9YPbWg07kH CBAnwTK2K/KSkS5qT8MEuxnChK7HyML8NBfJPi+ooQQQ3Dln9JLPnE20wu2Z92YJf2x7 9oKfeSoWaWJKQF/mDCE4EeMPg54CN8bqxURuuSSnVLbeEsv+XAjyUJg0i/zPS27eEEO8 87apE4zqMLAerpeI7adzLgb4taUDhbPIrSDLOGP7zlAZeUcMicZpMiXh4bzOO8EP5L/a U8zw== X-Gm-Message-State: APjAAAXdHVSwhx9ky/YSec01OMBODLMKblTeSa219ZHJJUMbeQ826w0H VMIyrfHalEIDPoCUBFPH5fw84A== X-Received: by 2002:adf:dcca:: with SMTP id x10mr6713218wrm.57.1553014823053; Tue, 19 Mar 2019 10:00:23 -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 l4sm9479711wrf.35.2019.03.19.10.00.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 10:00:22 -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 4/5] ARM: dts: imx7s-warp: add csi and mipi_csi node Date: Tue, 19 Mar 2019 17:00:02 +0000 Message-Id: <20190319170003.21261-5-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319170003.21261-1-rui.silva@linaro.org> References: <20190319170003.21261-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 Add and enable csi and mipi_csi nodes. Signed-off-by: Rui Miguel Silva --- arch/arm/boot/dts/imx7s-warp.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.21.0 diff --git a/arch/arm/boot/dts/imx7s-warp.dts b/arch/arm/boot/dts/imx7s-warp.dts index 23431faecaf4..5158c2d958a7 100644 --- a/arch/arm/boot/dts/imx7s-warp.dts +++ b/arch/arm/boot/dts/imx7s-warp.dts @@ -277,6 +277,16 @@ status = "okay"; }; +&csi { + status = "okay"; +}; + +&mipi_csi { + clock-frequency = <166000000>; + status = "okay"; + fsl,csis-hs-settle = <3>; +}; + &wdog1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog>; From patchwork Tue Mar 19 17:00:03 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: 160588 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4106585jad; Tue, 19 Mar 2019 10:00:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzumX1EZKWXIw6Um5PE2AMZdIM4xf1EZModYYWibdpVYXg4WS/hI7dIcZaZKyPt+9kcSVQv X-Received: by 2002:a17:902:a511:: with SMTP id s17mr3518844plq.262.1553014829565; Tue, 19 Mar 2019 10:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553014829; cv=none; d=google.com; s=arc-20160816; b=Yo3/ZnLG1fJxQ0SyUTBNkLvNz4xy176VR7bRw3GN3GYm2pTEiWKVYkzwgEvjM+p2UT M5rJU0rARfliRj256AHkN5DQQUUYEheBbBhrT0UTXb8iza0Q8enOtRq+TaGTb3lUDRMI NU/RWRvxdFAM17RjIEWejDCCCRmCF5L6JMafkJioeRZNMWn4j+OqX6tnNkPtjY4Dtvzk 1bnyIFEnDIYPHYsVWhQzkV5Y/q/H6MF8VQS8y32Z6ja+pajUBwxcwWa3uxXzBX55Iaxv a/Tw1VZ7uBqUYdxPq2oehpXd/9vx4FMpW0J9vyEzq99SAS7w0oPTrqBR0WvjK2TEx5qi HqLg== 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=t2F28LmTh4GkaKGAhTQMBw42KVMGzUn05K6xK1yJnUI=; b=Z9W2tBS3zIfy29fDh/JEcyZep1xWnQ8Ty+XcphegpEID/suptuPscwTm9qe4BGlKnM 4BxuOESDNh4F2GuhIOAEn+GmhSngH/R46nNqcgYLxhxeaAzIIJGSXzJsuLpcjYBNmdLj 7j8aW/Zlv/R0F2zXzHafjcAsK36cUSlAbmwcsno7bimVOYeilMH6D8QqqX+8YY/kuo2p cmcowg/8L2OrZtrQeD4DhS0p+GoYkV7meyCm6KkWgmMcDObPY/ca0BgasTWMX1KgSwNx dJm19dksed/MORIBF5EIFvP+7cGhv0+Mqxvi1aW+0w1iyX7Hw9DwmNzcNpYKPSTzYoij RbLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iaz+X4ll; 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 o6si11257341pgk.470.2019.03.19.10.00.29; Tue, 19 Mar 2019 10:00:29 -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=iaz+X4ll; 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 S1727419AbfCSRA2 (ORCPT + 7 others); Tue, 19 Mar 2019 13:00:28 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55502 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfCSRA2 (ORCPT ); Tue, 19 Mar 2019 13:00:28 -0400 Received: by mail-wm1-f67.google.com with SMTP id 4so17593974wmf.5 for ; Tue, 19 Mar 2019 10:00:27 -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=t2F28LmTh4GkaKGAhTQMBw42KVMGzUn05K6xK1yJnUI=; b=iaz+X4llBt4xAKWOJGhyWluJ6Hlp7CSFNbpbznBgqjm7bbKlpES4w3XOfp31T/fc+v BGUwh4bmlsQabO5aJQ51rcMkbKWUfTlLPKoesr3MUoSBQqYhBe3sP45xq+Je+INZWQGg Wu9FkiCM0eSqDbFUFCyKqK042AoSs0QbAIonaXQ6BBr6yw7wO/tg3B3QzmrdF0wJc1Zl WCAkPKvH+b3aH1n8eVdZgbErwi0xeaIpEqFffbaVWntNqh3nvFIFIpBHrGaKEVMuxWaw pxJUtkLuhRU25Y2anepV8LEG2OBN0SVxddNE8u9o6J7/mfAG1T/nm5jvCCFilLMzRNJp ZFkw== 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=t2F28LmTh4GkaKGAhTQMBw42KVMGzUn05K6xK1yJnUI=; b=j6gMH4FYUZQ6tJKazTyKlh0DTMn4ZPuIKNLTcgT19cOdGngSvNbPimVPdYHbaLC78h eCTum5dCsczpmqo7INAAsV9MrsikosxHj9vcGbNPTdmL+xRI7fGBJpyWHFcnLT0Ed9vk xm8ANQNe+c6HuNM5nzieedcG1qHNTg9w5xmaV1VowECvo1XTGtMexsWM0suR/BUB8D/K ProAhPkHgl5rwKpjBvt2BLKev6Nz53PcR1bieQMToKeDu50DhUykHyO7A/lhOOItyqdb haAPl64XCpY82LMERfJYrBNbURaFB5DR5kydmsKRKqZ8nfpjzCm7lbHsN/OMIyOw3F82 lAxA== X-Gm-Message-State: APjAAAVlm3r+f70S+/qMHjgWut4hLMormJVMAVQT2vnafVgSEd7FjUVT Ucnms92v3SDZf5RyWBPZlTZ7ajwZISI= X-Received: by 2002:a1c:99d2:: with SMTP id b201mr4406533wme.90.1553014827008; Tue, 19 Mar 2019 10:00:27 -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 l4sm9479711wrf.35.2019.03.19.10.00.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Mar 2019 10:00:25 -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 5/5] ARM: dts: imx7s-warp: add ov2680 sensor node Date: Tue, 19 Mar 2019 17:00:03 +0000 Message-Id: <20190319170003.21261-6-rui.silva@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190319170003.21261-1-rui.silva@linaro.org> References: <20190319170003.21261-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 5158c2d958a7..6ca68ab33b61 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 { @@ -285,6 +314,16 @@ clock-frequency = <166000000>; status = "okay"; fsl,csis-hs-settle = <3>; + + port@0 { + reg = <0>; + + mipi_from_sensor: endpoint { + remote-endpoint = <&ov2680_to_mipi>; + data-lanes = <1>; + }; + + }; }; &wdog1 { @@ -341,6 +380,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