From patchwork Tue Jul 23 09:22:51 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: 13739773 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 79A1AC3DA63 for ; Tue, 23 Jul 2024 09:27:38 +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=CRXrAsVuGp+jERo/uDCwryoOBz nc3/HL3sk31yuWgLfhqMQ86TOyZPdXpcbukD5cU0grcfHvQnJgKkrMmq64QkLvPQbzMatm8q+fZdZ IplCv/krutpzzrQ1CQHcSjVLu1xR9OzheeybzItxSDjOjGHqU/5+EqV24GEiicEyUqowtPwm1Hs5S /kMmQTtYzXLdnboihfoi3SDXn2KlbV2roWUv4GO/kh2HKNxH6SmKvJsiQukMRzwLX1wbOcItzDnjA MjXjJGJ7V9sQNj/k1V+2ppISWE7nizPJSRTyIX7BqR9FAFduC3Z1XkPHMjRbZqC3bWY93QjnhIPNa YBFU27tA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBnr-0000000BzWt-39gX; Tue, 23 Jul 2024 09:27:27 +0000 Received: from mail-sgaapc01on2060f.outbound.protection.outlook.com ([2a01:111:f400:feab::60f] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBkX-0000000By6U-2oGi for linux-arm-kernel@lists.infradead.org; Tue, 23 Jul 2024 09:24:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Ib3OEVcOujPdTood1s3JLeHRXzfHQSHkN9JyRXr3S9D9lyXN0bpuxcr6M8Zzrp1ws+DRu+bSfr3P/W7ATMyQ9P2Y9U86cHAbqNtv5DIG5dGtDeDIXq0lfwujWEmd5aTEV6v42US+OUHBetJs/rc6ZBSGk/D3/b+XTPZvQ+JaA3vDJpFN1jRbsl2elHxZqpefsdG6dWusZymBaZSUz0kzQE9CyeV4tEODNjDGBf4tWfB1NjVyL//Ye6O5//ZdmBzwn2qTUNs/kxwSriD26Aw9oWCQKYz5pXF7KJdxmSinPPU/F/5UakPJF55QnOTiTdFiXg1PfyExlrbuqvriRr2B6Q== 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=StHAdMzfywtDnufxT5J6xqbyqhiBsypECFyrvIggS5a3MKIVhapsicl87mCL99ew0Gf0/nD2hIF7SBepT2gnXoB8+KlBzlWj03Ta+O3A3v+vwPP3HhdkfCqCxBlqKTCg8Oy8tC6hry0JHaPu++YrzUMX4mtWyLIBG0VN4PsMythNC5LjTQBbZwceGeVxUSH3L8VJ9JzbL62heSmS1ozc8NJHbkULc253umHbhSFT/SjNMWGdCG3/hlIc9QMefR3OXXmXbyOchWM7VfgOHB3TZPjTQFSLCW3q1S9TtRhu8OT2DqBXmJb67veUEf5knNS4qzn2BGCw+DswZ6XEr3ghfQ== 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=uZyKwh216mDmXgV+iz6OiYoaR7biAisBxxFQESGtz3iWa69ppEN6JZDc3N1IOuBWpxPSxtdn26+TMIhcbvmW8GwMahhPAgO1qNDg/ViehMAc7XOiGmOhRYUvcKm+p0g3PpvsL5qWJYcf6rDiUWqMHH3glTOcC64rUCt8/Ycd9iLC+6BIl9ku8pAr1EStcysv5ooxwdgj1L0/9tm682jHSy5gXMLz+4VxQWiRMMSSGm1joYfkO3B46wZyg2ABJ6LvKHz3UL9DkRDm89gwtkrJsWn9JBXX9LEBeMg/+QGHtygq005OrZXEMx+huaHiowdhpszyceEoTprmHT0mE0uuGQ== Received: from PS1PR01CA0003.apcprd01.prod.exchangelabs.com (2603:1096:300:75::15) by TYZPR04MB7589.apcprd04.prod.outlook.com (2603:1096:405:45::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.14; Tue, 23 Jul 2024 09:23:54 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:75:cafe::1) by PS1PR01CA0003.outlook.office365.com (2603:1096:300:75::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 via Frontend Transport; Tue, 23 Jul 2024 09:23:54 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.7784.11 via Frontend Transport; Tue, 23 Jul 2024 09:23:53 +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 v11 10/27] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Date: Tue, 23 Jul 2024 17:22:51 +0800 Message-Id: <20240723092310.3565410-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> References: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|TYZPR04MB7589:EE_ X-MS-Office365-Filtering-Correlation-Id: f276a6fa-5d5c-4301-8ef8-08dcaaf92bf2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|82310400026|7416014|1800799024; X-Microsoft-Antispam-Message-Info: ZL3ZUjLFTg6QsEEeKqTrpkbBDPCnDKwtBmgY6nBReHNh0B2D9301Mw6z9FZQw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jR/xjhDtulU0NKhfP1pce8T8eznopxH5AqJZvZjfdhBzkYGy+KpM4Uu9OFsiQxHYjVZr5wPjdaR34JVq9lHRpi7z8962SUqizDxt6Tyw6Kio+diZxt7FuKTlCv16uZJOgjQ1hprBPLSRvcAFgU3HjJhZLY6b4OdSJtp83N5YoCsYUKszS832Uf/6bPIuxDZ9pOmy2uHNaNzJoyAgUspsaQMVy3N8K53hokaDq+P3Uoqs+1UXI0Lz7Is401IwBFV7kPx+7afpcX7WCG4kK+YjAhWEixXnTlxitZXIhs93ly0MnF3efI9H1O9Se4fXEWpZa+8qFZ04KNL 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)(376014)(36860700013)(82310400026)(7416014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2024 09:23:53.8006 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f276a6fa-5d5c-4301-8ef8-08dcaaf92bf2 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB7589 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240723_022401_733726_964F6851 X-CRM114-Status: UNSURE ( 8.11 ) 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 {