From patchwork Thu Feb 15 08:55:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 201274 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp259726dyb; Thu, 15 Feb 2024 00:58:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWStk3hy1fJteiJ46ZrAeLdBPRBb8spycD3A0aA0U/jmGLVLPLNCBTspsinOvL8YkK+YwkrBH1pI/SaVkLPieizOXMsrQ== X-Google-Smtp-Source: AGHT+IGJZhdsg+3eh8uaTSvif8U0C63Upt1x8FvyyMXa7oJ/mUDdE3iAms543nfMJwoyrhwKPcT5 X-Received: by 2002:a05:6512:124c:b0:511:85ae:8985 with SMTP id fb12-20020a056512124c00b0051185ae8985mr1044719lfb.53.1707987480264; Thu, 15 Feb 2024 00:58:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707987480; cv=pass; d=google.com; s=arc-20160816; b=bZu5kzupZ0pPIoYDhmVj6MYWPnL7FyRLsKoNXRT9YWrGs8Huz3Hqft8ndGm1xfvGUa uQqKH3uUIRdqL8NDsP7aPdeTlJu19osv0QbIvvhBKWz3xbyxK4U2kNYAvHMJGCcgzwN5 fnpKMlkLJwGsJA0u5duk0iuJ7Xi525qnIFdkUY90p+/nLNrBVxWx2Lcm4gof3EFjVJBU ewrZrDof6K5h9FBm4LxAiaR2hlbraQyoN5y7KKJgbQHGubOTrGaKwsMumXJd6oY/RXFD kEBlzfd72ATm+PyxDvfS817r+mkkUWcZWl8krJ1/TZMqFH3JkS0XRw8kN/8azLBn1b/I re/w== 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=qA03AiPQ76ODZlkdfgCJ4bbvmcQFxo0DGUcdzk429lc=; fh=Q0qfAugDSiRH+GkuTIKfokhNWAVNOIduw9aJ54bFjbE=; b=QaXrqBRQU1BRexPNUvaBLfxMolXdxpGZoECd8olaP/dkb5vlHXvEwW16MqeSt+c2E0 Bjgv6WpR4BfD1toSItVceJYaLciRq2bVB6viCBdVE3JkK1IrfC0MNFzduL4GJRBCALlT 09hmfHDC5m/DnXMGPiCqPFqpuW7rwlEG5tIxqLZSOdIyn3AExNvnadEs4emZ/X6en3Xy Lpk+VICSFQ9k3bpitxFKCec+45xDqDQRT5Pl0+26bLdFIUzpguaPHbM4oojXWwwUa++I 8gnyJe/NgyOoBkDIkydLIyImJELxKpPFUkPcbAXpeYnTMLLORzrkP7MaTI5L6wPEzYPr iWQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=e+Hsyz3z; 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-66460-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66460-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id co14-20020a0564020c0e00b00561495048d4si448407edb.683.2024.02.15.00.58.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:58:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66460-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=e+Hsyz3z; 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-66460-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66460-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 38B361F23463 for ; Thu, 15 Feb 2024 08:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA3551B970; Thu, 15 Feb 2024 08:55:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="e+Hsyz3z" 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 AC56418AE0; Thu, 15 Feb 2024 08:55:49 +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=1707987351; cv=none; b=tW+VO0ypz0uRvv+rnhJEQJA5uoNsP3hNdXmB/0Eu11X97jZQ+dG6eg8rBDapxnDk0w2x0hmTZuSSIHol2K0HSXvyCy7QSLDCfxGDKfW1gCBVn3m1STqyEgJpYKVmBQFiIDTxZoexKSqQod4JPI9DwTPKY3L8VK6yREje2156i0c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987351; c=relaxed/simple; bh=aZC43jcmh1e3Ips3tqM5BiR8qN4/wtdGcRR6NcsziYk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jRLd1mfnggr+9sYFMVpkXM0bgT4wGh1xVon5vJiot2xSPQbThSwZXE5stHPJsdAY2iUjuJPYTgAKKb1KziCxO25b6+DOeuEnb1CLH4i6KcMxO7gMNef3WNaP7Rbe2xkSbntJVxEWh1hdZI8aMEMFwHbK8kmtBkma48fdoA4CrAE= 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=e+Hsyz3z; 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 41F8tamg090498; Thu, 15 Feb 2024 02:55:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707987336; bh=qA03AiPQ76ODZlkdfgCJ4bbvmcQFxo0DGUcdzk429lc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=e+Hsyz3z8eKzad6dllpoHFvUyttxh3l3ftgylBfnEHadfKDf6GupgxKJ9tKN3Uznx vj9RwKUZg1kxoj0iTIfOQ8jMaz0i6CXJsNMHwJA+/uaghvR0WDSJJf8KBYdaKHCWVk AStsuHhlrRaR+5SZV5LmGniB8/8aViCSauh5//CE= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41F8tamJ059589 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Feb 2024 02:55:36 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) 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:35 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE102.ent.ti.com (157.170.170.32) 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:36 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41F8tJ7m008333; Thu, 15 Feb 2024 02:55:32 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v4 3/9] arm64: dts: ti: k3-am68-sk-base-board: Enable camera peripherals Date: Thu, 15 Feb 2024 14:25:12 +0530 Message-ID: <20240215085518.552692-4-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: 1790954680161733238 X-GMAIL-MSGID: 1790954680161733238 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 Signed-off-by: Vaishnav Achath Reviewed-by: Jai Luthra --- 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";