From patchwork Tue Aug 6 07:18:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13754493 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 BCF53C3DA64 for ; Tue, 6 Aug 2024 07:20:05 +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=IybX/xWZctyuJQSm4ttyCDf0Qo3/yZxSsRESn2e071Y=; b=ZrAFQUwng4+mbVd2QQwHcXMQ88 OOdUfgBaqoArou1R0kF+2vIzHBs5xwfkCjfUkUBoghQKhbpMCgP7hkMZOC4V0qTQwDO9sCYkpu0Sf zKTrUN+SxX9PWIZ6mMkg4yUuaQreNiMg6ZumCJkE9C0XzT+MZ4V0UIYA1PFUFCAuPI0hl+8sBMq64 yA99tR6QGwKb0701/5sztNjPAhg4PmKg8D2R4//AFGAxfJL+qM81hP7cXkdOmu2ZtNMDM95x0nQb0 nWUjVJr3eo+T+QO8BDKcFz9/8nS2eh3S6uhainmEZY2m8YY0CHIk2pUp8zsIcIbUo5M9K/Ma94sed X2/E2JWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbEU7-00000000lKv-0AvL; Tue, 06 Aug 2024 07:19:55 +0000 Received: from mail-westusazlp170100001.outbound.protection.outlook.com ([2a01:111:f403:c000::1] helo=BYAPR05CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbET6-00000000l2l-0ZVT for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 07:18:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MAs7fNWLJ9WmNYovujCgwwPBG3UbVSUgtsSZkCLocWX1kscAgsHbm4+oA3E2l5xA0qfMHT0DvMUOaiFN1IfgQKlpOZfQN79T17J8Ane5VX97WK2J6I1r4WlE92N0iG8pE5VsxVuIjz1Hbgz4wtIWig2pvtbsmhMuGPwkEveDrAZoicLhUWyQj7UTSIUpaDs1nS3G/WkUqEyN5cXZqGyEJek0sBEpW0kanBvs79Qr3f3UV+gv0nFH++AOqf6BpoTKdJ+Yo2GTuSf4mJSEzIAjBO6ncaL4XEUQyvjLAt2/9qABqQmhtHtR0k9AhHn/FiMOrD5YLUsaLLBk9+l53eulFg== 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=IybX/xWZctyuJQSm4ttyCDf0Qo3/yZxSsRESn2e071Y=; b=nqloVIgwP6lqWit+7SWx5FvmiBxfCx7iBW/2wezLTKH3M/17rlD0W0rkSWO3bElNd6tZDaxRrjjvToe4mygS6OV4h5CXielDfbLbxSKDyvV6AAVyqHt4u2/aYS4/lu3ozbMbr00ZXVJsUklvsLt7B3g5nHVbFkQczjQZ0x3D9JSlKWY2sUP78G9j+EsZwl1OKzYJzLAIao3zS5x20B63XT6BPa//ac1bsLhUwmoAB5REoool6UU2+NPdyxZWXxcaJl0C2oHkLIq9e6tdibEGlSRGdMD17CcFpCbDvTBmpPFhcmmHJ4f4QjnT2XDjBJVQUzwBaXbqGCMBeVMeyw+cyw== 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=IybX/xWZctyuJQSm4ttyCDf0Qo3/yZxSsRESn2e071Y=; b=hpPSFCJ9eUUzoZ069lGNja2KZadA3ndOZc+haM194mBAhTdKk5MBcsI1n1byMBe+BwLeqI+JWJTD+yqljlIWHUHiG2x4nM+WHBFTz2mg6gXOwarMgamfC0xfA/orL9tYQdjpREDvngRay3JTyIbRSke3yCNddHe4oQNmNk9fGGs= 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:18:49 +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:18:49 +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 1/5] ARM: dts: aspeed: mtjade, mtmitchell: Add OCP temperature sensors Date: Tue, 6 Aug 2024 07:18:02 +0000 Message-ID: <20240806071806.1666550-2-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: 5b60d184-1fe0-4afb-fe93-08dcb5e80436 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: mqeODwpPKx9ZLRGSSudhl+2mMwW/fRugA0CyPzpyjfofrkFRW9YzPlGXdOsNUcYOovBjz92sIxFp9P0gUXgRJxCaSKzhD7CClfy+mHoDFJs4FEXVug3J5ymXycnCGDbByFPUggeVzutEfOLYfayzQoUh5O2y9P5cif4WV/PDz6Kkpm8wmRPU9l39c1BIXHiwvAijvwGVXKwY+79Nq8bAIeaMLvC7nMkItkEv00z3s+hBhS2xcyoUzXnrJkcIM/UGXgogAqKa3NeowQWZbP2CzrgjbB6Z4/KJr7Xqk4q+CbCrkHVhKsNpnTaee4z02qYaGAUVtoh4TsnUtPp1ZlyQv1RToxUCsTqQUJygEpTAzckG2BEDGHUgrDozgpmP9UguNg5fEt2Y9sth7YD9RLjkqAjx98cBMtm6G58lxDxb8Y9YPxnILFW1sky0Mfvt/TVZBL6iqYy7ZWZarOh3OYXdvf0zCOi9hs/kKP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NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IFChm4zb9oMkfFxx/mx9Dez7LLxgLC4SWYGW+M+ijwvvkxexY7w2dE+qmrqhwij20FtgrJ2BvHx/od+R8t7Yx613p/ltWKd0+wuCqG1xPQtu8NB3s3ANIeEo2X8eXrBxd2gwXCM/27nVq73vKKh9VLB/BZPaoFjbLbGRc0p9mexTgcoS7/kQC1/NMKwFKYhxszZMfE7sooo04zb7oIgH3MjKJc9kjEWrPqSND1NMdZZRylRER5dBzc8iEbLRTncbKs5z6nbyHNDRXSgVY7KXdQmNAq9mfCu7N1pOUUuyJYfZfLhBUFB5cnwty8ePpVoHzgNH/UPc2aMt8z8w6DQ9fLG0upecB3bDrxcAK5cYHAXHHKkkG50y8ag5UuUq9j51gJDHxT+uO+tnpoyYFvKu1K64zwX93xUnswwyTm03ibl7mDXey47PqfBXbPkqWJrsJh1C8Im15mhJG23TXl5+JfU1JAt1XvDUDbmMOPLZZcKBHrSFvM91TiNOFeYHHXiMJpSTUeuPKzW57iIvXlB564gu27o1OyB68PLbo2H+5mZDoO4BS43c56qHm8+5i0N8DpaTuSn68Zrt89DXmtOaUkxmVfcKjGZPnxCeHQzI2XnZqA7WyeEiFq8rpLmRp4UYs0fqcjNFqUrbnkP67MmNlGdK2EDzlGJHygYfhtVNay60sFSYNCk5wtNr+3SXpa6HSiSfiaMwVckhmVtU4KUJfxRPnhcyq877SqBjctF0VhIK/G6ElYWKmCpxRlsApAFirF9c6aos+Rqz2p4JfMxcnhoMZ+8+M/05gSwK7Bghlg3Sn2pBqTKAGFZR+zG2Vs5C6OlCmf+evElRu415qT3ajVhWEbk6rKe9IpHYBrfdQ6fba09o6KCOvjN8kIEzK++8a8eJ9R2mT7PzCE5iUwQzw1rsZ+KYuBiA/QWmhDRvNHhWr0F/aHyh0Q66XChd6SmnRfSS4F/ndRa4vzvZKTces0+L508xN8Nu+u+m0olbIG81YFDZUFMPcTb7Jj3IwpEO3qbuI8x02+3sU5qbGCnBIF/u8JXrgPY6AcRPtEgQCr7UKXKuCfAflXCb2M1sjwDB285C4bW7xP2Ld4CbJDIiKB5aySDjMickrvtYVi2VVV8XVEgjg43/8RqUhTVVawJL9rz7rVJ4xNXLTs2Adrnr4IeL2q/vi1DTGBTMYOYWyyocZZqb7P/kzw8JFtmRg4cz/Hfu28Jgb+PghA41T8FpsJCA5TYUqCHM5Qfodim0LVvSqSOsucCOzQZH7dVgoby3fDRUVUBfAKoZIs1YM4H7rATDbyfbGr9JXmrSdOnbP7vhXWPAPEMXGiDbEkJQb5M8U8jV8c7fNhFkoTF60OdxvPoGsHUJ3OeBkFaLRUEGeST+jvek0q5noR9XqQJGkNhDlDoeo7YBq8C6/OypnWKoG/17CpX1o5pTLzdUO/w9BbREtEFLwMw/AapVZs0DK4MYqrPIMoMXYJe4gXXp5FhRPF2WDYMGELMC+RRqqtWh7z6BN/0Ygpypc1giC/fc9UtxS2Ocvv8h/XkRjz1v1rmn3b9KwQQoSXYfHckogVSGiGRK2S3g1hLTC0F8cXsldrHFdxK69o1g97nhtQKHVHULhiqfULrI7JAxkwQjjb8qRqU= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b60d184-1fe0-4afb-fe93-08dcb5e80436 X-MS-Exchange-CrossTenant-AuthSource: BL3PR01MB7057.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Aug 2024 07:18:49.1313 (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: PospGRv1+sxRw4bGMR46V4R/aPZSfVJ7bCkwAJSGd/l8ea/pwIJYWlEnykMHC/De1Z4LhRzZLFP2sVDXF+3XudA+U7XDw3DvJzdSunJklBEJ8bzJYdydptDlhvMWVj2V X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7770 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_001852_202319_325FF6D0 X-CRM114-Status: GOOD ( 10.28 ) 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 --- Changes in v2: - None --- .../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>; + }; + }; }; };