From patchwork Fri Aug 16 09:24:07 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: 13765830 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 888F5C531DC for ; Fri, 16 Aug 2024 09:38:22 +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=xKDiGhY0qi6Zhw5yz3X3KRvVupBpI62BiZwruuZTFwI=; b=njIKkW0NS7CqTRl7QkmT8T0B93 oVqeUtHyDvjfkL1K3gYZSMh51/MvV5UCYQkR47C7nwzTsJjpwqHQ8XJJRgLYp41u13DzkvQg3tmGH KsNJ+vNeGS/5vknLpePWJbxsTLRvyQpgtj2L7sMhBK8BxLmjoG2W8tGBYW6CVCCQslpnrP2wnxlP/ +cQII78vE+bAy+GvP8bZ4ddr7blpvPAWIw3MkGHU/jitnhyfFge7fNhn+E7cvH2B4uE7tjctaOo2K D7zjaEBf1+KqGxeknV4td/dSmIxHwb0Q1TeSzaqdHUL05K0H27MAT/fkDVnOyxaBYTGgnnOQrPquY MhVljA0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1setPS-0000000CRbB-06mi; Fri, 16 Aug 2024 09:38:14 +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 1setDg-0000000CP4Y-37Rt for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 09:26:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q8mKBTegZjfApWPJioHd43IInsz1UDR9pjTNxdgT1v3S0F3s+WCekI2V0E3Ci5/QwvEENIjjR74NP4FRvEYRz+ruea38Q7/BIFPBtbhf9CpRf4hHCH+PZc/tziPJy6VDKNr3q/D180au6rT7My7kw4YWeWzeOY+XgmHaVQjh0LE43xMs4va+FnLdn570oCwP+XkSVVBbYxaBF6QmPYn9M/g8+K10zS5rXFjr2dPJ39NsYK0UWPuVUBMYISY7IPB2xdmmEJWHW8+1WoCGbY/8t0pw7Q4IqZ/lpWXy0Zy8d2B46NT5hLZetY+meF/RQyPJkpvyR9B9BZlDXiw1Las4vg== 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=xKDiGhY0qi6Zhw5yz3X3KRvVupBpI62BiZwruuZTFwI=; b=bjx7s+jpujFGl4WAZy4lD0ayXPaIiV/OoqtFCZtkPPZTIXzxPQtVAsBzxgQcF5TUeKTpP5qznAjvvvLddJnVXf4nUmXIgiRScOqmySAEPqdygGiLxtJPryoHGFrbxgjYbA0HJuE7RjMNcg1uyzNGe+jDrxyLD5sANxWPzmXdUzcq20Ez88nxy0UIqtWr/2XHUTEVK402eVYzPkge4Uo+sE0AO/BxXHUclcj0X4SsiNUFRRbOFM4D8S5F4JpQEH1Tfss5HB/5brd6cnjJpQMsk50af2abHPOOx2KtmA4H3H5ijIA80ddsE4pIK80IdzP7f1pYGs+wLeci5hHuWABW/g== 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=xKDiGhY0qi6Zhw5yz3X3KRvVupBpI62BiZwruuZTFwI=; b=0VzRKQwfnYGBDd3E3nyyEKx6faV1Qbk8aDcOYTuzQONnQ9rtAwy2vZLWF1RwQckIqC5HrQRKHxlyNKQmuHJp49E3cXTWh+TNNckYbJ6ullVJ2xqJE4KOwNFoAN0Sv/POnNY7UHe1z2RPrVgLaPdgQG8iePzD/6QhJaUYKSbl6MxUC0xRWPDAb4CPITXuF7bR+CzkZxX7y7QhtzVeEVIyjk0k9oEcW6NEQG40nO6JUK68IEXGVc8s+vffW1ikYg1L7JHA4Mxx2I9eBq/E9nYExMSPok9UHSjRJdaDZimEx1OcThF25bWzYw0mot11H/ASJSijDgtIHaSI95Tl+yBxew== Received: from SI2PR01CA0037.apcprd01.prod.exchangelabs.com (2603:1096:4:193::9) by TYSPR04MB8320.apcprd04.prod.outlook.com (2603:1096:405:c9::13) 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:57 +0000 Received: from HK3PEPF0000021D.apcprd03.prod.outlook.com (2603:1096:4:193:cafe::8a) by SI2PR01CA0037.outlook.office365.com (2603:1096:4:193::9) 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:57 +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:56 +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 20/28] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Fri, 16 Aug 2024 17:24:07 +0800 Message-Id: <20240816092417.3651434-21-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_|TYSPR04MB8320:EE_ X-MS-Office365-Filtering-Correlation-Id: 3652ee59-e84e-4dd0-b6ef-08dcbdd56f43 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|82310400026|1800799024|7416014; X-Microsoft-Antispam-Message-Info: LKnpY6ytGR5l2S56xq8UQnPRtQQ6tqobDgihhB2g4X+C6+pMPA4qI7b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FurivNVkFw0c5gogwkXm2KlcUiS/i/VCnogMM8hCs/LKcZZ1kYzwdLsUceGJWOQ+IN34JyKrd6QHXksLAiGlXODzbUNjNaRl+3vC28EsKtUh7MRVhCm4ZaENVLYCqzCh737M7EjAlPmIG5fSi+K+WG+hoaW/faifdEDAOTM494oJO4l4DfcL6BjFuklfJsUBvo2JxNpawUJWKOU2cvv9RBQ+pAxndKRzwno51eo0rWWNRG6En5WENPuXrDgiohRu23Roi09/bCMPyZhSCqonIDy7VOCWO2aT3fl8y/5A8RBaE/qhTvt8jiihOTAZ4a+aJHs3Nqqck9/TKjK7x 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)(36860700013)(376014)(82310400026)(1800799024)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 09:25:56.9972 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3652ee59-e84e-4dd0-b6ef-08dcbdd56f43 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: TYSPR04MB8320 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240816_022604_806796_4FA2C7F8 X-CRM114-Status: UNSURE ( 8.34 ) 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 98eeee49b082..49500db53a13 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>;