From patchwork Wed Jan 31 08:41:31 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: 194627 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1764046dyb; Wed, 31 Jan 2024 01:14:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFM0lLcuROzUgB47q+ls6Jaaox11dtZiWAToEpUHTPHUkFVg2+RLsIHXVSz6zvd0s08x2r8 X-Received: by 2002:a17:906:594e:b0:a35:e9f1:9690 with SMTP id g14-20020a170906594e00b00a35e9f19690mr640282ejr.22.1706692448515; Wed, 31 Jan 2024 01:14:08 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVRR9uCd9B1QpsZQRlb8Hz9W/RavI4907f7dQ4zl6fRaDRmqy2N2BDhwZj1b/JDdQKfSTZpnFD5cewnPJubIpSAH/YEjw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id xo21-20020a170907bb9500b00a3633f00ce7si1319096ejc.727.2024.01.31.01.14.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 01:14:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46052-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=1BZrRPaS; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-46052-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46052-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5F3451F2C0C8 for ; Wed, 31 Jan 2024 08:53:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE3E312BE9A; Wed, 31 Jan 2024 08:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="1BZrRPaS" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2062.outbound.protection.outlook.com [40.107.215.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8424A12AAFA; Wed, 31 Jan 2024 08:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706690587; cv=fail; b=Q7HIR+7eeWm66X3wkWr8rPh9N0ldaZF++7c6PZ/ZdokVi/OyAA7+kbRIs79yTGOo5MVxLUdBa5WO1xJtbJXt6L6tSimAdq2lq9bJxKW1pHjLkP3dTA8/M9c2zjIUiHjZfKNu3Jxpejnhms8Fnan3fgU4LjrrmLjWqzXCTh2b2Lc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706690587; c=relaxed/simple; bh=Dnuzfh3JiuL101huI+251LcE/CbtUMqxP8eskei8yZA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=SGBAK00azMuxXIdX2yffgILhF8OvdxJWy8pOawUj4H8Wk7HmgCj2htq9TC5fbNcxShFIfPFncRrWyLGM3R88/v5QOm61m5+AGCMwHek8yAQGGhGYS0O05jRQlWsK8vsKlB8UDNUfEKb20HsI4qeKWTzo+QamXBE1iM7zMYQ/VOM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=1BZrRPaS; arc=fail smtp.client-ip=40.107.215.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JS/pm5RrD4R1+rY1vhLdeTo/OA55G+Zv2Fpgru2jTxr1mL2s5WH2bbt9OBwfN8wZricWvaMl9eoAhoBDfd8CU8Uvol7/SxEJG9kuNm1yUFN+Y54PscVWnsLcas2U6tYv+hz4Vv/mg2v40Q5KuNbaQ07yJum2L/gBD2zz4uCOcYqZLYbI1f2pv5A0IHr4OXiqK/JL/BDHzSzlcnMePPShhZQ46U89yPC9IeP7mRMIznQVm0qICQrnLB1ZJqmJ8oMyz24k1GmuqRPXkYVyGhJhsxqSu1OYXPGIPVJFCIua/COiOgkvCk4ViSOm9cCetzu9P87Vn+qqEBrSY4dOnwPkeg== 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=UF3i3ZisZaXoChi0wC4IwWdNkvj2IomGYSaRQhudy0o=; b=Xq0LkwzjC55s2gbOLGPFA7FRkg9eOs/XPJRzrXRYJOgve8S7uB2RMVKHmegcK2et7miFUamex9CXbLoKyHzcI1vgUbfYNXpw8weBkbL4Fj3XkAv2WHRpTIr6r/Jv5criL3KpsWHCR6IB2loU+L9kzF47d8cax9X4UnvOiZdRe0RHxOB2WZWGcWxx4PVg0s2or4ho1zoxEFGOw/UNgEgLuTdabrR0uYVLVXuM1XAQqEIG3qh/LIi3uQ3Hi/TEJ1YrFlYAEDUgMX4SSJH3JLFI/PVjQ1qpzryLR6W2dGKBd5bTmuiHaTXI2VzetHYk9S9O9dQBy0fqa7DISTiF43+lBQ== 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=UF3i3ZisZaXoChi0wC4IwWdNkvj2IomGYSaRQhudy0o=; b=1BZrRPaSQnvSwbqLOCozZxLa4v4nZnfdgdjl+Xq+zzjG8m6ap6+CZBkM+j0p7xleENtannOudqMnqO6hIS/iTZIjIXSBrPR/J/onbNuXi/+l0UoJIP0Gb/hHM+YP1oulzOQwshvIGVvr1RkzvihISzhE/GStsb0iwFpf7gqDaeKkrGlovOvwbmTFzdjanxgntWvS7PMJll7yqNaxsv+eUdQUiY3a9YozoNnLduAzPKXGmus8kZf3/piguXO3rjpiKX6JIAS4xTSnplbweeJMri+Y+rZOz3aj6ORkoQjUE3nVUiZjZEqLdmYmRFyFXCFsGt/SEkwpbAUAJ3mTReWgww== Received: from SG2P153CA0026.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::13) by PUZPR04MB6559.apcprd04.prod.outlook.com (2603:1096:301:f1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.34; Wed, 31 Jan 2024 08:42:59 +0000 Received: from HK2PEPF00006FB2.apcprd02.prod.outlook.com (2603:1096:4:c7:cafe::44) by SG2P153CA0026.outlook.office365.com (2603:1096:4:c7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.6 via Frontend Transport; Wed, 31 Jan 2024 08:42:59 +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 HK2PEPF00006FB2.mail.protection.outlook.com (10.167.8.8) with Microsoft SMTP Server id 15.20.7228.16 via Frontend Transport; Wed, 31 Jan 2024 08:42:58 +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 v5 20/21] ARM: dts: aspeed: yosemite4: support medusa board adc sensors Date: Wed, 31 Jan 2024 16:41:31 +0800 Message-Id: <20240131084134.328307-21-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240131084134.328307-1-Delphine_CC_Chiu@wiwynn.com> References: <20240131084134.328307-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FB2:EE_|PUZPR04MB6559:EE_ X-MS-Office365-Filtering-Correlation-Id: 55630c41-fef5-478f-c46c-08dc2238a0cb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MgRStRi7HRnSrTtW35vdUc1Te08TKJOITFTMxaSbMUWhT8rClrL9d5DxeWCd9PDTWUQurREPQra+9reUMLzTGobHRU5W5G6ZPruBQvL/ZM0zquDNHeJk1JjIMsSILzIbMJFyFEhPaD3femPWX4Du0TddThmbIowF2AzLKKh3f+uPDvOu76zux9uAwIoiHGQLaE3h/Sr+GSZUUhJS3ED9083Dt5SLVn/iNCmecfb+EjCiqSRcslflytU2XZ/jTnQFWHi0BNENsOssHO9jExK6N220FWgoR5jGT/2D8ygFhD+RZ92eJHr3OthfMhD8QFVNa3QazmfAnwvIn0CRt8sFTLS34HxGQ7MFsCZSHruhe+f31z1avux7McsT9c2PycmkbYs2QMwAB1VsMKWjAPAQXpkcukAIIIGMPayBqy5X281khj88EN/ZW9igNJyRLheq+/hXWjX6raJjmefvg6qcq7R/jeiuerqwrWsQWOSn4DoJvNPA4mtNw7zeYS9TvMx/6m+ue2rfAsCizUkoWg06KNDOpGgSDO8Wnm2lZecT2nYpCJJ2PdM2wqyOu59tB4RSwST4q99c8WfCu3221r7reeI4hzYESz/WS54rBMHXm+UKV6+7ULmLxNcto5DJH/hqqm4rs5oIlLZ7oVu52QEhzgaiHxrpBLMM4ypd6Crts8AWg1X326dkxRxPqEa1GZnZ6DaDVEcLw9hMSWvvnKuYcw== 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)(6069001)(4636009)(136003)(39860400002)(396003)(346002)(376002)(230922051799003)(82310400011)(451199024)(64100799003)(186009)(1800799012)(36840700001)(46966006)(1076003)(336012)(26005)(956004)(2616005)(41300700001)(40480700001)(9316004)(316002)(36860700001)(478600001)(36756003)(6512007)(6506007)(6666004)(47076005)(356005)(6486002)(82740400003)(81166007)(5660300002)(2906002)(70586007)(36736006)(70206006)(86362001)(4744005)(110136005)(7416002)(4326008)(8936002)(8676002);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2024 08:42:58.0833 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 55630c41-fef5-478f-c46c-08dc2238a0cb 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: HK2PEPF00006FB2.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6559 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789596740769905286 X-GMAIL-MSGID: 1789596740769905286 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 d97520860f4a..bb0dc203eafa 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>;