From patchwork Thu Oct 3 07:42: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: 13820733 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 B9B74CF8565 for ; Thu, 3 Oct 2024 07:50:20 +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=2M1r7OlBlNgE4G5byha6fFDgwQAyaYccrjhKFWHNQF0=; b=bBuDO7+FOJIykU3YkyN39U3FXE b/hHzFRDag8XwL062gaBB+VFCny0Ub1OT5gh6y9oeJooFZdjUINYyO9o3Mk6qsL49ZT1bVk9IERE3 EZUhtfSeoksLpQ6pDT0G0XUfm642tznFFc9+URsJpzi8ri6WziNDJ0RfxJDoGZb9wO98g47wREKZ2 ENH96mvy/Dba3Xvbs0GOnV02Nek/Mg1xvsvP7n/jYUF23vMFWHfFgVzlocyyyQcwhNPjPRsWL14yW FA1kd6KPiYe14TkLfKobrgHXi3+1gtHsg4jiePiGcH+Kbu1k+k5phAMUKtsw5GvzOfO3f3Xg8GwON rQ9Y+QLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swGbD-00000008RYV-00pO; Thu, 03 Oct 2024 07:50:11 +0000 Received: from mail-sgaapc01on20611.outbound.protection.outlook.com ([2a01:111:f400:feab::611] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swGUP-00000008Pwf-3dpM for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 07:43:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MkRzD1wCWcEgR5pAU6I2Xk1Loe0TYe5EtXzJS+O2wOUPugj6j3vWu+1kjutgb50kMfSVlpT3luCk7hnf+MhZ9OmlBS3xshRr0npsFLGFeT3PajM7isQXJ566V9UyhEf1UnARkTUiYPE6lMuagtV612/i8jDjdTOiyadwYHadGEpK1togtWMk5qas0MsC+NXqwA1+04IllwoPg2zTja14EwxIaRxqTjYSyisUnG44j5p7UFMoLKW0IJVM0s/NLRvMfgxiXYwPTkdgggQAUwG0zhbUkaaKIxX4iRLIRuvh55N2gEtr0tLke4PzUkeW9ROuXW6dJe0YBBrzoAa+gPFLTg== 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=2M1r7OlBlNgE4G5byha6fFDgwQAyaYccrjhKFWHNQF0=; b=Ikl7JlZjQ+A1o2ABqHHT8rfoceliYyP+4rgvreRY753gaZGR0vv4jCnUZCSgO35uLC+rt6b5XnNxTMROGIgZNpINZe3NSe5/AMuw/eN6bg+dARztXRj/rOqrLfvyigS4pculToKylstgNrngGOgPWY6Wrb3hHWxs9EQrfNzFsMCy82vtCzdzRzjpJG8HxLi32d+p0XCnqAMdaDHSW53lcFImWwMlvPrvhh86xg0I1yq5PMUfamD+PvurlMxmzAoumop1b/ML9B4Jz4vVqmzLQhx6nf4T+o+VJBwjj2qAJ0W2rMoSjLw4xNFt8wUQmF41QhE/D8woar+Nomhp24C6Bw== 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=2M1r7OlBlNgE4G5byha6fFDgwQAyaYccrjhKFWHNQF0=; b=SKAuGt85IzlyvailH/3M7nphxERsXBr5NfaqZfHgqqkArGnct2CCLwbUO/jzpPJctNlZGE30IiyYReMXrEVp+kCD9WKmkO3dMQ3lTd0dQT4o+a6YEVTODRr8KB53v06fqsB4NyN4a6GHG7l5OCMEeu8ifTdAK4F9jFSAWOhi1lZqBTOvLmDsxFJHTWYj9MIG1jXcJ5mM9ByMpJG8gNljp31cYsgNjLbQxzSQk4rVNuMQv8fZb/Dv5bvUKIcQey5UmI8sU5YoYQSYw+54QLj+4FlJoFmpdPI0/gcH3VAUDzYGtElE007DrSoI7TX+SjdhJISOkSiNF3ytPuFyycZ7tQ== Received: from SI2PR02CA0006.apcprd02.prod.outlook.com (2603:1096:4:194::8) by SI2PR04MB5694.apcprd04.prod.outlook.com (2603:1096:4:1a6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Thu, 3 Oct 2024 07:42:59 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:194:cafe::95) by SI2PR02CA0006.outlook.office365.com (2603:1096:4:194::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Thu, 3 Oct 2024 07:42: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 SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Thu, 3 Oct 2024 07:42:58 +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 v3 2/9] ARM: dts: aspeed: yosemite4: Add i2c-mux for four NICs Date: Thu, 3 Oct 2024 15:42:43 +0800 Message-Id: <20241003074251.3818101-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> References: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|SI2PR04MB5694:EE_ X-MS-Office365-Filtering-Correlation-Id: 680ec723-3c7f-4f4c-efb3-08dce37f0090 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|7416014|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: L6qB+HxneqzTgRgl29g2WRJy6UI+WErBoGsvbMBjMX99dxXV6Eap9TyWPJDSsazGGNred326D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MQU4Psc0MBiKpW6NW3JTdg0+HWd/QLuCw7MZEuH8kA08CIsFzNkn+qIQJvI4JyKMnBrQgmD13HnKsvnvo0s9hn/Pvn4puvYqCUSZi9q061GytqfXTv/45pOmOfTOxW/96Nfg1L+1SdC4lbXB+rbaBw1hxVOeNKzrj1DPfi+UQ2lcecAUzMdl3KqFfYbTfS5oZZshiEFVtn/o/1VgT0BO9t+m0thYc0sqp7j57ak/V/SkeKExGFbkW7Yc0SdUui 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)(36860700013)(7416014)(376014)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 07:42:58.2430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 680ec723-3c7f-4f4c-efb3-08dce37f0090 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: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR04MB5694 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_004309_942711_86C33B5C X-CRM114-Status: GOOD ( 10.22 ) 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. Also remove the mctp-controller property on I2C bus 15 because we need to add the property on the I2C mux to each NIC so that the MCTP driver will ensure that each port is configured properly before communicating with 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 5d623d0355df..fc8af704fe20 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; }; @@ -1168,8 +1172,9 @@ adc@35 { }; &i2c15 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; - mctp-controller; multi-master; bus-frequency = <400000>; @@ -1180,9 +1185,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>; + }; + }; }; };