From patchwork Tue Oct 1 08:20:43 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: 13817635 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 96B0ACE7CE6 for ; Tue, 1 Oct 2024 08:25:01 +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:References:In-Reply-To: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:List-Owner; bh=G4TnwL8e302OeGu3LMGeH+f4Vbx4ULsswRUWS5OFeNU=; b=BaejUH+tRZwVpDXUkHFFPHXZxR QqHiH+M0PAxwyKWTa6Lkg6QRI5tZF8FtfaAV12s79GWADF/okQpbBUV9nJxu+k6dg8t+xdVvYlpBn 7x1ZfmVsUTl+Y4J+cOjpRQou5Ncvo+LaSS4PwyuFPP+hBzzcaP5nkgjbxvwIiYtr25DRqtlLlaIH3 sZO5tMqZUHBWbiEpgyuJ2O4cG+7T+9pYwLIuFnJX+kLj8cTdX4OqSkvHHVklQSRkGprkyGzsNv7QY JSCo3MvZGGpmmY/vBHfBhe3ERh6siWEpXPQjzoKuFiizw9TfsvV+ENhpQ8rii5dYiJJzlNN7onY4m iK1WnmGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svYBd-000000022Oc-33TP; Tue, 01 Oct 2024 08:24:49 +0000 Received: from mail-eastasiaazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c400::2] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svY87-000000021LX-0jyQ for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2024 08:21:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eD/nBjGUn0t07EGr4M6FCkhr4oEZOb4qbLgFRq8ZBmOFAdsxAttV8VGrlAyIY+aGqEkftfdvctMPCxg02jX9ExhPJyE1ljzeDw0Z/ajBiTBvF/Sa2rBTAOxdNBY+Hjxzfh9yr+kAwxjDpTAWamFM/NRjHW9VKz7F7Nc0nkiCq7TZT41bCDm9UZLP2/asXIaHgaQIcqj+u54PssDLsynFhXEi3HKBAkCsJ41djdzOpYyFHz4RMB04FYPz9LNpJYE3mE3vAl5Pufnh2sTJLhd1NXNMc8tgW+cCVWfUYswOtZWN4mINpJdzWbI+YwMheCMIhLfODt4THlZ83nKGIypk9g== 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=G4TnwL8e302OeGu3LMGeH+f4Vbx4ULsswRUWS5OFeNU=; b=CuYgPvgoScJ5jck/pHQFTDtJzzeHcuttpvEkEpXVoqkXb4BT6/jv9Q6K0Q2NfPqpT+i5fbPtvQ6qSPNtlfJtWqO2l/upYWn7+NxRSTa9CKe7IFDR3sS9kFzT7Eke8YuBQuaOH+n4T4giHGx/Zwig+kOOnRTbQUkxpO9esj2bwyAEccwpAYjPMfwu5IbrK3WrgSUd6u5QAHfBP00ZVdFz6F1f+cF275bctsO7ip+MALuEiEhm6XS4PSI/VMqglhW2HOJutUpthGB7VmSVVV6wPjm9NT+5eQR2sWnVQOOSy3BjTHwwOXJqMGtZyyvetiyHI0CahaCCPK97BCc4N30mNg== 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=G4TnwL8e302OeGu3LMGeH+f4Vbx4ULsswRUWS5OFeNU=; b=zX1UCXxF/k3lURFgxMS8hhUhslUXtLVq0Mpu5RSu2VgB7nDHtPOJrsO4bAWRSm/RsG1iJ0TB5fPvla41PUN/CrUF/tl6AXqjIVXSzRrlWBsIupYPnRbpGuV7Qtf+mzF2/AMPPW9VXTRkd+OOliBiB/GQHJYQ2f+wiFrkXYynzGzRHlFolxdCJbz2WtTAXCtdjqZnx3jWaAWKCGpvTVofbFQIZLOxkAnm/e4eFmJoPXay80N5R6RsrVvw85RBwrl8hxhQAXuLwADBpmD+QrDKWr05mejH/Hpki0lLM008lhVDzziGt43lZkmbyXoKFItD4aoAG3ivE+cudB/gPSgB3g== Received: from PS2PR02CA0091.apcprd02.prod.outlook.com (2603:1096:300:5c::31) by SEZPR04MB8139.apcprd04.prod.outlook.com (2603:1096:101:250::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Tue, 1 Oct 2024 08:20:58 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:5c:cafe::d2) by PS2PR02CA0091.outlook.office365.com (2603:1096:300:5c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Tue, 1 Oct 2024 08:20:58 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.8026.11 via Frontend Transport; Tue, 1 Oct 2024 08:20:57 +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 v2 01/10] ARM: dts: aspeed: yosemite4: add i2c-mux for all Server Board slots Date: Tue, 1 Oct 2024 16:20:43 +0800 Message-Id: <20241001082053.3455836-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241001082053.3455836-1-Delphine_CC_Chiu@wiwynn.com> References: <20241001082053.3455836-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|SEZPR04MB8139:EE_ X-MS-Office365-Filtering-Correlation-Id: 26dba6d6-204a-479e-a801-08dce1f1fa2e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: Wdjs4/tFaC0a3GSV1mWzS03/831Z5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w77ETyO16MVvUaahI0js0urOtFvUl0nHJlc4UtqWftBVPg2511Uccm+wak/JznJb83urKfKBDlkEFC9jAW8tlx1aUnbBaA+qyvkqdpQGbGwyrhMKaUlJE7zGp4Qlb74ipU+1K4pLsJBqy6kQn3aqrBdPpGoqSJ7PMdBmRBeMo9eToozvwlg0G3eMYrka7WkYnpM17R2bVbEtXAaEV6MTOiY7f8eb5ShrTqdf8ZpSh7JPtMjxOga7YjlJEB8/spXCMBD2j/DVh8w= 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)(82310400026)(376014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 08:20:57.7684 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26dba6d6-204a-479e-a801-08dce1f1fa2e 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB8139 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_012111_229089_932ECD0E X-CRM114-Status: UNSURE ( 9.03 ) 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 to 8 slots of server board and add the io expanders and eeprom for the slots. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 238 +++++++++++++++++- 1 file changed, 234 insertions(+), 4 deletions(-) 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 b6566e2ca274..dbc992a625b7 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -18,6 +18,14 @@ aliases { serial7 = &uart8; serial8 = &uart9; + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; i2c34 = &imux34; i2c35 = &imux35; }; @@ -517,24 +525,246 @@ power-sensor@40 { }; &i2c8 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; i2c-mux@70 { compatible = "nxp,pca9544"; - idle-state = <0>; - i2c-mux-idle-disconnect; reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux16: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux17: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux18: i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux19: i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; &i2c9 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; i2c-mux@71 { compatible = "nxp,pca9544"; - idle-state = <0>; - i2c-mux-idle-disconnect; reg = <0x71>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux20: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux21: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux22: i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux23: i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; };