From patchwork Tue Aug 6 07:18:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13754495 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 24426C52D70 for ; Tue, 6 Aug 2024 07:21:07 +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:MIME-Version:Content-Type: Content-Transfer-Encoding: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=CRZKqcl1toruNPDzCU8GLaE4ll72KY0ZpUOmMmsJ6+4=; b=x4UPsq+B8JGSSPdGdK85dcLs5r Ci1EuWZx6sec39YaeJIyhQEBtQXskOzU9tlTdf2OENIWAgC9lEtb4Ck0Qs66Urq7y1wFVLSMcWx8y Ja/Nq+skv5O/besEaJglJqtQSbGttMxQ59YUjH1TFBbZFSTqE4ldN8sN9Drjhr21NkT9Byw/vv1Kl jyJ7Yh6hTHtX7vJ4Nv6lkbIRr2vTewI2EL7RNtQPuicckiCxNxLmd1rvs6MkhW4nq+WZ/52miy4hf QWpDxb8CueKaIdr2g7sBEptuCXt3Yhfl0WGH0goTLa1CpMroSL9scMKGEhtL1ezufvHOucwvoqkxK ryo2+OXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbEV7-00000000ljM-0561; Tue, 06 Aug 2024 07:20:57 +0000 Received: from mail-westusazlp170120002.outbound.protection.outlook.com ([2a01:111:f403:c001::2] helo=SJ2PR03CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbETH-00000000l4c-2z4z for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 07:19:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BOVbBBuoAbTxonCzml6IR2JFiH3ZjKXY52IiUFVrwdFZzvlBnoGey9LadOtmvSTYS0NCfMprn6mZsK6sMtbOYuqbCgOERoY/BIKl+pAtqny5JYLNBWMTboLQRaE44A/eKyBUNwj3RXuX/hBgsw5w5qiiqtP+Fg/VxQgsZwXcMkyPt+IJVl8GbzVvopsKUPlZRb18o3EaFs53M4X6MfvR1LwfubnzO5KMllp7UJ8sO/f7nhZLBAp28uACS/l6dL6euXCFXyi3KjEGCsuOC55eKsq1Y5ThhTtJO/nqTbCY2N88THquw3uSr1eENsVQMXkb/GJdyuM9MgdfZnTCiOMEBA== 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=CRZKqcl1toruNPDzCU8GLaE4ll72KY0ZpUOmMmsJ6+4=; b=jDU80OqRWsPx8rJP2Ccz2UTTWrBKD2iqA/4wf8hQ1mx7qV9+NmAmvVHvm/42Hv976nDXTyM+ZIlA7W+i6wsyIeeK1Z0FrhpTff0PENfLRx/IuXfAm7LD14cKyZr9FDv9MCUE7ilpby2OhHWim+6nf6OxRyhk2xYpd/1Yhmxli2EdbqL0N30lyngf7yPvAJCtUgbeOMYmY+CNo37R9BpMak0x51Qms64QQrxPpCskGL5fKvahBeJluIXV5ZHE0QzEP8/oX67jkkkXEgBmKXdlgpojXbzUS4V6eQdMnDG074hUCbsgQpBXWwJnPbOFj146A9D5+e4zxj7s4nKeclGReA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CRZKqcl1toruNPDzCU8GLaE4ll72KY0ZpUOmMmsJ6+4=; b=mxJG9NS7y5bIy0OgVhhXVtCbWhcFidIpxr97mwoq9teZLk66cabYaPh4LYJS5aV+7O9BDUDwTxdh55JyoLOH9+RsJOkeI/wBechMBVzWkPDl53fjw1lHHU13KYApC89W+088OkVONwIYMlCQN51jetQ5g2fr2ui4CHCkz/6jFmg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) by BL1PR01MB7770.prod.exchangelabs.com (2603:10b6:208:399::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Tue, 6 Aug 2024 07:19:01 +0000 Received: from BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09]) by BL3PR01MB7057.prod.exchangelabs.com ([fe80::b69e:5684:ed7c:4d09%4]) with mapi id 15.20.7828.023; Tue, 6 Aug 2024 07:19:01 +0000 From: Chanh Nguyen To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, OpenBMC Maillist , Open Source Submission Cc: Phong Vo , Thang Nguyen , Quan Nguyen , Chanh Nguyen Subject: [PATCH v2 3/5] ARM: dts: aspeed: mtmitchell: Add Riser cards Date: Tue, 6 Aug 2024 07:18:04 +0000 Message-ID: <20240806071806.1666550-4-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240806071806.1666550-1-chanh@os.amperecomputing.com> References: <20240806071806.1666550-1-chanh@os.amperecomputing.com> X-ClientProxiedBy: SG2P153CA0026.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::13) To BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL3PR01MB7057:EE_|BL1PR01MB7770:EE_ X-MS-Office365-Filtering-Correlation-Id: 1dad33e6-59a2-4712-9c74-08dcb5e80b96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: 0VZhBFLJmcUXy8y7Omwz6rm39NYhAGRT3X3R39lq+UsnFVFQjbgQrNz2F0MmkAGlqqcPnXjg8HA21AKfSElvgwMr326ThfgZmRsRgxXfgXRp/n+29zCbluzONbyR5LgrmoW48Aq6IIxhFcetyTGXpmD7C6oO1U5rVo6zphZBWT93KZl8UTSNk4eTOtChfQpOFM6NhzAtVLj+TRTdCqIIfZWxBIIMXn4GXE4Wcb0GVq7E7SOwkR5rVPWfbm3jFwmz2Wg+i04JqNx54dmrv5azP8dZ0c1d7B4+geMla3mzL7LbIbYyUmPRv9FwcJSvWGiR1SOmGNn/yK+NScfUEK6o1pewQaYdsy0iBfOPyOTMtqB5BUul8/tAG+Ou39dLAEuQK7Z3nb9b5kpTDoxre1JLxJ4xRMKcPBMdO2Yk/oKSPTXuPNKS539FYsd2dxMB2fxs63Fhy3ykzhiUow6IF6JPkPs7AqZtaQ/LVyFnObLiVMqS1CigAzcAHal7/7TcFygPCAc4E7AeM+1niXe5QIFdPILa2QlL6BPLN6hfaX9i3qsfL1N7I/v/MqnF16ItRU1tuPodur5voUvv02VUu5i1Zb5vu283pkKJlKLRd9J0ae4qSUhQCZ48/9IAmLsxw9WrN5i/MpjrvexWSYwsy4fsUoQNh6//BhJE9u3Kasld5SL+TCOSPQsePXTjwn/qKqElfyPb28ZC1wnsHUooAYcEN33aobUMD0rycn0cwHApE7bH3Tz7ScDCPEaLl+3jHcx4GPV2IsI5RhXgxb6meIwnZu3iLrcIPL9I6g7DCuGb61/nmwcFjyDtaDeNPPat0wG+l1uy+EsFgV3pOlzBeUQrk4lG9waH2pZgqbkThk3FC3tvU6HHF4hH1/AnLJJJdV28nNv+w+pbdfVtlJLM9VRLN0UICckX8RFd8QtZrgL0yrLv+F0eItUDsR8ZX7W7xQTA34hSLad9Vyot8ZOmICQYLVrO916qBlFH7/EGmFjDZ72bdrwzWPsf/Ev2cSCbBzOdBDUelUu5He24p/sA3GKLflBhzO3wyIbirSZw22M/ieNnB2qppAEeu4FpejtXFvVutFk9V21SvG4dzjOg6l/t1uheVrJgrDDmC6lqGxfrsutXu9jwfLHcf6VFiHooI2iAu70GOSYUS/WPt7CbiBnggyDtnQNlKDRL5LP1QGqpzWDFLlTTXrSlRKexrhdsczaKtyiaw1pA72oBQMeCeOo46i5b8SLiPnB2254B3CEe9TXjyLD4nxTRYs3O+ZfbH1aZOE/AwFdvYrC0TSBciny4b5AWG1zzzL1K12+1rHdtpksAR8EkVIoTRqhGdgUXix8CtMxVGA6OhireUG//eKicLjgGY2M3+LBT3cvnxzknvU/eobMH3e25ViOOwLSw3DNFhoQYQh3qRmDUY7mHG8bc016qLH7cAqPoT/aNXor0MKc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL3PR01MB7057.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)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bdbZ3Z4V9gTkRT8xWHx250hkp+cF71TOln+g0X92+tNx+/zc8RPtyeY4rLmsO+/Dm2b5RJpGiWtBU+++3zB02GIDPh1qh/kswE3RFC2aLUKEP2Jd50wYJftQsgTPSSIx5WE0ohnXhoAXq3YYIu3a3Sow2HgENDB2l9eUwcE9HGrhZuI2qmNzLNdAceooO0W2sdtwpujRlP/7pUI00aA8aCVnrcm+Zf09gvor/gsYOp6mou8CyoepfuEfDUM9qEgaZn4eqW1kyv0vHFXXcuJt9nDKOs8r8DbypH3GDwCg7AIi7k/CcHMBpSmFck8xvIUC5YIQd3n9Nbffpiq9lHJCvgzssYNGV4YiRmmJqm5hOjbEseY9o0H5O/6Jb1uvULMJaNPj1S6l9jwwehbY8aTT+MDPOFkMag04K1mtiFaxmQ+ZYrQpUIKj8oqRv3Ha9wL0avBf3M4NrLEPfzKUdNUlvsviF+jg31V8BKouGlWMwUzkdHy5pstsR5L6SgqROvGKlcHA2ATsUud65sIwYH8eY7zdgHSdFSg/U3xHFgYFt86k0ouY8TIYjKt0nzgUmwFCm1Bbsk2r4ZrPgiyZfZaFH47uPbMklFTXnqYsfSqBLSyS2evVItOl49CiG+0dGjAN/mrvTcRMokA60Tw= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1dad33e6-59a2-4712-9c74-08dcb5e80b96 X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7057.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 07:19:01.4676 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Kf2FX9iVLjkY3VGxFqt00z3Ubf+QVqCx3+abJZ/z9oe1uaAWRRBUFuamt+Pfgt3J/gOSNqkvrZY3Zrzn4G++a3/3KpZL7TzDhH4QOA9WCGTCs0aPya7rWbk0kJ8CuT0F X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_001903_919279_5E901244 X-CRM114-Status: GOOD ( 10.50 ) 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 Define the I2C alias ports for the riser cards. Add the i2c muxes to switch to the i2c alias ports and the eeprom nodes to read the FRU contents on riser cards. Signed-off-by: Chanh Nguyen --- Changes in v2: - Add eeprom nodes to the riser cards and update commit message [Chanh] --- .../aspeed/aspeed-bmc-ampere-mtmitchell.dts | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts index 1679911e4fd8..4d2f6e5348ce 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -29,6 +29,18 @@ aliases { i2c30 = &ocpslot_0; i2c31 = &ocpslot_1; + /* + * i2c bus 32-33 assigned to Riser slot 0-1 + */ + i2c32 = &i2c_riser0; + i2c33 = &i2c_riser1; + + /* + * i2c bus 38-39 assigned to FRU on Riser slot 0-1 + */ + i2c38 = &i2c_riser0_chn_0; + i2c39 = &i2c_riser1_chn_0; + /* * I2C NVMe alias port */ @@ -551,6 +563,58 @@ ocpslot_1_temp: temperature-sensor@1f { reg = <0x1f>; }; }; + + i2c_riser0: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x2>; + + i2c-mux@72 { + compatible = "nxp,pca9546"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x72>; + i2c-mux-idle-disconnect; + + i2c_riser0_chn_0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; + }; + }; + }; + + i2c_riser1: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x3>; + + i2c-mux@72 { + compatible = "nxp,pca9546"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x72>; + i2c-mux-idle-disconnect; + + i2c_riser1_chn_0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + eeprom@50 { + compatible = "atmel,24c02"; + reg = <0x50>; + pagesize = <16>; + }; + }; + }; + }; }; };