From patchwork Thu Feb 8 12:32:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishnav Achath X-Patchwork-Id: 198366 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp130759dyd; Thu, 8 Feb 2024 04:33:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbiTt5lzHBF4pTqsGfn/0gvY2RDEBOcvkiSMRRcBelvVmRKXdKcwDA3WgI34r38IvFCX2j X-Received: by 2002:a05:6a20:4389:b0:19e:2d02:56c3 with SMTP id i9-20020a056a20438900b0019e2d0256c3mr9928268pzl.6.1707395599701; Thu, 08 Feb 2024 04:33:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707395599; cv=pass; d=google.com; s=arc-20160816; b=HDEMWgO/73ZFL2Vc0ftCaG95ZgigRyFI7t4FCNVoK3o7ejw77hfS2IC1rrbRWbk+41 Z0PNYl2u5Uw+MIzKEDQHWkD74i8+SvOE1333f2aTOEA5BnomqpygMCKnElyzKFDS7/3W AcjP+WOj7+z9AhgBk82KaLrR+saKUUg/HMP2bY6Y4J4uAdqtTIFO2zqMi+cQuo6Qovfv fSpKtKAJq/3UHYasXctAp1q8Fp1VmZMmuGYfp8dKoX7JyvsFVLXpdU4QKMc1JF7mv2tc k/TAqfj/IMPiGpke6/Yoja8OkQcYQPu88E634qGNXTjlDGN8sRkflh9IGOpUSRvsTT1X 7r5Q== 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=yuiKmCp9p8fJPmWThjN8wurjBEh6mPXXrsO36scg43o=; fh=mlF+LDKiW1oSpC84fPgie0GnFAE6r+3si1TF9j8KJa0=; b=nzQmDV9nASxK6uKCrdBy3au+BcdEg3GHQnwEtZd1L8pJl0e4tMeDdSUqkX7LeFBAP5 rLkdJ1bvr2RqjKObBgeEUkrBHTEKdyPAjuCOSUmqNaKatBt4baf70ocvDEEd+p/KfyuV eK7xp9MvHryFyLHcyKZ++F7UeEW/ky2VMZSKR8WIWaHhmIZyAlPP9yAnj++RvFh9FLkD vil/fPFFlSOtuviEgCDqTX7AZTAp2Ye9LeyS1aibxxtKKdTJ7g98aJjoOHi92nLGPEEi fl9MAFv7nEnf7t1p7Qw6J6R+7l8MyaA/xUEmbAOoY/pw2bHiZbZBD9JUuWAgAIqfM9tg cAhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="CQ9J7oV/"; 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-58055-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58055-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCXOB52qEH99H2EU0Xb47qZ6X6oTGFioVzSJDFz/FuV5iuWey3kPK1SVTncqCORiim77sjHQF7BKaynMYRWVdBb3fzqJ8w== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u2-20020a17090341c200b001d5ac82c7fcsi4491605ple.447.2024.02.08.04.33.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:33:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58055-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="CQ9J7oV/"; 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-58055-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58055-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 381482843FD for ; Thu, 8 Feb 2024 12:33:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CBEF763E5; Thu, 8 Feb 2024 12:32:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="CQ9J7oV/" 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 01735762EC; Thu, 8 Feb 2024 12:32:54 +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=1707395576; cv=none; b=nSOO4veD879xmcQw2YfXKh2UhZmxMxmxlnowHfacY9ykh+JWQShXraWP6vXTFyP8Ju/JhjIG85jFgbgIts1piQZRUJhbmBVuZE04jKBf9N2u2xp0aCCzMPK/BXHL9I56PTkdexVk39syHxXogWlYbIB/71WSoZqXMk5lvjxbSCc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707395576; c=relaxed/simple; bh=mabubPS/lLDmpSYIKP7AC2m+IGzTwsrmxLzTSY8qSfo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HFt8ggq8Mn/TwDvBxTuGHR8nKocnydGFWL/GkT7zUENlIqk2ykzgXAvE1MSvJxoSgyBELpL+eNhkZjyHmH8Hy0LqbrdzBt2oDDpxhueeziJQsTpkxbyRD3i/ESZeZqQ2yPrp4Sts9R9PSnQXNQ4PQXxDm9VXueWxTNsG3Q+qbh8= 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=CQ9J7oV/; 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 fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 418CWhcG070470; Thu, 8 Feb 2024 06:32:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707395563; bh=yuiKmCp9p8fJPmWThjN8wurjBEh6mPXXrsO36scg43o=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=CQ9J7oV/AzE06s0yN9w36iy1sWuJumyz37J0KlgDBXLmjVNdVBIK1fKVuQNWMidDZ D9kkY7+A+50T1MOvStVTFMyV2S03RI1neocHHuZnofvcR+hpP+7y20mu9fLgKaICWn T/0wLlUzC5FnlCIo/KBwNxtv0hi9vggbfBBvD3x8= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 418CWhd1005952 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Feb 2024 06:32:43 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE103.ent.ti.com (157.170.170.33) 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:42 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE115.ent.ti.com (157.170.170.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 06:32:42 -0600 Received: from uda0490681.. ([10.24.69.142]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 418CWY1I074789; Thu, 8 Feb 2024 06:32:39 -0600 From: Vaishnav Achath To: , , , , , CC: , , , , , , , , Subject: [PATCH v3 1/9] arm64: dts: ti: k3-j721s2-common-proc-board: Enable camera peripherals Date: Thu, 8 Feb 2024 18:02:25 +0530 Message-ID: <20240208123233.391115-2-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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790334048014159816 X-GMAIL-MSGID: 1790334048014159816 CSI cameras are controlled using I2C. On J721S2 Common Processor Board, this is routed to I2C-5, so enable the instance and the TCA6408 GPIO expander on the bus. Common Processor Board schematics: https://www.ti.com/lit/zip/sprr411 J721S2 SoM schematics: https://www.ti.com/lit/zip/sprr439 Reviewed-by: Jai Luthra Signed-off-by: Vaishnav Achath --- V1->V2: Update commit message with schematics. .../dts/ti/k3-j721s2-common-proc-board.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts index 361365bb5523..5631735c9b7a 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts +++ b/arch/arm64/boot/dts/ti/k3-j721s2-common-proc-board.dts @@ -147,6 +147,13 @@ J721S2_IOPAD(0x060, PIN_INPUT_PULLUP, 13) /* (AC27) MCASP2_AXR1.I2C3_SDA */ >; }; + main_i2c5_pins_default: main-i2c5-default-pins { + pinctrl-single,pins = < + J721S2_IOPAD(0x01c, PIN_INPUT, 8) /* (Y24) MCAN15_TX.I2C5_SCL */ + J721S2_IOPAD(0x018, PIN_INPUT, 8) /* (W23) MCAN14_RX.I2C5_SDA */ + >; + }; + main_mmc1_pins_default: main-mmc1-default-pins { pinctrl-single,pins = < J721S2_IOPAD(0x104, PIN_INPUT, 0) /* (P23) MMC1_CLK */ @@ -356,6 +363,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_GPIO2", + "CSI2_EXP_B_GPIO1", "CSI2_EXP_B_GPIO2", + "CSI2_EXP_B_GPIO3", "CSI2_EXP_B_GPIO4"; + }; +}; + &main_sdhci0 { /* eMMC */ status = "okay";