From patchwork Fri Sep 6 06:26:46 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: 1981574 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=nirKRPoG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X0RBy2phZz1yh1 for ; Fri, 6 Sep 2024 16:28:58 +1000 (AEST) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4X0RBy2PYxz3cMc for ; Fri, 6 Sep 2024 16:28:58 +1000 (AEST) X-Original-To: linux-aspeed@lists.ozlabs.org Delivered-To: linux-aspeed@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; arc=pass smtp.remote-ip="2a01:111:f403:c400::" arc.chain=microsoft.com ARC-Seal: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725604136; cv=pass; b=kZq05K33GzBBAiNkIPrtoWpwQ+kX0yfBNY2ioJXxet/NpZLlWSPHZiT1saBljpVh6434I4P03OUb4km0zII+5xhivAG7eLfwUreoSvOcKCmnJ3Gplg6PqSq5cOuDFS6omgo4knQs4tqyNdmMQROeNt20BbZJgcCsg3v2fOGR3OBw8U9p0NNYRkPGoGEqgY9vY24BOUsSg2SIbhy3jB1CSPQO4q/RngHBx8uP1v1X/dZXstghawOtqrckwKiHC+WYaCEs6Jyb2o5bMr4Sm3JloLf7GJVOGXp05MzWqwnBi1DsKbm9SgzWk3JxsdqzbAr9FvL/yQn3waJhJv8HnK6L7w== ARC-Message-Signature: i=2; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1725604136; c=relaxed/relaxed; bh=xKDiGhY0qi6Zhw5yz3X3KRvVupBpI62BiZwruuZTFwI=; h=ARC-Authentication-Results:DKIM-Signature:From:To:Cc:Subject:Date: Message-Id:In-Reply-To:References:MIME-Version:Content-Type; b=ARXPRwtnzvpMlv8aXC1ilUoolVRZCVEUrEzKhtSv3Q2wfD8znLri8dM56v7yJM/UIxgKVMo9huGmxyortqGvwyXhdd83RcZaTfM+JyZ7HJirfiX1R14iDVBT48vb25EL6JxmshLOBHWNqui3HNTeSzcFKIyi0EhRsQ2KBSHOz97TJAS0CzZH2jGHEXFtezxtr/wpWTstNegIl4TsiyvL74KC0LLGctZi4XVIXEIVgO9BHYG3HlsyIRjxeE9lbX44yRxt13THxcrXuzsC4YEN9DjbWeqr5mzvRrVis90EX6aA9rEIGLHHaYKD3ggVgrPKg2bSnxdooG/W3svHwvvHGA== ARC-Authentication-Results: i=2; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=nirKRPoG; dkim-atps=neutral; spf=pass (client-ip=2a01:111:f403:c400::; helo=hk2pr02cu002.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) smtp.mailfrom=wiwynn.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=wiwynn.com header.i=@wiwynn.com header.a=rsa-sha256 header.s=selector2 header.b=nirKRPoG; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=wiwynn.com (client-ip=2a01:111:f403:c400::; helo=hk2pr02cu002.outbound.protection.outlook.com; envelope-from=delphine_cc_chiu@wiwynn.com; receiver=lists.ozlabs.org) Received: from HK2PR02CU002.outbound.protection.outlook.com (mail-eastasiaazlp170100000.outbound.protection.outlook.com [IPv6:2a01:111:f403:c400::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4X0RBv6vSqz304C for ; Fri, 6 Sep 2024 16:28:55 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mhw5SEVQFbg9bd4raq8qb4YW6THlfQr+N3pqwiDjDcQ+3DuTRXCCq1sjdv3JPwWxDR1oWbkm1jRrZJDWYGSSHnWLEZVaYzLIstQrzDSaoMdppHAWS/knUX8cW7Wo6KZK3HqQT6qu/xJ5cFigHzqGE/0Ee82ueX0GKvtpl01Diuv33UYCVTuJdq/yTr19uHnnua0o2S4Kz8zmpsZeyqy7jyfinfkavJyYVCaQVLW8U3nb8cbmXG6GJs3qk8YajnDOVG5Mio+/UCFDLFRCLDkJD9taSYvQC0XLLbrMA7Q462QJL94JW5ra5UH2twhqpoB6HCjryCKV65mwt4VfK8SerA== 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=P2mHsl6taHhnNAGKQme3e5byKrsj6B7F9DfOQzKIBLTeAQzHJL4/cSuAGpFf4VXfy3YR5qzZMwBhLUXX0FdS+M/QKIKV5cX0hUqHActBw3RIEGLK78H/VD2wO0NlJs9pQ9NCb+ykeIHyr/pbtn7QU5RIjZMKWlQxdIe7A2+PRciKUj121ra3t76evtx5hnFtp0guWhxoisAVB6Ujiqqns5NeYSb4+s+cYxa49jfwZDPOLCWo7hecyBYw/AoOr8X+/QbG5R353Il7Q06Y7cLaSKaa+DYUj0Mo5DE+bAVKbd52/Xtkg3jz4bGdNL2R8Vzb90IrWJhqNTZp1DCGXfcPIw== 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=nirKRPoGuYviayoduQYiDLpnKGrPznxrgFpoijZYfxPNEID62l9Wt+wGi67is3VbnkZScRCraU7tXnqAaZK9LbDkBMsotV+OJ81+pL+yR739cVmenh/4eipTLMaZ0PiNMzaWhr+NfIUgavJvxJXOA3JDYjhmHv71ZMVlWA/CMC4mFK02HKiw2FAwXZaQ0gXW5QS0xsN0Yt+BJ1MX5NY+KhZV0cL0UA7kdr+mX5syo0LTPGiABT4VmeDAW2TUPvWYwEZEmwCG6voBthdyWUYguAM7aXmBF4YL2adm8teB9pTlBNZXimi6/yMv28sZRsi2tnqHIS2fV8rhh+UyRtq1UQ== Received: from PU1PR01CA0007.apcprd01.prod.exchangelabs.com (2603:1096:803:15::19) by JH0PR04MB7250.apcprd04.prod.outlook.com (2603:1096:990:3e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Fri, 6 Sep 2024 06:28:30 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:803:15:cafe::f7) by PU1PR01CA0007.outlook.office365.com (2603:1096:803:15::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 06:28:29 +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 HK2PEPF00006FB4.mail.protection.outlook.com (10.167.8.10) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 06:28:29 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Subject: [PATCH v15 20/32] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Fri, 6 Sep 2024 14:26:46 +0800 Message-Id: <20240906062701.37088-21-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906062701.37088-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|JH0PR04MB7250:EE_ X-MS-Office365-Filtering-Correlation-Id: 42980c3d-c9b9-4794-56c3-08dcce3d1f5f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024|7416014; X-Microsoft-Antispam-Message-Info: MvAUnz0175n/MDUDiE1yjneZulwIxdLDvHcf5SoVhDcN2xQIDFHuP5GtJsTk52IKv84yOD1vrCXpJHMvzIq1ZCX1PLdtnal2IdGuG/azSFjkuffvouACG64fLobydKYPkisENdqotGESgbXghjtCL0/ahGaazy7Nnzx4fjcXtw4m1Ua5lWte4XZ28wSMJ9hVsa7JPAWRihbsM/4oeZw45nd+4+rHMRIMmF7OqY+LUP6c+ef9KqqSUWfzwz7wzVReK18rFcKJgrx6pSPhwQpYXKEuOc6G3D/lkmQSG8kiJ9Gs/dHXYsHGAqQw4LfiV4u8mG856yPHl6mJhLnzMztx+3g6yEvtHIm6J49pxs5T1JuFuUTWNyIUG8/xhwJVwG+ruXKjTp0PnkqIhTtCG/1n6R7t0EPVNDjJpdhNcaa9dALaKLZumABqw5ULNCNN2Mx6j8HQZVyc4pc4Nif23WYTEbB4bSh+N9t6GXl7Jg0LHvLhtV7RYodD/KWO0ouiFcSDuyihLrMm0Il6VVpQqO9dDpQY2uQ51d7Bsbn6kpCIN/vxMHIRdXBxTonvJr5Qb9GsYUKCjR3SMNeqIIabIOb2fanXwymD4OOyFbOiKImAyqV2keuTf1aoF6EwGevublquFYwsOUBRDfo7mo+GnYWHy9nPzi6wNslhMf63yhvMonD9CVsN9Owg4HPMD9yTvQtYo2raH0/bFInH8q6TpeiTTb2YhcFfOrQgyOFNq69ZbI49gBooxPYMxGjuVmLmY1dn9TNyt42uzGbtoZfIDYHXHKoGfPQLitXeXJMOC2sAr1HFpcz8Is/jX4xhiedF/9YTWEyNFOp9e6NLGa4yvQDuZcy1mO10pJZE0Yhmf9O2xRv13uQeKtGMi0e+8xfIWOO6P/uIZsxLEfzCCmgTicjOvJ4dq+OjXGHJik0a0e4cZNSv6VTobF94XmAxkcogpa2s6tFosut3D39qLGrc129BnlW2VJJmEm84AKfjSutbXltUQ4dCDoHcye+MYKiTNrRo2z+NeW17m9ZaKlbAgMloPZn+Pi4Lx7kfBWIdE+rt1F2XQiwOuOkkXPK67OeDoWOE0cH/O1dbXB/WXxDOJ5Y62SAKtM+PzkVhxfNATai0rngz7WE+B7inEZNzmGwnTPG5MFRuM65QmuWj0gm9gE8N5+rGN0cyWhbZE94PQGZXwEEz9HtNgoFJieSGFyz7xGsijtLxNmUEQSwOQ4x+b50P+MiYbfOtoIAjIYuUG2mV0dBZs0a/NqraWvONbb53u8LRmdsN7gGoA/oNm3evxky5hbn3NtKk3Y8+isMFJlsy04jOK7uU8SQG6ff3E6AFnki0l4GsQaW+uURFnvYP+7OBD5VWfEhHB6e+CIyOVbGH7Rygl7CW0MRMBJfSVq/1MfLFj2QUod2Vz/i25s+kH+6wg9xtryww/8i9ZEmrJjIylCdxqnEGhrq3A4HchRfxilxM 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)(82310400026)(36860700013)(376014)(1800799024)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 06:28:29.1624 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42980c3d-c9b9-4794-56c3-08dcce3d1f5f 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: HK2PEPF00006FB4.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7250 X-BeenThere: linux-aspeed@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux ASPEED SoC development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Geert Uytterhoeven , linux-aspeed@lists.ozlabs.org, Magnus Damm , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Delphine CC Chiu , linux-arm-kernel@lists.infradead.org Errors-To: linux-aspeed-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Linux-aspeed" 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>;