From patchwork Tue Jul 23 09:23:01 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: 13739784 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 9E965C3DA63 for ; Tue, 23 Jul 2024 09:31:40 +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=Y8AQmZwrHkvuBvUNbF3706mQ0S SO5QD84gK1b3lCZRfmK+d73lozHKlsiHKMlG7p3ScgHTi5ug4N0+ZWORm0T0Oon3CuYsYWH4oHDV7 jvK5XKY9n31qvSEEI3pLYMrHq8TuqFY/PJiTgU+Zxlzop4fixrgFAV7i458PdJLOXmLd5EP6ezeTa oit5ZbeI+BnYPO2Qb+lkXdseUAI4uIDFv5rQGZw0FG5k7ZQQZ+fu2lHpXqEFfsDsianPq3K70mKen VUr1Q3Os+08BsyR6NfsZdD8s+3CebxTRXO5HC+mD6751w3uEMGMsxul4wRMMPdNBQ8EaOC/H3XGG/ Eg0VTlgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBrj-0000000C190-1R54; Tue, 23 Jul 2024 09:31:27 +0000 Received: from mail-sgaapc01on2062f.outbound.protection.outlook.com ([2a01:111:f400:feab::62f] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWBl9-0000000ByMA-1hwt for linux-arm-kernel@lists.infradead.org; Tue, 23 Jul 2024 09:24:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vHC4ifFYzUSn1GHgByqqIZCkqWn0kCWVbbNg01aAlB1JFHHnwEQ+Bz57lT2BkbNETT40AMYH9Z86mrt2LnEYMKlW7Y9dQ59Hz6lginldeWgoyRr0YA+Jj5SSjuGCazB4TCYM9N5xKKJiHAZ2vAsKGYLfMBQj/rPHe5qBL/IcmvPOpPEvQ4E1nfcdgCqFhHNI9OjFMPB0IJ8pSOR35C+nqf7cAXqIvezUrH8iF+zDWqraw8uN2OPlvqVTG4NMDiKA+TXMMNK0vME9YVY4PhFN3nakIgR6MOoW9Xw/hER4SiRJ4pwj/yGBZfYS2N4ZX/b5tOxBUrLarRxw2XgXR7hknA== 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=dMPqSmBqwZdak77soUMa/BePImS2iRhtIUs57rgbTEEf8cdbB8KRckkVrsAYiyAatlkjXKTLwuKbN7F7oJt7/8L10Udd2vKSGXwkcfDtVt4EDb+GO5FLpUoZ1JE1XLMAM7oRBTy1/Gd0VCtlDoYCbbO7K/iDAjGQDgSyts4q4tMtcGEz+eePbxqWqxzPcjQGiznwif1TZlmtupzgkI5xX1xvDvOEtRFEIMoivdWKoIxGz88reCUeGE8mpdOoNn+ykw9tqSdLpmCca23e2aD7QL5X+WGrCAaLJ0WVAH3gqpprv+d9t2AJdYG8/RlJ/F/doEUtpRROaPOUoyzdvPeX1g== 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=LQ4uT2LTG3kCProoJDomePRNJTBy8s7F3R/xmQlJ8iHn8xt0iGTvWJeH3CGM4aZDScW8ZsIcB5RsHd61N7N+7CNZPtGrxuUzIEd133bA0cKEIQutIzJmGxKO9LaeKhWafR+qtJ6335+79bf4bWd6I1a3QlwYp82JW1M8sEJ/sIoxufS/AxCD5KRBfUtRw9MCyYW0+hiCMPCF56AuWFIgXdBPUqWYO2HnPlJWTsc0SjU57wNxcQVbL/rSGDmNZFLSHIh2Fat/Grj+Os0H+ZIOLZuiKGitcspvs2vtewMGrO/e1SDm0cSz+8yJCD2KmipSNpLhOxG8rupWxareQvV1pA== Received: from PS1PR01CA0023.apcprd01.prod.exchangelabs.com (2603:1096:300:75::35) by SEZPR04MB6825.apcprd04.prod.outlook.com (2603:1096:101:eb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.7; Tue, 23 Jul 2024 09:24:32 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:75:cafe::32) by PS1PR01CA0023.outlook.office365.com (2603:1096:300:75::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.19 via Frontend Transport; Tue, 23 Jul 2024 09:24:31 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.7784.11 via Frontend Transport; Tue, 23 Jul 2024 09:24:31 +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 v11 20/27] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Tue, 23 Jul 2024 17:23:01 +0800 Message-Id: <20240723092310.3565410-21-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> References: <20240723092310.3565410-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|SEZPR04MB6825:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fefe3e4-6e5e-49de-6bd8-08dcaaf94270 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|82310400026|376014|7416014; X-Microsoft-Antispam-Message-Info: zAl3FXKn4sBd7DG+DDKhGxv9V1KyFztINsh0N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rV63PKFNHRKG6mVpc4vkI9f/jVgWtdWddy7luE1dvvyP+GBM/m9YdzsLmVyjpHzMbCa4/pNrzI4aZDagw6czn9fPcDJo8NA2u/p2OOsMbHXi40WmtT6wk4i6n6CreiWJJyNBlG7dYPtobTk6/W41XQGIMO4TnFhIeXSsaJMN9BcFtpgZy0+aZRCDjT6ua6K3Z3rUC7oxlQJW7/Dx3vbQiLy0HITY3CFS0jclAIXYV51KN59wVQGYpVm5N3+cdwjYg/yJpbFC57xtEt5qsFUtie93AVeBqRewiD3iI4eyPPFxckoqSUiCurEZNKgk5DyxECmXlxHM6FynjCw+jmN3KJuLyf0 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)(1800799024)(82310400026)(376014)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2024 09:24:31.5822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fefe3e4-6e5e-49de-6bd8-08dcaaf94270 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6825 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240723_022439_468779_FBD0F97B X-CRM114-Status: UNSURE ( 8.20 ) 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>;