From: Mihai Sain <mihai.sain@microchip.com>
To: <robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
<nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>,
<claudiu.beznea@tuxon.dev>, <linux@armlinux.org.uk>,
<devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Cc: Mihai Sain <mihai.sain@microchip.com>
Subject: [PATCH 4/5] ARM: dts: microchip: sama7g5ek: Add power monitor support
Date: Mon, 23 Sep 2024 09:49:31 +0300 [thread overview]
Message-ID: <20240923064932.5797-5-mihai.sain@microchip.com> (raw)
In-Reply-To: <20240923064932.5797-1-mihai.sain@microchip.com>
Add PAC1934 support in order to monitor the board power consumption.
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
.../arm/boot/dts/microchip/at91-sama7g5ek.dts | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
index ed75d491a246..5fd77abd4201 100644
--- a/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
+++ b/arch/arm/boot/dts/microchip/at91-sama7g5ek.dts
@@ -244,6 +244,37 @@ i2c1: i2c@600 {
i2c-digital-filter-width-ns = <35>;
status = "okay";
+ power-monitor@10 {
+ compatible = "microchip,pac1934";
+ reg = <0x10>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ channel@1 {
+ reg = <0x1>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDD3V3";
+ };
+
+ channel@2 {
+ reg = <0x2>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDIODDR";
+ };
+
+ channel@3 {
+ reg = <0x3>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDCORE";
+ };
+
+ channel@4 {
+ reg = <0x4>;
+ shunt-resistor-micro-ohms = <10000>;
+ label = "VDDCPU";
+ };
+ };
+
mcp16502@5b {
compatible = "microchip,mcp16502";
reg = <0x5b>;
--
2.46.1
next prev parent reply other threads:[~2024-09-23 6:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 6:49 [PATCH 0/5] Add power monitor support on Microchip boards Mihai Sain
2024-09-23 6:49 ` [PATCH 1/5] ARM: dts: microchip: sam9x60ek: Add power monitor support Mihai Sain
2024-09-23 6:49 ` [PATCH 2/5] ARM: dts: microchip: sama5d2_icp: " Mihai Sain
2024-09-23 6:49 ` [PATCH 3/5] ARM: dts: microchip: sama7g54_curiosity: " Mihai Sain
2024-09-23 6:49 ` Mihai Sain [this message]
2024-09-23 6:49 ` [PATCH 5/5] ARM: configs: at91: enable PAC1934 driver as module Mihai Sain
2024-10-20 15:35 ` [PATCH 0/5] Add power monitor support on Microchip boards Claudiu Beznea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240923064932.5797-5-mihai.sain@microchip.com \
--to=mihai.sain@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=nicolas.ferre@microchip.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®