Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp390478rdb; Mon, 29 Jan 2024 05:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF40kKrh2JgpuRJRsNTf8zqnLZs77eiOOcm2JglsGtlSedEw3LtPvwn1GybYCAC9HQpRwGj X-Received: by 2002:a05:6a20:e127:b0:19b:a07a:3495 with SMTP id kr39-20020a056a20e12700b0019ba07a3495mr7625896pzb.25.1706535480442; Mon, 29 Jan 2024 05:38:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706535480; cv=pass; d=google.com; s=arc-20160816; b=gaQi9SaVwNMnjZdNfzYlFObNlcbqxd7COCMmQaAVY4iBzuPQzc4PY8rUPiTQYQ+Fka St8NRkIud+rbnVou4iQmJx6uszTPbD7D4vUTO35gz2of1EhGJNQfOWCGDVcU6Nsh84zt n8XlVQmURcDe6ltxQZMNKpu/4DaPXVM3mN/iANbbz4WOR+Ue8CTMpCyg97OIkUlVc2bS pja4+4KoXKEUeLb2eD5x19EogzlqH9n8rNzRbAio6QMoi9h31yXXtmzlqXBRfV91o2Ku RKaZMzsygNLXtfiLu4gkVcB2Qk6Q9ztwGInEtO+SsdNSGqj/s/IcMaQGRrK/By58SXb6 yiSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=pxRAtQYXyM4cN8XqY5QkA82gb4WIzyA0aGBOWzc4m8k=; fh=XT/CBWmVHm+7hSmT/rWeCa52mY0XRRHWnGkd9Vtyt2Y=; b=IoYRTFEvmdZ1LO6+Vng2ScVlMzF5SrS2HUVWxe2NDeRJ6iEpSWQeWgtgsZUzAxFbxo Ew/OBfdYUsxccBAImq4hZxkF+g79rGRk2e2VfM+MK4Xd2A9TxE/qgQ81MwiZubs59mhL 6z88lgfj5sZeng33dV4E2I6Iq2B+Z8c+vjACAGhH5/6EbBfVD6+fZ9THa5IJtl1QXGy6 xjxciYnTuaJPAt/K0JgbKHB/qpUcV0+ZJNqpOlX51ZVfosuYjZOX1WweZg287xuPiasB Hk4elOBCzLAVGdKaXOT+IfFYJcO1y/RzJgFyuKVXKI9n2G523yLDb9WloPYypBSDPxuK 3wpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bNZfwVoq; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-42804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u69-20020a638548000000b005cd8cb67fe9si5691119pgd.583.2024.01.29.05.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 05:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bNZfwVoq; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-42804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7BF99291658 for ; Mon, 29 Jan 2024 13:30:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 351E966B49; Mon, 29 Jan 2024 13:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="bNZfwVoq" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70B3B664B8; Mon, 29 Jan 2024 13:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706534913; cv=none; b=H0KckyKK87f0ZORAkp95BjqFe1dfBssrRRiQZ+IKUaedvtrdrTY664QcYq8gZoG5QoVZD9p6bSHfVLcktH3K4oaQeZYI2ODBmmofn5BZAXr0Eak7XfxRUyRVho7aSebBbjo7D8ofWpxgcmtB+MEoszLTmpZMjS0TQOJsvm0FX3g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706534913; c=relaxed/simple; bh=cHGpYx7pLrXkI4kU27psyajXtKlh66ypKBcO2m7U5so=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rMH0BJexOD1yW5k9N+RUakeZmeX/qW4UBRRDgL30UBaIrtKKDxrM7zXY8+egzQzY4gwm6g+X/EvswaN1RTmCczxuFpLahpQFFQ1kp8fGJ2l321v4v2/90VV3rDJZnBjPywsXEFfUf8CTN8/E3lCpVYEyV/neuEuGmPffiBU/2cE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=bNZfwVoq; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40TDSMrp099437; Mon, 29 Jan 2024 07:28:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706534902; bh=pxRAtQYXyM4cN8XqY5QkA82gb4WIzyA0aGBOWzc4m8k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bNZfwVoqLurp4h1y5+7zwLDl90vURgn3RLVQsrcZgEz6Pnzc5aqV3NOkw4boZvqhK fIaikHStk/ZdXRbqKSXF+u0a7qZUOryPSqfXUM8DxW5ZlkREadxYdaBYvZ3RUjbjy8 D1YZqIlOLgES7JVpXV6UBQdzmDTx+A6XG+QmInEQ= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40TDSM9p093614 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Jan 2024 07:28:22 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Jan 2024 07:28:22 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE104.ent.ti.com (157.170.170.34) 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; Mon, 29 Jan 2024 07:28:22 -0600 Received: from uda0490681.dhcp.ti.com ([10.24.69.142]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40TDRg9J036720; Mon, 29 Jan 2024 07:28:18 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , Subject: [PATCH 9/9] arm64: dts: ti: k3-am69-sk: Add overlay for IMX219 Date: Mon, 29 Jan 2024 18:57:42 +0530 Message-ID: <20240129132742.1189783-10-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129132742.1189783-1-vaishnav.a@ti.com> References: <20240129132742.1189783-1-vaishnav.a@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 RPi v2 Camera (IMX219) is an 8MP camera that can be used with SK-AM69 through the 22-pin CSI-RX connector. Same overlay can be used across AM68 SK, TDA4VM SK boards that have a 15/22-pin FFC connector. Also enable build testing and symbols for all the three platforms. Signed-off-by: Vaishnav Achath --- arch/arm64/boot/dts/ti/Makefile | 6 + .../boot/dts/ti/k3-am69-sk-csi2-imx219.dtso | 124 ++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am69-sk-csi2-imx219.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 52c1dc910308..9fc8d68f7d26 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -80,6 +80,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-evm-pcie1-ep.dtbo # Boards with J784s4 SoC dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am69-sk-csi2-imx219.dtbo dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb # Build time test only, enabled by CONFIG_OF_ALL_DTBS @@ -105,6 +106,8 @@ k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-sdcard.dtbo k3-am642-tqma64xxl-mbax4xxl-wlan-dtbs := \ k3-am642-tqma64xxl-mbax4xxl.dtb k3-am64-tqma64xxl-mbax4xxl-wlan.dtbo +k3-am69-sk-csi2-imx219-dtbs := k3-am69-sk.dtb \ + k3-am69-sk-csi2-imx219.dtbo k3-j721e-evm-pcie0-ep-dtbs := k3-j721e-common-proc-board.dtb \ k3-j721e-evm-pcie0-ep.dtbo k3-j721s2-evm-pcie1-ep-dtbs := k3-j721s2-common-proc-board.dtb \ @@ -130,5 +133,8 @@ DTC_FLAGS_k3-am62-lp-sk += -@ DTC_FLAGS_k3-am62a7-sk += -@ DTC_FLAGS_k3-am642-tqma64xxl-mbax4xxl += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ +DTC_FLAGS_k3-am68-sk-base-board += -@ +DTC_FLAGS_k3-am69-sk += -@ DTC_FLAGS_k3-j721e-common-proc-board += -@ DTC_FLAGS_k3-j721s2-common-proc-board += -@ +DTC_FLAGS_k3-j721e-sk += -@ diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk-csi2-imx219.dtso b/arch/arm64/boot/dts/ti/k3-am69-sk-csi2-imx219.dtso new file mode 100644 index 000000000000..4cd1d8d5004a --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am69-sk-csi2-imx219.dtso @@ -0,0 +1,124 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT Overlay for RPi Camera V2.1 (Sony IMX219) interfaced with CSI2 on AM68-SK board. + * https://datasheets.raspberrypi.org/camera/camera-v2-schematic.pdf + * + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include +#include "k3-pinctrl.h" + +&{/} { + clk_imx219_fixed: imx219-xclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + }; +}; + +&csi_mux { + idle-state = <1>; +}; + +/* CAM0 I2C */ +&cam0_i2c { + #address-cells = <1>; + #size-cells = <0>; + imx219_0: imx219_0@10 { + compatible = "sony,imx219"; + reg = <0x10>; + + clocks = <&clk_imx219_fixed>; + clock-names = "xclk"; + + port { + csi2_cam0: endpoint { + remote-endpoint = <&csi2rx0_in_sensor>; + link-frequencies = /bits/ 64 <456000000>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +/* CAM1 I2C */ +&cam1_i2c { + #address-cells = <1>; + #size-cells = <0>; + imx219_1: imx219_1@10 { + compatible = "sony,imx219"; + reg = <0x10>; + + clocks = <&clk_imx219_fixed>; + clock-names = "xclk"; + + port { + csi2_cam1: endpoint { + remote-endpoint = <&csi2rx1_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>; + }; + }; + }; +}; + +&dphy0 { + status = "okay"; +}; + +&ti_csi2rx0 { + status = "okay"; +}; + +&cdns_csi2rx1 { + ports { + #address-cells = <1>; + #size-cells = <0>; + + csi1_port0: port@0 { + reg = <0>; + status = "okay"; + + csi2rx1_in_sensor: endpoint { + remote-endpoint = <&csi2_cam1>; + bus-type = <4>; /* CSI2 DPHY. */ + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; +}; + +&dphy1 { + status = "okay"; +}; + +&ti_csi2rx1 { + status = "okay"; +}; \ No newline at end of file -- 2.34.1