From patchwork Thu Sep 26 02:31:19 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: 13812747 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 59DD2CCF9EB for ; Thu, 26 Sep 2024 02:33:10 +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=Fw21jEefcpn7QiOgNdCQtdLTqlctJ02DQWSa7aOQxp0=; b=Y/zlC1AWLMk9FWQOe6zmQ3N6rl EQfdvQZeTfIkcUtmLItTq2SmmPyyx2J5KNNe3g2pJbt6LNsRqHwBwHkTcg67ULC+CN1EajwTqo0Bd OdX8PwCiWTnfy1VP1WvXuiMTRe6zeQIy6nyEy7E6GbYHVeu6qQJVcBMeLHd8DR/Vw6kmjO/7aJoA0 buUEvnRGUolYa1kSJwRvXQTe/PNgfFzCco4vUfeSF1p5pLYYKRspQ90+wQUoU5cWQnnd0OrdagHiq QT8mFv52E6sLNNK5ZkMx/Pzq6xWZwCKSVOKRAChQ2VxtOEcUVnOq3A1YeL/jADaOG/iVFWEThRttO JqMg7uTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1steJO-000000070CF-1fNa; Thu, 26 Sep 2024 02:32:58 +0000 Received: from mail-psaapc01on20616.outbound.protection.outlook.com ([2a01:111:f400:feae::616] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1steIE-0000000706q-0bf8 for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2024 02:31:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NBy6nLUfZcYPaH0XNBriT9JF3BkXvAuqEDSznqVWrZWWEM6r4Z0D0rufnGS4JVDOtB6aXUr9OL+IE50w/qvHIVseO7pBS0rYndoeabM6AyLHGV94E0PC/5VYWsaOIDU++D79VXKkdSrJiqYUc5BQlAz1WmyIoltZ3sv6n8Zjq/nRl8VeBOtNgad5ltgt6szlze+WtAztWYRd49LFLnHUy0MY+3ROcUE9tfFwGvvwmaEggijeNym1ooU7WKr+YeZOej+zckZ+8JyoS7w00lKhHb1IKzGwyuxX3/mz6FMLLEzJK1BiJstjWTzIdZhO+olvvy7hiU5NxPFxW1k5cPzXiA== 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=Fw21jEefcpn7QiOgNdCQtdLTqlctJ02DQWSa7aOQxp0=; b=ix6vxHgUtLGM83L9SM+GuTBfCokw2L9TlodHyza5QnJc+ZcD1jToZUEyX+5GSoFHhmlYMwND7BRe9GLXRjHsYCTErdX1tE6SP9JorJzaFdicWL+hlpb4016QEmQkWi4LVUTJBaAz6u0tS+kVfXdGfUytoxlzLaWLSGGNWsMaWulsxF8UsckmcUzdELhQdZu2sOoPBKIWiwe0PIuV3xn8CQtmN6Tv9AAbY03cZoxdOEhCwKh7Yy5bFMkUMrIsHBJkTwMIqHdgXwycudN6Lo8lB8mDM9WmOxcYKc+mkscX9HhoKtYXONGbiJleafkl/eCrrryNMSyezEi3f48ES6Srqg== 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=Fw21jEefcpn7QiOgNdCQtdLTqlctJ02DQWSa7aOQxp0=; b=zLHKiRLh05Zio5Z8p4BO7Fljm7dE67+uC2nXaKhj2ekMiLRsKJHQBAw/WX1gs8qeAyZPgteFtF+CYOPYtyECcGSiCTL5nD5au7BBAqel/4UMnuHThaik6MTVrjAcv/NyuhKHdql1YxuFnstA5BbmcXprmitORMuLkpDVjzXh6GsiAcWJ23hfwHmhBcPMntjmeHiBbyjGrXHTZOi7GsDatiTkBvq1EoCMDAA8BdW3uz8yarOED4HhsconX1yyN0MfXOWVn+Jw64gNKaQdlSFpCPuR/KRxMi9svhI6hrWk7m8w0u4/znndVN0ix667VBldX9/jjpcnur08EhuOaQcj0Q== Received: from SI2PR06CA0003.apcprd06.prod.outlook.com (2603:1096:4:186::14) by SI2PR04MB5672.apcprd04.prod.outlook.com (2603:1096:4:1a7::7) 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:31:25 +0000 Received: from SG2PEPF000B66CD.apcprd03.prod.outlook.com (2603:1096:4:186:cafe::82) by SI2PR06CA0003.outlook.office365.com (2603:1096:4:186::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.21 via Frontend Transport; Thu, 26 Sep 2024 02:31:25 +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 SG2PEPF000B66CD.mail.protection.outlook.com (10.167.240.27) with Microsoft SMTP Server id 15.20.8005.15 via Frontend Transport; Thu, 26 Sep 2024 02:31:22 +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 four NICs Date: Thu, 26 Sep 2024 10:31:19 +0800 Message-Id: <20240926023120.3785292-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: SG2PEPF000B66CD:EE_|SI2PR04MB5672:EE_ X-MS-Office365-Filtering-Correlation-Id: 0258af21-a6c3-45cb-3f48-08dcddd3507a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: E9Hx17tYJNP5pmowQcHVPuQGNyeRdoDXMLQS16kFN9zfW/YybiBn+3qaJCXshozmeHFoSnIqqEpu5cBOZ8rn1Gyg1/Tr1pluNVeNgd6C9DqIwC6cCQ/Fd8BmLnBZsdxZ9XQbV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+3zYlyZoF4feio4f9Y4V0Lfzt0PDTX+2QsJvrGi7eqvLq6xhKrF33fEfdzLX8A8RWS1utJg9vS7ZWRIKKUMJsYQfRY8Bz9pU38S7GYWV+LEl5R+p8xte++4+yLYLGEgASIxrWJVJMKgwp5Ad7N0tQu4/E0OHNc= 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)(82310400026)(7416014)(376014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 02:31:22.6544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0258af21-a6c3-45cb-3f48-08dcddd3507a 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: SG2PEPF000B66CD.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR04MB5672 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_193146_198722_6FAED88A X-CRM114-Status: UNSURE ( 9.16 ) 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 on Spider board for four NICs and add the temperature sensor and EEPROM for the NICs. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 76 ++++++++++++++++++- 1 file changed, 73 insertions(+), 3 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 98477792aa00..d6b1742605c1 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,11 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; }; chosen { @@ -584,8 +589,9 @@ adc@35 { }; &i2c15 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; - mctp-controller; multi-master; bus-frequency = <400000>; @@ -596,9 +602,73 @@ mctp@10 { i2c-mux@72 { compatible = "nxp,pca9544"; - idle-state = <0>; - i2c-mux-idle-disconnect; reg = <0x72>; + #address-cells = <1>; + #size-cells = <0>; + + imux24: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + mctp-controller; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + }; + + imux25: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + mctp-controller; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + }; + + imux26: i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + mctp-controller; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + }; + + imux27: i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + mctp-controller; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + }; }; };