From patchwork Thu Feb 13 08:56:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MarshallZhan-wiwynn X-Patchwork-Id: 13972957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4EB3C0219D for ; Thu, 13 Feb 2025 08:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=lXQARnpP0YCLfn4tDpCb+/GIcWyJ1PPNj3JHvui+rUI=; b=HLBCMgfKUqGB6R1uPtns7yGEgZ 4ypwNOvKdHaLlOoicMclTQd0xG3IGJJchqCpKcovng7FvJfUu2Lq9xx120T4Mq62o+swTCpOaQSoN SJGsawUv7/tQ05npytvRhRypfSpO8UtCjeWaY2jUJrJ+vBtEqFUVuPf804DJPqzoU7oIG41bHVCg/ eWcAc2qzkgpdthA/NLSWaYJXtEOwQFYADmW36fS72tk4Z+bIIe1euVi83+yf+cqeBQvOFn03BH/2i 52cFQwUQmK8LOvUsnuDDCIgEAI88/UdP8ZL8EarEzdHZykld/5KWsfzkb4T/IMBrnNVypxZEbtlhb JFQ8BEWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tiV4Q-0000000AMX1-0X7x; Thu, 13 Feb 2025 08:59:42 +0000 Received: from mail-sg2apc01on20600.outbound.protection.outlook.com ([2a01:111:f403:200f::600] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tiV1x-0000000AM7Z-3sUV for linux-arm-kernel@lists.infradead.org; Thu, 13 Feb 2025 08:57:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dqxYbjkTIIIxIt8eibSopQoUC3izEZYZQiPnWpow3GFMy5Nfxts3L4XYsdViVgBjZyVqpAX5TeFOnT8M5zylMwdtMrfR7whkuZNvSNORLMVYga2YAlT0yaBhAYfZ55yHxI4SnmlMucsJCH6mlS9uWU+xcKezN6zpHZKiqAIqH4OQy8Me0q8MnR3aE4GIwj9wcwaalpprESMZdyZpPvo+QAimuxS6lD5rF0zxP0EBIk8yklUrNLdUjGyF0QEW+zG3ZsCrngFRgvp333d7s/fgyrXp+4X9P19IJ7PEYgFu3uA4wG9E3uzbYWHzOMf5xj47qsb4bC1V/kxBtcyiiqihOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lXQARnpP0YCLfn4tDpCb+/GIcWyJ1PPNj3JHvui+rUI=; b=CDlhaFWjXPCwrVVwmEx4W5RNWDESPZh8MF4i8+MN+IWHDAUOi7p57mMXAWLQZbjdFUjylJTZ15JeGjt7fiW5m0nCY/Ix2T9qCltV3DCOb9dc8Pmp9irlbjFUGDTSv8k3PJexPdVBubdR7KpJgEUGwluBWOkfa0iaLtdNQZGDbKcmjTqnqfhhGB19NXiDAerlgSC6QlL8nAJ3zL4M4Ugb3MXqBXRD2kmgccl8OT+tPsqCbfPaYg6iKfYpLeKqu4X0OvTSFwJKjGDtVsf61olicNdTSiO5UQTyb3SZA8JZuZW3qsbfsiMqsxlv5B6FAn0wYdUpqpacuehT1+sjC96Y3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lXQARnpP0YCLfn4tDpCb+/GIcWyJ1PPNj3JHvui+rUI=; b=eqRwGP+2zm9OVTB49C7KIpP2etlJ8xdImuXGN/xKX6NOqPQVRVlAX0AcQPRLg9S9gkZHZ5h5iONAENHw5266zp0qUak+/h8C/8x8spmq+yBtzQW/CqiNllJH/C8dzsdhR0+q/4VgY8DJRToUtXxlYYnPMpQioAMl2OOnhpHGe7jNIJ+6Yf0CiGbtWr27RXhuLy99Lhl9SpaFsEDQGMKFtZdTx2kg9Th1XRt9hg5KUwK3GrIGBF7HqCfyKGmP0JuXpF6xGmr6fXT0V+xIu7MuCmCnC+5MGeVIf+4+P/I5BRtYIfJllaJrfXqbiZCabQfvYLiKo5GbtLRfETybeuRb7g== Received: from PS2PR02CA0096.apcprd02.prod.outlook.com (2603:1096:300:5c::36) by TY0PR04MB6206.apcprd04.prod.outlook.com (2603:1096:400:32c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8422.19; Thu, 13 Feb 2025 08:56:55 +0000 Received: from HK2PEPF00006FB0.apcprd02.prod.outlook.com (2603:1096:300:5c:cafe::f8) by PS2PR02CA0096.outlook.office365.com (2603:1096:300:5c::36) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8445.12 via Frontend Transport; Thu, 13 Feb 2025 08:56:55 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by HK2PEPF00006FB0.mail.protection.outlook.com (10.167.8.6) with Microsoft SMTP Server id 15.20.8445.10 via Frontend Transport; Thu, 13 Feb 2025 08:56:54 +0000 From: MarshallZhan-wiwynn To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: MarshallZhan-wiwynn , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH dev 6.6 v2] ARM: dts: aspeed: yosemite4: add I3C config in DTS Date: Thu, 13 Feb 2025 16:56:51 +0800 Message-Id: <20250213085651.1483494-1-marshall_zhan@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB0:EE_|TY0PR04MB6206:EE_ X-MS-Office365-Filtering-Correlation-Id: e89bc578-27b8-4f1f-98db-08dd4c0c5daf X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|1800799024|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: PHWz4yZakLe0TDf2mziNDbgua7Ac8AaxXj839vtbAgaexxB/yn5jLBX9UhDFlV05iFp+bG1Xt9fs81rKA431xDpYlc5PKeDWgHIJCroaRASZlKN7YznE3g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1R/yhiX2t5Cri1dO1aogpvGBeXVA+hB3dtYRSzAUhuT690cppFmy9H/k6HG2EJuDmYgNZ9dytLgfmYY7aQaJOdPe6JxyJmUNtYw+RmbUz319Cvpf0NGV8/LHMLzCbhpw3cSQ6/JLihwGyAj9tzN+8WyZ7+16qCmNGQr7SfdW8Z4AhrogOaikpONPUf+n3XzREaih4Dt0DCaVcKZJDrRkHob2D9zkV6WXNkzF/7ja6GoeppYMtfappaalk/2jNTstSYAX74QCsGNUSssZjxUqAkABX2S/RmHlANBqAmmdZtjwg7PnTW6oumG1cYI5k= X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230040)(7416014)(376014)(1800799024)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2025 08:56:54.7992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e89bc578-27b8-4f1f-98db-08dd4c0c5daf X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: HK2PEPF00006FB0.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB6206 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250213_005709_983529_626B097C X-CRM114-Status: UNSURE ( 6.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Set I3C config in yosemite4 DTS. Test plan: Tested pass with aspeed I3C patches and I3C hub driver. Signed-off-by: MarshallZhan-wiwynn --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) -- 2.25.1 WIWYNN PROPRIETARY This email (and any attachments) contains proprietary or confidential information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or distribution of this email or the content of this email is strictly prohibited. If you are not the intended recipient, please notify the sender and delete this email immediately. diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index ab4904cf2c0e..3e67393d5291 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1317,6 +1317,92 @@ eeprom@50 { }; }; +&i3c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c1_default>; + i3c-pp-scl-hi-period-ns = <62>; + i3c-pp-scl-lo-period-ns = <63>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + sda-tx-hold-ns = <10>; + + mctp-controller; + hub@0x70 { + reg = <0x70 0x3c0 0x00700000>; + cp0-ldo-en = "enabled"; + cp1-ldo-en = "enabled"; + cp0-ldo-volt = "1.2V"; + cp1-ldo-volt = "1.2V"; + tp0145-ldo-en = "enabled"; + tp2367-ldo-en = "enabled"; + tp0145-ldo-volt = "1.2V"; + tp2367-ldo-volt = "1.2V"; + tp0145-pullup = "2k"; + tp2367-pullup = "2k"; + + target-port@0 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@1 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@2 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@3 { + mode = "i3c"; + pullup = "enabled"; + }; + }; +}; + +&i3c1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c2_default>; + i3c-pp-scl-hi-period-ns = <62>; + i3c-pp-scl-lo-period-ns = <63>; + i3c-od-scl-hi-period-ns = <380>; + i3c-od-scl-lo-period-ns = <620>; + sda-tx-hold-ns = <10>; + + mctp-controller; + hub@0x70 { + reg = <0x70 0x3c0 0x00700000>; + cp0-ldo-en = "enabled"; + cp1-ldo-en = "enabled"; + cp0-ldo-volt = "1.2V"; + cp1-ldo-volt = "1.2V"; + tp0145-ldo-en = "enabled"; + tp2367-ldo-en = "enabled"; + tp0145-ldo-volt = "1.2V"; + tp2367-ldo-volt = "1.2V"; + tp0145-pullup = "2k"; + tp2367-pullup = "2k"; + + target-port@0 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@1 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@2 { + mode = "i3c"; + pullup = "enabled"; + }; + target-port@3 { + mode = "i3c"; + pullup = "enabled"; + }; + }; +}; + &adc0 { status = "okay"; pinctrl-0 = <&pinctrl_adc0_default &pinctrl_adc1_default