From: Yang Chen <yangchen.openbmc@gmail.com>
To: joel@jms.id.au, andrew@codeconstruct.com.au, patrick@stwcx.xyz,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Cc: Jerry.Lin@quantatw.com, yangchen.openbmc@gmail.com
Subject: [PATCH 09/17] ARM: dts: aspeed: minerva: Add adc sensors for fan board
Date: Tue, 25 Jun 2024 20:18:27 +0800 [thread overview]
Message-ID: <20240625121835.751013-10-yangchen.openbmc@gmail.com> (raw)
In-Reply-To: <20240625121835.751013-1-yangchen.openbmc@gmail.com>
From: Yang Chen <yang.chen@quantatw.com>
Add ina238 support to read the sensors in front of fans.
Signed-off-by: Yang Chen <yang.chen@quantatw.com>
---
.../aspeed/aspeed-bmc-facebook-minerva.dts | 144 ++++++++++++++++++
1 file changed, 144 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
index bea389d1e90b..60beda2737a1 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
@@ -228,6 +228,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>;
+ };
};
imux17: i2c@1 {
@@ -246,6 +270,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>;
+ };
};
imux18: i2c@2 {
@@ -264,6 +312,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>;
+ };
};
imux19: i2c@3 {
@@ -282,6 +354,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>;
+ };
};
imux20: i2c@4 {
@@ -300,6 +396,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>;
+ };
};
imux21: i2c@5 {
@@ -318,6 +438,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>;
+ };
};
};
};
--
2.34.1
next prev parent reply other threads:[~2024-06-25 12:20 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-25 12:18 [PATCH 00/17] Revise Facebook Minerva BMC DTS Yang Chen
2024-06-25 12:18 ` [PATCH 01/17] ARM: dts: aspeed: minerva: change the address of tmp75 Yang Chen
2024-06-25 12:18 ` [PATCH 02/17] ARM: dts: aspeed: minerva: Add spi-gpio Yang Chen
2024-06-26 1:30 ` Andrew Jeffery
2024-06-25 12:18 ` [PATCH 03/17] ARM: dts: aspeed: minerva: change aliases for uart Yang Chen
2024-06-25 12:18 ` [PATCH 04/17] ARM: dts: aspeed: minerva: add eeprom on i2c bus Yang Chen
2024-06-25 12:18 ` [PATCH 05/17] ARM: dts: aspeed: minerva: change RTC reference Yang Chen
2024-06-25 12:18 ` [PATCH 06/17] ARM: dts: aspeed: minerva: enable mdio3 Yang Chen
2024-06-25 12:18 ` [PATCH 07/17] ARM: dts: aspeed: minerva: remove unused bus and device Yang Chen
2024-06-25 12:18 ` [PATCH 08/17] ARM: dts: aspeed: minerva: Define the LEDs node name Yang Chen
2024-06-25 12:18 ` Yang Chen [this message]
2024-06-25 12:18 ` [PATCH 10/17] ARM: dts: aspeed: minerva: add linename of two pins Yang Chen
2024-06-25 12:18 ` [PATCH 11/17] ARM: dts: aspeed: minerva: enable ehci0 for USB Yang Chen
2024-06-25 12:18 ` [PATCH 12/17] ARM: dts: aspeed: minerva: add tmp75 sensor Yang Chen
2024-06-25 12:18 ` [PATCH 13/17] ARM: dts: minerva: add power monitor xdp710 Yang Chen
2024-06-25 12:18 ` [PATCH 14/17] ARM: dts: aspeed: minerva: revise sgpio line name Yang Chen
2024-06-25 12:18 ` [PATCH 15/17] ARM: dts: aspeed: minerva: Switch the i2c bus number Yang Chen
2024-06-25 12:18 ` [PATCH 16/17] ARM: dts: aspeed: minerva: remove unused power device Yang Chen
2024-06-25 12:18 ` [PATCH 17/17] ARM: dts: aspeed: minerva: add ltc4287 device Yang Chen
2024-06-26 13:31 ` [PATCH 00/17] Revise Facebook Minerva BMC DTS 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=20240625121835.751013-10-yangchen.openbmc@gmail.com \
--to=yangchen.openbmc@gmail.com \
--cc=Jerry.Lin@quantatw.com \
--cc=andrew@codeconstruct.com.au \
--cc=devicetree@vger.kernel.org \
--cc=joel@jms.id.au \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-aspeed@lists.ozlabs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patrick@stwcx.xyz \
/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;
as well as URLs for NNTP newsgroup(s).