From patchwork Thu Aug 1 09:12:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13750030 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 1D0F8C3DA4A for ; Thu, 1 Aug 2024 09:14:12 +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=lepgMtzYwEzEMD37nLWPujz3Rl7I6dpjLG3jeX2qi8A=; b=qqVQUFIif/tgkJScz0MbjM/+UN fZngtKN4wIAHx9qytvfse6SA9JRIBr0L3sR81ZWo9YozgtSEDPuc5fSd2yFr8F6z37Uly4Raokpy0 miMM18TIcp984vMu8K/1q2aqXUcYatFV6yyVjVGWHJYrFbkVPpCDxiZgSW2Zk4kAdUQi2ZMIrs7Gm LU9KyWXO3pgxgt8j+ZkDhXLSJAMD5Jccm+N4yPHzaVsilMNxy1PzOtiQv1L7HHxlHHJYuDL2to+e8 dc4Uxj1w9zmeDHwZoAk5xbJjgQooaIPy10Tsi3l7po1m9dJBX0yZ0/1vzHKFR/sRN+aAJuamVCXyl Ix2DIiWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZRsl-00000004UdV-2H1U; Thu, 01 Aug 2024 09:13:59 +0000 Received: from mail-westcentralusazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c112::] helo=CY4PR05CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZRrr-00000004UL4-13rU for linux-arm-kernel@lists.infradead.org; Thu, 01 Aug 2024 09:13:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ofe7HhceEVVrDwxBUQh2VArDzB5E5mi9L29blWyF9oFxrcxcVZPMnxv3qnLj6QTBXRtBTkv3d02b5quN4/n86mNkuyeKUxAveWaEBsOzuq3Ym+KiN/Qupr1jw410pO8CW+XEatjCvbcOGJ0Gk998ZxeXdp452A5GPPUJcUlwPpH8yGX3Ij5cqhfcQvgRsYd8B98hubW0lW9CG+N+gKBNF7+B/TvK+Pie3VaLnooZP7GwpaVDkpC6IFZ7SPvTyOWVVc4kjYCHGOl8aEpBn2GM1O0VwdkDKWLtZxteklx1/MYOUCBuJocpiQ3drg3qEhHccUkyym7Z9+tza+Av1Stiag== 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=lepgMtzYwEzEMD37nLWPujz3Rl7I6dpjLG3jeX2qi8A=; b=xvxHahSHAvGCeBAowjKYO7i3FmgEdTNMDq/7mErxrTc0Pec5PKautHcJd4p6cgrsMFpapHgHQQKq02zToYHAL8zUttmQ8u+AqvF3zRE+wLbB6EjYbXMD8oCTERqk87Z1HLrARw4yfxe3oSdNBHYHwoiNtBa7JhZLhAVfKi/4zUni+uANgwazDpaHwbO4KkIIIX/ZcVLn1MRoo0Wz1ini+tamY4K1tECLHfgognQdB6I2f9CfSCOUM56P99ylqXs1dC15E8QkZK6Kdv9wvBV5XedpugEgo7IwK4clrVFRf6cgW9Uc6h4Ifahd3zW38shgHfDyvl8uY4k0kOVNL0U7sw== 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=lepgMtzYwEzEMD37nLWPujz3Rl7I6dpjLG3jeX2qi8A=; b=vJNFYNx+u4S/TjYwYOSohlfOI37JlNZz/C5AQXAhGIdYuYfzU/0mzW87Imvwo1O2XktSv9G4dogQmAuEVeDLh0Bog9kMfG1KSCGbg94rv1NWDekym8fLvrqOo3p9zQia2TJSygFOENgA4Ktx1Hh/QrM6wAdbtJicfpXFevSF8gs= 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 SA1PR01MB6640.prod.exchangelabs.com (2603:10b6:806:1a4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Thu, 1 Aug 2024 09:13:00 +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.021; Thu, 1 Aug 2024 09:13:00 +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 1/6] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Date: Thu, 1 Aug 2024 09:12:11 +0000 Message-ID: <20240801091217.1408809-2-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240801091217.1408809-1-chanh@os.amperecomputing.com> References: <20240801091217.1408809-1-chanh@os.amperecomputing.com> X-ClientProxiedBy: KL1PR01CA0105.apcprd01.prod.exchangelabs.com (2603:1096:820:3::21) To BL3PR01MB7057.prod.exchangelabs.com (2603:10b6:208:35c::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL3PR01MB7057:EE_|SA1PR01MB6640:EE_ X-MS-Office365-Filtering-Correlation-Id: 70e8009d-9ac0-4b1a-6cca-08dcb20a23f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: Envy13s2Cl3Ftb8fmttqj4mM4L5BUC2JN4ulNBL/yd3/hKs0m9NUddXFV7cUFSn0q+zbhEaOynRD7xacNMr4mKys1reae32RTJvS40RIsaRRLQR5AyGqcaG5iQlZ3Hov8B+tD0INCoXhZcpkjxeYWBRnu06Vq0t1gy9xeR/Lt3TjtZ7ZJMXGa/jtqkWYbrFZ73EHe91eRGsXvM0lai31VzJH1WqsYv+ip7HoTwNtwabc45d1C8I8sOv88vS8/v6O8iKv3irTroOj1wg5Qip2Gsdqzm4uv1O91LLQSJKr9ctTANH3C7hx/pen0eCbHXEr77aOoXV1ObovfxyL+QosVIJmgf0gCoXW19r52dKCVxvMIFd20RRGknESSNR/Wv8F0GX7mcbcN7CDW0KYrbfCLF34Pl87X+micAPdONuTlxShasTL2XiGREbzejpL8zsMQxvUGFOW6Oxr9INfcLrTeHlTKCT1HKG8/7e/4bZCDbp5/aVeMQWfCVLLpcroZDDOcXuat07btF2oAxLWzsOaiqMKZl59Ti5nzSpidWjN2C9PfhuInHEgqMeBfb9n5b+dECt5i55Jyt/huFWrCusKdiBDQl+3TBwXwryEEGwAn8QYxh8ZaEf7BrqNJyW1sZ854l+qya1gBHcCXBf76rWLuHeViId+ZH/WGizLPoeXJxZYXPWUhoBk0DpZoZMNMqAU55fl05cSzvxqzW6GxE0kf9RV4T4ijfe1z5pBGp34SgnF+7F9+oIVRz06+NonvkVx3rkEgRu1o3WgixRjv+xTliNLTYDAQkV6c0E80bYgEo4Y2BMT9JY9IIf/3YXRlbtWYVgUkuzRptv3IEX+Oljjpq043+W73hw5zk/Nd082vrTLguIxGDrVMOB+sGlEOEYE8G6Tz8MgtZgO44A6yiksZ3kucunwc2SX4VGTvHirHlcumQlpAOg54houn45gfZDZrRgnU/b5yT5mgvFzrcA359hh8VFTeiJX2x0+T6aUl1bqrO0+GNq89OBL+P0yGrlTMrnQYOocFiAn1ccNjOV+s12HDBWsuaQ99b0qXyjaakZRYgxm0Ge07TGEiMrRL0tVhLBmtsAPPInvnMFOZ+voPQP5BhXPeVR46JW5r9UxVQbHzkIz5vSHOfaCTqaZ1kvuAnWUJiReVzk9r4LL8Vs5uYA3nndG8/TTWZwEE3qhM0stev856QJNGjkYidWVD65IdrWEU858HSxxAzZ4eJu5W5nbyImNoboTsaWS9SeOW1cl8IYt4sDjDC15JCght9AMrTiB/PyKzyOCyweC+Qtx5cZgtJHkAUm9biCP/61cKktykkpSp04D9MsAeu1Q691ey7XFkUVQ6QVtPJ/OgEMO/WJi0yRjt2BBoN8DremVfvvfSq7CYGnUHUgOHRnWJNI+bDk+VfF9PEA3S9fJbBm9BXIHuuHZ8HYqShnuWMWub88= 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)(376014)(7416014)(366016)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y8gMMveHY4q8GzWpq0OJusU3unIfal6jPxQ3W8AGLv2piUP/M23AdoII98LOW6PzkmF3yS2EWemo4KRPKsq0w9g9S037sZ1Fw9x+TmJL5GoG+4NZgqydjDxeC6W+H+jR2SRL/9hETOi/OWkYP/JpRhD2spVJScUNWLBdbTHIzPANx17hkWrrNFXJryYc7cDf2tLeuneyVHlBYrfuffxX8F0P7Wwr1BLzUYec7fzOLWVunwCI5IO0U6eggYK9M/xnUbtipWr4kWeG4psUPMtLiFkO/Q6x3KkdrRY53GfvwR/cZXPMb30paVffWT4HioPcs0eipmNAi1mk8Yh2Bcs7KBmmtXxD98EHbjIScnKzPqc9LhW+lHl4mlO2Sq845XsLf/o7+e//q8Q1zT/b+ajZskaB378sRSvZ1nzFcPlwF5kvhskVLXLfEB5LrSF5a5CanKFon9eWNFe2vAZOEz4QRnY8u6HzNkWiOKggnq4VUr01gxz/rPrQNw1AF7n1Ijzj8QVGPSAk4MxLzQSO4g/QzjnhkO46aMPBmPc1WB/xaaEbkhUMI6rwv1ZNEbbiwIGw0BRFgu4LD6qzjnR0X8v78IogyQ2skK7DfUubCkiNPTQGi8T2B8gQdUCt8ve4mJeXveXluYIMhcEmAWYtbKDRVfpIvQuBbqpDhpLZwkp4e9cSf8ALBMHEQgp0KjqcEXbZeo3LjDfupAMnVrZ5iCswLpIjEFe492xav3hfc7LbJGoP1dz7AM+LX3+uVctQv6/lrjdcFdGHvoFvkFD47GrfxM1VpUe3hbBKqNhtobvo9pJ05h4A+UG23U6cA9m2cWmV5N25NfZaKIyTV9kSZ9CwwAi1WeiJhYIZpcJJxveMwWhCxLsz5ee9i8Rzt/KVkxMV92lngYTnCnVIvt8//TsTGGDoRpZGJG/XfKCKAuJc3ofr+JQJ5ReoGnNuQbVhrlPTe16Qwp77QbaPjGc2dDfi/ydfYvGEYbI2lV1y/sNd6juLCA3O9ggfxARLtrfz2r7WgYZDZq3vLlHrpyNhkF01vnAa6+eHJthvXi4MNJ/XmMU4E+6vr1o5jpgsObYJvNj8gZBlOMM3cSi75rYZXNLW4b+ARTKG6OH1ThB3AR8djMQj3Wi5HRCePNdsMAPOazHqXtH1Upv51kNkIcS3y62vcjxTdFL/FevPNToGF+QI7Ti+o8xp1VJUMSwmjMhly/d96S46fe4FOKTggdmZijplsm9Gk92LWW2C3ELw6U3xg1p8THS8cyFKWvyKDZAwj49GMvaAdCZJcNj7OR/QMLgUXBrP9SfNhMiHnIYzGd9X9yCsCF/9wCi2djGt6tIn14W+fC7K5Dt4lonzJo5XvPjypd7KXrgsxwJ+r3WuncjwHO3rc2bnrWdocW56qMg8mohMl8IbNbyaO2Au8V83kdAgR+wmLyFA30y9kOLUeyqM1N7rkGPGfHVKgZDn/cRK+kdt3PkmXZPmibNN/LsqBOmHbLAw/u+2junQ8ouoFH/QXNvDxbVDxFIwNs9TAMHHOdVAuXSpbSy61xXlvQxt5S0WOQBEDkUgg1vx4+IZ3scKmiuhi5oC/4Ttx1/R7gKNzddZgyX20Pv/YXtYw4TWpbkukOZbmxuASkhFT17lvrbGFT0= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70e8009d-9ac0-4b1a-6cca-08dcb20a23f2 X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7057.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 09:13:00.6175 (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: X3h9E0IXAtcz3aexkUg7/B3D847LJaZtEi+KeAakdECSRVZpU5eU4DzhTMzO43hMFyOdf5ODrzyywMupz8sqENl+BumirlijPbr092QVNu3EEaa7asAabxB/IXPvQdKq X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB6640 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240801_021303_320321_7768BC0D X-CRM114-Status: GOOD ( 10.22 ) 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 I2C alias ports from I2C Switch 0x70 at BMC I2C5. Add the tmp421 sensors via the I2C alias ports as OCP device temperature sensors. Signed-off-by: Chanh Nguyen --- .../dts/aspeed/aspeed-bmc-ampere-mtjade.dts | 16 +++++++++++ .../aspeed/aspeed-bmc-ampere-mtmitchell.dts | 28 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts index 8ab5f301f926..8102f41d1d15 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts @@ -49,6 +49,11 @@ aliases { */ i2c80 = &nvme_m2_0; i2c81 = &nvme_m2_1; + + /* + * i2c bus 82 assigned to OCP slot + */ + i2c82 = &ocpslot; }; chosen { @@ -420,6 +425,17 @@ i2c-mux@70 { reg = <0x70>; i2c-mux-idle-disconnect; + ocpslot: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + ocpslot_temp: temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + nvmeslot_0_7: i2c@3 { #address-cells = <1>; #size-cells = <0>; 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 3c8925034a8c..3a97e88278d5 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -15,6 +15,12 @@ aliases { serial7 = &uart8; serial8 = &uart9; + /* + * i2c bus 30-31 assigned to OCP slot 0-1 + */ + i2c30 = &ocpslot_0; + i2c31 = &ocpslot_1; + /* * I2C NVMe alias port */ @@ -515,6 +521,28 @@ i2c-mux@70 { #size-cells = <0>; reg = <0x70>; i2c-mux-idle-disconnect; + + ocpslot_0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0>; + + ocpslot_0_temp: temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + ocpslot_1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x1>; + + ocpslot_1_temp: temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; }; };