From patchwork Tue Sep 10 07:53:56 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: 13798076 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 80F81ECE582 for ; Tue, 10 Sep 2024 07:55:51 +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: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:In-Reply-To:References:List-Owner; bh=82UjMnDviUCfoXJpruXdvSFIJEpdlnWeojGSnk0G3CI=; b=0FV7Idfl/LmZ3dkjGSHH/vF6E6 D79d6s6ZFiWGQG8nyDoduU4elPOVYxb9g3NXSv7jHREB+X/eLIcD0WGmYppf0ES4UeiXxFrdCeRLB 9uktnyFQYFRTowJ2eGDxDZZG5IAtiJYY3005dY1IMqIxtGhaHCrUgModXuLKNUe6lhmLKj3d6hOcz cb4UNsJZ8vikrlKu5EJzf6vbqvkl/L1Ww3/hcbxCyR05hp413QWGdt1lpbtEkFYMhe1Ldr5N5OI0i MvtT1AGQ9F1zm3Rf8nbdZMW7sZqUvLJsHglMS2ZR6S9TEtSASPPWSgcnqyuXTR+h7t7qztbp+n/PN DcoOfcDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1snviv-00000004gpH-0a8A; Tue, 10 Sep 2024 07:55:41 +0000 Received: from mail-eastasiaazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c400::2] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1snvhW-00000004gXk-0dzS for linux-arm-kernel@lists.infradead.org; Tue, 10 Sep 2024 07:54:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fCvk4Kb9/zBw5ReXLcbXwHMsxNSs4vTnc7inTtoARI80XXc1qElfWGsCoripc1O857yPLChyC///2gMbftNkpLjy7F9gKnk7wnFwJ/9Usikay/CsezxPI+4i7CWuD67y/sZxNmmmmF9OM4//ZEAsmwdLiVzCy5vSAER5VjEY//QJ2rAczw6YBAH9Y021gs9ymQlxB32Dh05AMdhemStdCiIhxUYURGS/rQuQsFfztjjF9sPmoRRGxHp+EFdnhm5Te/j7wPceYV5LJubmThOtM7vP6Uj8sHeJHfwABTmTT+0aoRpV/XSPb0HOq7k5+gjkAiNRomqB8l/WJWxa/XYlPg== 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=82UjMnDviUCfoXJpruXdvSFIJEpdlnWeojGSnk0G3CI=; b=Cs3CqzImjH9Hy4bKslGVGDDlKiWzf9XItKpfmkf7oLpodbvpmWC3bmWF5ERh1e8ysAuynQqg4ciweRykrpNYkFQB/+J7gZ3bAwR+NO+fRO5NLhxtCL6G9uLrW4+xrYTn6gjK6xP3liIOgZ7WQJyDlmXHMqIQMKjs9csyjK6CW1RoF5HNE0dyNWV96P3hDYU4VOyDEcMhAbShGG7A/9K/qXoeHWgwpvGxQ7vyy3iVVjtdmmlU8j4aK5v2Z/sD2qZfDqiw1iUAlW+PTbLYvfnc2IznMeUnC2EwF4zFxlWJ94wfA6xrMfjQpPKB4TO8XQ9re3E8zUZhyHbOHSmixQu0Yw== 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=82UjMnDviUCfoXJpruXdvSFIJEpdlnWeojGSnk0G3CI=; b=ApXvI83AuSwiiOnU7RSA+CGjk5RNM1oyoTA4sI/QeNai8bgYqTzu9LNrwr4ZOMlIyCshWprrDLB77b8+DUPAfNWk94zf0pvaiWVpbHYBoNzxA//I25VOPrvofdBNeswJI/5XKY2vH1SxyIY1xey6JoPguz1NdHLernTdWn+lo9MZEiE+GXGCF8TY6k0M1ZfbhCpJG7FfDd+cvy/WklGWNdsCZIP+M2ZBw7TnjO/iVU1D2ckrRIcWoghEXhYjiOZBoNWOpa3/SvhzCZ+8iELNbhxABaFv7de+XJfrxre9uD58gIU/xwAWVZaqSMUwD6l5k40l5y7IOPsVE4kMk0gnaQ== Received: from SGBP274CA0018.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::30) by TYUPR04MB6932.apcprd04.prod.outlook.com (2603:1096:400:357::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.28; Tue, 10 Sep 2024 07:54:02 +0000 Received: from SG1PEPF000082E3.apcprd02.prod.outlook.com (2603:1096:4:b0:cafe::db) by SGBP274CA0018.outlook.office365.com (2603:1096:4:b0::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24 via Frontend Transport; Tue, 10 Sep 2024 07:54:00 +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 SG1PEPF000082E3.mail.protection.outlook.com (10.167.240.6) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Tue, 10 Sep 2024 07:53:59 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , 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 v1] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board Date: Tue, 10 Sep 2024 15:53:56 +0800 Message-Id: <20240910075357.3531211-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E3:EE_|TYUPR04MB6932:EE_ X-MS-Office365-Filtering-Correlation-Id: 089af6f9-8ca5-4092-23c0-08dcd16dbb1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|1800799024|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: cTCP81XAn5pKeUNIB5JCufwbH/M9IZAr1hUvQPGdnnPLHEFCmLkFYSEX/R+1N/jGMN9ExHcYtea5QilL/x23JZCdlcBJHstiaLkNSsofhRsJUCPs4im59ByF10g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3D1zBld9qWYy0wL1apOMIrkgtPuBEnWg54ebw0guWwpFU2Y79PT5OHPY4uILcDUV4ZIaxBGSNI/+ztX/gMU/8JSJRpSofdtX4qipKRzkxR/yokEjkbFUT10KwP6iM5FN5kLOXc/fKMKXjLRuJRb2VdPbDp7knwYiLCUkjZYajxA+sZ221u6WBvvINfNXkKd/oU2VNazv7BicVwV46nnTdCOU1ZHqfLY8bnHCDohNzj3T4bPZVg8CdpEPO3EVw/kNhpnSQx2j+iFRHNbfeY 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)(7416014)(1800799024)(82310400026)(36860700013)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 07:53:59.3691 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 089af6f9-8ca5-4092-23c0-08dcd16dbb1e 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: SG1PEPF000082E3.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR04MB6932 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240910_005414_241382_EFC92D50 X-CRM114-Status: UNSURE ( 8.80 ) 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 From: Ricky CX Wu Add RTQ6056 as 2nd source ADC sensor on Medusa Board. Add power sensors on Medusa board: - Add XDP710 as 2nd source HSC to monitor P48V PSU power. - Add MP5023 as P12V efuse (Driver exists but un-documented). - Add PMBUS sensors as P12V Delta Module. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 45 ++++++++++++++++++- 1 file changed, 43 insertions(+), 2 deletions(-) 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 98477792aa00..e486b9d78f61 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -284,15 +284,25 @@ &i2c10 { &i2c11 { status = "okay"; power-sensor@10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>; }; + power-sensor@11 { + compatible = "infineon,xdp710"; + reg = <0x11>; + }; + power-sensor@12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; + power-sensor@13 { + compatible = "infineon,xdp710"; + reg = <0x13>; + }; + gpio@20 { compatible = "nxp,pca9555"; reg = <0x20>; @@ -321,6 +331,17 @@ gpio@23 { #gpio-cells = <2>; }; + power-sensor@40 { + compatible = "mps,mp5023"; + reg = <0x40>; + }; + + adc@41 { + compatible = "richtek,rtq6056"; + reg = <0x41>; + #io-channel-cells = <1>; + }; + temperature-sensor@48 { compatible = "ti,tmp75"; reg = <0x48>; @@ -345,6 +366,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 {