From patchwork Wed Jun 26 09:07:36 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: 13712463 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 A7EB0C30653 for ; Wed, 26 Jun 2024 09:11:00 +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=foNIYuXpkItBjY8qUhSUDvLy6XuG5cw+SWa9LoMYeno=; b=Fy5CUYfKqL7fr+O9CRgXKFu+/m 0wxKIIqOuD9OY7bZJDjMfQ94c/U2GzQ3M59TB66GMtUD1h9A7UwgkEaKb/mPT+feJ0Jo8/uSz28lD 4NrEA5k6JQ6NlyK/kVbXUYWZj+PVy22wZlnANjLSDvFeYqFYYJCJRYLbFSOJ7ywkmHEzCriDoDEqs rYTcSn/BGWkS21OpNmu3IcUAoF/oV0FajBAj3oGTeQaYOS7AOVs/4m/CgX8yFQED2mqU5RBOCdesx p2OW3wK/WYShscInGNXTZx4Kkl6Tq8qC457dF/udnhSSfd7WQZufKz43eMQ1ZpCFJ9HV9++mZke7f LwVuudaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMOfq-000000064Yj-3RTa; Wed, 26 Jun 2024 09:10:42 +0000 Received: from mail-psaapc01on2060d.outbound.protection.outlook.com ([2a01:111:f400:feae::60d] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMOeP-000000063br-3Ef2 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 09:09:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RMBPmvHzk10gs6DUP/1k+WiUC70Glt7tWpLwfn4oKL+XsRhy40SbUz1bUnuYdXB6zDwbBux5n4alk0+nVtoh9yKAbzxwAUZJCHstTfdU/EZ1uYUUv66iumfzM9b702wBT/hCNjfOWa0Bi2rgCPBMqN2oMusgc2bpJuJ90b1ENs7z7MBVtUoK4G/c/DroFtmAC5BlHUCN8pKfH58SoyRXW6tPlEIZGGxMaVHUxNJal6LYV4o3GAh2dKjxLzTcjvh3K4iCaL/njlKOW0yPrH3MWu5UJxxdEUtm0BIy/vgi0Ay/RmcZEBINd5iLAU+k2maSX0yWbCIPpxJCQ7oDq4g6uw== 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=foNIYuXpkItBjY8qUhSUDvLy6XuG5cw+SWa9LoMYeno=; b=dWOzab7ED6oQggEjWVECe9xhnTzWW8g7gJ5fDx6s1EvBSulGgum/+V2nQfTIO0apsy55oK700knpLywIg3IYX7iHZD4l+Ue2ORptMPhH8wMwvOaHBtK/dxsjY97LpIo2MybUGTuPv46OtMiO/mnE3YYszbWVOuqY9vQrErx9V7WkfVp/i7yn1WkNXpT/m+B8mZ9TqraXgF6HoTEp9A2031xx79NQ514m1pIJ+gBh0pag1iAOp6ETRVYtRBy2PKwJGleLNX7sn1zlXs5v+HdWVPWx8qpL1HkX7zH8kvvxdnK8h4OPefC5UJkmmlVBVxVApsNYrEB9lM00Y4PnupdEew== 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=foNIYuXpkItBjY8qUhSUDvLy6XuG5cw+SWa9LoMYeno=; b=Y79QuROns63cy1AAevGauOSLL6dpD2QNjPeadUhAX2VeIE0bV1aqlG3X0KZBJqwsWzSt6qsNe2gvIcEKLaAo0rx9+HmU4tObdQqUglXHsRn80SXkycwADeApNyNGYVkBEIK0W4BVAbv5W8SLFm6SfKb5Qf0FxMpi7+2uc311lAnpgrZPH6HHljVJWyG6GKYjxCDkx2EWli7lQg+m0dJg9yk/8zAkzXTzarBFbhmYKKpy4JYi434uaJCXbYLtyMFqg151eoRq/ZbbSfBHHKHwWdmpD+AsYP+4KAt5WibXy6Jm0mBv/WDbL4prHwGDl77TfE6E8VDIjQI/ssubzRqltw== Received: from PS2PR04CA0005.apcprd04.prod.outlook.com (2603:1096:300:55::17) by SEZPR04MB6995.apcprd04.prod.outlook.com (2603:1096:101:184::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.28; Wed, 26 Jun 2024 09:09:07 +0000 Received: from HK2PEPF00006FB4.apcprd02.prod.outlook.com (2603:1096:300:55:cafe::e) by PS2PR04CA0005.outlook.office365.com (2603:1096:300:55::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.22 via Frontend Transport; Wed, 26 Jun 2024 09:09:07 +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.7677.15 via Frontend Transport; Wed, 26 Jun 2024 09:09:07 +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 v9 20/26] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Wed, 26 Jun 2024 17:07:36 +0800 Message-Id: <20240626090744.174351-21-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240626090744.174351-1-Delphine_CC_Chiu@wiwynn.com> References: <20240626090744.174351-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB4:EE_|SEZPR04MB6995:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ebb037b-f6f2-4d67-31df-08dc95bfa25f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|1800799022|82310400024|36860700011|7416012|376012; X-Microsoft-Antispam-Message-Info: Id86MXAv0LlCysjxTfmWQb9lTL6mA+4OcI3JOxxN4ZZGBNsJvwp4sJhFdtav9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eNBByk8T7dhMjXuIAH3lUB0cpiSmSG+HQr8lqeVXeQ5MvZuuoGLeV6pRVmXea4YdhPXC18v4HrW0Kgt01YNzId/r7UsbA822H7rqGSfw96j1NETbb+1gSRKRaIOQrSdx6Rm3SgOYJDbS/nK4ePT6Myj7mGpb4J2YhhmoQI3+tBZPVX4LWi2IOFH8hQgUOHga1U3b4OesQd4udYDdJZbPIMQxAWIBJQD7TyoEEz3UhXhc2sUKtWlIzHOwqSXAXE5YheNdjJJlYrB3l46ggd/XcA== 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:(13230038)(1800799022)(82310400024)(36860700011)(7416012)(376012);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 09:09:07.3020 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ebb037b-f6f2-4d67-31df-08dc95bfa25f 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: SEZPR04MB6995 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_020914_092750_01492737 X-CRM114-Status: UNSURE ( 8.48 ) 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 f4e37187bd5b..bacaa2208734 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>;