From patchwork Thu Sep 26 02:41:33 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: 13812750 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 B838ECCF9EB for ; Thu, 26 Sep 2024 02:43:19 +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=WlTR1FU91XQZuWy93fy0iL7aFA03dDh8Hpev0PPVETs=; b=DVknvN8dhx8nd4V/XJrNgYK+7L dX4T7IpRtAvtBSghfOSisvBV1muC6IGkW56gGrO3yx7Kd2ClLlx3BD6AbCNlVc77jwlJDSXh3X8ID ElB5Biu7j7W4h7IAGT60Uwu/qP89oVGMsbaOlXWyhra/fga1/D+yCya/VKBZyj9LOHUY+QAOdkPz9 DxubYr0PGQROZtc1v6LEJthgUA/Nw5KJTbv41PDAcRcSDgLzuJdSVBCirqUiHrQiASvm8tBoIjfRj Nt/jy/nxjlqXeU/nHoqChnjkAIHhJWRacWrtXp7Cqh6cDWXPRetnApjK9QyVbhKLVWa0hNlAvRHW2 0Cb8fMcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1steTC-000000071E8-3vYp; Thu, 26 Sep 2024 02:43:06 +0000 Received: from mail-psaapc01on20626.outbound.protection.outlook.com ([2a01:111:f400:feae::626] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1steS0-0000000710t-308m for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2024 02:41:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nu5p9Dz/ZkkKVViqr3X9WSSAsyRxNz2iY7oxg/xXMBvi5EibK8Ewk2RG6GC7HKXQDiX+GgqXYIe1YJMTOooW8XMD6lOxRZnoP9uyQRdQIvs696Wfl6H7E75fNj+fCRx5i2zXlzoAGZlJHZKuT44eRCJKGvbGPsMysVKMFSO2bPoR+vGsw8Aq8HFwi9ZN38O1wYRCdmIoOINqDUWwYTnPO2BL5YAam23tQy0xHtzIb/fVTf76VIAedD76UJzNFzLHbLAZ4pKKmmyC86KQ24H5HorLCqWRYbacarrceuJMU4J8FCJIsMxlm0rlMQBJRpJsIDEA9Pg4VuV5Wn+oUekU2A== 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=WlTR1FU91XQZuWy93fy0iL7aFA03dDh8Hpev0PPVETs=; b=oKpwKe/eDGw0nq4dO0HWgrIAeqfbAyyR7jPke3DxMkBApinleHqKCkb4jzMTDxTJns2o3YA9JEz2xuh31+bVlPLrDuKmcM9wxzeYrzAl5Tofc8tFqg+SBMfiJHVWqX3VILEG+9cimuWmSlG0B4srM6E1nc+1eUNPnxP+kgCOIKjW65KbTYR9l85WzSTSG4E+kpmaxCBVVfWSg7L2gsCSjsgqatc4OCUWrnlKMDZHBNqLen4oT89oUme1x31andonRg8F72Mt2v1T57G9VkSqxCQEJqqUnJjFza/OPIFoG646mI1LOiVIkYnUXG7E6XnDix0D55dhrMORSiZQ/O7Okg== 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=WlTR1FU91XQZuWy93fy0iL7aFA03dDh8Hpev0PPVETs=; b=lk5AP6eZi4aUwMcuHr6bZKCXHttTWbMuqduJL2WiyuYhKDSWmTKJgxmpjKPopzDUx7eaBr50pfMSENa+1Ia6OedXLzVmlJkcEx9/rCIqcZ5HFv7yt/2g4NU2Or46wtYSkUx9vky/rIO++FvUE6exFexL3Xv97jOwRlOqWWuIeLkKWUIClQ1VpHdWENAm5bJAL5su5Q52cpy68/FtQbRBMdUlzjdCUlSlTV/K+l5NM2Alen3GGlmC41AEEvaYuzhZmZse5WsAinFXTS6jWuSfZdh5DwjECUHc4pB+wcKihBZMF3bIhgOyUueHzyjrCWvhoVCi7FyDgr9OD+KYjnUrIg== Received: from PS2PR01CA0057.apcprd01.prod.exchangelabs.com (2603:1096:300:57::21) by SEZPR04MB6503.apcprd04.prod.outlook.com (2603:1096:101:af::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.20; Thu, 26 Sep 2024 02:41:36 +0000 Received: from HK3PEPF0000021B.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::ee) by PS2PR01CA0057.outlook.office365.com (2603:1096:300:57::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.20 via Frontend Transport; Thu, 26 Sep 2024 02:41:35 +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 HK3PEPF0000021B.mail.protection.outlook.com (10.167.8.37) with Microsoft SMTP Server id 15.20.8005.15 via Frontend Transport; Thu, 26 Sep 2024 02:41:35 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , 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 i2c-mux for CPLD IOE on Spider Board Date: Thu, 26 Sep 2024 10:41:33 +0800 Message-Id: <20240926024133.3786712-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: HK3PEPF0000021B:EE_|SEZPR04MB6503:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ef3caf6-8cb7-49e2-35a5-08dcddd4bd07 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: eRJ0GfmYr9gP1lDXhAGa1O7AiFTKOlCH1aXcIgaJqQevScUwCb2D1XARGvYunULo8IRRuPALhTdJnbTsFN7XB38mPrxpt+myBbus4J2GCtMYgkWgcGf2p5CuVQeCozCCiZzJiSSRQV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BtsqWrm7j2dz32EVspPR8pDrevHEE2bhsCHG0Dkc82UfdfokJ6nQyFh5P0ccxtBUPqGTv6J8IuDTJjFUsoFZCrHsxKHvL0OGJXWqsnyaWjkxTc4tup9G31U/s5n5SqzoTXPaoVMK39jAv5FTRv/xtVtNhCJTtNByj3WTFtw+tTmNWt3PUfm0DRI8iV6inWvCLWxebZoSaYDwh0wy0YZ6Zn18sxrOJ+Sx5bQGetPW/fpSsN2sl/LOjo+86rkoQVpuv0gKyK6 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)(1800799024)(7416014)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 02:41:35.1595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ef3caf6-8cb7-49e2-35a5-08dcddd4bd07 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: HK3PEPF0000021B.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6503 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_194152_763847_FBC13723 X-CRM114-Status: UNSURE ( 7.65 ) 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 From: Ricky CX Wu Add I2C mux for CPLD IOE on Spider Board. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 67 +++++++++++++++++++ 1 file changed, 67 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 98477792aa00..ea1a9c765483 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -17,6 +17,9 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c28 = &imux28; + i2c29 = &imux29; }; chosen { @@ -277,8 +280,72 @@ i2c-mux@71 { }; &i2c10 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; + i2c-mux@74 { + compatible = "nxp,pca9544"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux28: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@24 { + compatible = "nxp,pca9506"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "","","","", + "NIC0_MAIN_PWR_EN", + "NIC1_MAIN_PWR_EN", + "NIC2_MAIN_PWR_EN", + "NIC3_MAIN_PWR_EN", + "","","","","","","","", + "","","","","","","","", + "","","","","","","",""; + }; + }; + + imux29: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; &i2c11 {