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: 13539026 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 A46ADC47258 for ; Wed, 31 Jan 2024 09:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=9Lvg/gAIPCvmBKOndgbeUaiS228I8hlaYNsB8Zp0+gY=; b=cjrryJ0ro7CsTp 67saOiQqHzhpLNgjlPSO1rD/yZU+mGrUmrhsrsJ1KX2GWvruZV8KM8XZ3Iz0vj9X96K7oz2luaf0G FYyjgVBzrCM2mi6tOs+bjr29XG6SoFBGPR0YB2tavTCg06ffyiSLkOaUEYlIW4A8mkMXmfWeBjYlP KZdi89H92AG5U4f5h0E4hsF4W5zBHcGoS2TaFEkrl8miKvaTp8kMShhQuqrsLDGV6ib2+UJ9D22yk 3G8Swz82egKIkk38Ba8i8k4v/7Mq5+DBOX7fVMqf3riwg+O0V414lwZDmvNim5KztKFXBNjrI9bB/ f/aDw1kAL68xoKBCikJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV7BB-00000002Yc7-31MJ; Wed, 31 Jan 2024 09:46:49 +0000 Received: from mail-sgaapc01on20609.outbound.protection.outlook.com ([2a01:111:f400:feab::609] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rV6BX-00000002Btm-209F for linux-arm-kernel@lists.infradead.org; Wed, 31 Jan 2024 08:43:08 +0000 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> 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240131_004307_539310_B8DC4BF3 X-CRM114-Status: GOOD ( 10.01 ) 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 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>;