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: 1991353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=3RMrUrjS; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=112.213.38.117; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XHrW95X5xz1xsc for ; Tue, 1 Oct 2024 18:21:25 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4XHrW936MFz2yPD for ; Tue, 1 Oct 2024 18:21:25 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=pass smtp.remote-ip="2a01:111:f403:2011::621" arc.chain=microsoft.com ARC-Seal: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1727770882; cv=pass; b=n5PtG/rTBt7fNgLQGrcecd0ltIE6RXH0yTjmeTl16T4dqnPZZFbhBAZJDf8gGqz6a1sn77ibNV4Zru9196C6zs5QVymbNa1bAYvlkfPRZtjF01EOURTbBR7PnuATm3oDhCxATzbHI873Vgtb7FArzsS+ZCFpOgTqla3wpQfTRiKALxaikhANQ+3IDam+B5johjXp7nwnGyGwLFG/KBll7AnqXHlIECcdOC40Wmn6l9cUX/ZYOnhw/NHXKMES9IdiyNO9vyUD3gLV+nEBzzzGgieg11OSBzp3jT1ZWgDNU8+f76D+b1JE1usxbGWxM752R0clAjUpOjgwtAudv2xvfA== ARC-Message-Signature: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1727770882; c=relaxed/relaxed; bh=lhYTzX4RPmb9y+i3998259q/Da2L24KaCmKevldQmdc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=E7cHYGgtDd6uUACmSkMqx6suPtxitbFeIhZKhv30miy7CQ0t1rWLBB/CmxQo9RZP2Pqb2SToE6KRoLI5J07g57CuTawZoNgaQK64CqXV7L//VHo9/dMZoBIxrlmMgcn3CBQ5Vi4cCg1qY3OmEbY4QEiuPo/6sbUn0rQ9qsdW62l/EQZe3oNcAuUWy3yV4HyQo/A6c8fTONr7tVcJVt+w+mdw0pw36NbU4hkhmFS7WmLpFG7GzAAfQbQ97xumK+Qd7kkenNd/qzpW72h5mWll2sIRES7K5M6wxoMElGEJIJXmxEiGAtJo53rmUvPGkbBxsN60FWG3l/EShzUdrnKdmQ== ARC-Authentication-Results: i=2; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=3RMrUrjS; dkim-atps=neutral; spf=pass (client-ip=2a01:111:f403:2011::621; helo=apc01-tyz-obe.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) smtp.mailfrom=wiwynn.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=3RMrUrjS; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=wiwynn.com (client-ip=2a01:111:f403:2011::621; helo=apc01-tyz-obe.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20621.outbound.protection.outlook.com [IPv6:2a01:111:f403:2011::621]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4XHrW64gvSz2yLT for ; Tue, 1 Oct 2024 18:21:22 +1000 (AEST) 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 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: R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+ckZIDRzg/1+pdXaVQbWu9Qs2+eq7mUHxaC4h2livTI7Jf6putmagAvMopH4T1g98k8XNB/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-Spam-Status: No, score=-0.2 required=5.0 tests=ARC_SIGNED,ARC_VALID, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on lists.ozlabs.org X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Ricky CX Wu , Delphine CC Chiu , linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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>; + }; + }; }; };