From patchwork Thu Oct 3 07:42:42 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: 13820731 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 540E9CF8565 for ; Thu, 3 Oct 2024 07:49:06 +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=F47+lFr35OElbtxQgaskMYGMxuTeq9ED4Q9Z3sufvu4=; b=z7Pca3lDI8CUAYdEKmsK0eIwuX h2AEd7bkOerHUU8pQ/GIToDIZXr7Sj73MroF2gESR562AavLw5zg6h/ZjH65Fs26cQ51S+PpmKx03 4IemvrTOZHws2Sqiq+i0Mat0pFXfKF4yRZeKc0sTBHEAOHwZdxM3HYovo98dKjeOZKm33ZvA6torJ owCGTG1lcYfcGpTgAj1NSObGikzRAwGzM50+wo4LSaQvOLtCthYKQ01bpMioK3dJuEG3jU29yrBoE fWNt2HFUnNMHKdPXwiltsMkijiH5aGGW8EyeOJSX4aP78HpBM0AbcOw92xeMhMOX3/3JOYQWBubTT OT2Ar4FA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swGZy-00000008RH6-1grD; Thu, 03 Oct 2024 07:48:54 +0000 Received: from mail-eastasiaazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c400::2] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swGUP-00000008Pwa-0Gof for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 07:43:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SGUDw2k0zx8+l/940bTJcuC4nop6MuyytlRndbOkZTaUxy7zFw2RbAaXvP3H6Tybg9GE4a7j59ZtzcRhlCtsCj41tobHJkmDm8hHYamNNdHoVTcMABvAYDGTGUJnHhtPYoO7dBX895NdOoeR6MdUB8hpQlEXKNwBcwQe+/p1pQuKlNdEjWNMcfXrS95dua6DCxHL8ytVq9oq7vbvz0o/TlOqtsVXSlzGb8vWi9SDPUP7Vr1Hr+XDy2k8IdYB1b+k6T74YaKpoo9FzoAwbjDUenON2a38arKWc1swHo0A/BXlfHAoUedlc8P0ygCIjS+jiL9OmYSEAolTT0bM5sxDfQ== 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=F47+lFr35OElbtxQgaskMYGMxuTeq9ED4Q9Z3sufvu4=; b=XsArM+ODnjjbzkJ2wh6cmBkne8Am/sqnVgsNk2/zZVg7LC8iuATFS/pHYERJtruSDaR0uQwOtDhBU6FXTXMkFqUxhKyC7arg+dI3uKoMvsR+AC/JhTArrn6ELx7k9HMP0ncC5/QnfRru6eAOELHbwMfhyeNQ+aVtlR9IMgT1ygjVAE7oLQAZHjJYm9QiZuYuCVlPI/bNI1bPem8AS6X4palS8GaSuOmOv+XyQKhUF69hHxEJ85r0D088/+Zu5mDaZloPXj83HonGxatX2IPZ7gQ3q8KOPPafEIcrJz/asEhD1Ql0fwwio5wZR7w6Z7yP021r6EhTlvKcxyb2LwD1jg== 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=F47+lFr35OElbtxQgaskMYGMxuTeq9ED4Q9Z3sufvu4=; b=VeV30Vh2rxkcZ1q4M5HO2wOkvUeQdqG7xLCywjRJiAhrgmsp2y5chK8M+yQ7ax7ygvCBM8MnDDUdXMIjWXpNiYppbFi3+voUK5mhmbvTJ1i6K4nhqju9aTHQSKWVQiunnkKWM6kx1otdbXVGGtcP7E/LYgVI5UWmvRpxHOOCzYC+KO/EuewcRPjHk2JmWQAZ56w4pym3rncaj2+g7mFqRSRGFRmbMDxVNS0lNAgPbZKar5acOs8M7u6XUIMwqd/PdjVUK4zgozGRgpOvCxtzm9oOJjvbKNhDrIB5SEowz6tAKJjDWL0RXTRXCVsIt+x76GO7ChaI2k3ftW86BdC62Q== Received: from SI2PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:194::22) by JH0PR04MB8065.apcprd04.prod.outlook.com (2603:1096:990:9a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Thu, 3 Oct 2024 07:42:56 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:194:cafe::d) by SI2PR02CA0002.outlook.office365.com (2603:1096:4:194::22) 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:56 +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:55 +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 1/9] ARM: dts: aspeed: yosemite4: add i2c-mux for all Server Board slots Date: Thu, 3 Oct 2024 15:42:42 +0800 Message-Id: <20241003074251.3818101-2-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_|JH0PR04MB8065:EE_ X-MS-Office365-Filtering-Correlation-Id: b9d09091-1323-4fe7-4d77-08dce37eff2b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: hplh5HOR5W62UeCBqhNEBZO60IwI/9LloX4vmIc7xsqnp+77HDwBw+IRzV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oRssO5bFXy68k8quSoR4bwaOoAeyo1iBdGGCy/iBmC0ZzwEzGJ/6VJwWbzEMfg3MuSXh2td4n4KyUcC5IHHyh02/hHL+EgLT3h64pyC+QDBXzMxi7GeqgVmcEIpTJeNXFDNKV9QU/aqCIu0aAspkdv6ywPBS0baCTTcdXJAaNyIyUcPhWL5lVKCkXeJ5tCba/kZcpZkj6l09Xqbsk9JYbMT0yyZf6cxHTBihMWB2ZBzr3uhs= 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)(7416014)(376014)(82310400026)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 07:42:55.8992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9d09091-1323-4fe7-4d77-08dce37eff2b 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: JH0PR04MB8065 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_004309_152463_AF35B250 X-CRM114-Status: UNSURE ( 9.52 ) 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 | 238 +++++++++++++++++- 1 file changed, 234 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 ae2a2ed603ff..5d623d0355df 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -18,6 +18,14 @@ aliases { serial7 = &uart8; serial8 = &uart9; + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; i2c34 = &imux34; i2c35 = &imux35; }; @@ -517,24 +525,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>; + }; + }; }; };