Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp239417rdb; Thu, 8 Feb 2024 04:52:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGie4zOx0h3LD6PPvo1+ZVzj4FIPF3VqGSg5Qq1jkrAuOWGVcG+b8wPfrFGBKZqbjHitCL9 X-Received: by 2002:a05:6870:6707:b0:219:fdbb:bd4d with SMTP id gb7-20020a056870670700b00219fdbbbd4dmr880979oab.10.1707396738429; Thu, 08 Feb 2024 04:52:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707396738; cv=pass; d=google.com; s=arc-20160816; b=OENy2rUet3RncMLWAp3uFcChoYJ8ofGTVoajMVYn6exlhvQ7Z7RAaE1/kWBczp+83l EHUdlVTNQSF+yh1JaQF556Pg15E+NOROge6B2l9Qp+CZP8SFRUyMcQ798mIMxn3OiNFl Klhl4WWSrvILNXSljSe/2j0YDxc9ziv1x1uEQZ16B81ZtDLI9JCVtKydIHPvAr2rJSzc 6+L87y+GVXcpJr5A60GF3vmda1hmsDHF2kU8wun4qGQOBKtJEJ/5tlGf3irQq43wlCPM xLH9mvyp0hZ1In9dycwQhJ2/UHclVTW+MnVMRWdbnXkuMJoTqdjyXkoL2trFOW6I+DaP 3k8g== 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=vFJTReo+YvdgCPMOvXasBur05DlcLCv9EjXrvlB3Fhc=; fh=B2OYl9t85i3USSMFxEqmoNLTr0MAPDt8oYfkuAqktlk=; b=heu165YVkCwmYrlskNjSQvVLVN7YFat6jLZvcJsrRPU5tWucRacFAOoc8dlXV+qSJh rkI3TuI3dAPh97h7UhIdbiZGUREgvOrdiwV2fEi8695UNKV6pcGNt9Y770dfphxsQAik Qv+3Hj7LC7qzxLbDgLKk7AIkhp6hjfMIzMItS+Ub3kFxGSTijNcJEh3Ta6ed34lj8fz9 u4BqbIQCW/bvFWaSUR70riGU9rGFPrOGH4YUEiWAR8uXac/CN59AVA7HEc+zXJVBu3Db 5rjv3igM/mGWznvv/3CSb1m+CSVQOPUQeSQLT0Ms9XAFxbbdN7k9qmVXWHhuUAAu//7U vK5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GLWJM4Tw; 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-58056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCUyE1cZ3OWsrk1Ke4ZDemW9CLzCTMUblL7AuXjptBDxLoBKydXP00P8lk8VohD/MX7kBYnVMLlidcYelKAXThJ6y5BfMEpgsh0QaRdTUQ== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bx26-20020a056a02051a00b005dc0b3095b3si4262087pgb.283.2024.02.08.04.52.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:52:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GLWJM4Tw; 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-58056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58056-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F1E43B239C4 for ; Thu, 8 Feb 2024 12:33:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 38D9F763F5; Thu, 8 Feb 2024 12:33:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="GLWJM4Tw" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 CDF3A763E2; Thu, 8 Feb 2024 12:32:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395580; cv=none; b=ANVggIVUVCwzz3j5I3VKhW+/+HrqWjRJu25jG066nKiu03C/klgi8sCSyMci9zrID6ZCxTjX8v/UahYujSfMVpfUZM5b/xrtX2QcOtCthoEdBpVjus91QBJNXjb6QMNpHGOJ9Ay0jTk/1mCBIF/eThMAs3rM8165XL7i2asgLqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395580; c=relaxed/simple; bh=Kowbehpe60bwqJMFI01pcXvPeoegiLcQe/sW0o7Z8sw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jBHNrRexKLU6pvhgpsor4+QRHXUcwo48a49k7pwZMUZyl3I4nx9Qri0fjr9O9KOz+r+G4i0jlgVRzYtz3tOtl2ox9Ex/FiWz0fFDQ4wOR9kD42zkasSqH6E6aoG3SY9iLtGS0WWudqP3G2+ipiiujmY5hqDEnh13mj6lbl1pHtg= 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=GLWJM4Tw; arc=none smtp.client-ip=198.47.23.249 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 lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 418CWl4s031076; Thu, 8 Feb 2024 06:32:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707395567; bh=vFJTReo+YvdgCPMOvXasBur05DlcLCv9EjXrvlB3Fhc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GLWJM4TwhA75ft9s4ADaaelX1dGrEbmD/xoF9En3N+LF7cyl4em/OzBv1BrrFEiXu XWVr2UsSdI1xJjo4XQGaZYLBW0MAkq01qm3caBa/TNELX7/jHKKcS75/fDfjCcGiy6 XcENbfEGr2rFAfoowELEgBiU2oDnkgFD1Yvbhkkg= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 418CWlu4006017 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 06:32:47 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 8 Feb 2024 06:32:47 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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 via Frontend Transport; Thu, 8 Feb 2024 06:32:47 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 418CWY1J074789; Thu, 8 Feb 2024 06:32:43 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v3 2/9] arm64: dts: ti: k3-j784s4-evm: Enable camera peripherals Date: Thu, 8 Feb 2024 18:02:26 +0530 Message-ID: <20240208123233.391115-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208123233.391115-1-vaishnav.a@ti.com> References: <20240208123233.391115-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 CSI cameras are controlled using I2C. On J784S4 EVM, this is routed to I2C-5, so enable the instance and the TCA6408 GPIO expander on the bus. J784S4 EVM schematics: https://www.ti.com/lit/zip/sprr458 Reviewed-by: Jai Luthra Signed-off-by: Vaishnav Achath --- V1->V2: Update commit message with schematics. arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 57e7cb8ea2b8..bb2558b68381 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -297,6 +297,13 @@ J784S4_IOPAD(0x0e4, PIN_INPUT_PULLUP, 0) /* (AP37) I2C0_SDA */ >; }; + main_i2c5_pins_default: main-i2c5-default-pins { + pinctrl-single,pins = < + J784S4_IOPAD(0x01c, PIN_INPUT, 8) /* (AG34) MCAN15_TX.I2C5_SCL */ + J784S4_IOPAD(0x018, PIN_INPUT, 8) /* (AK36) MCAN14_RX.I2C5_SDA */ + >; + }; + main_mmc1_pins_default: main-mmc1-default-pins { bootph-all; pinctrl-single,pins = < @@ -761,6 +768,24 @@ exp2: gpio@22 { }; }; +&main_i2c5 { + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c5_pins_default>; + clock-frequency = <400000>; + status = "okay"; + + exp5: gpio@20 { + compatible = "ti,tca6408"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "CSI2_EXP_RSTZ", "CSI2_EXP_A_GPIO0", + "CSI2_EXP_A_GPIO1", "CSI2_EXP_A_GPIO3", + "CSI2_EXP_B_GPIO1", "CSI2_EXP_B_GPIO2", + "CSI2_EXP_B_GPIO3", "CSI2_EXP_B_GPIO4"; + }; +}; + &main_sdhci0 { bootph-all; /* eMMC */ -- 2.34.1