mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: aspeed: sanmiguel: configure LM5066i HSCs for PDB
@ 2026-06-18  7:41 Mike Hsieh
  2026-06-18  7:41 ` [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor Mike Hsieh
  2026-06-18  7:41 ` [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC Mike Hsieh
  0 siblings, 2 replies; 5+ messages in thread
From: Mike Hsieh @ 2026-06-18  7:41 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, Patrick Williams
  Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
	Cosmo Chou, Potin Lai, Mik Lin, Mike Hsieh, Mike Hsieh

This patch series updates the device tree configurations for
the four TI LM5066i hot-swap controllers (HSCs) on the Power
Distribution Board (PDB) for the sanmiguel platform.

Signed-off-by: Mike Hsieh <mike.quanta.115@gmail.com>
---
Mike Hsieh (2):
      ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor
      ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC

 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
---
base-commit: 57596c043ad59cf2e53fadebf6d1b418190e3a49
change-id: 20260618-sanmiguel-dts-config-hsc-lm5066i-70f40e1b3c2e

Best regards,
-- 
Mike Hsieh <mike.quanta.115@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor
  2026-06-18  7:41 [PATCH 0/2] ARM: dts: aspeed: sanmiguel: configure LM5066i HSCs for PDB Mike Hsieh
@ 2026-06-18  7:41 ` Mike Hsieh
  2026-07-22 12:07   ` Andrew Jeffery
  2026-06-18  7:41 ` [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC Mike Hsieh
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Hsieh @ 2026-06-18  7:41 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, Patrick Williams
  Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
	Cosmo Chou, Potin Lai, Mik Lin, Mike Hsieh, Mike Hsieh

Correct the shunt-resistor-micro-ohms values for the four TI LM5066i
hot-swap controllers on the PDB. This ensures accurate current and
power sensor readings from the hardware monitors.

Signed-off-by: Mike Hsieh <mike.quanta.115@gmail.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
index d7ed497d7227..3faac0925a79 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
@@ -450,7 +450,7 @@ pdb_mps_hsc1: power-monitor@10 {
 	pdb_ti_hsc1: power-monitor@11 {
 		compatible = "ti,lm5066i";
 		reg = <0x11>;
-		shunt-resistor-micro-ohms = <763>;
+		shunt-resistor-micro-ohms = <1000>;
 	};
 
 	pdb_mps_hsc2: power-monitor@12 {
@@ -461,7 +461,7 @@ pdb_mps_hsc2: power-monitor@12 {
 	pdb_ti_hsc2: power-monitor@13 {
 		compatible = "ti,lm5066i";
 		reg = <0x13>;
-		shunt-resistor-micro-ohms = <294>;
+		shunt-resistor-micro-ohms = <321>;
 	};
 
 	pdb_mps_hsc3: power-monitor@14 {
@@ -472,7 +472,7 @@ pdb_mps_hsc3: power-monitor@14 {
 	pdb_ti_hsc3: power-monitor@15 {
 		compatible = "ti,lm5066i";
 		reg = <0x15>;
-		shunt-resistor-micro-ohms = <294>;
+		shunt-resistor-micro-ohms = <321>;
 	};
 
 	pdb_mps_hsc4: power-monitor@16 {
@@ -483,7 +483,7 @@ pdb_mps_hsc4: power-monitor@16 {
 	pdb_ti_hsc4: power-monitor@17 {
 		compatible = "ti,lm5066i";
 		reg = <0x17>;
-		shunt-resistor-micro-ohms = <381>;
+		shunt-resistor-micro-ohms = <500>;
 	};
 
 	pdb_ioexp_20: gpio@20 {

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC
  2026-06-18  7:41 [PATCH 0/2] ARM: dts: aspeed: sanmiguel: configure LM5066i HSCs for PDB Mike Hsieh
  2026-06-18  7:41 ` [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor Mike Hsieh
@ 2026-06-18  7:41 ` Mike Hsieh
  2026-07-22 12:07   ` Andrew Jeffery
  1 sibling, 1 reply; 5+ messages in thread
From: Mike Hsieh @ 2026-06-18  7:41 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
	Andrew Jeffery, Patrick Williams
  Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
	Cosmo Chou, Potin Lai, Mik Lin, Mike Hsieh, Mike Hsieh

Configure the ti,current-range property for the four TI LM5066i
hot-swap controllers on PDB board.

This defines the hardware current limit operating mode (low/high)
for each sensor to match the physical board design.

Specific configurations:
- HSC1 (0x11): low
- HSC2 (0x13): high
- HSC3 (0x15): high
- HSC4 (0x17): low

Signed-off-by: Mike Hsieh <mike.quanta.115@gmail.com>
---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
index 3faac0925a79..e518e3fc1c97 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
@@ -451,6 +451,7 @@ pdb_ti_hsc1: power-monitor@11 {
 		compatible = "ti,lm5066i";
 		reg = <0x11>;
 		shunt-resistor-micro-ohms = <1000>;
+		ti,current-range = "low";
 	};
 
 	pdb_mps_hsc2: power-monitor@12 {
@@ -462,6 +463,7 @@ pdb_ti_hsc2: power-monitor@13 {
 		compatible = "ti,lm5066i";
 		reg = <0x13>;
 		shunt-resistor-micro-ohms = <321>;
+		ti,current-range = "high";
 	};
 
 	pdb_mps_hsc3: power-monitor@14 {
@@ -473,6 +475,7 @@ pdb_ti_hsc3: power-monitor@15 {
 		compatible = "ti,lm5066i";
 		reg = <0x15>;
 		shunt-resistor-micro-ohms = <321>;
+		ti,current-range = "high";
 	};
 
 	pdb_mps_hsc4: power-monitor@16 {
@@ -484,6 +487,7 @@ pdb_ti_hsc4: power-monitor@17 {
 		compatible = "ti,lm5066i";
 		reg = <0x17>;
 		shunt-resistor-micro-ohms = <500>;
+		ti,current-range = "low";
 	};
 
 	pdb_ioexp_20: gpio@20 {

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC
  2026-06-18  7:41 ` [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC Mike Hsieh
@ 2026-07-22 12:07   ` Andrew Jeffery
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Jeffery @ 2026-07-22 12:07 UTC (permalink / raw)
  To: Mike Hsieh, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Joel Stanley, Patrick Williams
  Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
	Cosmo Chou, Potin Lai, Mik Lin, Mike Hsieh

On Thu, 2026-06-18 at 15:41 +0800, Mike Hsieh wrote:
> Configure the ti,current-range property for the four TI LM5066i
> hot-swap controllers on PDB board.
> 
> This defines the hardware current limit operating mode (low/high)
> for each sensor to match the physical board design.
> 
> Specific configurations:
> - HSC1 (0x11): low
> - HSC2 (0x13): high
> - HSC3 (0x15): high
> - HSC4 (0x17): low
> 
> Signed-off-by: Mike Hsieh <mike.quanta.115@gmail.com>
> ---
>  arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> index 3faac0925a79..e518e3fc1c97 100644
> --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts
> @@ -451,6 +451,7 @@ pdb_ti_hsc1: power-monitor@11 {
>  		compatible = "ti,lm5066i";
>  		reg = <0x11>;
>  		shunt-resistor-micro-ohms = <1000>;
> +		ti,current-range = "low";
>  	};
>  
>  	pdb_mps_hsc2: power-monitor@12 {
> @@ -462,6 +463,7 @@ pdb_ti_hsc2: power-monitor@13 {
>  		compatible = "ti,lm5066i";
>  		reg = <0x13>;
>  		shunt-resistor-micro-ohms = <321>;
> +		ti,current-range = "high";
>  	};
>  
>  	pdb_mps_hsc3: power-monitor@14 {
> @@ -473,6 +475,7 @@ pdb_ti_hsc3: power-monitor@15 {
>  		compatible = "ti,lm5066i";
>  		reg = <0x15>;
>  		shunt-resistor-micro-ohms = <321>;
> +		ti,current-range = "high";
>  	};
>  
>  	pdb_mps_hsc4: power-monitor@16 {
> @@ -484,6 +487,7 @@ pdb_ti_hsc4: power-monitor@17 {
>  		compatible = "ti,lm5066i";
>  		reg = <0x17>;
>  		shunt-resistor-micro-ohms = <500>;
> +		ti,current-range = "low";
>  	};
>  
>  	pdb_ioexp_20: gpio@20 {

The property isn't inspected by the associated driver, nor is it
allowed by the binding:

   arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dtb: power-monitor@11 (ti,lm5066i): Unevaluated properties are not allowed ('ti,current-range' was unexpected)
           from schema $id: http://devicetree.org/schemas/hwmon/pmbus/ti,lm25066.yaml
   arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dtb: power-monitor@13 (ti,lm5066i): Unevaluated properties are not allowed ('ti,current-range' was unexpected)
           from schema $id: http://devicetree.org/schemas/hwmon/pmbus/ti,lm25066.yaml
   arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dtb: power-monitor@15 (ti,lm5066i): Unevaluated properties are not allowed ('ti,current-range' was unexpected)
           from schema $id: http://devicetree.org/schemas/hwmon/pmbus/ti,lm25066.yaml
   arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dtb: power-monitor@17 (ti,lm5066i): Unevaluated properties are not allowed ('ti,current-range' was unexpected)
           from schema $id: http://devicetree.org/schemas/hwmon/pmbus/ti,lm25066.yaml

Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor
  2026-06-18  7:41 ` [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor Mike Hsieh
@ 2026-07-22 12:07   ` Andrew Jeffery
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Jeffery @ 2026-07-22 12:07 UTC (permalink / raw)
  To: Mike Hsieh, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Joel Stanley, Patrick Williams
  Cc: devicetree, linux-arm-kernel, linux-aspeed, linux-kernel,
	Cosmo Chou, Potin Lai, Mik Lin, Mike Hsieh

On Thu, 2026-06-18 at 15:41 +0800, Mike Hsieh wrote:
> Correct the shunt-resistor-micro-ohms values for the four TI LM5066i
> hot-swap controllers on the PDB. This ensures accurate current and
> power sensor readings from the hardware monitors.
> 
> Signed-off-by: Mike Hsieh <mike.quanta.115@gmail.com>
> ---
>  arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

I've applied this one.

Thanks,

Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-22 12:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-18  7:41 [PATCH 0/2] ARM: dts: aspeed: sanmiguel: configure LM5066i HSCs for PDB Mike Hsieh
2026-06-18  7:41 ` [PATCH 1/2] ARM: dts: aspeed: sanmiguel: fix PDB HSC shunt resistor Mike Hsieh
2026-07-22 12:07   ` Andrew Jeffery
2026-06-18  7:41 ` [PATCH 2/2] ARM: dts: aspeed: sanmiguel: add current-range property for PDB HSC Mike Hsieh
2026-07-22 12:07   ` Andrew Jeffery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome