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 v1 08/17] ARM: dts: aspeed: minerva: Add adc sensors for fan board
Date: Wed, 26 Jun 2024 21:03:23 +0800 [thread overview]
Message-ID: <20240626130332.929534-9-yangchen.openbmc@gmail.com> (raw)
In-Reply-To: <20240626130332.929534-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 dfea0025e6ce..86d319d7edcd 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
@@ -207,6 +207,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 {
@@ -225,6 +249,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 {
@@ -243,6 +291,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 {
@@ -261,6 +333,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 {
@@ -279,6 +375,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 {
@@ -297,6 +417,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-26 13:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 13:03 [PATCH v1 00/17] Revise Facebook Minerva BMC DTS Yang Chen
2024-06-26 13:03 ` [PATCH v1 01/17] ARM: dts: aspeed: minerva: change the address of tmp75 Yang Chen
2024-06-26 13:03 ` [PATCH v1 02/17] ARM: dts: aspeed: minerva: change aliases for uart Yang Chen
2024-06-26 13:03 ` [PATCH v1 03/17] ARM: dts: aspeed: minerva: add eeprom on i2c bus Yang Chen
2024-06-26 13:03 ` [PATCH v1 04/17] ARM: dts: aspeed: minerva: change RTC reference Yang Chen
2024-06-26 13:03 ` [PATCH v1 05/17] ARM: dts: aspeed: minerva: enable mdio3 Yang Chen
2024-06-26 13:03 ` [PATCH v1 06/17] ARM: dts: aspeed: minerva: remove unused bus and device Yang Chen
2024-06-26 13:03 ` [PATCH v1 07/17] ARM: dts: aspeed: minerva: Define the LEDs node name Yang Chen
2024-06-26 13:03 ` Yang Chen [this message]
2024-06-26 13:03 ` [PATCH v1 09/17] ARM: dts: aspeed: minerva: add linename of two pins Yang Chen
2024-06-26 13:03 ` [PATCH v1 10/17] ARM: dts: aspeed: minerva: enable ehci0 for USB Yang Chen
2024-06-26 13:03 ` [PATCH v1 11/17] ARM: dts: aspeed: minerva: add tmp75 sensor Yang Chen
2024-06-26 13:03 ` [PATCH v1 12/17] ARM: dts: aspeed: minerva: add power monitor xdp710 Yang Chen
2024-06-26 13:03 ` [PATCH v1 13/17] ARM: dts: aspeed: minerva: revise sgpio line name Yang Chen
2024-06-26 13:03 ` [PATCH v1 14/17] ARM: dts: aspeed: minerva: Switch the i2c bus number Yang Chen
2024-06-26 13:03 ` [PATCH v1 15/17] ARM: dts: aspeed: minerva: remove unused power device Yang Chen
2024-06-26 13:03 ` [PATCH v1 16/17] ARM: dts: aspeed: minerva: add ltc4287 device Yang Chen
2024-06-26 13:03 ` [PATCH v1 17/17] ARM: dts: aspeed: minerva: Add spi-gpio Yang Chen
2024-06-26 13:38 ` [PATCH v1 00/17] Revise Facebook Minerva BMC DTS Rob Herring
2024-06-26 14:01 ` Yang Chen
2024-06-26 14:52 ` Rob Herring
2024-06-27 2:48 ` Andrew Jeffery
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=20240626130332.929534-9-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).