From nobody Thu Oct 2 09:17:08 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 741D729B8EF; Thu, 18 Sep 2025 09:55:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189337; cv=none; b=BpQt/Z3n6MJESdFgHk8eNYqkYugOkOVpLnUeXI7UPgexU72BN+QAdnRniM9mf8sPhZ3uBG7V3pv+5yiW+KoCPNt8yAdymD4rTwb89U81dbL5c/aNQ9D6ojq9ZIedt83u6Q2xbd2O16zej7E/0g5HJ5nXrC0cmIjwnjwYeNjaluA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189337; c=relaxed/simple; bh=QPBd2rmHbEVccc1KwUlqm2+3s1NAlCKOZ5yQGVmON0s=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oRxzy+14Y+c9tXQwJzSuufDU61JjM+NmeULT/MhbPedCDdMQY2tBiQZdrbps8uGnWoVjeO1aaXCSaSTakcLubVThJf0WhcIauO0L1ul6mQtVzys5CRqeYPoUUDX3uOiuRotE2Lp60DovnnL2puIU21VWGCfq9+YLmKaDhNmgC4Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=z/7ryx7x; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="z/7ryx7x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1758189336; x=1789725336; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QPBd2rmHbEVccc1KwUlqm2+3s1NAlCKOZ5yQGVmON0s=; b=z/7ryx7x+c6w+iBMcL4pX8nxU+c+Z7l/qpDmAzuzzQMdXq8WiDzOge7T htq6YSDr4fOPrSVH4400E+d+hB/nyc08Y67MFc9/HEw76Oe2GFzgN2kY9 7MRokU9n4hu90UmBkRkIJZl6AHzK7WXa1x4/ENaWTrSP8xm37alU3jwep awUnPg9FLtxRvKzVrbx/pdNPLaGcUc0ZDYKvQANcbuncm5L/rEHKVpYAS 1MCd8mMM4Mglb8u+nY5TiXKStScPfS+Kk4cHV5mlmgAF0fo7x/sybDgtc EICiejtq0nMz2nHFt2Uylc0fo6yqUKRPt1RzQDFceVHbeFMzU9FybEH/A w==; X-CSE-ConnectionGUID: C2CLuXmBRGGskdefAW9nyg== X-CSE-MsgGUID: Tfws/mIkQSq4rDARAglOJw== X-IronPort-AV: E=Sophos;i="6.18,274,1751266800"; d="scan'208";a="214047280" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2025 02:55:35 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 18 Sep 2025 02:54:41 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 18 Sep 2025 02:54:37 -0700 From: Durai Manickam KR To: , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 1/4] clk: at91: sama7d65: add peripheral clock for I3C Date: Thu, 18 Sep 2025 15:24:26 +0530 Message-ID: <20250918095429.232710-2-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250918095429.232710-1-durai.manickamkr@microchip.com> References: <20250918095429.232710-1-durai.manickamkr@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add peripheral clock description for I3C. Signed-off-by: Durai Manickam KR --- drivers/clk/at91/sama7d65.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sama7d65.c b/drivers/clk/at91/sama7d65.c index a5d40df8b2f2..84c6bbe20873 100644 --- a/drivers/clk/at91/sama7d65.c +++ b/drivers/clk/at91/sama7d65.c @@ -671,8 +671,9 @@ static struct { { .n =3D "udphsa_clk", .p =3D PCK_PARENT_HW_MCK5, .id =3D 99, }, { .n =3D "udphsb_clk", .p =3D PCK_PARENT_HW_MCK5, .id =3D 100, }, { .n =3D "uhphs_clk", .p =3D PCK_PARENT_HW_MCK5, .id =3D 101, }, - { .n =3D "dsi_clk", .p =3D PCK_PARENT_HW_MCK3, .id =3D 103, }, - { .n =3D "lvdsc_clk", .p =3D PCK_PARENT_HW_MCK3, .id =3D 104, }, + { .n =3D "dsi_clk", .p =3D PCK_PARENT_HW_MCK3, .id =3D 103, }, + { .n =3D "lvdsc_clk", .p =3D PCK_PARENT_HW_MCK3, .id =3D 104, }, + { .n =3D "i3cc_clk", .p =3D PCK_PARENT_HW_MCK8, .id =3D 105, }, }; =20 /* --=20 2.34.1 From nobody Thu Oct 2 09:17:08 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 D423D2DEA78; Thu, 18 Sep 2025 09:55:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189320; cv=none; b=CZfgiFOdiJ9cTAtSV1sN2OJtB7o1jxAlcOFOpXxJz28yg3y97AdFHtW5zfg7ZgFgd1EeZ1HlN4bXRaARO6DLu82J/6SJyUbSYm3uV+5FrprR/IOkV5ML/yKlqcxMQq2WFTp0zKnErg6akMwzg0AumXq1xSliFN88j905WBUA3jY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189320; c=relaxed/simple; bh=4SY4L670TJgPKQAU5EDjQSQZtr3mz6KwQpF7XwYu4Yc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=M9ATC2Yc9YjUaLHT1WPkeP2S1W38pEcpRzgSicTtPiKRAEW0sm8OPgrz1gXhLpv7nBNQpZxDG2nR+wsVDFeynGIwDHg/6ZgMyjltULPo117of68YgA+lSXvpmc41JBj5xmLNY2ozEdwO/0cEKfNUmDH2KcQ52uep/IQi2uMlbqs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=eiEpgipr; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="eiEpgipr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1758189318; x=1789725318; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4SY4L670TJgPKQAU5EDjQSQZtr3mz6KwQpF7XwYu4Yc=; b=eiEpgiprwbB952G1mWJa+pa/yDIkWOp+phIjjwI4s+gZerhQiIXa30KG wJzSkuokl+vaciE2HH2dBB9KLG4WlOsVn/IZ0IJF8ZW6gqa1N9tUkih/q Xs85bT+kAxMJ9OJ5oL6da5MNVhM1qS2pADSjj5M98o/vtou2XLnN+q8XJ CElEOeDHuR3neHgAvML+8qcvoGS+8+fGiA/zkTG4u5xTXVnAx88J/dRMI rUrZd2iXMyo2GxKoQ9VXhEulsHxn8dMNjAOF3wTdcEfvyxB93/9WyM5ZY FrwS/nn1aEO50QZyTErG/Z1Z0FZlmcUzrlMGSxvW8Jl9+ayWE2yJ2pebZ Q==; X-CSE-ConnectionGUID: jSMfuw15TJGzquobHcasUg== X-CSE-MsgGUID: KQynU7MpQvaYijX37AGwbA== X-IronPort-AV: E=Sophos;i="6.18,274,1751266800"; d="scan'208";a="46088881" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2025 02:55:16 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 18 Sep 2025 02:54:47 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 18 Sep 2025 02:54:43 -0700 From: Durai Manickam KR To: , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 2/4] i3c: mipi-i3c-hci: add microchip sama7d65 SoC Date: Thu, 18 Sep 2025 15:24:27 +0530 Message-ID: <20250918095429.232710-3-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250918095429.232710-1-durai.manickamkr@microchip.com> References: <20250918095429.232710-1-durai.manickamkr@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for microchip sama7d65 SoC I3C HCI master only IP. Features tested and supported : Standard CCC commands. I3C SDR mode private transfers in PIO mode. I2C transfers in PIO mode. Pure bus mode and mixed bus mode. Signed-off-by: Durai Manickam KR --- drivers/i3c/master/mipi-i3c-hci/Makefile | 3 +- drivers/i3c/master/mipi-i3c-hci/core.c | 28 ++++++++++++ drivers/i3c/master/mipi-i3c-hci/hci.h | 12 ++++++ .../i3c/master/mipi-i3c-hci/hci_quirks_mchp.c | 43 +++++++++++++++++++ 4 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 drivers/i3c/master/mipi-i3c-hci/hci_quirks_mchp.c diff --git a/drivers/i3c/master/mipi-i3c-hci/Makefile b/drivers/i3c/master/= mipi-i3c-hci/Makefile index e3d3ef757035..f463afc4566a 100644 --- a/drivers/i3c/master/mipi-i3c-hci/Makefile +++ b/drivers/i3c/master/mipi-i3c-hci/Makefile @@ -4,5 +4,6 @@ obj-$(CONFIG_MIPI_I3C_HCI) +=3D mipi-i3c-hci.o mipi-i3c-hci-y :=3D core.o ext_caps.o pio.o dma.o \ cmd_v1.o cmd_v2.o \ dat_v1.o dct_v1.o \ - hci_quirks.o + hci_quirks.o \ + hci_quirks_mchp.o obj-$(CONFIG_MIPI_I3C_HCI_PCI) +=3D mipi-i3c-hci-pci.o diff --git a/drivers/i3c/master/mipi-i3c-hci/core.c b/drivers/i3c/master/mi= pi-i3c-hci/core.c index 60f1175f1f37..cb0673d62c03 100644 --- a/drivers/i3c/master/mipi-i3c-hci/core.c +++ b/drivers/i3c/master/mipi-i3c-hci/core.c @@ -8,6 +8,7 @@ */ =20 #include +#include #include #include #include @@ -651,6 +652,9 @@ static int i3c_hci_init(struct i3c_hci *hci) hci->DAT_regs =3D offset ? hci->base_regs + offset : NULL; hci->DAT_entries =3D FIELD_GET(DAT_TABLE_SIZE, regval); hci->DAT_entry_size =3D FIELD_GET(DAT_ENTRY_SIZE, regval) ? 0 : 8; + /* Microchip SAMA7D65 SoC doesnot support DAT entry size bits in the DAT = section offset register */ + if (hci->quirks & MCHP_HCI_QUIRK_SAMA7D65) + hci->DAT_entry_size =3D 8; if (size_in_dwords) hci->DAT_entries =3D 4 * hci->DAT_entries / hci->DAT_entry_size; dev_info(&hci->master.dev, "DAT: %u %u-bytes entries at offset %#x\n", @@ -661,6 +665,9 @@ static int i3c_hci_init(struct i3c_hci *hci) hci->DCT_regs =3D offset ? hci->base_regs + offset : NULL; hci->DCT_entries =3D FIELD_GET(DCT_TABLE_SIZE, regval); hci->DCT_entry_size =3D FIELD_GET(DCT_ENTRY_SIZE, regval) ? 0 : 16; + /* Microchip SAMA7D65 SoC doesnot support DCT entry size bits in the DCT = section offset register */ + if (hci->quirks & MCHP_HCI_QUIRK_SAMA7D65) + hci->DCT_entry_size =3D 16; if (size_in_dwords) hci->DCT_entries =3D 4 * hci->DCT_entries / hci->DCT_entry_size; dev_info(&hci->master.dev, "DCT: %u %u-bytes entries at offset %#x\n", @@ -753,6 +760,10 @@ static int i3c_hci_init(struct i3c_hci *hci) if (hci->quirks & HCI_QUIRK_PIO_MODE) hci->RHS_regs =3D NULL; =20 + /* Microchip SAMA7d65 SoC supports only PIO mode */ + if (hci->quirks & MCHP_HCI_QUIRK_PIO_MODE) + hci->RHS_regs =3D NULL; + /* Try activating DMA operations first */ if (hci->RHS_regs) { reg_clear(HC_CONTROL, HC_CONTROL_PIO_MODE); @@ -788,6 +799,10 @@ static int i3c_hci_init(struct i3c_hci *hci) if (hci->quirks & HCI_QUIRK_OD_PP_TIMING) amd_set_od_pp_timing(hci); =20 + /* Configure OD and PP timings for Microchip platforms */ + if (hci->quirks & MCHP_HCI_QUIRK_OD_PP_TIMING) + mchp_set_od_pp_timing(hci); + return 0; } =20 @@ -803,6 +818,16 @@ static int i3c_hci_probe(struct platform_device *pdev) if (IS_ERR(hci->base_regs)) return PTR_ERR(hci->base_regs); =20 +#if defined(CONFIG_SOC_SAMA7D65) + hci->gclk =3D devm_clk_get_enabled(&pdev->dev, "gclk"); + if (IS_ERR(hci->gclk)) + return PTR_ERR(hci->gclk); + + hci->pclk =3D devm_clk_get_enabled(&pdev->dev, "pclk"); + if (IS_ERR(hci->pclk)) + return PTR_ERR(hci->pclk); +#endif + platform_set_drvdata(pdev, hci); /* temporary for dev_printk's, to be replaced in i3c_master_register */ hci->master.dev.init_name =3D dev_name(&pdev->dev); @@ -836,6 +861,9 @@ static void i3c_hci_remove(struct platform_device *pdev) =20 static const __maybe_unused struct of_device_id i3c_hci_of_match[] =3D { { .compatible =3D "mipi-i3c-hci", }, + { .compatible =3D "mchp,sama7d65-i3c-hci", + .data =3D (void *)(MCHP_HCI_QUIRK_PIO_MODE | MCHP_HCI_QUIRK_OD_PP_TIMIN= G | + MCHP_HCI_QUIRK_RESP_BUF_THLD | MCHP_HCI_QUIRK_SAMA7D65) }, {}, }; MODULE_DEVICE_TABLE(of, i3c_hci_of_match); diff --git a/drivers/i3c/master/mipi-i3c-hci/hci.h b/drivers/i3c/master/mip= i-i3c-hci/hci.h index 69ea1d10414b..e57f8d85402c 100644 --- a/drivers/i3c/master/mipi-i3c-hci/hci.h +++ b/drivers/i3c/master/mipi-i3c-hci/hci.h @@ -37,6 +37,10 @@ struct hci_cmd_ops; /* Our main structure */ struct i3c_hci { struct i3c_master_controller master; +#if defined(CONFIG_SOC_SAMA7D65) + struct clk *gclk; + struct clk *pclk; +#endif void __iomem *base_regs; void __iomem *DAT_regs; void __iomem *DCT_regs; @@ -144,6 +148,12 @@ struct i3c_hci_dev_data { #define HCI_QUIRK_OD_PP_TIMING BIT(3) /* Set OD and PP timings for AMD p= latforms */ #define HCI_QUIRK_RESP_BUF_THLD BIT(4) /* Set resp buf thld to 0 for AMD= platforms */ =20 +/* list of quirks for Microchip platforms */ +#define MCHP_HCI_QUIRK_PIO_MODE BIT(2) /* Set PIO mode */ +#define MCHP_HCI_QUIRK_OD_PP_TIMING BIT(3) /* Set OD and PP timings */ +#define MCHP_HCI_QUIRK_RESP_BUF_THLD BIT(4) /* Set resp buf thld to 0 */ +#define MCHP_HCI_QUIRK_SAMA7D65 BIT(5) /* Set SAMA7D65 SoC specific feat= ures */ + =20 /* global functions */ void mipi_i3c_hci_resume(struct i3c_hci *hci); @@ -151,5 +161,7 @@ void mipi_i3c_hci_pio_reset(struct i3c_hci *hci); void mipi_i3c_hci_dct_index_reset(struct i3c_hci *hci); void amd_set_od_pp_timing(struct i3c_hci *hci); void amd_set_resp_buf_thld(struct i3c_hci *hci); +void mchp_set_od_pp_timing(struct i3c_hci *hci); +void mchp_set_resp_buf_thld(struct i3c_hci *hci); =20 #endif diff --git a/drivers/i3c/master/mipi-i3c-hci/hci_quirks_mchp.c b/drivers/i3= c/master/mipi-i3c-hci/hci_quirks_mchp.c new file mode 100644 index 000000000000..f2e54e6643c0 --- /dev/null +++ b/drivers/i3c/master/mipi-i3c-hci/hci_quirks_mchp.c @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2025 Microchip Technology Inc. and its subsidiaries + * + * Authors: Durai Manickam KR + * + * Microchip I3C HCI Quirks + */ + +#include +#include "hci.h" + +/* Timing registers */ +#define MCHP_HCI_SCL_I3C_OD_TIMING 0x214 +#define MCHP_HCI_SCL_I3C_PP_TIMING 0x218 +#define MCHP_HCI_SDA_HOLD_SWITCH_DLY_TIMING 0x230 + +/* Timing values to configure 9MHz frequency */ +#define MCHP_SCL_I3C_OD_TIMING 0x00cf00cf +#define MCHP_SCL_I3C_PP_TIMING 0x00160016 + +#define MCHP_QUEUE_THLD_CTRL 0xD0 + +void mchp_set_od_pp_timing(struct i3c_hci *hci) +{ + u32 data; + + reg_write(MCHP_HCI_SCL_I3C_OD_TIMING, MCHP_SCL_I3C_OD_TIMING); + reg_write(MCHP_HCI_SCL_I3C_PP_TIMING, MCHP_SCL_I3C_PP_TIMING); + data =3D reg_read(MCHP_HCI_SDA_HOLD_SWITCH_DLY_TIMING); + /* Configure maximum TX hold time */ + data |=3D W0_MASK(18, 16); + reg_write(MCHP_HCI_SDA_HOLD_SWITCH_DLY_TIMING, data); +} + +void mchp_set_resp_buf_thld(struct i3c_hci *hci) +{ + u32 data; + + data =3D reg_read(MCHP_QUEUE_THLD_CTRL); + data =3D data & ~W0_MASK(15, 8); + reg_write(MCHP_QUEUE_THLD_CTRL, data); +} --=20 2.34.1 From nobody Thu Oct 2 09:17:08 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 6B5D8235345; Thu, 18 Sep 2025 09:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189309; cv=none; b=D2eQP7Qs2/CWkC+ksut0xoPmS4TbSIUptHg8vQUZr9+5Q9ZTuh0iTbS4N/Gxx7PWDnKhT6QKncqPeo9hOECH6Ob7y/z6kaweoMNmklbV1MPoWn4AZl9x/TPatOdTuSMghcj/JN4lweIDl3L9tVbdMfg9lgnWEFh1VwWkBPuP1jM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189309; c=relaxed/simple; bh=HXdZ4W8u8u0ah1qgBnOZxZxO1DxsnDEj1hboR1MDQck=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oGXigbsIzT9Ju62jWygYY6z9EUtKnL4Z6/T77Gm2p179wQXgaC0jkClKoNsfegWy2iFGRIXNnFCpmPQ86WCKIlvLiFBaPn31AdE2fDJHuG2MPkSp8Xg/lpH2pFk4yYS5c9i9rO+4Vz7pqO0b5+aD6ZzDC2/rcaPwhpq1GXp0QU0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=M2Zba1KS; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="M2Zba1KS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1758189307; x=1789725307; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HXdZ4W8u8u0ah1qgBnOZxZxO1DxsnDEj1hboR1MDQck=; b=M2Zba1KSqcSFzBaFhesRJPr9si6jDuAhV8Q/TJ3E2MpPeFWgGYXadQ3s 4c+/hDXv9Xcnc3a6qxMp39yaZRRUhPkrn1L8yEHd1b6i6T4X9+XYm4MLs GqTK8IEg5mglJE45+M5c0SWL8b5N3UGnfk7lOPbhVkWNFkOikqdITh7EE g8KyoayvdbMalSoAWHd66aHIfvZ/XYMcgC8qVVlWJog8q7FsyAxhMJoLf 0NVA3ywAGV3Gmdwf3lg+uA9IEC/fZ00gF0xR0BnAd1OT2PRpnsv+ntBJa 2R5TlY88/v1dRGtU01thqPlpBFEZ/pKanfbUQRF7dZTqLaKebalzWnojt Q==; X-CSE-ConnectionGUID: O8aTGVqaQjOx+eu6DgQ62g== X-CSE-MsgGUID: FwMo92eIRtO8jB2P4gknMA== X-IronPort-AV: E=Sophos;i="6.18,274,1751266800"; d="scan'208";a="46088873" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2025 02:55:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 18 Sep 2025 02:54:53 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 18 Sep 2025 02:54:49 -0700 From: Durai Manickam KR To: , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 3/4] ARM: configs: at91: sama7: add sama7d65 i3c-hci Date: Thu, 18 Sep 2025 15:24:28 +0530 Message-ID: <20250918095429.232710-4-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250918095429.232710-1-durai.manickamkr@microchip.com> References: <20250918095429.232710-1-durai.manickamkr@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable the configs needed for I3C framework and microchip sama7d65 i3c-hci driver. Signed-off-by: Durai Manickam KR --- arch/arm/configs/sama7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defc= onfig index e14720a9a5ac..6a7455d5b7f5 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -115,6 +115,8 @@ CONFIG_HW_RANDOM=3Dy CONFIG_I2C=3Dy CONFIG_I2C_CHARDEV=3Dy CONFIG_I2C_AT91=3Dy +CONFIG_I3C=3Dy +CONFIG_MIPI_I3C_HCI=3Dy CONFIG_SPI=3Dy CONFIG_SPI_ATMEL=3Dy CONFIG_SPI_ATMEL_QUADSPI=3Dy --=20 2.34.1 From nobody Thu Oct 2 09:17:08 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 2DAB52DA76F; Thu, 18 Sep 2025 09:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189310; cv=none; b=h6tfp8LPvyCg0ikHpohPpZh7J9nnj0+rsHeNtce0dQoImkGQHi2YcJRESJy6HCuIWg3/OR6kT+aXad20DAIsxMebZe4np8DRm+Hy3IaVqeNt6/0/23aSHYXBkDcLdABDPJE+t2t3FsbnguVjOxtkIqmb8uPgtJCpUv7oCZyVxmM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758189310; c=relaxed/simple; bh=LVDuLILG0rHg7RJ4jCcHsn8yRzwBL0hGBrsWquovBqM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Ztc3VwDP068yJ6xAWyADcfSuGitykeTgJuvea9hvTn/0PHz+4oCufdiVChoBzy8z+7g6pGoSETBamsHpf/ATWqSGyZfAA+a42j77RV2ZPFnCkJpyom3mYNW9p/WcSKGhvQ5OQSST+RWnK0xOPFIhk/9jcNGx35IOGF4PJRFvxsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=q6jYYVtA; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="q6jYYVtA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1758189309; x=1789725309; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LVDuLILG0rHg7RJ4jCcHsn8yRzwBL0hGBrsWquovBqM=; b=q6jYYVtAqUYwoP/FI0AXlIe2g+U69rEOLisFuRX/HFQ53xOQAGpncs4B tThuM/A2Oz9ke2I7oWY+R840ZV6z00vNQleeemvfxaAWqYAqjoguk/h3y jY2kAAX0nc8rQEwMXhtTQcARRbkkd5Pi8A4kyITCFAPnBpvDn+V/0aj5b lmrjF/X6bfOafZY65VpMwgsLKksXOcoflinRRcsA2cIld5BBss8IW7yGw vdzC32mwJKHCUv8rPHcKhKgtnUlFfv90qkfcJHJCzHa7zQv2kj2VPwfpW vH7qt7WGhvld+5qWE1ciZerTGwd4Bz+jcLdeo1aJbxQRWtnlwwrs/e4XH Q==; X-CSE-ConnectionGUID: O8aTGVqaQjOx+eu6DgQ62g== X-CSE-MsgGUID: f9VEl02USAaSQcCXZL8aPA== X-IronPort-AV: E=Sophos;i="6.18,274,1751266800"; d="scan'208";a="46088874" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2025 02:55:06 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 18 Sep 2025 02:55:00 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 18 Sep 2025 02:54:55 -0700 From: Durai Manickam KR To: , , , , , , , , , CC: Durai Manickam KR Subject: [PATCH 4/4] ARM: dts: microchip: add I3C controller Date: Thu, 18 Sep 2025 15:24:29 +0530 Message-ID: <20250918095429.232710-5-durai.manickamkr@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250918095429.232710-1-durai.manickamkr@microchip.com> References: <20250918095429.232710-1-durai.manickamkr@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add I3C controller for sama7d65 SoC. Signed-off-by: Durai Manickam KR --- arch/arm/boot/dts/microchip/sama7d65.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/microchip/sama7d65.dtsi b/arch/arm/boot/dts/= microchip/sama7d65.dtsi index c191acc2c89f..3a5da27f7d83 100644 --- a/arch/arm/boot/dts/microchip/sama7d65.dtsi +++ b/arch/arm/boot/dts/microchip/sama7d65.dtsi @@ -721,5 +721,17 @@ gic: interrupt-controller@e8c11000 { #address-cells =3D <0>; interrupt-controller; }; + + i3c: i3c@e9000000 { + compatible =3D "mchp,sama7d65-i3c-hci"; + reg =3D <0xe9000000 0x300>; + interrupts =3D ; + clocks =3D <&pmc PMC_TYPE_PERIPHERAL 105>, <&pmc PMC_TYPE_GCK 105>; + clock-names =3D "pclk", "gclk"; + assigned-clocks =3D <&pmc PMC_TYPE_GCK 105>; + assigned-clock-parents =3D <&pmc PMC_TYPE_CORE PMC_ETHPLL>; + assigned-clock-rates =3D <125000000>; + status =3D "disabled"; + }; }; }; --=20 2.34.1