From patchwork Mon Sep 23 06:49:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13809310 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 6F5C7CF9C6F for ; Mon, 23 Sep 2024 06:51:56 +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=V0+QugzSf3xjw1uMi62PTq3idqeYwTA15Zd9PK0HRFU=; b=C8Bh+hpPueb63BhhRYnm+3gsqB WAfdCfjzKz+D1QPNOjn0hLagVALDBD3zILVy6ng7IWDK4pqyMuuNSiFyqk40je1AGdsUQCIoY2Zvw VNCCXQnEMR+eAaiPv4gL400V/ftcOgo9zWInhpMA0555DyDTcuWyvYKYxJA4DAVmlTbBNz+jVRz6D lkzbD3TTfqIeDCipJvyPVbLwapLQOcqGXJECin4BeL4c/gsd4xc/ToF/MQ7Nti+g0agl+wdxCT9H3 xPrAPMqRuFfek0TAyWzPEZ8rEKeWouZg/8hJzAowpkTb1XY46Pl651aUsqfdL/0O0aDIKovp3J53a liR8mmFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sscv8-0000000GSAf-1oPM; Mon, 23 Sep 2024 06:51:42 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssctz-0000000GRuo-0Ovj for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2024 06:50:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074231; x=1758610231; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4pFe+LKNT/3bDaKjRJ6PORZtjwOBmMGi0IqA1mX80fw=; b=N0ofxnKD170ygoUzy3p6yZbbiMDtgXG9TwuqVO5OTV9XcM0wSAu/tM8O N56zL5dZmXd6o/eOu7HVu9MvBUF6OJiTN0Ea7A6fZGWWxwSSZSzW7R28z 1CGADTL3bq0NV1yIX5hYnbsM38w9+dtO2+cdN/x2MIRFv/x+EVA1cRMSN 1cs7uIBKEGlWCh9sW1vy+5jjpnSmNxLH8IoU5rEJVA0qBmYNUaQTiK+uO dh41eqHui1dQkBVE9JoxpO2r+VR8WeOFLMfRPYRPjJCLfHPjKnyK/p9kn vF6CpQu8J4+uvnar+9YFLoJevIVWTnNtLpsjuYKavo2Zh+XukPfPs3gW6 g==; X-CSE-ConnectionGUID: U10XO7xER1qeFauEdbUvEA== X-CSE-MsgGUID: Mizc+XO8TNqEiqLtdb9EVA== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="32721982" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:28 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 22 Sep 2024 23:50:14 -0700 Received: from archlinux.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Sun, 22 Sep 2024 23:50:12 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 3/5] ARM: dts: microchip: sama7g54_curiosity: Add power monitor support Date: Mon, 23 Sep 2024 09:49:30 +0300 Message-ID: <20240923064932.5797-4-mihai.sain@microchip.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com> References: <20240923064932.5797-1-mihai.sain@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240922_235031_279960_29CEE914 X-CRM114-Status: UNSURE ( 9.16 ) 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 PAC1934 support in order to monitor the board power consumption. Signed-off-by: Mihai Sain --- .../dts/microchip/at91-sama7g54_curiosity.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts index 645e49fdb7fe..2dec2218f32c 100644 --- a/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts +++ b/arch/arm/boot/dts/microchip/at91-sama7g54_curiosity.dts @@ -186,6 +186,37 @@ i2c10: i2c@600 { i2c-digital-filter-width-ns = <35>; status = "okay"; + power-monitor@1f { + compatible = "microchip,pac1934"; + reg = <0x1f>; + #address-cells = <1>; + #size-cells = <0>; + + channel@1 { + reg = <0x1>; + shunt-resistor-micro-ohms = <47000>; + label = "VDD3V3"; + }; + + channel@2 { + reg = <0x2>; + shunt-resistor-micro-ohms = <47000>; + label = "VDDIODDR"; + }; + + channel@3 { + reg = <0x3>; + shunt-resistor-micro-ohms = <47000>; + label = "VDDCORE"; + }; + + channel@4 { + reg = <0x4>; + shunt-resistor-micro-ohms = <47000>; + label = "VDDCPU"; + }; + }; + eeprom@51 { compatible = "atmel,24c02"; reg = <0x51>;