* [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string
2024-09-18 9:54 [PATCH v2 0/3] yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
@ 2024-09-18 9:54 ` Delphine CC Chiu
2024-09-18 13:03 ` Krzysztof Kozlowski
2024-09-18 9:54 ` [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023 Delphine CC Chiu
2024-09-18 9:54 ` [PATCH v2 3/3] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
2 siblings, 1 reply; 12+ messages in thread
From: Delphine CC Chiu @ 2024-09-18 9:54 UTC (permalink / raw)
To: patrick, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Delphine CC Chiu, Joel Stanley, Andrew Jeffery,
Guenter Roeck, Noah Wang, Peter Yin, Javier Carrasco,
Fabio Estevam, Lukas Wunner, Laurent Pinchart, devicetree,
linux-kernel, linux-arm-kernel, linux-aspeed
From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Add pmbus compatibale string for the Generic PMbus devices that could
be monitor by pmbus driver.
Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index 8a9a00705b23..cbb9b94e5b3b 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -320,6 +320,8 @@ properties:
- oki,ml86v7667
# 48-Lane, 12-Port PCI Express Gen 2 (5.0 GT/s) Switch
- plx,pex8648
+ # Generic PMBus devices
+ - pmbus
# Pulsedlight LIDAR range-finding sensor
- pulsedlight,lidar-lite-v2
# Renesas HS3001 Temperature and Relative Humidity Sensors
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string
2024-09-18 9:54 ` [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string Delphine CC Chiu
@ 2024-09-18 13:03 ` Krzysztof Kozlowski
2024-09-18 16:53 ` Guenter Roeck
0 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-18 13:03 UTC (permalink / raw)
To: Delphine CC Chiu, patrick, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Andrew Jeffery, Guenter Roeck,
Noah Wang, Peter Yin, Javier Carrasco, Fabio Estevam,
Lukas Wunner, Laurent Pinchart, devicetree, linux-kernel,
linux-arm-kernel, linux-aspeed
On 18/09/2024 11:54, Delphine CC Chiu wrote:
> From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
>
> Add pmbus compatibale string for the Generic PMbus devices that could
> be monitor by pmbus driver.
>
You need to explain more, provide background why we would like to accept
a generic compatible. And why a specific compatible cannot or should not
be used...
In general this is a no, you cannot have such compatibles for real hardware.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string
2024-09-18 13:03 ` Krzysztof Kozlowski
@ 2024-09-18 16:53 ` Guenter Roeck
0 siblings, 0 replies; 12+ messages in thread
From: Guenter Roeck @ 2024-09-18 16:53 UTC (permalink / raw)
To: Krzysztof Kozlowski, Delphine CC Chiu, patrick, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Andrew Jeffery, Noah Wang, Peter Yin,
Javier Carrasco, Fabio Estevam, Lukas Wunner, Laurent Pinchart,
devicetree, linux-kernel, linux-arm-kernel, linux-aspeed
On 9/18/24 06:03, Krzysztof Kozlowski wrote:
> On 18/09/2024 11:54, Delphine CC Chiu wrote:
>> From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
>>
>> Add pmbus compatibale string for the Generic PMbus devices that could
>> be monitor by pmbus driver.
>>
>
> You need to explain more, provide background why we would like to accept
> a generic compatible. And why a specific compatible cannot or should not
> be used...
>
> In general this is a no, you cannot have such compatibles for real hardware.
>
Agreed; affected chips should be listed explicitly in drivers/hwmon/pmbus/pmbus.c.
Guenter
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-18 9:54 [PATCH v2 0/3] yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
2024-09-18 9:54 ` [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string Delphine CC Chiu
@ 2024-09-18 9:54 ` Delphine CC Chiu
2024-09-18 13:01 ` Krzysztof Kozlowski
2024-09-18 17:00 ` Guenter Roeck
2024-09-18 9:54 ` [PATCH v2 3/3] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
2 siblings, 2 replies; 12+ messages in thread
From: Delphine CC Chiu @ 2024-09-18 9:54 UTC (permalink / raw)
To: patrick, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Delphine CC Chiu, Joel Stanley, Andrew Jeffery,
Guenter Roeck, Peter Yin, Noah Wang, Javier Carrasco,
Fabio Estevam, Lukas Wunner, Laurent Pinchart, devicetree,
linux-kernel, linux-arm-kernel, linux-aspeed
From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Add support for hot-swap controller MPS MP5023.
Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml
index cbb9b94e5b3b..c3253ea389d4 100644
--- a/Documentation/devicetree/bindings/trivial-devices.yaml
+++ b/Documentation/devicetree/bindings/trivial-devices.yaml
@@ -296,6 +296,8 @@ properties:
- mps,mp2975
# Monolithic Power Systems Inc. multi-phase controller mp2993
- mps,mp2993
+ # Monolithic Power Systems Inc. hot-swap controller mp5023
+ - mps,mp5023
# Monolithic Power Systems Inc. multi-phase hot-swap controller mp5920
- mps,mp5920
# Monolithic Power Systems Inc. multi-phase hot-swap controller mp5990
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-18 9:54 ` [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023 Delphine CC Chiu
@ 2024-09-18 13:01 ` Krzysztof Kozlowski
2024-09-18 17:00 ` Guenter Roeck
1 sibling, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-18 13:01 UTC (permalink / raw)
To: Delphine CC Chiu, patrick, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Andrew Jeffery, Guenter Roeck,
Peter Yin, Noah Wang, Javier Carrasco, Fabio Estevam,
Lukas Wunner, Laurent Pinchart, devicetree, linux-kernel,
linux-arm-kernel, linux-aspeed
On 18/09/2024 11:54, Delphine CC Chiu wrote:
> From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
>
> Add support for hot-swap controller MPS MP5023.
>
> Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> ---
> Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-18 9:54 ` [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023 Delphine CC Chiu
2024-09-18 13:01 ` Krzysztof Kozlowski
@ 2024-09-18 17:00 ` Guenter Roeck
2024-09-19 1:24 ` Andrew Jeffery
1 sibling, 1 reply; 12+ messages in thread
From: Guenter Roeck @ 2024-09-18 17:00 UTC (permalink / raw)
To: Delphine CC Chiu, patrick, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Andrew Jeffery, Peter Yin, Noah Wang,
Javier Carrasco, Fabio Estevam, Lukas Wunner, Laurent Pinchart,
devicetree, linux-kernel, linux-arm-kernel, linux-aspeed
On 9/18/24 02:54, Delphine CC Chiu wrote:
> From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
>
> Add support for hot-swap controller MPS MP5023.
>
> Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> --
The hardware monitoring mailing list was not copied, so I assume that
the expectation is that it will be applied through some other tree.
Acked-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-18 17:00 ` Guenter Roeck
@ 2024-09-19 1:24 ` Andrew Jeffery
2024-09-20 1:54 ` Delphine_CC_Chiu/WYHQ/Wiwynn
0 siblings, 1 reply; 12+ messages in thread
From: Andrew Jeffery @ 2024-09-19 1:24 UTC (permalink / raw)
To: Guenter Roeck, Delphine CC Chiu, patrick, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Peter Yin, Noah Wang, Javier Carrasco,
Fabio Estevam, Lukas Wunner, Laurent Pinchart, devicetree,
linux-kernel, linux-arm-kernel, linux-aspeed
On Wed, 2024-09-18 at 10:00 -0700, Guenter Roeck wrote:
> On 9/18/24 02:54, Delphine CC Chiu wrote:
> > From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> >
> > Add support for hot-swap controller MPS MP5023.
> >
> > Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> > Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> > --
>
> The hardware monitoring mailing list was not copied, so I assume that
> the expectation is that it will be applied through some other tree.
We can take it through the BMC tree, but I'd prefer that the hardware
monitoring list were copied regardless.
Ricky: Please do so for v3 onwards.
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-19 1:24 ` Andrew Jeffery
@ 2024-09-20 1:54 ` Delphine_CC_Chiu/WYHQ/Wiwynn
2024-09-23 1:09 ` Andrew Jeffery
0 siblings, 1 reply; 12+ messages in thread
From: Delphine_CC_Chiu/WYHQ/Wiwynn @ 2024-09-20 1:54 UTC (permalink / raw)
To: Andrew Jeffery, Guenter Roeck, Delphine_CC_Chiu/WYHQ/Wiwynn,
patrick@stwcx.xyz, Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Peter Yin, Noah Wang, Javier Carrasco,
Fabio Estevam, Lukas Wunner, Laurent Pinchart,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org
> -----Original Message-----
> From: Andrew Jeffery <andrew@codeconstruct.com.au>
> Sent: Thursday, September 19, 2024 9:24 AM
> To: Guenter Roeck <linux@roeck-us.net>; Delphine_CC_Chiu/WYHQ/Wiwynn
> <Delphine_CC_Chiu@wiwynn.com>; patrick@stwcx.xyz; Rob Herring
> <robh@kernel.org>; Krzysztof Kozlowski <krzk+dt@kernel.org>; Conor Dooley
> <conor+dt@kernel.org>
> Cc: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>; Joel Stanley
> <joel@jms.id.au>; Peter Yin <peteryin.openbmc@gmail.com>; Noah Wang
> <noahwang.wang@outlook.com>; Javier Carrasco
> <javier.carrasco.cruz@gmail.com>; Fabio Estevam <festevam@gmail.com>;
> Lukas Wunner <lukas@wunner.de>; Laurent Pinchart
> <laurent.pinchart@ideasonboard.com>; devicetree@vger.kernel.org;
> linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> linux-aspeed@lists.ozlabs.org
> Subject: Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
>
> [External Sender]
>
> [External Sender]
>
> On Wed, 2024-09-18 at 10:00 -0700, Guenter Roeck wrote:
> > On 9/18/24 02:54, Delphine CC Chiu wrote:
> > > From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> > >
> > > Add support for hot-swap controller MPS MP5023.
> > >
> > > Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> > > Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> > > --
> >
> > The hardware monitoring mailing list was not copied, so I assume that
> > the expectation is that it will be applied through some other tree.
>
> We can take it through the BMC tree, but I'd prefer that the hardware
> monitoring list were copied regardless.
>
> Ricky: Please do so for v3 onwards.
>
> Andrew
Hi Guenter & Andrew,
Would like to ask how to copy the hardware monitoring mailing list?
Should I just send the v3 patch with only this dt-bindings patch for MP5023
and it will be added in the mail automatically?
Regards.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
2024-09-20 1:54 ` Delphine_CC_Chiu/WYHQ/Wiwynn
@ 2024-09-23 1:09 ` Andrew Jeffery
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Jeffery @ 2024-09-23 1:09 UTC (permalink / raw)
To: Delphine_CC_Chiu/WYHQ/Wiwynn, Guenter Roeck, patrick@stwcx.xyz,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: Ricky CX Wu, Joel Stanley, Peter Yin, Noah Wang, Javier Carrasco,
Fabio Estevam, Lukas Wunner, Laurent Pinchart,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-aspeed@lists.ozlabs.org
On Fri, 2024-09-20 at 01:54 +0000, Delphine_CC_Chiu/WYHQ/Wiwynn wrote:
>
> > -----Original Message-----
> > From: Andrew Jeffery <andrew@codeconstruct.com.au>
> > Sent: Thursday, September 19, 2024 9:24 AM
> > To: Guenter Roeck <linux@roeck-us.net>; Delphine_CC_Chiu/WYHQ/Wiwynn
> > <Delphine_CC_Chiu@wiwynn.com>; patrick@stwcx.xyz; Rob Herring
> > <robh@kernel.org>; Krzysztof Kozlowski <krzk+dt@kernel.org>; Conor Dooley
> > <conor+dt@kernel.org>
> > Cc: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>; Joel Stanley
> > <joel@jms.id.au>; Peter Yin <peteryin.openbmc@gmail.com>; Noah Wang
> > <noahwang.wang@outlook.com>; Javier Carrasco
> > <javier.carrasco.cruz@gmail.com>; Fabio Estevam <festevam@gmail.com>;
> > Lukas Wunner <lukas@wunner.de>; Laurent Pinchart
> > <laurent.pinchart@ideasonboard.com>; devicetree@vger.kernel.org;
> > linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> > linux-aspeed@lists.ozlabs.org
> > Subject: Re: [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023
> >
> > [External Sender]
> >
> > [External Sender]
> >
> > On Wed, 2024-09-18 at 10:00 -0700, Guenter Roeck wrote:
> > > On 9/18/24 02:54, Delphine CC Chiu wrote:
> > > > From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> > > >
> > > > Add support for hot-swap controller MPS MP5023.
> > > >
> > > > Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> > > > Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> > > > --
> > >
> > > The hardware monitoring mailing list was not copied, so I assume that
> > > the expectation is that it will be applied through some other tree.
> >
> > We can take it through the BMC tree, but I'd prefer that the hardware
> > monitoring list were copied regardless.
> >
> > Ricky: Please do so for v3 onwards.
> >
> > Andrew
> Hi Guenter & Andrew,
>
> Would like to ask how to copy the hardware monitoring mailing list?
Not sure how best to answer this, but add it in the To: line for your
patches?
> Should I just send the v3 patch with only this dt-bindings patch for MP5023
> and it will be added in the mail automatically?
Well, if whatever process you're already using isn't adding it
automatically, I doubt it's going to start doing so now.
You can add it using the `--to` option to `b4 send` or `git send-
email`, for instance.
The details for the hwmon list are here:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/MAINTAINERS?h=v6.11#n9836
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/3] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board
2024-09-18 9:54 [PATCH v2 0/3] yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
2024-09-18 9:54 ` [PATCH v2 1/3] dt-bindings: trivial-devices: support pmbus compatible string Delphine CC Chiu
2024-09-18 9:54 ` [PATCH v2 2/3] dt-bindings: trivial-devices: support MPS MP5023 Delphine CC Chiu
@ 2024-09-18 9:54 ` Delphine CC Chiu
2024-09-19 1:22 ` Andrew Jeffery
2 siblings, 1 reply; 12+ messages in thread
From: Delphine CC Chiu @ 2024-09-18 9:54 UTC (permalink / raw)
To: patrick, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Joel Stanley, Andrew Jeffery
Cc: Ricky CX Wu, Delphine CC Chiu, Guenter Roeck, Noah Wang,
Peter Yin, Javier Carrasco, Lukas Wunner, Laurent Pinchart,
devicetree, linux-kernel, linux-arm-kernel, linux-aspeed
From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Add RTQ6056 as 2nd source ADC sensor on Medusa Board.
Add power sensors on Medusa board:
- Add XDP710 as 2nd source HSC to monitor P48V PSU power.
- Add MP5023 as P12V efuse (Driver exists but un-documented).
- Add PMBUS sensors as P12V Delta Module.
Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
---
.../aspeed/aspeed-bmc-facebook-yosemite4.dts | 45 ++++++++++++++++++-
1 file changed, 43 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
index 98477792aa00..e486b9d78f61 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
@@ -284,15 +284,25 @@ &i2c10 {
&i2c11 {
status = "okay";
power-sensor@10 {
- compatible = "adi, adm1272";
+ compatible = "adi,adm1272";
reg = <0x10>;
};
+ power-sensor@11 {
+ compatible = "infineon,xdp710";
+ reg = <0x11>;
+ };
+
power-sensor@12 {
- compatible = "adi, adm1272";
+ compatible = "adi,adm1272";
reg = <0x12>;
};
+ power-sensor@13 {
+ compatible = "infineon,xdp710";
+ reg = <0x13>;
+ };
+
gpio@20 {
compatible = "nxp,pca9555";
reg = <0x20>;
@@ -321,6 +331,17 @@ gpio@23 {
#gpio-cells = <2>;
};
+ power-sensor@40 {
+ compatible = "mps,mp5023";
+ reg = <0x40>;
+ };
+
+ adc@41 {
+ compatible = "richtek,rtq6056";
+ reg = <0x41>;
+ #io-channel-cells = <1>;
+ };
+
temperature-sensor@48 {
compatible = "ti,tmp75";
reg = <0x48>;
@@ -345,6 +366,26 @@ eeprom@54 {
compatible = "atmel,24c256";
reg = <0x54>;
};
+
+ power-sensor@62 {
+ compatible = "pmbus";
+ reg = <0x62>;
+ };
+
+ power-sensor@64 {
+ compatible = "pmbus";
+ reg = <0x64>;
+ };
+
+ power-sensor@65 {
+ compatible = "pmbus";
+ reg = <0x65>;
+ };
+
+ power-sensor@68 {
+ compatible = "pmbus";
+ reg = <0x68>;
+ };
};
&i2c12 {
--
2.25.1
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH v2 3/3] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board
2024-09-18 9:54 ` [PATCH v2 3/3] ARM: dts: aspeed: yosemite4: Add power module and ADC on Medusa Board Delphine CC Chiu
@ 2024-09-19 1:22 ` Andrew Jeffery
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Jeffery @ 2024-09-19 1:22 UTC (permalink / raw)
To: Delphine CC Chiu, patrick, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Joel Stanley
Cc: Ricky CX Wu, Guenter Roeck, Noah Wang, Peter Yin, Javier Carrasco,
Lukas Wunner, Laurent Pinchart, devicetree, linux-kernel,
linux-arm-kernel, linux-aspeed
Hi Ricky,
On Wed, 2024-09-18 at 17:54 +0800, Delphine CC Chiu wrote:
> From: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
>
> Add RTQ6056 as 2nd source ADC sensor on Medusa Board.
Can you unpack why this is related in the commit message? I assume it's
for something like battery monitoring? An explanation would help
though.
> Add power sensors on Medusa board:
> - Add XDP710 as 2nd source HSC to monitor P48V PSU power.
> - Add MP5023 as P12V efuse (Driver exists but un-documented).
> - Add PMBUS sensors as P12V Delta Module.
Generally if you're listing multiple things the change does in the
commit message you should have split the patch up accordingly.
There's some good advice here:
https://docs.kernel.org/process/5.Posting.html#patch-preparation
and here:
https://github.com/axboe/liburing/blob/master/CONTRIBUTING.md?plain=1#L21-L32
>
> Signed-off-by: Ricky CX Wu <ricky.cx.wu.wiwynn@gmail.com>
> Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
> ---
> .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 45 ++++++++++++++++++-
> 1 file changed, 43 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
> index 98477792aa00..e486b9d78f61 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts
> @@ -284,15 +284,25 @@ &i2c10 {
> &i2c11 {
> status = "okay";
> power-sensor@10 {
> - compatible = "adi, adm1272";
> + compatible = "adi,adm1272";
> reg = <0x10>;
> };
This was outright busted. The hunk is a fix, as is the second instance
below. Please separate these out into their own patch and add a Fixes:
tag to it.
>
> + power-sensor@11 {
> + compatible = "infineon,xdp710";
> + reg = <0x11>;
> + };
> +
> power-sensor@12 {
> - compatible = "adi, adm1272";
> + compatible = "adi,adm1272";
(i.e. this one also)
> reg = <0x12>;
> };
>
> + power-sensor@13 {
> + compatible = "infineon,xdp710";
> + reg = <0x13>;
> + };
> +
> gpio@20 {
> compatible = "nxp,pca9555";
> reg = <0x20>;
> @@ -321,6 +331,17 @@ gpio@23 {
> #gpio-cells = <2>;
> };
>
> + power-sensor@40 {
> + compatible = "mps,mp5023";
> + reg = <0x40>;
> + };
> +
> + adc@41 {
> + compatible = "richtek,rtq6056";
> + reg = <0x41>;
> + #io-channel-cells = <1>;
> + };
> +
> temperature-sensor@48 {
> compatible = "ti,tmp75";
> reg = <0x48>;
> @@ -345,6 +366,26 @@ eeprom@54 {
> compatible = "atmel,24c256";
> reg = <0x54>;
> };
> +
> + power-sensor@62 {
> + compatible = "pmbus";
> + reg = <0x62>;
> + };
> +
> + power-sensor@64 {
> + compatible = "pmbus";
> + reg = <0x64>;
> + };
> +
> + power-sensor@65 {
> + compatible = "pmbus";
> + reg = <0x65>;
> + };
> +
> + power-sensor@68 {
> + compatible = "pmbus";
> + reg = <0x68>;
> + };
See the discussion on your proposed DT binding document; I expect these
will need to change.
Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread