Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3731497rdh; Tue, 28 Nov 2023 02:13:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IH4ZqjPMy1tBqNtz8cWOn+PjO7AQOlgrBByVN5UTpJW78Ul+WGJQVmNatS/wOmxVENDjBzm X-Received: by 2002:a17:90b:3b91:b0:285:a204:fc47 with SMTP id pc17-20020a17090b3b9100b00285a204fc47mr12409291pjb.17.1701166387667; Tue, 28 Nov 2023 02:13:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701166387; cv=none; d=google.com; s=arc-20160816; b=wW3GfuIfTawlfuzMP/9QP67vUWncCrGHqk02Vr8MCOidzVuQ1H2o2bmFi5x9SjS5gM 8bywqE5IYg86gZkuZ0CNCv3xOKcj8wEBzDrYvR3iInEcaj483oZnizpAyKGGK3KwU2YX FHusBlc4cCUtlTCqx7w2pcorpy+EpPMHJyOlFyC9Dh7D/lsZ8FYayFfofzk/yl9iyhFk iKy215rScFYIc9+bq9AZ5XLTJgLkLZXorhl2ABUZjaD1/FtI902Of03gMGuDCij2uyxC 6OCX97mmgo+vCmbmraxoy1ysfxF/6X7YtpE2pPUcjkbF/Uhnwj/DMcG8qmruLsUsX/3p vzmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=mOGju8jFGvhn3pPWAI2K8eBExjaLWFL6KaBuQrryyBc=; fh=gjf50MpIeI4y7DsLDR8KPyZZDZn0L+YVyMCrolRSpx0=; b=cabV3eTzpTxGEkLvwlwrWNd+TwEbV+/rUehrnc/A/oul/LRctBgLB3OoyYSxbnc4dX SdU8gfzjEmrbuPFC/zlXB1aUOmgqJkG+Clu4vULU9kPN4OH8SzbEbevFx+Qq7AIdhVEV hYzyrR9tBzECHVyvhec2JUJlkWr/YFLpyCov9qzCcBcJTrQIcEDbqTTqKj5ic14J3z8z vgBXqCzlA78OWSfdZWZKJpidBsuEwroVHoo+w5UOg4nhb9+LG7RWsAyac1zhZfkTC15E w8QeM5SUiNiqtO6hXkmmFMgKlv6qpVK2NXnGuGo/XtUKTUGRbSW7b1oWNlHpInnMUp4X X2Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sPKDMrhK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id sj3-20020a17090b2d8300b00285c71e384csi4973599pjb.88.2023.11.28.02.13.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 02:13:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sPKDMrhK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 A48B2804C1B8; Tue, 28 Nov 2023 02:13:06 -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 S234668AbjK1KMw (ORCPT + 99 others); Tue, 28 Nov 2023 05:12:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234769AbjK1KKo (ORCPT ); Tue, 28 Nov 2023 05:10:44 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4FE9E6; Tue, 28 Nov 2023 02:10:48 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAAbkM079845; Tue, 28 Nov 2023 04:10:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701166237; bh=mOGju8jFGvhn3pPWAI2K8eBExjaLWFL6KaBuQrryyBc=; h=From:Date:Subject:References:In-Reply-To:To:CC; b=sPKDMrhKeb1dyw0s4qdJ70Ip3A2nkRoNTdatBwG9JapyXeGN6s7X1SfJpzw6KT0vy MsPSg7JEosX1I/SIno1fCmwSZJQempIz2iHoKhwoh4cEOKyeXHqU2S/KPPH3UHx8o1 wbGdQUQyn1W5ufRTU6QNyWtpZI1bC7mOVTmCg2Qo= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3ASAAbWJ017681 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 Nov 2023 04:10:37 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 28 Nov 2023 04:10:37 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE107.ent.ti.com (157.170.170.37) 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; Tue, 28 Nov 2023 04:10:37 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3ASAAZY3101378; Tue, 28 Nov 2023 04:10:36 -0600 From: Jai Luthra Date: Tue, 28 Nov 2023 15:39:50 +0530 Subject: [PATCH v3 8/9] arm64: dts: ti: k3-am62x: Add overlay for IMX219 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20231128-csi_dts-v3-8-0bb11cfa9d43@ti.com> References: <20231128-csi_dts-v3-0-0bb11cfa9d43@ti.com> In-Reply-To: <20231128-csi_dts-v3-0-0bb11cfa9d43@ti.com> To: Catalin Marinas , Will Deacon , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , Aradhya Bhatia , Devarsh Thakkar , Vaishnav Achath , Julien Massot , Martyn Welch , Matthias Schiffer , Jai Luthra X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=3941; i=j-luthra@ti.com; h=from:subject:message-id; bh=b6cpauaHGBPWOmaKZGQ9EpAhMDjQqtcqqV29zVSXG0Q=; b=owEBbQKS/ZANAwAIAUPekfkkmnFFAcsmYgBlZbyElXcvNGiBoQc9blIyFbPOT42C8p3/Gdgks cNTmTFYERiJAjMEAAEIAB0WIQRN4NgY5dV16NRar8VD3pH5JJpxRQUCZWW8hAAKCRBD3pH5JJpx Rdf/EACgWlEPD6pzHy/K2QJHCgpeSeHN1GOizNFAsrlo/q4EE9fElBaL7MPSq4tuvJzkfvmV/hm OIDTPQQSmlWImTc0FJLzOSKq9n4V/JGqiOTADKTvnhvYbmcSYltiEYWqV7fU6BNNbGwRN592Js8 lh7ImUahxp5cfnrGbehKQI3cL5ZMQWPjtxXlCHuUGUWNcjSNt8jeih6SmTPtdz6eQjjeKy2hgh1 2j9FXHfQFbY9Y7pxCfG9qMmONpaJwSIYGwQKPaIeWo3woej8lywnxfETZ8BGHfa7OgXOFBeSH2t 1wDb+B+aGOeI2bB4J0iGnM3F8QLJ5vO8IAq/yP7lgvOjEaHYbhXyE9pYCdIDPYlFOZk+h+3Cdz4 C/Y3eq2fQUwwBTWzL4Bu92MzsgYaMG7l5qZIfcLHsJQDQ5rhqD73FBLbYccZ1U9mfeRm31Ept6p I31aysw+Te8An42O7uZzc6o0sZlJf8Y0Bet/GUrjB+n8Rfz+9PjQ4Qp0ovVHqZpCqnVmzeJoRjD QoGMgfHD+78uVWD0ZJG+SjofNmrGJtGTLdqPMxqhy2HJX7VcTBn3Hht+D75AkWK+/5/4fmvhjVH sHGpBgK1qY8W2RtIROVq6X6Rvbcda4PZANEwz2MHFBrOLJObo7X41Eh/RPnMxDPf7M0/4M5wpOS 9AowAv1nGyxFgsQ== X-Developer-Key: i=j-luthra@ti.com; a=openpgp; fpr=4DE0D818E5D575E8D45AAFC543DE91F9249A7145 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Tue, 28 Nov 2023 02:13:06 -0800 (PST) RPi v2 Camera (IMX219) is an 8MP camera that can be used with SK-AM62A through the 22-pin CSI-RX connector. Same overlay can be used across SK-AM62* boards that have a 15/22-pin FFC connector, so we name it with the k3-am62x- prefix. Signed-off-by: Jai Luthra --- arch/arm64/boot/dts/ti/Makefile | 7 ++ .../arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso | 84 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index f957b5f741ff..fd9166497c32 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb # Common overlays for SK-AM62* family of boards dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-tevi-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am62x-sk-csi2-imx219.dtbo # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb @@ -91,18 +92,24 @@ k3-am625-beagleplay-csi2-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-ov5640.dtbo k3-am625-beagleplay-csi2-tevi-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +k3-am625-sk-csi2-imx219-dtbs := k3-am625-sk.dtb \ + k3-am62x-sk-csi2-imx219.dtbo k3-am625-sk-csi2-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am625-sk-csi2-tevi-ov5640-dtbs := k3-am625-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am62a7-sk-csi2-imx219-dtbs := k3-am62a7-sk.dtb \ + k3-am62x-sk-csi2-imx219.dtbo k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo dtb- += k3-am625-beagleplay-csi2-ov5640.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtb \ + k3-am625-sk-csi2-imx219.dtb \ k3-am625-sk-csi2-ov5640.dtb \ k3-am625-sk-csi2-tevi-ov5640.dtb \ + k3-am62a7-sk-csi2-imx219.dtb \ k3-am62a7-sk-csi2-ov5640.dtb \ k3-am62a7-sk-csi2-tevi-ov5640.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso new file mode 100644 index 000000000000..6f4cd73c2f43 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-csi2-imx219.dtso @@ -0,0 +1,84 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * IMX219 (RPi v2) Camera Module + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include + +&{/} { + clk_imx219_fixed: imx219-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +}; + +&main_i2c2 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + i2c-switch@71 { + compatible = "nxp,pca9543"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x71>; + + /* CAM port */ + i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + ov5640: camera@10 { + compatible = "sony,imx219"; + reg = <0x10>; + + clocks = <&clk_imx219_fixed>; + clock-names = "xclk"; + + reset-gpios = <&exp1 13 GPIO_ACTIVE_HIGH>; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + link-frequencies = /bits/ 64 <456000000>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + }; + }; +}; + +&cdns_csi2rx0 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi0_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx0_in_sensor: endpoint { + remote-endpoint = <&csi2_cam0>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&ti_csi2rx0 { + status = "okay"; +}; + +&dphy0 { + status = "okay"; +}; -- 2.42.1