From patchwork Wed Jun 26 09:07:26 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: 13712454 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 27705C30653 for ; Wed, 26 Jun 2024 09:09:55 +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=S11d+Rgg5XKlgMlTPsawAewq2X5TMPnusGFqrYm+mrA=; b=jC9Nr6jY32YrrEnTbLCSIDjZHb G9NIZzAqzm25h1MUqmimeKwfD1Dy7ZNly33/UM2Uc5Ru8oPN4iJRIsV9eDcVj6P27yK5Tgaq1/Rd4 Ja84tRmrSKRaOnnsK/ppIF8n7E1cpi4DuNT7jW67tM16SuEICtRPcVpq3nC6LZBjFVPUZBIQqjNS9 09/Hu6Y3E2pH4hQBSeSq3452jkRDA7UsSXVqhbUxPWtXvh8MAkoeg1WFSy1Zd/UNMLAsaRBLedKtE Z6xKtPHqPHklvCNaOu//oc24st5tHF2pUEG/ZOLLamnb/gM3re2H2fQm/p0J0zQjOliCfZxxWzW9W znCfvTAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMOem-000000063sn-1Lzw; Wed, 26 Jun 2024 09:09:36 +0000 Received: from mail-sgaapc01on20615.outbound.protection.outlook.com ([2a01:111:f400:feab::615] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMOdt-000000063GA-0c8o for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 09:08:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AzuzvICBF9tWtMYUmRjxOG7aq4bwxs0ioOghy7+EjuD9K+uVOD7TxSaUGqcoWcPlOV2L6yTRIsrWHLctawZeP56Xdgd8xmiOxvJbYi5veMHeuLwkRG+TJkQqzcfW7yYYdkUPOE2bYzSg1F3Tve6chVUlMd0kh8ALu6Rao2oTkngDkmBfneVoCO29Yy/3Y3Tmr3aM5ljZU71dqJQg0cvYxNzyoylVYoFc0bOFtcXENQpIlpERa1Bri3j/kDJFXK42AHOLH9klcA/fin9s10F1OKP5sA0EaEMnRJeyCYWVwEs0yDJ8HoX1U/AQ+Bgg8fEjgp/+GFtqCy+7IjuTELLz8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=S11d+Rgg5XKlgMlTPsawAewq2X5TMPnusGFqrYm+mrA=; b=M3yGdH2cwL+MFxklbRZ6SVRx4NQvUKPxZTAcn0BextOi2JOdpM2uvMk6FS5Ttfmw2Q70nxSaZcyU30VnHgzQRsevqJkXEQuhOu2V77AFwNTWKg9O4vP+nMOpIsTIymb+YwTmt/jzOYq5W4mudKqnx+iUBPlpVer0YJJIElTDRBFZ3vXP8bMJpCcUbNKUobCNZCI7bMwRBAEFvimkO0yzlorBN4w4X6EiMY4T9CKvP42ekxMuYvp3A8tOMFbwT4bMKgRKiJTee+OAGmy+5y+A7vB/FtaZ6GcLWY0/us7DiNhZOWJReVvIOSNCsg89mcemIFhrJsdaint6Ate0KuSlEw== 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=S11d+Rgg5XKlgMlTPsawAewq2X5TMPnusGFqrYm+mrA=; b=pIMZyt0/2uubIpuObC+2Kqs8xSMTzxqgh0+JOcScFOOVPCAM1b0y8zLk9+AQpHvVZO5JtJ4XTC9JkAKR6BaGAvQEbpjO/qlf2oCIiHzCmeXRoOLX69TvUvL3C0wvaGwry0zlMQ288B/0rGzWWKRv2APJh87vZrX2PPUqKywk0mX1dYrOuyOSQaTuX7L7sTTXikR5DNCz1/eDi7uFuqX4mEhmUPa9RucTGaw6qkoc0d5ja6vgCtKvCLi2XlEZhaFGOMDpUJ5QJfWr+knETrIyU/fYQ50L3+j8XOyu09oUV+w4DMsinGn9qW46wjrN3rw2Zx6agwIjlNdMrk/o/mS57A== Received: from KL1PR02CA0002.apcprd02.prod.outlook.com (2603:1096:820:c::7) by SI6PR04MB8080.apcprd04.prod.outlook.com (2603:1096:4:242::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.22; Wed, 26 Jun 2024 09:08:35 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:820:c:cafe::39) by KL1PR02CA0002.outlook.office365.com (2603:1096:820:c::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.38 via Frontend Transport; Wed, 26 Jun 2024 09:08:35 +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 HK2PEPF00006FB4.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server id 15.20.7677.15 via Frontend Transport; Wed, 26 Jun 2024 09:08:34 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: 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 v9 10/26] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Date: Wed, 26 Jun 2024 17:07:26 +0800 Message-Id: <20240626090744.174351-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240626090744.174351-1-Delphine_CC_Chiu@wiwynn.com> References: <20240626090744.174351-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|SI6PR04MB8080:EE_ X-MS-Office365-Filtering-Correlation-Id: cf707e2e-97d2-4e78-d322-08dc95bf8f04 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|36860700011|1800799022|82310400024|376012|7416012; X-Microsoft-Antispam-Message-Info: sn0CQ4K5iTTHE5duMo3nk1qSuo8N2OqgoDADEBX1aHJr6luw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GF96Dfpa98phdeIMN3SoLYgF289UB++NxnXLFZwWcYq/EXVS/i6mI6vviuUiQvUlhu0pilbbyp+R/TdlhaabDGU8mnndgkqJu4ndIPl1kmUiN3tRs7cNDHwOFHIXAWbwmcErbJzKADR1MXj3vHqts0LROthnu9vyljBz5eQO2IJ7/JqPx5Tzq3tlAVK0AFx+zPGgSm2cQnT2qVFn7bB0WblBBWdDvCq0M+U4KUu+evpeUo7mXEoQ0cW1+9U0cP8xEg7fgTkqHJxz61cCH6uluT9FASwD86LJUEsUj8N33uDF83BB8bJV+DU8fK8r9OQfB5Zp2eF9fnLOiF279 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:(13230038)(36860700011)(1800799022)(82310400024)(376012)(7416012);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 09:08:34.8330 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cf707e2e-97d2-4e78-d322-08dc95bf8f04 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: HK2PEPF00006FB4.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI6PR04MB8080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_020841_422113_CE38BF76 X-CRM114-Status: UNSURE ( 8.40 ) 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 Add power sensor for power module reading Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) 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 92733a8ecf0b..2ac872878acd 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -906,6 +906,11 @@ gpio@23 { "HSC7-ALERT2-R-N","HSC8-ALERT2-R-N"; }; + power-sensor@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + temperature-sensor@48 { compatible = "ti,tmp75"; reg = <0x48>; @@ -930,6 +935,26 @@ eeprom@54 { compatible = "atmel,24c256"; reg = <0x54>; }; + + power-sensor@62 { + compatible = "pmbus"; + reg = <0x62>; + }; + + power-sensor@64 { + compatible = "pmbus"; + reg = <0x64>; + }; + + power-sensor@65 { + compatible = "pmbus"; + reg = <0x65>; + }; + + power-sensor@68 { + compatible = "pmbus"; + reg = <0x68>; + }; }; &i2c12 {