From patchwork Mon Sep 23 06:49:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihai Sain X-Patchwork-Id: 13809312 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 5EEDDCF9C6F for ; Mon, 23 Sep 2024 06:54:07 +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=OYXG/xcST0BNoWljpMMKraK9gzu8DCQS5Vb8Zew5oRs=; b=HC3qxi3omGuGwPCSLXgov+yir9 WD5qLmakggZcSKAPOpkfBwtQ3FxpJXZOwB8FaFIr01vAolcVyNSnalxIs76QtpdRPWJ3qfeQWnXpM oS5QOiSg14iiVmNUwixd5JrUr8J9parx6zUNRJIh/si3MqFNRbSXFSenJAOzvjEwKf4Yr0szt8yj5 /Sv7AfK4A2RJgCxmrVfkN74gd+BvA4xmmtB/QDDB3pkPsginRXHhJ+M01Iq15xuzWkqDOnSSjYib6 CHV6Axu6JjeIf/qnILLfpeYIp/JTpsUfybpzyJSplw3wnZVE8s+T2zLUmC/gCARbAyhkSADn/LLub Z2LsXwzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sscxI-0000000GSQm-0AMR; Mon, 23 Sep 2024 06:53:56 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sscuK-0000000GRyO-1nOG for linux-arm-kernel@lists.infradead.org; Mon, 23 Sep 2024 06:50:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1727074253; x=1758610253; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZGx/Y4k1IFA7rZ9omAhAdqPCWvwPb8L8z1U/z1R/QuE=; b=FW3j32Tl12m/3I306glbNCnx1apP9Dty3dbSmajSWQ/3h0euN2qMaPwr 9Her6xHtaH8X136Bxn7TVjynr+m6df6VUwulEdB6MX2IrLb2CgaALiq1x bUGFwJqpqKhrZXzmF7g79Hv5wq/1kX06pwh9jYZpTBX/HwPQpSYt4d0gF 67DdORZwItq01wRW+4BeWqrI7HlNmuhb+YqLpOfMpzi9Hdcel1P1TnKWc MUMTp9mDaDL4AOmzXFA3lY/3+nep0Zyoj4MQLn7s1NeAD2abILFkVFPKf MCIS89Rv45TX0DgIAHYFGQP8P9TjjWwmOjIqfphCDlGc3VZDUWNFzkING g==; X-CSE-ConnectionGUID: nbowMA2OSLiJEr3vdSwxZA== X-CSE-MsgGUID: z58YvuKbRk2Q8qwMkyjySw== X-IronPort-AV: E=Sophos;i="6.10,250,1719903600"; d="scan'208";a="263115656" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 22 Sep 2024 23:50:51 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) 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:09 -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:06 -0700 From: Mihai Sain To: , , , , , , , , , CC: Mihai Sain Subject: [PATCH 1/5] ARM: dts: microchip: sam9x60ek: Add power monitor support Date: Mon, 23 Sep 2024 09:49:28 +0300 Message-ID: <20240923064932.5797-2-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_235052_494877_0BC0EBE3 X-CRM114-Status: UNSURE ( 9.09 ) 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 --- .../arm/boot/dts/microchip/at91-sam9x60ek.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts index 3b38707d736e..6cf699d9b540 100644 --- a/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts +++ b/arch/arm/boot/dts/microchip/at91-sam9x60ek.dts @@ -260,6 +260,37 @@ i2c6: i2c@600 { i2c-digital-filter-width-ns = <35>; status = "okay"; + power-monitor@17 { + compatible = "microchip,pac1934"; + reg = <0x17>; + #address-cells = <1>; + #size-cells = <0>; + + channel@1 { + reg = <0x1>; + shunt-resistor-micro-ohms = <10000>; + label = "VDDIOM"; + }; + + channel@2 { + reg = <0x2>; + shunt-resistor-micro-ohms = <10000>; + label = "VDDCORE"; + }; + + channel@3 { + reg = <0x3>; + shunt-resistor-micro-ohms = <10000>; + label = "VDD3V3_MPU"; + }; + + channel@4 { + reg = <0x4>; + shunt-resistor-micro-ohms = <10000>; + label = "VDD3V3"; + }; + }; + gpio_exp: mcp23008@20 { compatible = "microchip,mcp23008"; reg = <0x20>;