From patchwork Thu Mar 21 02:12:32 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: 13598327 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 C9708C54E67 for ; Thu, 21 Mar 2024 02:15:11 +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=xw5I1a7mytnmFn7f1MUdeqBXSpJlD6TRlUgil9QCIF8=; b=SZbI8uABnF3Vw7 U3Oz23FEPLnC6Jaj9UGiEm2ObefBXNkB6epuxJtM/MF4azmvkpkm7WQSDA7uCwpRplvRgBLYSlOs0 RNk8yy5Ei9jaRqqnHctrnXEb8/VhdD0MSSI3PX6h5v3IY/uNbFO5MIyd6f0trQgECgCaiHKBMfiiW fJzSsr5TosdnLLwuLQa/JPJOPBJQ4jMQO4T/X8G0CQTeAi92EmeykvTQUNumv8fHmH66zVZWUNHl2 P72FQYhs+7TzuxR0pa3B4pmP51h0eLQOoy3MZZbW4scYTR4SDeYfHG5oJyBBCME5XvDa6Dmct+8Fr BCG7t6pL7fBh4Au9QTEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7xK-00000001XeG-1CJz; Thu, 21 Mar 2024 02:14:58 +0000 Received: from mail-psaapc01on20606.outbound.protection.outlook.com ([2a01:111:f400:feae::606] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7w7-00000001WoV-3509 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 02:13:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RYW56SrzVonPwBgAXGdK47sgOzESNUk6XGJJrzFQMLJhtxnxsoa8v7gEt473rD4r3/u+raZxdif9F+l4BtXg5VioFC5adNInjz5p6J9HhKMWjGV5KxZV2ajTZh/bmUZH8pdlK+rH+RRkV4+YWDMe7DaODkfOqlttqztmWJCp5xCyIBa6OL9UW8FnKsn3gGJMSWJOmQ1TBqqHBh1gCErS8SN/hjZkzosQZTtreT8789Ri1fmSyMWTjrfLvoZfE6HYwLAPQh7mrQ6iwsocmVFfueTpycRWQKTUUDSzgVDACd4EHnNYYLvP79INq490u5zoS86yUPRHq9ibPKdxTPy0XQ== 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=Mt72pmhgjJYk/fEfDyefjhvaYE3FLnKIVE5WwkrqElg=; b=KLKJvM15gPFeelDBwrOD+Yh3bXAuN2jGW+hTMr7UXiGNFJ5FpVanUbOPu9i7vdOkPum23Vy54YCjHjzVda9NSKj0zaQW1bukgU+no1EhaYGw2Ql5KUiAbckKuhfjiGWDdVUvSQLv4G8fJ46r8LGO4oDTg4ImUP4tC3pVsKle7jee+aDtGFn1RPJ74J0IFa4yImWBbJGsyNk6q7mMX8lshnMXRcXwouU81Ri798+9NYaz2461zseXEO3lo/9qpfl7UJXNhZ1S3T+2+AirCshvWAh0G5gRXgz0lbVeZVMBCOzIrsGSE4Sg3RTwZ4tNuRUhRXE+NmW77pj6/cCJ9hTvrQ== 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=Mt72pmhgjJYk/fEfDyefjhvaYE3FLnKIVE5WwkrqElg=; b=reMOh67spv7OeJD8v1l4rBmVvrkoh97XeEmbZdPej2Kr6bBnNkHZJAllvgR5fW23eROK0aLmLgGt4IyrlE8hptNse/rTtc+GB60LPRxdLgXYE4oNnyS89dcaR0oImhEOoPCJoG6jQX1Nc3dryZzJmJ9KLsIDvQGbMU14+t7L9Oyq/SQaAG+atFlFGepzc6qxaVoZzWhmv5VOiT/2wr28BTVHGhGOqDW/Khq4G3tHl8+mnSSZ34t/UCWzyupkpeNZbYRXR49nVXhvPcxN0quzAyUDFroiBkWttqSwlcSAhsuX5NC6smcOyFNUlndyvju818c3XCVNEWiONzKZ5Bo3Zw== Received: from PU1PR01CA0011.apcprd01.prod.exchangelabs.com (2603:1096:803:15::23) by KL1PR04MB7556.apcprd04.prod.outlook.com (2603:1096:820:124::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.30; Thu, 21 Mar 2024 02:13:39 +0000 Received: from HK3PEPF0000021F.apcprd03.prod.outlook.com (2603:1096:803:15:cafe::e8) by PU1PR01CA0011.outlook.office365.com (2603:1096:803:15::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.27 via Frontend Transport; Thu, 21 Mar 2024 02:13:38 +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 HK3PEPF0000021F.mail.protection.outlook.com (10.167.8.41) with Microsoft SMTP Server id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 02:13:38 +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 v7 20/22] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Thu, 21 Mar 2024 10:12:32 +0800 Message-Id: <20240321021236.1823693-21-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> References: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021F:EE_|KL1PR04MB7556:EE_ X-MS-Office365-Filtering-Correlation-Id: a2e1b297-3105-4f77-d1f6-08dc494c85a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A4nVvSFDCfoKhwpc7XR9nkEZGYOtOOzaYUOEXKBPEBZnqOsJV0MukV/IV65TuzEa/FU+bqmQWCn0CQINdEPzp5P0bPSF/anBuZBNdm85yaemVygKpqP0H5QLfBX58+oaFC6Z+w/7tppwDrB6yG0LOBmeLGh1v7Wu3seUvUFNJAdSr5D87w6OOpg3aFNgDpuIUT5XT3KW9l1hg1uDzD6CbqWfRsXiNfxn2XtXwu+gTqBVUmBIEQa2be/NwdkhnUSNju1E7zMWDnQngnvIBkn2gsgzg+tLAaJ0Eolpt8L5Eg4Aj3Yg3qa9q3xVbbeGKoI16sKo/LSm3GDNqKCfapC+K75OUwvfGgdsH7dbIKVfzdURuy6HSVn2WbE5gg9hC5DlFORr7ykk3rVnKB1ExvIUPFe6yoNoyyZra1nLxzJK681s7t6ZwLM05TfMc3fE+mYp2Hlk23E8jCKojNmy9dfCzvlI9VGeQiqwFQ1Qcjj6gm2V2Glx/p5+673lqaFiyfb7TdDqBF6A8aAMYbsTDSPSs+AlHRZNK3Fjjl/HDhcqZhvJiGFSJYKbCfg/zYqrxHuVZM0/ndnAtvWaEH9HY4hRXFXwvckTbz7j3LIajmmHfZNIfPRIIEP5RqX8s/zBror/JXihNYuOVNHNfrilgLg63yXFdEaag9LvA0aALpPcL7ohS6O/VrfBMv5MEiN9cXJbN/HHebKSlfQdUmB/iEQGCAWLbBOqeCY98TryrpySPQ1TycbBHwXjuFN17JjdX561 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)(36860700004)(7416005)(82310400014)(1800799015)(376005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 02:13:38.5730 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2e1b297-3105-4f77-d1f6-08dc494c85a8 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: HK3PEPF0000021F.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7556 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_191344_429807_3F924CE7 X-CRM114-Status: UNSURE ( 8.89 ) 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 ina233/ina28 support for medusa board adc sensors Signed-off-by: Delphine CC Chiu --- .../dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 13 +++++++++++++ 1 file changed, 13 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 373eacd3186e..d2ad6c8ea165 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -915,6 +915,19 @@ power-sensor@40 { reg = <0x40>; }; + power-sensor@41 { + compatible = "ti,ina233"; + resistor-calibration = /bits/ 16 <0x0a00>; + current-lsb= /bits/ 16 <0x0001>; + reg = <0x41>; + }; + + power-sensor@44 { + compatible = "ti,ina238"; + shunt-resistor = <1000>; + reg = <0x44>; + }; + temperature-sensor@48 { compatible = "ti,tmp75"; reg = <0x48>;