From patchwork Thu Feb 8 08:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 198216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp28707dyd; Thu, 8 Feb 2024 00:46:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGlW2+2tFOF+u/RcBvfkNMRiJn9L+4+hCc3fBpr0Bu0g7h9hKqs+QK7/CQ2+agt5SRlq2lOYqUfQMnvkc4PU5vFWqKag== X-Google-Smtp-Source: AGHT+IGHQt8hnICIp3i2ohaiW4M49gCG4/HKZa+tOyZjTWRriuQnuvN1/qBPEzNne1QfQv7tyvTz X-Received: by 2002:a05:6402:1b0f:b0:55d:30b2:983e with SMTP id by15-20020a0564021b0f00b0055d30b2983emr6650064edb.4.1707381987303; Thu, 08 Feb 2024 00:46:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707381987; cv=pass; d=google.com; s=arc-20160816; b=T1deQpi3kwrrYan87z44d0B2SO4RiIlyuwrS58XFsXTGKwm+5ttbmkA3kRiJhRm9xd kIo1a+6Qqpxj72znrbQOsDtiBGIlJie20iGD75TyzlQhk2BWO2ACqps+xC7/+l+zmwq4 Ubi9vALMpt3bxbE7b6enIh145OFd59NVY9pq+QPKjLDo3SHOBVEMFt7070WbwbRvf2Sb XbOvE5vYAf8oOZiA4Eb8vZyHfcqV7lILUXWnoX+XRaVu//xrOItdNHygNbYPJ22m5Mw/ yPvETuoKi4WGQq3QKsiVDXycIjelnaPDO2NFVYYcF7PcCC9y85LWER+gY41WvZp6WaHZ PYkQ== 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=4A4Z/qpcZA8AC33ULipWc2n/UZEdk4NC/YctUo/j1+g=; fh=UdIKU3Gz3aynm2yqZClNvrQTnQ+yR1iFOTlO5UCetF4=; b=lxsooYdgDi4++GBx5pXXgh4zu+39tv58n8BHQAJo/9U9I5ogqeks2ymtbINoJ5jIMO jlX25s3xyx1mihoik/Avb681anw3rgt8tmXI7PDq4tkILjnpgZ4grWGedZgQUBVnO7lC Xnyh9i9jrqdsSmyQWAA7pi0/QzIkHC+bvR6mv33SELSQhWWvogVM/bO6OkhuEpUeIIK8 9DJeLIyx5cqWuPYnH7G8AhKKYTv0F4F8Un62+vADrqVrnjXtaBR+wEpvuPj57u1prl5V yZsjjSIj+mIPhmF7Lh20ed+H6sFmrAes75Dd+V/ybl+N9t+3yZi+EyAQGz2PcIA5P5e0 sbeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Vz7PWxx5; 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-57641-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57641-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCVo8LKIVK47R4/gsRojxCEDmaLUiCFdrKmqOyXK1E0pFQVToFWKgL1hdH5Uw04aCVcpGFAg27VLM5pEUqdsQ2JnIvuDwA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v1-20020a056402184100b00560f3a68af4si702713edy.355.2024.02.08.00.46.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 00:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57641-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=Vz7PWxx5; 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-57641-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57641-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 4537D1F24A51 for ; Thu, 8 Feb 2024 08:46:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00C456F07A; Thu, 8 Feb 2024 08:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Vz7PWxx5" 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 A89036E2A4; Thu, 8 Feb 2024 08:43:46 +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=1707381828; cv=none; b=fsQ17ekV7fIC7oc5cP2XInPuNzfPNjCQMSrf3t3dmOS98c9GilqvmB8BOoKR07m8BtoGeP8/OJCZedsJ9nonmoR+koogX3PaMMpFCw22G8002G7o1E8AEFLf8r/OumYYPT4aFFDYU5mT3ItocnUysdnFdkh4VsnPil1mkWU5HBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707381828; c=relaxed/simple; bh=4/7LooQWnhdKVtfbE7HqNZ6kk0Pd7g2CQiJtb6HGBoY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZtGUV72/j8keNbvOBE/X58Ybguh6NvljsDgcm48jnI4rEpsrDc9mbY2aXT2TVaRLk/HtOX6J2GlJDYNmbz5F0VCmfqRzheTft/4VOLahBqVawTe8mE7Yx7xuTI5HHnQemzokf6qJCmxsnBwyde6Jsm3Cf5jmrxWcvO6eP4FEcBY= 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=Vz7PWxx5; 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 4188hCcC050138; Thu, 8 Feb 2024 02:43:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707381792; bh=4A4Z/qpcZA8AC33ULipWc2n/UZEdk4NC/YctUo/j1+g=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Vz7PWxx5vUoA9RiXWXMxTxYpqtbIhciTtJxK3Vad21cpOsOriearAlhANuQ5vFvZn 5Cls+0lkNq++L7TmANlLycHsDZLBmto8k1n+w6NgWi8GErbAc4/m8pxnUcqaLPOUIB OrWxMMEZpSWARiZTIj9IyIzZLAOQVI5DVqLNKZGc= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4188hCPR025665 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 02:43:12 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.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 02:43:12 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE105.ent.ti.com (10.64.6.26) 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 02:43:12 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4188gshN097884; Thu, 8 Feb 2024 02:43:08 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v2 3/9] arm64: dts: ti: k3-am68-sk-base-board: Enable camera peripherals Date: Thu, 8 Feb 2024 14:12:48 +0530 Message-ID: <20240208084254.295289-4-vaishnav.a@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208084254.295289-1-vaishnav.a@ti.com> References: <20240208084254.295289-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: 1790319774298175916 X-GMAIL-MSGID: 1790319774298175916 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";