From patchwork Thu May 23 08:03:15 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: 13671393 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 C04CDC25B7A for ; Thu, 23 May 2024 08:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=u03zeD4WXEuM26SqiB1ssAzW9FG4jEItl34edXYOTbU=; b=t6lIU7ThfZIjyi 0WLIMX50I3owp6BYLdt9mAqnBdUHX/Ue0v5Lz6hWi1xJOYOArYKo4aCFwNe1lzyCqidqc8zXqNQgB qhaJCezwOmaHjFvw356MOejLk3Y1qEUfLnGLYS3JxD9kA8GyyzEZDwkxD27VmyfCliU1eygqALADP uDLnIRtYtTwYO32rUEvc3o1MpXwnTx/5S4rCpGfxMxh13vosHqrGmBDw2t2le6GtmcjpyqOtP2WXB q7Uryd1p06ECb2L2UxoRNLgKX48u90FYal7vD1H9H6IqxStcBn/9wHjQ8bNbimugskKPslva7J0J1 /LMdc/9lEMn62rG+pGCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3S9-00000005RhL-0MQg; Thu, 23 May 2024 08:05:33 +0000 Received: from mail-psaapc01on2061c.outbound.protection.outlook.com ([2a01:111:f400:feae::61c] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sA3RC-00000005R5H-123C for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2024 08:04:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C+tFrr/bKb2Vv6dMuPYULJq6oDRTM1EGQxzKZl4KPfmsXckPpn9jfxgBFYV0hKfzVhLqPoqs/2k5dB6j4J2ge2HdzWIKyHoSS5JqHl0k7HjSHoxL4APUqxQ+f1PgX8Z17rDWQnB/nmMRi+YwtS7dhvtSBGZ29xuHcArM8Z4qOI5eNHZHWPVN0q2gG4Jfausepn9omiS/St8V2rL3vgJsqSwIp8hNeAMIC6OZ4z/eq20hV/vqgsR1d1TnxpI+ud8f8E0czWPSoJEIOJLfyhvKrFKN0LstMTglppAthB2Q8sYCNDtbyveQcLN5BC3BhH+fzdx771fEERyKGuVcIAr0zQ== 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=kI3bKMDPLWbk6RBYcQiHjwmNUCucfIproInl3Q5WK+gk37i2Zhzvp3vIiJIURWAzltTcMqe2+Ul+pCAufffgu1jQAmaVdjYUn4xJDqXREnFC2PHuATNN4zPwdU3cMn516w6qyMD6g/Dw5YLduM+4S9LJ2dLkWcLbcDajh6TWo547pPj1u5u5U8idnu/tyrKrjH6vq41zCGcaD+8VhAGoF0qnOK/cveJRGOxXWs8eMhX0iOn2qL0ivHHRCkQiU1E+CW65gMCQxMQAcgzQwSX1bTCRdaqexFHEYbdh4vclaKWdISvp9uChL9OSNOP7eq9ltquLJIFjZd4d95cbJypCpw== 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=xhz+jW1Vk0KyOkRtjK0EqlBrwKZbXfPYL5MVB95rgC6gIHAJ2je+WDg61W2DMsOL2R7z7E2Z6/KkgYylvpIn0yvfTC9zwy8s582fK++OrVbKyMHKfKNdNX3xo/U5dtudERezNhUgPlZ9HFrxkDnBCpeQtgCiACBzKLrT2ocKiVF3Sys6oKUFV2fg8LBj5SRrkL/qVgH1uJVXWWL3gXI8ucbkXrd8zmTuEK3V/2ow3xKJ2xqQEEMwdS490bQb162YZlGzKBrGB4+4vU4y037fMq1f51FrtdmZNaW63F5l7rdnHEOaZa3vSP8oae0ypKclnaGtb46GqzJ8iN5DSHxeYA== Received: from SG2PR04CA0170.apcprd04.prod.outlook.com (2603:1096:4::32) by KL1PR0401MB6210.apcprd04.prod.outlook.com (2603:1096:820:c5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22; Thu, 23 May 2024 08:04:26 +0000 Received: from SG2PEPF000B66CB.apcprd03.prod.outlook.com (2603:1096:4:0:cafe::73) by SG2PR04CA0170.outlook.office365.com (2603:1096:4::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.22 via Frontend Transport; Thu, 23 May 2024 08:04:26 +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 SG2PEPF000B66CB.mail.protection.outlook.com (10.167.240.24) with Microsoft SMTP Server id 15.20.7611.14 via Frontend Transport; Thu, 23 May 2024 08:04:25 +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 v8 10/23] ARM: dts: aspeed: yosemite4: Add power sensor for power module reading Date: Thu, 23 May 2024 16:03:15 +0800 Message-Id: <20240523080330.1860074-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> References: <20240523080330.1860074-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CB:EE_|KL1PR0401MB6210:EE_ X-MS-Office365-Filtering-Correlation-Id: 6edb7e3e-f13e-4f04-3941-08dc7afef6fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|1800799015|7416005|36860700004|376005; X-Microsoft-Antispam-Message-Info: LweRbAPssIX6HxSnSjguftoX5+vR4D2KIibCJYMHu8tnVQtUzRXcvsQTJYNm8uaHh7fqMmmUVNmJqutOpd7yuE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FQm9u79sNmV2a/+qeN1ugkjWAKAWRAhmM7F4yUYQOnCrKqcHR0tO2TztxEmYzlqIFtSUVCaeDDKCqbBo/Wn7aajPlV/XS/Y/hX816934HGZCks9rCCtMCp5XBT2xSY5GpcS/bSKUL6WpnmjqdnYgOGukbKw9a8fFk+GrGYbZnsWWoxU9wljxKQPRwx3F2uC5QlFyNXJQu7ARG4AlAIdPe3kNrTwzyQF90p6jeo56RA3Wo1BmjvklhwXKJ9F 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:(13230031)(82310400017)(1800799015)(7416005)(36860700004)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2024 08:04:25.7342 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6edb7e3e-f13e-4f04-3941-08dc7afef6fe 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: SG2PEPF000B66CB.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB6210 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_010435_051077_843136ED X-CRM114-Status: UNSURE ( 8.37 ) 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 {