From patchwork Tue Oct 1 08:20:45 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: 13817636 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 71300CE7CE5 for ; Tue, 1 Oct 2024 08:26: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=lhYTzX4RPmb9y+i3998259q/Da2L24KaCmKevldQmdc=; b=n6LYVykC5JHCOQcGrfhorwLFHL BioPNlBMZjqTeyEtb0auygoJs4opu8Ww4gwHWDKWas1eR1HQ9f3wA3HZCA4A1NwYq2r4JUS7ef3bV 6ksTiazzp7qTbKESIpw3+UJreEUZ/5r8KSVzKie4mskGJGmxfMBvz0cJR3GEVJr0wEgCa+p4oLp3B psMY9LHWcaFYaN7mE+pg/mZggSlkfnKIFFAQUhz5uNBO8Mezt4xCKoPIKMeFcFIyn5Gd7IwaA1pzB wWvN0CW1ijLkMVbP6nRRFnUpUv+f7XXjBxvCgNrWtz7PAS91PJCC8SnuXG72rTRBl7i0l+DVul+qv vN389kcQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svYCq-000000022iJ-3OIR; Tue, 01 Oct 2024 08:26:04 +0000 Received: from mail-sgaapc01on20625.outbound.protection.outlook.com ([2a01:111:f400:feab::625] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svY89-000000021MG-0OXw for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2024 08:21:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PIyU5d48J2CgrMVjW4YHOLPgAQZLoKHOX+ODn6NpCrzCYMp+g6umOWkRJ+N/1XrF9I0TNr9dncs2UPbMYLa8YFAaRgeRjWBFuQO7lj0eOgMDm8HYeiHLALOnBr7lcWUPcDFVuELV48XQbT+WSREEJIKyeujoi6b/sHpDA6BtahIO0OMpedCT4QWeL0dR/LoyKr2Fa80orDucTUxa4LHvqyd7wL4QaXILuSjMhqW532H2/UoYZh0FUSIr+Xiwf2LMJZKZOc4WZL1aK/jK9yT0A3lCNCrqvJ7cvRzLhojHWOr2W9Cnxr+XYoyz6kIvg20YNsRyeerOUL4JgLlXuBth/A== 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=lhYTzX4RPmb9y+i3998259q/Da2L24KaCmKevldQmdc=; b=Q9p55LqS9FyAhE9GWl+gZqszfbEEVHrVULH+kYObpHfSlRkhj3YS44dlxpPlL8ivJ/eDOkc7oPdwfVjGvFZpkDxgmMV168BDiIIfbO1cqSrkfANSqrm+ovFlFELer4BnuEEJDrewQK/C65aKJPvEH+IYyVCVDoOiGnE6FXxmJJLDdNd72RHPxc63P5uz5++3yQ9MNidPHvE7hjPc3WkNhntzNjCPcbJ0gOQiY0pTFEd5IxvlQxjhKDj1Bf85wbQK8yZob//Ye3FWmt4Gr9IOaDuDy1odu55ia8xS26s66TY2y6md/aRnjKuZT1vqtFT5bMEhWkx4+RwyOl4lVvWLHA== 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=lhYTzX4RPmb9y+i3998259q/Da2L24KaCmKevldQmdc=; b=3RMrUrjSm/oS7sDCe5ccKkblRsvCLzHfeeeNmsmlKg5Y+rjnYzLFAR385X438DHqyPvmXnpWuhd2A52QSFHKWeUfUTSxDp/VlCxGVq07lgFlMunFTFzT3LG8xJZ+FWG6BennpLZb6Rr+mOpIEEE2g3SGwz5qLeql56YekPDzAngSOEwUQavBLmsJEZmSjYFckwjnmcLjJCAV8w/83jRUSwVL8d174aUhnZ8BpdMyi8ePeabyZgOK5/1Ng6Wg+VAnW/pr2U1dFbaeqsVCZSJLn2NmQ8BbGeMcL/bdat867K3dOVVPTKmZyaIUYzX8ae75dANKLGKP6Rcs6Nql1F3ODg== Received: from PS2PR02CA0073.apcprd02.prod.outlook.com (2603:1096:300:5c::13) by TYZPR04MB5736.apcprd04.prod.outlook.com (2603:1096:400:1fa::7) 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:21:03 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:5c:cafe::19) by PS2PR02CA0073.outlook.office365.com (2603:1096:300:5c::13) 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:21:02 +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:21:02 +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 03/10] ARM: dts: aspeed: yosemite4: Add i2c-mux for four NICs Date: Tue, 1 Oct 2024 16:20:45 +0800 Message-Id: <20241001082053.3455836-4-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_|TYZPR04MB5736:EE_ X-MS-Office365-Filtering-Correlation-Id: ce532714-6db7-41a0-6213-08dce1f1fcf0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|376014|7416014|82310400026; X-Microsoft-Antispam-Message-Info: R5mk/9wwNcS9UkAE+TMlnPVnImWgDw14q79DOd33WoYVw1NIlBsizE1BFh1oHLSpnO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k8XNB/bA6NIbr91zour8wQfL2IB/VNJ9VGwYIWcgYegW6qUK0lgA0/TmSINw2crHZl8Nz8EAf6Jqa58som4Hpn8+Fj15YUWOn7tRi3Ynqr/iaE2ADNB3TWoY+hJTiK36Z211k2yOdvrfD3BRSwxBhKDN54cM7pwuOogRkX183VZdBOUJbqqLP7EypLNltqzM4zv6Ngk3z/OpxvT1GgDwtET44TlQ3z1dT8iqfcRcqk55Xsv2O0fLY3C94aEj8Y5QSAP/tPC1KMGXHf+ep5RTl8pVy0IxN1pKAT4hWRTYCbOfuGjEdcL7NLpOjbEmh/4KeAd8uZ9ep1ZARQJRR 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)(1800799024)(376014)(7416014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 08:21:02.4247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce532714-6db7-41a0-6213-08dce1f1fcf0 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: TYZPR04MB5736 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_012113_161585_C45BF9B9 X-CRM114-Status: UNSURE ( 9.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 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 | 74 ++++++++++++++++++- 1 file changed, 72 insertions(+), 2 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 ad119e484bb4..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,6 +1200,8 @@ adc@35 { }; &i2c15 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; multi-master; bus-frequency = <400000>; @@ -1207,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>; + }; + }; }; };