From patchwork Thu Sep 26 02:10:50 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: 13812739 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 3D234CCF9EB for ; Thu, 26 Sep 2024 02:12:31 +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=9Pz43d4tpHHltUWAWzFExl3maBWLBxmL+WyB1PRmziU=; b=qwx8ApvPvfAmkc9Dek3A9cxzwH tO8m1PoFHNE1EaBMkOjETITEHjmIqS2lTuW43uTFvjkEgk18wbEcV0oyERBsuwKDS8CIGoqqaoY0e OlxVRwPT48jV+jJIvgRJrMytgUDPi3I6nzWfG/LoEl3Dl2pgihd4cV6jC95cepVjWs9XZkY8ooB0U GLn2Pvov7ZIUvXeO9LuAqQ4D6tGXBm7E5gS5PKyfxfp4Hlxq0K+dHKUYEYfECB4LiFDBymhU2pacS AVnvHe29Ad9AFDoEFm/N5pV4oHA/Wj2l7xDYUUPDs5EDb2NwY7bjLVjwz4lKqgk+ylDB+2RrcIOuv 8qnh8HVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stdzR-00000006ycH-3bI8; Thu, 26 Sep 2024 02:12:21 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stdyG-00000006yVx-385O for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2024 02:11:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m/zSbIStV5G0H7j7mlcUnZZDbpOEl3esgrPQYBnoFkhesLk7D/RGF2ZWcYv03oOOAiEJPvQ60uqbAMBQ62bcu9AHvs+ZI3vNmzNBtvD11N/IaVYAdV9vaEN4Xud+XkkRb6g+KCFOw8B8qCp92HHRJGTCcbgIpHWGNjo9rDJ6St9wP6yPcDrOxrfpHFS9AaCeRlhXpsGazPjRfHg/tEc6ayWd4r3NVfwJmixcztL3U3Bk3frcnMDJtoNJlJYZv/mvZPNlyrrS+csMTBXI9DsEyc2L85VsAjWhGGcCDrOxcZjN6spb3UtC1iqbDnsDOzCtzKT0b7FPLSML8ILk47BJVA== 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=9Pz43d4tpHHltUWAWzFExl3maBWLBxmL+WyB1PRmziU=; b=Zkot8ztjz2crUEByHLLfTR37rl9jA0n8RpUTTcWmV81k4s8dA4WvNwzJVWmcG012Qdw4RgQZbxk5JcadeQnD2dubqjCLFcCL31YMnUQ0THDMDsgMHIVS/bmYYeN5dYf8zocAD0BCz5V8ldmhq8BKjMhR9imweozF6ziS64GcHy8irSCaY6LLYtgF8IV8LcXuDTHo9V9OPPV7f7vwDofBRvTMCPeOsjqv7cxg+C/z+hq5NxXGhrA8k15lckETUBg00jjQZZkVnxGfwK9dqEPs5aU4+jNvt3RNBO6x2dfjRTjy+46TM5+TX+C9E8G9aEXaBAFKKvYK+JqCGlc9ipFCOw== 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=9Pz43d4tpHHltUWAWzFExl3maBWLBxmL+WyB1PRmziU=; b=cyFMVtJ2CJ7Zlsh1RQJFVkCoFUsW3hWeV5pW+qlD27ia7dLdgIDqvBmV+9IH3caWCm+kjFRMLXfg+IjDycwIGugX8chYDcOdUun+tr6nk3JzIznbGpSXKXCy6EdG2fcgYUvK9XiI0i0RuZz/+umxMWVcxUbk6jVTzEmUsojfJlCJMSFZepQ5Or3OBvsf8Zi84yByL6TGhJmlO+cr5YyU9dElKfQy0xg4cEkknrHMzNEtAhf1phQ6NI/c+ERilYUqcZn9KB8Am932uvUrIP7tKhqGczQ1uyiq2+wg1oYhAvjVMZnowS843/6Y6BTfJYwt2DAGJ9pEQbpGs6wlKitFvg== Received: from SI2PR01CA0015.apcprd01.prod.exchangelabs.com (2603:1096:4:191::15) by TYUPR04MB6792.apcprd04.prod.outlook.com (2603:1096:400:35f::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.25; Thu, 26 Sep 2024 02:10:53 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:191:cafe::ef) by SI2PR01CA0015.outlook.office365.com (2603:1096:4:191::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.20 via Frontend Transport; Thu, 26 Sep 2024 02:10:53 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Thu, 26 Sep 2024 02:10:52 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine_CC_Chiu@wiwynn.com, Ricky CX Wu , 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 all Server Board slots Date: Thu, 26 Sep 2024 10:10:50 +0800 Message-Id: <20240926021051.3782377-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: HK2PEPF00006FAF:EE_|TYUPR04MB6792:EE_ X-MS-Office365-Filtering-Correlation-Id: a9dddc45-2896-45c4-9c3b-08dcddd072fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|7416014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: pZ70diJrAFlq6vFNGFgPy9lVi9r4OHwgdPNQWeyX8eNhf9cpPtEZ5ZrkMkqYZRIb367d3j49qnee0LzYWgSNDyODFbUhfcPYfo2ByUYb18I9yq/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GzWZ8nrSdSwPNAqIOee1blC8NXe1v9p8G4Lr3T/+HVJ38jE/2w1rz76p1v16q23iPo/49NGCIMb7Zra47WJpkJ26CyTUA62K070kc0YA+XnaZX1NdSaX9+04eKYTwM+77zEt/M7iMIcnryERsOtPVb3qoy2KPYiDKdlA3xtYSACnigCaZezcOdQTyEOXRQjlAKa8gmbewZGMNNxTmeEkE7IeN6zHBmKaJf6vuHoCx26Vutdyu8udkm5AgtBlKFhet 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)(376014)(7416014)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2024 02:10:52.9492 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9dddc45-2896-45c4-9c3b-08dcddd072fe 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR04MB6792 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_191108_823926_D82CFE00 X-CRM114-Status: UNSURE ( 9.02 ) 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 to 8 slots of server board and add the io expanders and eeprom for the slots. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 239 +++++++++++++++++- 1 file changed, 235 insertions(+), 4 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..95ebdf54615d 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,15 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; }; chosen { @@ -255,24 +264,246 @@ power-sensor@40 { }; &i2c8 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; i2c-mux@70 { compatible = "nxp,pca9544"; - idle-state = <0>; - i2c-mux-idle-disconnect; reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux16: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux17: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux18: i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux19: i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; &i2c9 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; i2c-mux@71 { compatible = "nxp,pca9544"; - idle-state = <0>; - i2c-mux-idle-disconnect; reg = <0x71>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux20: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux21: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux22: i2c@2 { + reg = <2>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux23: i2c@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; };