From patchwork Thu Feb 15 08:55:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 201271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp259355dyb; Thu, 15 Feb 2024 00:56:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUWaG/v4W8Rm7yRKFAFYyGeQgL0Ugu6QGLXTXKz4uxRHLxK+6oX15vCk5HYGS+vhuOX268g81SV6KUf32gv0G0xDpIb+g== X-Google-Smtp-Source: AGHT+IHw7SCXNI0dzDxFXe8RTkS5FIm0QqnGv3rHnYRYhxAz6p5tqpkrUPc79iVqFD/8ZsrFLPp5 X-Received: by 2002:a05:6214:4107:b0:68c:7c27:fc83 with SMTP id kc7-20020a056214410700b0068c7c27fc83mr1201648qvb.18.1707987418546; Thu, 15 Feb 2024 00:56:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707987418; cv=pass; d=google.com; s=arc-20160816; b=c4uOGCeXpJiU/pV1tgX4YB484V1CH3+oGD6g1tKjx76p/kGHVdDnHOXTZm0Gf8RLjc ymeQt17zn1J0LwlsNZq7vR0NI/b/w617dFx6apnGGirzwfrNQH5w8VyjrtOD28oe5IWG 7RUVUZ6Aa+OHHlzlVT/xYOHX6zG5N51MNhsCLQGOZbnpQ82NoULBUWPNi/MKdKZo5Fmw FudBuM5Box3/EWobGAiE1ormbNZBCf5CUgbymQECv6XXHMmSNHrSdGTRrEBebhKJ/SKC vcI1yzqE51B3eRkDjL4fZ62AsVZK69FRIbdk9rlEkK3c/8M71o0ZqU4I/WzYtMC3o7Ts HcyQ== 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=x/k1nR+0Oofrre15QvBy2e7fuQCsoXlHJGCKKMdrXLU=; fh=Q0qfAugDSiRH+GkuTIKfokhNWAVNOIduw9aJ54bFjbE=; b=M4eUtIg+Mra8za/YGlXELYGPEqEguD75Nyg7O18wb3b6s5LDFKmaE/YF63usIDGnJz HaQtWOI1dBew7H1SxoN4PA8GRXeCDSbAOVLPrKdvITy29vdqWq+YKKPOZBKUkwBm3vQq UeSZ9a6bxAuZnZERHCCq9JvYHtOjh/X365aS3v2MYRl36VRneFhefA9IjFj/7OwvyWiv BZ4DAFBl9SkrTwMOIJzX/n5VcjtyNCgxzX1fjs9bw/6eHtpRoAb5YsYk5opYqhI94lEY UhsFH1hcUZMWOLnJpaubUjthZR3nEtbUFlYfwmB+NUOSlNUyDdiSMmaSKXhpSU+Dv+Sn cGEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gFYYWw2k; 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-66457-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66457-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ge13-20020a05621427cd00b0068caf0ca3aasi933250qvb.413.2024.02.15.00.56.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:56:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66457-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gFYYWw2k; 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-66457-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66457-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 56CA21C21B53 for ; Thu, 15 Feb 2024 08:56:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AA0D182B5; Thu, 15 Feb 2024 08:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="gFYYWw2k" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 141C31759D; Thu, 15 Feb 2024 08:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987346; cv=none; b=bvgyEzaNqPklwuw0JaH7G/bbuVVru0x+E8xy6VqobbeelYWBAv7wRo6eTl4V6FnsevLnqMBa9ICw6SP5WJ3WnfWMVy3++aRTiPY3/nM5b5UEpBZ6D9V5Qg92K8PBAGwMHxC8HX5xgpBZiTL073wj40hrzw0GKg+4vdgjAGMSOio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987346; c=relaxed/simple; bh=XDtMgDz3rfnkmExmQ6PmozYP7ACi/TpQ0LAtAzowkpE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HXHIBj85tOEQQq9wd8ahV6uBiA5XPu9DC7qREVpHL7qoM/BNzV00Xnd78KXCy4g7wjNnOKddpMzKKpnMCYHXd6e6AQgFVeZMOgWzRHf0g4EMV/xI26NTSniXqO8bj5vZ/34aYQYDzhWEHTzBXaubJxRaSyykt6f/fOQuXEFvoNY= 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=gFYYWw2k; arc=none smtp.client-ip=198.47.19.141 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41F8tW3I090489; Thu, 15 Feb 2024 02:55:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707987332; bh=x/k1nR+0Oofrre15QvBy2e7fuQCsoXlHJGCKKMdrXLU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gFYYWw2khhv091RLpAu8nLxJQbolvlGgzi8Agr6mlTPGGt8Cv+TMuwd7kJiKHZ16s pgG+MBZyNNrNbVqmHOHCPP2NKu1S2u354Givzoyl8ozqIdcqjr+TotwhAAnlWkGis0 mfGz3DLQeoOBDzedk9msZfAszBmfJrp0AqbSEvDM= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41F8tW5P059488 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Feb 2024 02:55:32 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 15 Feb 2024 02:55:31 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE115.ent.ti.com (10.64.6.36) 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, 15 Feb 2024 02:55:31 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41F8tJ7l008333; Thu, 15 Feb 2024 02:55:28 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v4 2/9] arm64: dts: ti: k3-j784s4-evm: Enable camera peripherals Date: Thu, 15 Feb 2024 14:25:11 +0530 Message-ID: <20240215085518.552692-3-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215085518.552692-1-vaishnav.a@ti.com> References: <20240215085518.552692-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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790954615373539606 X-GMAIL-MSGID: 1790954615373539606 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 Signed-off-by: Vaishnav Achath Reviewed-by: Jai Luthra --- 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 */