From patchwork Mon Sep 30 07:04:53 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: 13815448 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 648DDCF6491 for ; Mon, 30 Sep 2024 07:09:16 +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=AUtJNp7JnJVBjateeIMFt9NVSk9vKIdUSLKphIGiMNc=; b=FUBict8hSvhytmsNy3vCAHP2Sq vMGF6DgV9gJQnLzHZPNx+VHkfZGA5y4IJR3gND1/BfQ8NDXDeR13l9tM3ZlYlhsvseLx5EKW7q/Fe 0UJMhNcPIAmUqMhy1arKYQMsTzDSTHJxL1zpEKlMKELxIhpT1KEuRlILwqIJBNXY+I2B3F7OgmaOz 7PeM/4obbZkXQRIu8IxFt5jpcHGBZSz7ycWeba5dV/WFUUmsyqN8Fws8GNf1gIjQPVdl905ZyyM9X pYzYsxSMr9DEs+dLliV3jDYx3TOs1S7YPbeqQFUt/W+251HGQzP38YJZ9QpcW2/rPQEp8MnDrXUV5 eC7ZuVHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svAWl-0000000G8M1-19SK; Mon, 30 Sep 2024 07:09:03 +0000 Received: from mail-tyzapc01on20631.outbound.protection.outlook.com ([2a01:111:f403:2011::631] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svATI-0000000G7XQ-148A for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 07:05:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jax3CpBfOMYrewiAmxRT9Mv6eNpodq+S7tRFw4znRqPDk7bFFLEQ+IeivhLgPGYGgpSo7+v4GSroulUq1DHkDv7eYRLpcEfIw1XBfBTxZc9K2tbPvQbf9sjsmfmD456+ie1W4J+aphRShufYj7c25upo0fBuKk1Nlu3d2kz3UMYakbYpvbSFiqhxiyYus17je0xK1VpZ8+RGUm3xpwDfBRDYuCnD2eGpA0mHYePf08o4dV3diePdTWCIKPUweWrSvugyEDyfaJV0hqpzeC89uWbXxMpScCPRtCagM1IZI1HfOpgNdE9ejKYu+89azomWXybqgiQInL+a3LjPFehsRQ== 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=AUtJNp7JnJVBjateeIMFt9NVSk9vKIdUSLKphIGiMNc=; b=WvOFlLTcNsL8wArMvda/QWN+XiAaUIhPEYDbxM5rBv3tnEpQWk9ldIfqxc4vjm4BDUlz8nzPqm8RQ5TTTdH7l16xZTBMsWwqLqY2ZzmbxK4bMoLpiDfi6J36W4B5pkH0vAxIQ8D1E4m0Zz4+3vwqeZsVQGcIRdahFk8RlSBs0/m3nbkJMXoc1IlZsu9BuXLdfwVi/OOgpXscKHt+JiyCSZcIdbnoZgEjmpG49M3MoO/1MMYjDMvYDU5/dLN9Odn4zqQuikawCjsChyiGRGAVvqNkwWVHrByuwL6rZNqmHpnuohPcs3Fe9hbDiMKfV2mCEHFxzEmXuuxJ80eajicS0w== 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=AUtJNp7JnJVBjateeIMFt9NVSk9vKIdUSLKphIGiMNc=; b=b1iOi69FBfjZdDuwsJipxn1khQbaz9jM2vAcTAjgFYKMeuV/aU4DXdqjLr+y6wbXE6Udc4F1yCna02o6B4+KzqI5yJflO7GWVCHVvA3CflqzgP3EexbRSN8z1hJZ0ipnHYzEjkkTFIkM22rQQYqWp12m491XMybK571dw8eobD1eaq14bsByy6FOu4bbtbqGqOs0UUs2MbRLyusBi574XqqtVjyduwgoDtYaw4rHOgySq49ZFE7wBSiGWTZz3Ct5KaLUacKUvv82QWn7UV1b/QflEY2kJ6p91chXy0HkKln0pQ4q9UXD5lh+9Hpr4V5cPmHo/FIQfxecR2kgWr4rGg== Received: from SI1PR02CA0060.apcprd02.prod.outlook.com (2603:1096:4:1f5::17) by SEYPR04MB7332.apcprd04.prod.outlook.com (2603:1096:101:1b3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.25; Mon, 30 Sep 2024 07:05:13 +0000 Received: from SG2PEPF000B66CD.apcprd03.prod.outlook.com (2603:1096:4:1f5:cafe::43) by SI1PR02CA0060.outlook.office365.com (2603:1096:4:1f5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Mon, 30 Sep 2024 07:05:13 +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.8026.11 via Frontend Transport; Mon, 30 Sep 2024 07:05:12 +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 2/8] ARM: dts: aspeed: yosemite4: Add i2c-mux for four NICs Date: Mon, 30 Sep 2024 15:04:53 +0800 Message-Id: <20240930070500.3174431-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930070500.3174431-1-Delphine_CC_Chiu@wiwynn.com> References: <20240930070500.3174431-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CD:EE_|SEYPR04MB7332:EE_ X-MS-Office365-Filtering-Correlation-Id: 1ef01137-1f0c-4d78-89a1-08dce11e3ada X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700013|7416014; X-Microsoft-Antispam-Message-Info: HPg+2fiJOF/WtJ80gDRYtcFocb11KI42b4VJHwk7U1leyljs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9R04tlwRs2enWrV9wcUjtBWCmNVFuHpFMu44KV3lQUKZWH7LoOnanNmQ1LCbVPjoDxniyUbpkhXCv92VNrfyvOgIYlISAo6HCHqg73x/WT93V34JVq0kH6AwKP2gmz9toM+0t6D7ckEwBwXMLdAc78Se+yQwzhYet20I1JApnZ+bwVJwT0XlA5K2yeiBzKxGTlOrS63KF0ubZGrGR8XY64MmXh/e6xOPRpIgadP660Bsl4B1CQ/v9xi0ErbltIwuquzVPvC9c5I0b5w+XEZEYmS/Qv9QPU2kLpkOTNUrsjJIVHkem2yx/3nqBGupmb1xl9br9x5cRxCb/aReovk6Pnz9K95k 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)(376014)(82310400026)(1800799024)(36860700013)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 07:05:12.5561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1ef01137-1f0c-4d78-89a1-08dce11e3ada 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: SEYPR04MB7332 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_000528_405143_847217AC X-CRM114-Status: UNSURE ( 9.57 ) 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 | 75 ++++++++++++++++++- 1 file changed, 72 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 dbc992a625b7..b813140b3c5b 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -26,6 +26,10 @@ aliases { i2c21 = &imux21; i2c22 = &imux22; i2c23 = &imux23; + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; i2c34 = &imux34; i2c35 = &imux35; }; @@ -1196,8 +1200,9 @@ adc@35 { }; &i2c15 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; - mctp-controller; multi-master; bus-frequency = <400000>; @@ -1208,9 +1213,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>; + }; + }; }; };