From patchwork Fri Aug 16 09:23:57 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: 13765823 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 66EC3C531DC for ; Fri, 16 Aug 2024 09:32: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: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=fKZ5ogJ9/YHI36u51f7OMva5yJpzuLKM9pz7+UUgD64=; b=J67iZdvJXvegWOpu/+bRirEfSe AfXbKzTalEmKJ8WLaX8BgpbEQkXSpcRp2PKETBtw3BIizmjdBpSkW/pu4DLF2Zsu0OjA1q0S3PCUn hp+xx2uXD8NxN8YsQ0BPImdiBfBbCBinJVPdUyAt5WTYJZ1mSKcG1dAgs0jemEk0+ub5tjgMAEoZu JEj6P/4OF3ny7ou6ezM3Yck0srer1B2VYdVYu7FdGcb59FaJWXBtZfVT5j5j5xKp5NcD+ddVtmEBB 2BpGo7MpwqA2Z6+RrUkA3HBd3UtFMdUXVj5JUmhHpvB+O8N1VnDedhEscdWiV1Wein/S+ghdc9bje Sqb1v15A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1setJK-0000000CQab-3F1Q; Fri, 16 Aug 2024 09:31:54 +0000 Received: from mail-tyzapc01on20601.outbound.protection.outlook.com ([2a01:111:f403:2011::601] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1setD1-0000000COs2-3eAm for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 09:25:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oyTWIM8kiCXhliZDwifHDEvR3PupBJ6SK0HJG5j3Ovr5UlrGsF+YRgAmhNWcj3tnwC0mtwVLVfu/utnpoNLN3BG74HZ7VhCflnZJDH6Bh9yykeU9eoysIRBfyyGZ19BXb5idstepEHv/zYzEjdocjnuYEQmL4yIPagO/Xdtj/xvYE4ZRNXFlUQ5Onok9OBNQEpRxpMgEeK4BQvLCzKMBthowzqeiL/IQYu83Bgwe/IM3rr63cE5+iisNvf9LCinjGvdjtBdfyNBMGB9tIGU/+aa9NTGYAf9APnVwb0wXx2aKtnH86X9p6FvC4bW5WFzaFfrExce3NDcUNf31syimxw== 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=fKZ5ogJ9/YHI36u51f7OMva5yJpzuLKM9pz7+UUgD64=; b=G8TJGoY4/KfYNbTXKDpe4Zs7gwLKAfOwSIGnzsFA4O6XiZTDM87J5vMN6H7KYzyhTPoEiTAEQ5QHyrPNJY53InfELLeice4yTqnlpK8a0pozJeiYjxArAWN/ivq1LYQn+lxtee4vRJ0JAKImpMFydpDL7PzruqH8IpbOOQU1KM470FO1+ecue7Fwl95My+Byn5IJNMD9ezQpOlLJtnAH8l6Y7ALeAzGjBtVGMeODsgvI90fr4fCy5+GQp8IciaUvB/MW4NDXa9WyZa2BZRouGKfxhBlXuahUS16A3G6heGk0EkfmjMrIfgku0H+G27FhNs5pv5P1jaG6bl09Bny/6w== 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=fKZ5ogJ9/YHI36u51f7OMva5yJpzuLKM9pz7+UUgD64=; b=05ub2ptyAc9AAgIMIqikOUQ3DJu2aTvqyAUCtXJCvNdknrWxMnUNThtpE9huL/NuOVjcpRjLWOkRR5fx0Cm21zfwZMj/8brm+PqTrMbLo6HPofDt8yjhawVIbpyXq20lslUFwwvpCIJ2965nSh619EkgVIR0SIpt1pst0EeP65PFixx2RY7ggXHKVtI+Yq5wXyNyqcYouDU8hWuvwXG2gCrD0on58xkId3zu1x1InZMg19UEVnlll984ofgw8vHGRSZh3+lRqieoA9YB3vLpd5PTuXQJMT/r5b4kpOyi3I7ZLyCa7csTT+VuUleZGQsR0cBJOFUtdBiY050ED4EotQ== Received: from SI2PR01CA0039.apcprd01.prod.exchangelabs.com (2603:1096:4:193::16) by KL1PR04MB6757.apcprd04.prod.outlook.com (2603:1096:820:d2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19; Fri, 16 Aug 2024 09:25:12 +0000 Received: from HK3PEPF0000021D.apcprd03.prod.outlook.com (2603:1096:4:193:cafe::9) by SI2PR01CA0039.outlook.office365.com (2603:1096:4:193::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19 via Frontend Transport; Fri, 16 Aug 2024 09:25:12 +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 HK3PEPF0000021D.mail.protection.outlook.com (10.167.8.39) with Microsoft SMTP Server id 15.20.7849.8 via Frontend Transport; Fri, 16 Aug 2024 09:25:12 +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 v12 10/28] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Date: Fri, 16 Aug 2024 17:23:57 +0800 Message-Id: <20240816092417.3651434-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240816092417.3651434-1-Delphine_CC_Chiu@wiwynn.com> References: <20240816092417.3651434-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021D:EE_|KL1PR04MB6757:EE_ X-MS-Office365-Filtering-Correlation-Id: d721b589-5c9a-48fd-7a01-08dcbdd554aa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: 7pa49oYdwJ0efriCl2AHwxZW7OuBBeSToUIc5InIEW+Et6+kajK3ApGeyMf2HAMZXw5zg4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ty3Hnnkk2uThQjPghqVUOMnLwFqXpTkrvvgCnDtD+2PuyRTwF6KFDHknxKEYUhDoSQO2vIVT8iL6yxVVnIMODl8V5nvA6esEhPKOsno/ES8E2olVHgf6VlbitoLODYgb3bS6Few5YZUJ7VQhKWtj3H9rOSTJq8xu6MbVonmUWUQdzygKXIrUNZltD0h+tTbUKeksvB4DmiB1GPbd9R/PbRO1GfhPEPDj10jRzTd/MPWXkl6AZ+IIJerE5/i+sgQwarSDp+8uvprmkTkmjABS+kFI0+Qm2VvDN0HrmrL4Z9Zeb54YseuI0rdmk2tV 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)(82310400026)(36860700013)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 09:25:12.3722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d721b589-5c9a-48fd-7a01-08dcbdd554aa 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: HK3PEPF0000021D.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB6757 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_022523_957894_97FB4452 X-CRM114-Status: UNSURE ( 7.90 ) 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 09bbbcb192f5..139a09de24cf 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 {