From: Peter Yin <peteryin.openbmc@gmail.com>
To: patrick@stwcx.xyz, amithash@meta.com,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Joel Stanley <joel@jms.id.au>,
Andrew Jeffery <andrew@codeconstruct.com.au>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 04/10] ARM: dts: aspeed: Harma: add ina238
Date: Thu, 27 Jun 2024 15:00:06 +0800 [thread overview]
Message-ID: <20240627070013.2509150-5-peteryin.openbmc@gmail.com> (raw)
In-Reply-To: <20240627070013.2509150-1-peteryin.openbmc@gmail.com>
Add INA238 power monitor for Harma fan board.
Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
---
.../dts/aspeed/aspeed-bmc-facebook-harma.dts | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
index 0c4bf165d0b0..7d809f1636d6 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
@@ -198,6 +198,30 @@ pwm@5e{
#address-cells = <1>;
#size-cells = <0>;
};
+
+ power-sensor@40 {
+ compatible = "ti,ina238";
+ reg = <0x40>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@41 {
+ compatible = "ti,ina238";
+ reg = <0x41>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@44 {
+ compatible = "ti,ina238";
+ reg = <0x44>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@45 {
+ compatible = "ti,ina238";
+ reg = <0x45>;
+ shunt-resistor = <1000>;
+ };
};
&i2c1 {
@@ -224,6 +248,30 @@ pwm@5e{
#address-cells = <1>;
#size-cells = <0>;
};
+
+ power-sensor@40 {
+ compatible = "ti,ina238";
+ reg = <0x40>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@41 {
+ compatible = "ti,ina238";
+ reg = <0x41>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@44 {
+ compatible = "ti,ina238";
+ reg = <0x44>;
+ shunt-resistor = <1000>;
+ };
+
+ power-sensor@45 {
+ compatible = "ti,ina238";
+ reg = <0x45>;
+ shunt-resistor = <1000>;
+ };
};
&i2c3 {
--
2.25.1
next prev parent reply other threads:[~2024-06-27 7:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-27 7:00 [PATCH v2 00/10] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin
2024-06-27 7:00 ` [PATCH v2 01/10] ARM: dts: aspeed: Harma: revise hsc chip Peter Yin
2024-06-27 7:00 ` [PATCH v2 02/10] ARM: dts: aspeed: Harma: add VR device Peter Yin
2024-06-27 7:00 ` [PATCH v2 03/10] ARM: dts: aspeed: Harma: add sgpio name Peter Yin
2024-06-27 7:00 ` Peter Yin [this message]
2024-06-27 7:00 ` [PATCH v2 05/10] ARM: dts: aspeed: Harma: add power monitor xdp710 Peter Yin
2024-06-27 7:00 ` [PATCH v2 06/10] ARM: dts: aspeed: Harma: remove multi-host property Peter Yin
2024-06-27 7:00 ` [PATCH v2 07/10] ARM: dts: aspeed: Harma: add fru device Peter Yin
2024-06-27 7:00 ` [PATCH v2 08/10] ARM: dts: aspeed: Harma: add temperature device Peter Yin
2024-06-27 7:00 ` [PATCH v2 09/10] ARM: dts: aspeed: Harma: enable mctp controller Peter Yin
2024-06-27 7:00 ` [PATCH v2 10/10] ARM: dts: aspeed: Harma: fixed dtb_check warning Peter Yin
2024-06-27 14:48 ` [PATCH v2 00/10] Revise Meta(Facebook) Harma BMC(AST2600) Rob Herring (Arm)
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=20240627070013.2509150-5-peteryin.openbmc@gmail.com \
--to=peteryin.openbmc@gmail.com \
--cc=amithash@meta.com \
--cc=andrew@codeconstruct.com.au \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick@stwcx.xyz \
--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®