From patchwork Thu Feb 16 17:53:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 654198 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED188C64EC4 for ; Thu, 16 Feb 2023 17:54:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230045AbjBPRyG (ORCPT ); Thu, 16 Feb 2023 12:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbjBPRyF (ORCPT ); Thu, 16 Feb 2023 12:54:05 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101AB1BD1; Thu, 16 Feb 2023 09:54:04 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id m20-20020a05600c3b1400b003e1e754657aso4842575wms.2; Thu, 16 Feb 2023 09:54:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fsnnXrGjSFWEPm5CWqloaKqDhJT1psg1t9dTnw05I+s=; b=WkBQvpQP9hcUr4Yb7UY8gP3xGFXv7ITKCyRGvvFlyhtIcSD5+GTIK22Pb1LINOPlL3 c9In0GzByClzeTHpVAO6UXTv7UUxTvSLy1lQd2salLYsc5IC9fejSyD8bCfv2M6D+umr gSmQCe8/j2pQ+b1KCviC5TosE12Ho836UK1DX9Yk3Xh+v2xXe5g/mklTbtDAl2rDX0bE Qn9QpBj48niXaHGL9Nk8wqJd/z/nKkvc+A2AcjI9NPK5CmuiB5nRKc4Farhj1uQ8n/Ww Rm2L6JyRabiaaOI0Pj6NoeKCym6Me5mQBeIYn1IeHyqG6Kl4Y8vyOrwoZUwTJm2eVe4L fZaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fsnnXrGjSFWEPm5CWqloaKqDhJT1psg1t9dTnw05I+s=; b=MUp9TM4+5PvTlGDnNScSGznZCEwwATonMhl3fTGp5d5t+WZ2hi0h5dNUEbNkVu/b07 Us0bZ7cnst+nSXBK2r5cqozjVrn3KRwreCddmb2tMZYaRWq+GBD1WY7oCeZgAX3+v/4e YRdf18rnRxvH12KvfmIObokfLE3AaVeqMUHXc4ekH/PXGJxECiDr7sfQYzME71/8MK54 wJGD4mCYW6PybO4twtJ0xFffYkNZgDL/tOjPVKFuiAf9nwEKeyCy6xp6+BspODB2GteF lh37mqwRvzOvXUNcv7LWvbDgN9SBYhlB24qP25XLVrYC/pev2Ucly3BtkHpSnPP/U0H5 hxhA== X-Gm-Message-State: AO0yUKXe8R6uCunnp7r/u/t3/aiHWZJF+jbdmDTJhvAym1o1LxobeVLp ICR+kdPkTbCALmchxmWGazHWTPgfZ/llKA== X-Google-Smtp-Source: AK7set9bgnBmaGTRk9onV8zOknwRYTFctXIShIpOreYy6FgpVZavqHFnlULt+WQI+FxLgaPVY/Z8fA== X-Received: by 2002:a05:600c:5486:b0:3dd:37a5:dc90 with SMTP id iv6-20020a05600c548600b003dd37a5dc90mr5550444wmb.32.1676570042573; Thu, 16 Feb 2023 09:54:02 -0800 (PST) Received: from prasmi.home ([2a00:23c8:2501:c701:31b2:19e1:4409:5c3b]) by smtp.gmail.com with ESMTPSA id o10-20020a1c750a000000b003dc4aae4739sm5826836wmc.27.2023.02.16.09.54.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 09:54:01 -0800 (PST) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Magnus Damm Cc: Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 1/3] arm64: dts: renesas: r9a07g044: Add CSI and CRU nodes Date: Thu, 16 Feb 2023 17:53:45 +0000 Message-Id: <20230216175347.99778-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Lad Prabhakar Add CSI and CRU nodes r9a07g044 (RZ/G2L) SoC DTSI. Signed-off-by: Lad Prabhakar --- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi index 9a3e18abae39..68bd70210d08 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi @@ -627,6 +627,85 @@ sbc: spi@10060000 { status = "disabled"; }; + cru: video@10830000 { + compatible = "renesas,r9a07g044-cru", "renesas,rzg2l-cru"; + reg = <0 0x10830000 0 0x400>; + clocks = <&cpg CPG_MOD SOC_PREFIX(CRU_VCLK)>, + <&cpg CPG_MOD SOC_PREFIX(CRU_PCLK)>, + <&cpg CPG_MOD SOC_PREFIX(CRU_ACLK)>; + clock-names = "video", "apb", "axi"; + interrupts = , + , + ; + interrupt-names = "image_conv", "image_conv_err", "axi_mst_err"; + resets = <&cpg SOC_PREFIX(CRU_PRESETN)>, + <&cpg SOC_PREFIX(CRU_ARESETN)>; + reset-names = "presetn", "aresetn"; + power-domains = <&cpg>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <0>; + cruparallel: endpoint@0 { + reg = <0>; + }; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + + reg = <1>; + crucsi2: endpoint@0 { + reg = <0>; + remote-endpoint = <&csi2cru>; + }; + }; + }; + }; + + csi2: csi2@10830400 { + compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2"; + reg = <0 0x10830400 0 0xfc00>; + interrupts = ; + clocks = <&cpg CPG_MOD SOC_PREFIX(CRU_SYSCLK)>, + <&cpg CPG_MOD SOC_PREFIX(CRU_VCLK)>, + <&cpg CPG_MOD SOC_PREFIX(CRU_PCLK)>; + clock-names = "system", "video", "apb"; + resets = <&cpg SOC_PREFIX(CRU_PRESETN)>, + <&cpg SOC_PREFIX(CRU_CMN_RSTB)>; + reset-names = "presetn", "cmn-rstb"; + power-domains = <&cpg>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + csi2cru: endpoint@0 { + reg = <0>; + remote-endpoint = <&crucsi2>; + }; + }; + }; + }; + cpg: clock-controller@11010000 { compatible = "renesas,r9a07g044-cpg"; reg = <0 0x11010000 0 0x10000>; From patchwork Thu Feb 16 17:53:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 654567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7947C636CC for ; Thu, 16 Feb 2023 17:54:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbjBPRyH (ORCPT ); Thu, 16 Feb 2023 12:54:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjBPRyG (ORCPT ); Thu, 16 Feb 2023 12:54:06 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 020BEFF02; Thu, 16 Feb 2023 09:54:05 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id m16-20020a05600c3b1000b003dc4050c94aso2317196wms.4; Thu, 16 Feb 2023 09:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XWeVPez/G0hU15sEueVSFp0xfXBrqoz46idtepvnSeQ=; b=QtAGIo99kEnquPE2qhIVDa2Wqtrndj7iIpY4F2/cHxBJ2vuzmMk3P2hwjA3a/aVzV8 NZudfXvA3Nq7Vl1l0udsxzFhbl1CWE2Dc2UEFNKKd3X0Mc5+8y388Mh+jX3eLlM3A0Lt Yn1lQBofO11jeE9/jS3oZ4o4vcTeJuYPFYN3M+FAs6DnTcLyZiHe/iFluNJ+oTU3a3AS nFtIqv1+GmUgc7GRDWPP04AHDbFxZaTqPNejWAZEDGtueRg1OfhiIRMUAVNwrh9xTjrW 54L1YTYhAtRrqRvtqDzcQRqfv9vr3IJCR8MX1PSAF/FdYYepZ8qWC/Aoo9ZiVKA2Xn5t ccKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XWeVPez/G0hU15sEueVSFp0xfXBrqoz46idtepvnSeQ=; b=PZQfAaf2lVXuWz0IKmhUReY600/+EuW/7MKOEqEZ3rUP7hcfJyEApPCMOvzODtqoMP GpdaIR5hmJv10xu2KmZ+TLrOjN1dMigP3FEfDn2EpzOIloNJinqlHlZgjd3i4yq/US4/ v/GYYNVd/9MlF0ChUR0j1cz23iow+vDsvz1Z6ZY74wOPeduVWP2MQtXn+dRhvZsTKtMO fDSSfg2sGs6c8oxNh1x3Ve6AzPY+f1wfzJeDVifdMW5bRt4u1uKSoTwoy5tn62diRSOj uBDInTCehb+WUJVA2NVdb1gCxFju1wrOzq9dyBgGGjoAsV2Z02xHixt/aTNqAX9ZWD3G qzEw== X-Gm-Message-State: AO0yUKUWCToRiCSeP9MnZvU+/lzy3a4W5CefTf/aCJNTPEhL75gXMX+8 y9Sb7DfLVOMChyZoAzwpv2Y= X-Google-Smtp-Source: AK7set/HF92N4hiJ+BRM3PDf8nsJXXU7eCsPk+fKD0QJwnDd+eiwJ/nnF1G8fSozCKMy0vuLD3/IEA== X-Received: by 2002:a05:600c:4f07:b0:3df:7948:886b with SMTP id l7-20020a05600c4f0700b003df7948886bmr5732846wmq.31.1676570043491; Thu, 16 Feb 2023 09:54:03 -0800 (PST) Received: from prasmi.home ([2a00:23c8:2501:c701:31b2:19e1:4409:5c3b]) by smtp.gmail.com with ESMTPSA id o10-20020a1c750a000000b003dc4aae4739sm5826836wmc.27.2023.02.16.09.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 09:54:03 -0800 (PST) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Magnus Damm Cc: Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 2/3] arm64: dts: renesas: rzg2l-smarc: Add OV5645 node Date: Thu, 16 Feb 2023 17:53:46 +0000 Message-Id: <20230216175347.99778-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Lad Prabhakar OV5645 sensor can be connected to the CN1 connector on the carrier board. This patch adds the ov5645 node under i2c0 node. Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven --- .../boot/dts/renesas/r9a07g044l2-smarc.dts | 4 ++ .../boot/dts/renesas/rz-smarc-common.dtsi | 53 +++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts index bc2af6c92ccd..275e760324f3 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts +++ b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts @@ -6,6 +6,10 @@ */ /dts-v1/; + +/* comment the #define statement if OV5645 is not connected to CN1 */ +#define CAM_INTERFACE_OV5645 1 + #include "r9a07g044l2.dtsi" #include "rzg2l-smarc-som.dtsi" #include "rzg2l-smarc-pinfunction.dtsi" diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi index 3962d47b3e59..915ad7e3935d 100644 --- a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi +++ b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi @@ -38,6 +38,38 @@ audio_mclock: audio_mclock { clock-frequency = <11289600>; }; +#ifdef CAM_INTERFACE_OV5645 + ov5645_vdddo_1v8: 1p8v { + compatible = "regulator-fixed"; + regulator-name = "camera_vdddo"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ov5645_vdda_2v8: 2p8v { + compatible = "regulator-fixed"; + regulator-name = "camera_vdda"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + }; + + ov5645_vddd_1v5: 1p5v { + compatible = "regulator-fixed"; + regulator-name = "camera_vddd"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + }; + + ov5645_fixed_clk: osc25250_clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +#endif + snd_rzg2l: sound { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; @@ -119,6 +151,27 @@ &i2c0 { pinctrl-names = "default"; status = "okay"; + +#ifdef CAM_INTERFACE_OV5645 + ov5645: camera@3c { + compatible = "ovti,ov5645"; + reg = <0x3c>; + clocks = <&ov5645_fixed_clk>; + clock-frequency = <24000000>; + vdddo-supply = <&ov5645_vdddo_1v8>; + vdda-supply = <&ov5645_vdda_2v8>; + vddd-supply = <&ov5645_vddd_1v5>; + enable-gpios = <&pinctrl RZG2L_GPIO(2, 0) GPIO_ACTIVE_HIGH>; + reset-gpios = <&pinctrl RZG2L_GPIO(40, 2) GPIO_ACTIVE_LOW>; + + port { + ov5645_ep: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +#endif }; &i2c1 { From patchwork Thu Feb 16 17:53:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 654197 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3532FC6379F for ; Thu, 16 Feb 2023 17:54:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbjBPRyJ (ORCPT ); Thu, 16 Feb 2023 12:54:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbjBPRyG (ORCPT ); Thu, 16 Feb 2023 12:54:06 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B49F4FAAA; Thu, 16 Feb 2023 09:54:05 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id o19-20020a05600c379300b003e21af96703so1121672wmr.2; Thu, 16 Feb 2023 09:54:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fa6e/J6Az3QweT1AcfTAdQTvvQGaFdfGTCPOYfh9lAs=; b=nP5Cj6OoPxzboBqC043G0EDoX/vicms/McihqYLr/ykhh1ezlX/LIi1OCe99bCp72f jMgp+2xrg+i3imAgDgEOpKEEfaHcP8zCAC/4gnQod7Iz0IuPMpwrU53FYtOzVcwksmpa Fp02UE3yz50femzY/eFXRDsSYaGScZXSqhPLejpgzgQahFx85YyhnBQDZ/bAL6U2Vevg YXFvgafGOGjCfiU8fMRHQzWgm9FyfdKr/rLPjlJm9GSYf5jK01XJ2gRoXcNjJLlFWfTa BsTPfP9H18ho+DEz2ZaOXBhBEpnACFkKnvNBRQLrw/i5R63gTzPIIFwS9zvZbenNASTi qTCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fa6e/J6Az3QweT1AcfTAdQTvvQGaFdfGTCPOYfh9lAs=; b=6ELW4z2hfRzvP00Bqs1e/P3/fQYCPsT1pT8klybj/oXco/5nY15FFA7ErTwIs1tqjZ 5/LwI24mX/awFd5AphgyH0FcHAK0CO4HsR4XQ9d0y6nSLgDif87lNgYfM+4oQH/C3f5y EqfNGfjqIHh12W765kdC55Za9UKZxTJysYbReQkC2fDEDucISvxjGe6A7MPoiNcphr09 Ek6S3waTBI2fCMdTo7XVKNPBxxs4Ujyw7cswLfJZFe2QGWI7inZjbSk9vBIgd22zn6uu Y89RkOCcKtjDexFnAf4J5Yabguv1tB6asH6KIc8PXYBiHLTkr2fTYEcSqT6pd70A6in+ T3og== X-Gm-Message-State: AO0yUKWGozyQvVQ1IFqzA0Ub0h4LO8Noq3eNfymaY2aRk95z9+16BVp5 HZ8PSH3qjw4vDdPlc3dj92U= X-Google-Smtp-Source: AK7set9OgspDNDFeQp7YEfFIWhJ6rfthg/5MfYK31MG2O9dqKxGyuzCJtk9GmLU0woeuB4KRlknNQg== X-Received: by 2002:a05:600c:188a:b0:3e1:fc61:e0e5 with SMTP id x10-20020a05600c188a00b003e1fc61e0e5mr6103294wmp.33.1676570044447; Thu, 16 Feb 2023 09:54:04 -0800 (PST) Received: from prasmi.home ([2a00:23c8:2501:c701:31b2:19e1:4409:5c3b]) by smtp.gmail.com with ESMTPSA id o10-20020a1c750a000000b003dc4aae4739sm5826836wmc.27.2023.02.16.09.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 09:54:04 -0800 (PST) From: Prabhakar X-Google-Original-From: Prabhakar To: Geert Uytterhoeven , Magnus Damm Cc: Laurent Pinchart , =?utf-8?q?Niklas_S=C3=B6derlund?= , Rob Herring , Krzysztof Kozlowski , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 3/3] arm64: dts: renesas: rzg2l-smarc: Enable CRU and CSI nodes Date: Thu, 16 Feb 2023 17:53:47 +0000 Message-Id: <20230216175347.99778-4-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20230216175347.99778-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Lad Prabhakar Enable CRU and CSI nodes and tie the CSI remote endpoint with OV5645 endpoint. Signed-off-by: Lad Prabhakar Reviewed-by: Geert Uytterhoeven --- .../boot/dts/renesas/r9a07g044l2-smarc.dts | 1 + .../boot/dts/renesas/rz-smarc-common.dtsi | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts index 275e760324f3..25da4c93e0a4 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts +++ b/arch/arm64/boot/dts/renesas/r9a07g044l2-smarc.dts @@ -9,6 +9,7 @@ /* comment the #define statement if OV5645 is not connected to CN1 */ #define CAM_INTERFACE_OV5645 1 +#define CRU_INTERFACE_AVAILABLE 1 #include "r9a07g044l2.dtsi" #include "rzg2l-smarc-som.dtsi" diff --git a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi index 915ad7e3935d..0f9a96ef5f6a 100644 --- a/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi +++ b/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi @@ -132,6 +132,28 @@ channel1 { }; }; +#ifdef CRU_INTERFACE_AVAILABLE +&cru { + status = "okay"; +}; + +&csi2 { + status = "okay"; + + ports { + port@0 { + csi2_in: endpoint { + clock-lanes = <0>; + data-lanes = <1 2>; +#ifdef CAM_INTERFACE_OV5645 + remote-endpoint = <&ov5645_ep>; +#endif + }; + }; + }; +}; +#endif + &ehci0 { dr_mode = "otg"; status = "okay"; @@ -168,6 +190,7 @@ port { ov5645_ep: endpoint { clock-lanes = <0>; data-lanes = <1 2>; + remote-endpoint = <&csi2_in>; }; }; };