Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp348580rdb; Thu, 16 Nov 2023 23:55:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWzLLUW6NV3rErS2ugvEcVynq6OaOMRfYMTPPHJ+N24u1b7AebtMTTnaxLKe5Ug/usFjvP X-Received: by 2002:a17:902:d48b:b0:1ca:e491:f525 with SMTP id c11-20020a170902d48b00b001cae491f525mr10866114plg.31.1700207727790; Thu, 16 Nov 2023 23:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700207727; cv=none; d=google.com; s=arc-20160816; b=gmd/g4TqNXVTN/v1mvejaeJXNT1xZTvqUynfJJgoAZldVeKGL4hr3kXoO1EybwVkZm X32SEmLpyKC+WbWOB3YcTRIoRLWEACoat+q9c9jniTRF0sZ/6Ab5fPP7TlW/XiCLMV5O JpSZHxE1+VhpUFf0EzAMwknWKWXoFLXJmgyUuU7RMRdbV6bfPVHozgGv+sKI1e7Upy6p LfgR0JihjFvCVHe6TUgvqET1dUnuDgU7J5lnaRHPvPDaf6s19cL+jSw7bFgOQNfdSIFl XmIwEMSvy7KeWaAGsgGxY4AouiQiKBG8HHcV00n69XXRCggYze9x2njj0jRh+ImXbQoV UM8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X5ZVsyyCxl3ZoLstqS+zqF8H29PAu996SHO/uwezhNI=; fh=zhzhGRcgxfaYyIh1aE+E0ke6PvgsAeznQoYclYErluQ=; b=U0zshAe7scS1Z/hj7f3GDsg5Vqu1vaUkKFSEqBz+AKyyUh9pQRHmCElLwLLPwTbNfO NqbkQ9YeV8HK0R/kwo9SuUqxuWJGvvCBLOuOuBeX/2XXryvwEkEofecFxNgg3eGl3D97 L946YzMfU9BWLw7jvA798xntp8/FE+9HoH+uRk24rVaU28dKbx3osKcOW/nnwE+3HOSR opn6uXlkG1SskuRVumf4cw3+tf3xssMK0YKsH2hhFdTYjfVaozmvUWnY1oQHtbYbX4ae BFflW1E130/c+IOKjNFECVZk5LAtPOrYlxncltDQ4iRxjxXS4CEAqk2r0UzLnefiF9Pa va2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ipM2Asqx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bg4-20020a1709028e8400b001c566ea86eesi1290013plb.177.2023.11.16.23.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 23:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ipM2Asqx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 61F2280C2452; Thu, 16 Nov 2023 23:55:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbjKQHz0 (ORCPT + 99 others); Fri, 17 Nov 2023 02:55:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjKQHzZ (ORCPT ); Fri, 17 Nov 2023 02:55:25 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3CDAD4F; Thu, 16 Nov 2023 23:55:20 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3AH7t5dt110494; Fri, 17 Nov 2023 01:55:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1700207705; bh=X5ZVsyyCxl3ZoLstqS+zqF8H29PAu996SHO/uwezhNI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ipM2Asqxv8/z+hwYRYnl+3q7+gSMV0ya3oH7K4mLFMuKSMU7hUoEo7uD5ydmpy3/1 9bBpUcfQvgLKwfuNwkNLr8hyLKvYvC35D00w1HZBh01+67CtdPFmZJMO3D1s06u+2d z/9Wn3/yYmzt3gAwtdDSTeGzttsBndqFCjhammpU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3AH7t5pW015727 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Nov 2023 01:55:05 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 17 Nov 2023 01:55:05 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Fri, 17 Nov 2023 01:55:05 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3AH7t4bP003607; Fri, 17 Nov 2023 01:55:05 -0600 Date: Fri, 17 Nov 2023 13:24:58 +0530 From: Jai Luthra To: Andrew Davis CC: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch Subject: Re: [PATCH 4/8] arm64: dts: ti: k3-am625-beagleplay: Add overlays for OV5640 Message-ID: References: <20231115-csi_dts-v1-0-99fc535b2bde@ti.com> <20231115-csi_dts-v1-4-99fc535b2bde@ti.com> <0a74f40d-a175-4c1d-9e6f-63cabdebb587@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pgtjdmajvimufoma" Content-Disposition: inline In-Reply-To: <0a74f40d-a175-4c1d-9e6f-63cabdebb587@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 23:55:26 -0800 (PST) --pgtjdmajvimufoma Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andrew, Thanks for the review. On Nov 16, 2023 at 08:26:40 -0600, Andrew Davis wrote: > On 11/15/23 3:51 AM, Jai Luthra wrote: > > Three different OV5640 modules are supported using the FFC connector on > > BeaglePlay: > > - Digilent PCam 5C > > - ALINX AN5641 > > - TEVI-OV5640-*-RPI > >=20 > > The Digilent and ALINX modules supply a 12Mhz XCLK to the sensor, while > > the TEVI module supplies a 24Mhz XCLK, thus requiring a separate > > overlay. > >=20 > > Signed-off-by: Jai Luthra > > --- > > arch/arm64/boot/dts/ti/Makefile | 7 ++ > > .../dts/ti/k3-am625-beagleplay-csi2-ov5640.dtso | 77 +++++++++++++= +++++++++ > > .../ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtso | 77 +++++++++++++= +++++++++ > > 3 files changed, 161 insertions(+) > >=20 > > diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/M= akefile > > index 77a347f9f47d..e49e32414560 100644 > > --- a/arch/arm64/boot/dts/ti/Makefile > > +++ b/arch/arm64/boot/dts/ti/Makefile > > @@ -9,9 +9,15 @@ > > # alphabetically. > > # Boards with AM62x SoC > > +k3-am625-beagleplay-csi2-ov5640-dtbs :=3D k3-am625-beagleplay.dtb \ > > + k3-am625-beagleplay-csi2-ov5640.dtbo > > +k3-am625-beagleplay-csi2-tevi-ov5640-dtbs :=3D k3-am625-beagleplay.dtb= \ > > + k3-am625-beagleplay-csi2-tevi-ov5640.dtbo > > k3-am625-sk-hdmi-audio-dtbs :=3D k3-am625-sk.dtb k3-am62x-sk-hdmi-aud= io.dtbo > > k3-am62-lp-sk-hdmi-audio-dtbs :=3D k3-am62-lp-sk.dtb k3-am62x-sk-hdmi= -audio.dtbo > > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-beagleplay.dtb > > +dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-beagleplay-csi2-ov5640.dtb > > +dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-beagleplay-csi2-tevi-ov5640.dtb >=20 >=20 > We don't need .dtb files for each overlay combination, you should leave t= hese > as overlays only, and just apply them at boot time as needed. >=20 > To test apply them at build time, you can use the CONFIG_OF_ALL_DTBS > method that Rob suggested here[0]. >=20 > # Build time test only, enabled by CONFIG_OF_ALL_DTBS > dtb- +=3D \ > k3-am625-beagleplay-overlay-test1.dtb \ > k3-am625-beagleplay-overlay-test2.dtb > k3-am625-beagleplay-overlay-test1-dtbs :=3D k3-am625-beagleplay.dtb \ > k3-am625-beagleplay-csi2-ov5640.dtbo > k3-am625-beagleplay-overlay-test1-dtbs :=3D k3-am625-beagleplay.dtb \ > k3-am625-beagleplay-csi2-tevi-ov5640.dtbo >=20 > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-beagleplay-csi2-ov5640.dtbo > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-beagleplay-csi2-tevi-ov5640.dtbo >=20 > [0] https://lore.kernel.org/all/CAL_Jsq+8jisrwEqzz7tZnsV9g2+LmThwpO7sHRFA= -zh+6q8XuA@mail.gmail.com/ >=20 Makes sense, I was able to test this out locally by adding: OF_ALL_DTBS=3Dy COMPILE_TEST=3Dy in my config. Will send a v2 with the above changes. I think Rob's comment on [0] for testing every combination is valid=20 here, so I will apply each camera overlay on each board that it can be=20 used with. > > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-phyboard-lyra-rdk.dtb > > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-sk.dtb > > dtb-$(CONFIG_ARCH_K3) +=3D k3-am625-verdin-nonwifi-dahlia.dtb > > @@ -81,6 +87,7 @@ dtb-$(CONFIG_ARCH_K3) +=3D k3-am69-sk.dtb > > dtb-$(CONFIG_ARCH_K3) +=3D k3-j784s4-evm.dtb > > # Enable support for device-tree overlays > > +DTC_FLAGS_k3-am625-beagleplay +=3D -@ >=20 > Having any DTBO applied to the base during build will add symbols to the > base for you, no need to add this line. > (Please check that this is true for the OF_ALL_DTBS case above, I've not > checked yet, we should fix if not). Without the explicit "-@" flag, the base dtb is built with symbols=20 *only* if we were doing compile test with OF_ALL_DTBS=3Dy. For the standard build (arm64/configs/defconfig) the base DTB is built=20 *without* symbols as make does not see any combined DTBs as targets. >=20 > I plan to remove the same below in later patches so folks will stop adding > more of these lines. >=20 It is not clear to me how we could avoid explicitly enabling the "-@"=20 flag for non-compile-test builds, let me know if you have any ideas. > Andrew >=20 > > DTC_FLAGS_k3-am625-sk +=3D -@ > > DTC_FLAGS_k3-am62-lp-sk +=3D -@ > > DTC_FLAGS_k3-am6548-iot2050-advanced-m2 +=3D -@ [...] --=20 Thanks, Jai GPG Fingerprint: 4DE0 D818 E5D5 75E8 D45A AFC5 43DE 91F9 249A 7145 --pgtjdmajvimufoma Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETeDYGOXVdejUWq/FQ96R+SSacUUFAmVXHE8ACgkQQ96R+SSa cUVuLRAAh3KxXOSilixweMEHzQoTSyTSKAVexknxk7qSM69DmhV1EbZkW/r4psHZ /HQmt8fYeYPx1X1BRgB6yMr8CFBNYk4JmpCAxWq/weo+hqevDFLBkcBKa8ZHLmB6 Gys4tpEO17tGufMHYkg5FHCWHQT3oY+32QlHmJuyYR1g5Mhqf6HBCA0tkhCfg82m pNXrx3KR36+Nlf4W1ea8Q//WsdlvM87GpZhkVVwblIVlXFSPCc+3TWswfDnM5Euo CG6b3BP6RaEk21v607+HOMsQeB85kv/Csjr9owz9a0EU+oAcV2eEXze9WnPRm0zQ JZnTUBPaF1RTVMPmE+Xg9sG1wtvT5ECb75NTAFZIgSDHo69Ag4xnLrOquIcWS5Zi weCeGS9dM9fHxq0lWek3KquaTYMtWPaV0UTkWh3lX9v7Whoep9Rm6LO4G/5EZrvP Hp1f20pELl6BkJ5qGE/wEwo5wc3sDiLRMVkL3hxEocKopKkx9VyuISgicQ3MvSj/ uuhMpo3xfpJ+alTrNKqLnBW1vMLjqG3X80rRZzObOP6h3xMv3gFObCbioFIpDzVD onN2/mJUldM4QeWb8Eij8QjlrliIUsUFCCI/iegy84Pvprzrfey6czOOMEAnfOcO LPY4NjtOxAMht85db4dq4ayBVWP5xSlD+JddltBWUv0uVcQgoJI= =F4p5 -----END PGP SIGNATURE----- --pgtjdmajvimufoma--