From patchwork Mon May 6 11:33:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13655330 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 58E4DC10F16 for ; Mon, 6 May 2024 11:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=PPiitC5jDxYbOK8OrBWoFMxxsPThYi9tgMCG4ICwn5k=; b=nOONO4h917I87O 3FaFM9tldIByL8eMUBRN9RmTIx42Hx8chd5YwIe9Og0Fyex7upk9SEworCPx1lT+OYsG2uQUQGcYl UmNzgZgGaTr3QA5Vj3Nx2PczKxybW0OgLazzqTg1EHIk/I70CgFtk8GOgXvIVaCveEL8Y4Hz3XdVr kMGTQN9F9kg6R9Bx+pzVKvczy4vKLxQTf6d/mQHHu/6fr9MFCW6rwKGkUw2SzvK69X3Zc9pWOSsxP AAHKlyJz+KTokvbDheRvMg6YcuY/4uCmsw4aejvzmBHhb8p0L6aWAQg7aRVjM79kzllb2SzRYdT6p r8Vcy+KX9macTqoB1Gxw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3wb0-000000077UR-2pX6; Mon, 06 May 2024 11:33:26 +0000 Received: from mail-southeastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c401::] helo=SG2PR03CU006.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3way-000000077SY-17Vo for linux-arm-kernel@lists.infradead.org; Mon, 06 May 2024 11:33:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kUm7ZaxVpO3BfDtCYlX8Y48Flgt/Q9RHxV08VMBMeanaMd2a4xm3GrWWRXSfZ0eZYfjiG+NDwJ1LklpyPxnarTGfGxVQlC2cXl9J+LhLEN+KEDTMTh8AtbLQIkVftSpqPzfTFeD5zPNw0pl005rd3y0OGN3VKTXQq8MuNqoHzFtgTMbsb5ZZUtZu9Ux+ebbJYfUagQeljlDL1UwoemqBRrNlqUoFBWjLHQmacukrlE+Eg/rSkg2bk+yPqvdjUbgwdok7g9daq3R1tu3gKrurlcgg82MFQU8caLIke4MMPGq5BDGO/apfKFhauWdmKrf9iTyntLTuitqkFDrNU3Kpbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=S+VhU7puhYgqEcuUhg9nsZCbl1KlM3fOVeMhyFy/JOU=; b=Git5sYLeWGcM049RzqSKMJn2j502M6vuhIf9/auV8WSGfvPpJIBh+lNGMjdG1ligrJvI5f/LlO/jqatmsuSjMJ0c6xbi1g/wiSW1BBr8kn6DBW6tWDNlFJdI3beLx5v18104oqExK4RmEA+zD3pSrIZwLW8swzoAxd7hRxWRU2kWAPwuJzDhJUvINwOQsyHlG88MFcGYaDC12E0qVGEWp7lRXutpeuN2zSgfivEUKSmu/hUyiBLokRSbV3MdMHPiTMPhwKCgQP5n1t18mmRsT+P/MTPHNwDaCxUgtANrWneB6gW4smlcGYlZs+8ECsGR4kw1wXEMMgNYVifthG2pFw== 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=S+VhU7puhYgqEcuUhg9nsZCbl1KlM3fOVeMhyFy/JOU=; b=LZsM1VWxDabrBuAMtHomb0vLctKAG+pF22rKhU26CBM+k1k+ntiWP6o+DkigOAdOojIKTd0oiNtR3+m9mJ00K8NsrS2hJA52cyrrCH7FGFtTvj1TuxcOjhrfR/yJwud8WDxhP/2Nr+QLm16HmsfR9pjiyaQIlqXRMEx2bmhrrSjh7hi156qHCQkvTPzOe/KYhFqmo2/P6C1eFODqgwWeh5i3AshEHowX5RftEr4QZwW61zydVKwaRjWL6gJwL6MyCLQn/F7jgomBraSZCbe8ad5jD+7fHIdtc6ScRrxPKqiMJEXhwas5hPAVNqDk7EjRD5gDGKWqPc7DwgUG2QSf+g== Received: from SI2P153CA0030.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::15) by TYZPR04MB6768.apcprd04.prod.outlook.com (2603:1096:400:341::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Mon, 6 May 2024 11:33:11 +0000 Received: from SG2PEPF000B66CF.apcprd03.prod.outlook.com (2603:1096:4:190:cafe::82) by SI2P153CA0030.outlook.office365.com (2603:1096:4:190::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.7 via Frontend Transport; Mon, 6 May 2024 11:33:10 +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 SG2PEPF000B66CF.mail.protection.outlook.com (10.167.240.23) with Microsoft SMTP Server id 15.20.7544.18 via Frontend Transport; Mon, 6 May 2024 11:33:09 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, joel@jms.id.au, openbmc@lists.ozlabs.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Jeffery Cc: Delphine CC Chiu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] ARM: dts: aspeed: yosemite4: add I3C config in DTS Date: Mon, 6 May 2024 19:33:06 +0800 Message-Id: <20240506113306.1283179-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CF:EE_|TYZPR04MB6768:EE_ X-MS-Office365-Filtering-Correlation-Id: de0e3922-721c-4800-8359-08dc6dc04ea5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|82310400017|7416005|1800799015; X-Microsoft-Antispam-Message-Info: Te/F4hcnI0xx2OOGtCpli+2Suw9/MsNwO2QXwViOpTWifylikxeDarZ/xkqwDreXWHYnk4EkiyFTuBz3lbE4/xw06P8g0jp0ixPDbRTyYKULlvaszW8PVMrul9/FkI1mFzdWjmOtfTxYlvoHx/DpgCw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AYH0yOFJK00/Dttv5Mn9eH4quARjh1HmnhMJDL9lvXs99N3aQr0iWFHrtK5k63b23mObBnySvEjtqFxhpOri2eFtI9qybvmENcCgFSvQznz/O7FpOk4xm9PRvqka34nQUtyj0XXLdoQbQu6HYG2AC7LWP7Nj8svluwZfTXYElgsSPMPjQV+BGtivrHY 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:(13230031)(376005)(36860700004)(82310400017)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:33:09.3511 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de0e3922-721c-4800-8359-08dc6dc04ea5 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: SG2PEPF000B66CF.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB6768 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240506_043324_487294_07A70527 X-CRM114-Status: UNSURE ( 7.11 ) 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 with aspeed I3C patches and I3C hub driver. Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) 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 64075cc41d92..6a30c424d745 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -595,6 +595,92 @@ i2c-mux@72 { }; }; +&i3c0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i3c1_default>; + i3c-pp-scl-hi-period-ns = <40>; + i3c-pp-scl-lo-period-ns = <40>; + 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 = <40>; + i3c-pp-scl-lo-period-ns = <40>; + 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 { ref_voltage = <2500>; status = "okay";