Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp239445rdb; Thu, 8 Feb 2024 04:52:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWLoBvlvTcVHmiqpc2KGHnsSGbRV2PbUi8p1Cd01Zr09xbXj2dv8NoA36G2nEuc2a5CyrpiaAw4NDGgKJCCopElbLAvx5T2uhHlCve0cg== X-Google-Smtp-Source: AGHT+IFWqVHLQrclIkg1+NL4OfhJqo3dM4hKeDN6XzSTUq5gfLIG08+a1FhMyvkgjKGQWWNhm4Ol X-Received: by 2002:a17:90a:e795:b0:296:db7d:7106 with SMTP id iz21-20020a17090ae79500b00296db7d7106mr6501375pjb.7.1707396741234; Thu, 08 Feb 2024 04:52:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707396741; cv=pass; d=google.com; s=arc-20160816; b=CQXVPcYqxw7lKnSj4mL08cdO2x9iDKRWXbR/7KyKQGx2OGf1H30B1PSfaLqEY1ehUP 0IJpldc/FYMR5P9sQxiA7LSRATN0gdbnNwzYhJHqYfuTyRc8m1P1H/gpFg2/Zd3sh2+O uwl/QRKxHkBF74aG6NFDxEtq4TuoioPgBFbNk6VwQ3c+/rIOpXTl3BypKvZ3N/fBGU+9 eBaxeBIYpE/VbYjy/1P2s+4ZONoi+lNuIEZGrpllv3Lay/Fc3SzlBZVTD9OFMELT7u0u 2NiATt4HF68w9hGsaP5H1RSadi4mI13YoZhshD83dEmeKxpZgKeK6oyQZOhJ8KK8n8Y/ 9yVw== 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=TWrJ8V/kuL2/rmJgQ1VQBzvBtGtixOdca6bzZEIm5eM=; fh=K8FS3LXNkbseZ+7/T/H7L2pR4yCFP6A3v0fA3SnknQI=; b=YIa68PCsZx5CuenIlrLY5lyhNVWsROodI9EGaCllErvytothw7l0zv4gUGGfVbAVdp 5/F0X7ZkOVbUkZ9mw2dHEqWWWQ+oTkxEyrk3xspvj/uRwbiWr22dAespsnfyZ7YmKAnX lhWyzG3jV1H3Fdbh+MT4ehNR475raLU8LGTEGLA8DrozGqNcgMd3sWbrH2KYU/yJ1iXE 0JGziaO7q+wQulAuNtJUY7AMyxyLn8QPN0RAHKSvRymYrS9tVORVx4QqQlMMBSOdjke3 XVh+yw/m9bXV4y/e+i9AfmjBciKAim2wepns0FiCOFVjBBDohBRTsBsd6PljeMh7D1kv Gjng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=neBGMqua; 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-58057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58057-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; AJvYcCXU0clffOF0358kUlz16Oz8Z/jfCtCE3/8z0bheSYISHBvXXXLzrNabxlcOVzhOnWcbVfACcSf+v54FnJGO+9CjoGOgUMa4NJR735bnyg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e1-20020a17090a728100b0028dbaadaa3esi1300776pjg.9.2024.02.08.04.52.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:52:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58057-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=neBGMqua; 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-58057-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58057-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 C24C7B23C3C for ; Thu, 8 Feb 2024 12:33:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF2B476046; 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="neBGMqua" 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 CDF79763E3; 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=1707395581; cv=none; b=fDLlO4YTPbIR5H5lxnJJou9Kiwldt/NNNM21J75R0Y30TihFrYkoZRrWUiFwrScL6myCknd7dhJYOAsTtfV+cS46ScBCAPDgNyBH+HVzn5lEgeznkQoIerhdvmCKvT67JLHmkXtzxla5bXTt9FrB0m1DAe8Ja/t4MVk85BwpbkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395581; c=relaxed/simple; bh=Db4SLk3cjk23TUrutmUG6mpudjZtZ7OxZ0MDven/+UA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rebIzUbcs1DuhmGa0T/Ytoc6qH9gfHWDIImFzYSMkE0DDGLPbiUnbYjM/n8FEFuUsEleu5pT8JYfJkhQNMKGY+95G9salt6dhKsBTEjnTy+N3G7KmLs2uD8xoSCcieUizy4P3wgA8WUNl86XJAmodlJFFAA+tIwnVBs6AbffVho= 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=neBGMqua; 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 418CWpLb031087; Thu, 8 Feb 2024 06:32:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707395571; bh=TWrJ8V/kuL2/rmJgQ1VQBzvBtGtixOdca6bzZEIm5eM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=neBGMquaT/QYltkzdBIoHjEiaGgFKm4aYEJKXbz77tKQPsOxXBAcnGjMzoFy41STR blxQ2GQhGN2Qv37h0pIubIPOiqnLJLJK8PvlJ9tdJgeXqORnMxeSKCR3WcPYaQFckG tDNpE7yjSsjOvPKDs0K7Cji2tKx6ooGeg8l6QRNY= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 418CWpii026277 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 06:32:51 -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:51 -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:51 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 418CWY1K074789; Thu, 8 Feb 2024 06:32:47 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v3 3/9] arm64: dts: ti: k3-am68-sk-base-board: Enable camera peripherals Date: Thu, 8 Feb 2024 18:02:27 +0530 Message-ID: <20240208123233.391115-4-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 AM68 Starter Kit, this is routed to I2C-1, so enable the instance and the TCA9543 I2C switch on the bus. AM68 SK schematics: https://www.ti.com/lit/zip/sprr463 Reviewed-by: Jai Luthra Signed-off-by: Vaishnav Achath --- V1->V2: Update commit message with schematics. .../boot/dts/ti/k3-am68-sk-base-board.dts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts index f48155dd16a3..d743f023cdd9 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts @@ -169,6 +169,13 @@ tfp410_out: endpoint { }; }; }; + + csi_mux: mux-controller { + compatible = "gpio-mux"; + #mux-state-cells = <1>; + mux-gpios = <&exp3 1 GPIO_ACTIVE_HIGH>; + idle-state = <0>; + }; }; &main_pmx0 { @@ -186,6 +193,13 @@ J721S2_IOPAD(0x0e4, PIN_INPUT, 0) /* (AE24) I2C0_SDA */ >; }; + main_i2c1_pins_default: main-i2c1-default-pins { + pinctrl-single,pins = < + J721S2_IOPAD(0x0ac, PIN_INPUT, 13) /* (AC25) MCASP0_AXR15.I2C1_SCL */ + J721S2_IOPAD(0x0b0, PIN_INPUT, 13) /* (AD26) MCASP1_AXR3.I2C1_SDA */ + >; + }; + main_mmc1_pins_default: main-mmc1-default-pins { pinctrl-single,pins = < J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */ @@ -431,6 +445,42 @@ exp1: gpio@21 { }; }; +&main_i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&main_i2c1_pins_default>; + status = "okay"; + + exp3: gpio@20 { + compatible = "ti,tca6408"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "CSI_VIO_SEL", "CSI_SEL_FPC_EXPn", + "IO_EXP_CSI2_EXP_RSTz","CSI0_B_GPIO1", + "CSI1_B_GPIO1"; + }; + + i2c-mux@70 { + compatible = "nxp,pca9543"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x70>; + + cam0_i2c: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + + cam1_i2c: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + }; +}; + &main_i2c4 { status = "okay"; pinctrl-names = "default"; -- 2.34.1