All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: dts: nuvoton: npcm7xx: Fix PECI reg offset and wire watchdog sysgcr
@ 2026-11-28  2:52 William A. Kennington III
  2026-11-28  2:52 ` [PATCH 1/2] ARM: dts: nuvoton: npcm7xx: Fix PECI controller reg offset in APB William A. Kennington III
  2026-11-28  2:52 ` [PATCH 2/2] ARM: dts: nuvoton: npcm7xx: Add nuvoton,sysgcr to watchdog nodes William A. Kennington III
  0 siblings, 2 replies; 3+ messages in thread
From: William A. Kennington III @ 2026-11-28  2:52 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Tomer Maimon,
	Arnd Bergmann
  Cc: Andrew Jeffery, Iwona Winiarska, devicetree, openbmc,
	linux-arm-kernel, William A. Kennington III

Two fixes for nuvoton-common-npcm7xx.dtsi found while bringing up Linux
7.3 on an NPCM730 BMC:

1. The peci node under /ahb/apb uses an absolute address (0xf0100000)
   instead of an APB-relative offset (0x100000), failing address
   translation and causing peci-npcm to fail probe with -EINVAL.
2. watchdog0..2 omit nuvoton,sysgcr = <&gcr>, causing npcm_wdt to warn
   that reset status is not supported since commit 7762911c0d8c.

Both patches were tested on NPCM730 hardware and verified with dtc on
nuvoton-npcm750-evb.dts and nuvoton-npcm730-gsj.dts.

William A. Kennington III (2):
  ARM: dts: nuvoton: npcm7xx: Fix PECI controller reg offset in APB
  ARM: dts: nuvoton: npcm7xx: Add nuvoton,sysgcr to watchdog nodes

 arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


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

* [PATCH 1/2] ARM: dts: nuvoton: npcm7xx: Fix PECI controller reg offset in APB
  2026-11-28  2:52 [PATCH 0/2] ARM: dts: nuvoton: npcm7xx: Fix PECI reg offset and wire watchdog sysgcr William A. Kennington III
@ 2026-11-28  2:52 ` William A. Kennington III
  2026-11-28  2:52 ` [PATCH 2/2] ARM: dts: nuvoton: npcm7xx: Add nuvoton,sysgcr to watchdog nodes William A. Kennington III
  1 sibling, 0 replies; 3+ messages in thread
From: William A. Kennington III @ 2026-11-28  2:52 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Tomer Maimon,
	Arnd Bergmann
  Cc: Andrew Jeffery, Iwona Winiarska, devicetree, openbmc,
	linux-arm-kernel, William A. Kennington III

The peci node lives under /ahb/apb, whose ranges property maps
0x0..0x00300000 to 0xf0000000..0xf0300000. Using the absolute address
0xf0100000 fails address translation and causes peci-npcm to fail probe
with -EINVAL (invalid resource).

Use the APB-relative offset 0x100000 like sibling APB nodes and
nuvoton-common-npcm8xx.dtsi. Tested on an NPCM730 BMC where peci-npcm
and all six CPU/DIMM PECI hwmon devices now probe cleanly.

Fixes: 9949f98ca5a8 ("ARM: dts: nuvoton: Add PECI controller node")
Signed-off-by: William A. Kennington III <william@wkennington.com>
---
 arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
index 83cd10b47273..3862adf85b68 100644
--- a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
+++ b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
@@ -325,9 +325,9 @@ kcs3: kcs3@0 {
 				};
 			};
 
-			peci: peci-controller@f0100000 {
+			peci: peci-controller@100000 {
 				compatible = "nuvoton,npcm750-peci";
-				reg = <0xf0100000 0x200>;
+				reg = <0x100000 0x200>;
 				interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
 				clocks = <&clk NPCM7XX_CLK_APB3>;
 				cmd-timeout-ms = <1000>;


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

* [PATCH 2/2] ARM: dts: nuvoton: npcm7xx: Add nuvoton,sysgcr to watchdog nodes
  2026-11-28  2:52 [PATCH 0/2] ARM: dts: nuvoton: npcm7xx: Fix PECI reg offset and wire watchdog sysgcr William A. Kennington III
  2026-11-28  2:52 ` [PATCH 1/2] ARM: dts: nuvoton: npcm7xx: Fix PECI controller reg offset in APB William A. Kennington III
@ 2026-11-28  2:52 ` William A. Kennington III
  1 sibling, 0 replies; 3+ messages in thread
From: William A. Kennington III @ 2026-11-28  2:52 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Tomer Maimon,
	Arnd Bergmann
  Cc: Andrew Jeffery, Iwona Winiarska, devicetree, openbmc,
	linux-arm-kernel, William A. Kennington III

Since commit 7762911c0d8c ("watchdog: npcm: add bootstatus support"),
npcm_wdt looks up the GCR syscon via the optional nuvoton,sysgcr
phandle (defined in nuvoton,npcm750-wdt.yaml) to read reset status and
logs a warning when it is absent:

  Failed to find nuvoton,sysgcr, WD reset status not supported

Wire <&gcr> to watchdog0..2 in nuvoton-common-npcm7xx.dtsi. Tested on
an NPCM730 BMC, clearing the warning and enabling bootstatus.

Signed-off-by: William A. Kennington III <william@wkennington.com>
---
 arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
index 3862adf85b68..e9765fd6ef8e 100644
--- a/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
+++ b/arch/arm/boot/dts/nuvoton/nuvoton-common-npcm7xx.dtsi
@@ -375,6 +375,7 @@ watchdog0: watchdog@801C {
 				reg = <0x801C 0x4>;
 				status = "disabled";
 				clocks = <&clk NPCM7XX_CLK_TIMER>;
+				nuvoton,sysgcr = <&gcr>;
 			};
 
 			watchdog1: watchdog@901C {
@@ -383,6 +384,7 @@ watchdog1: watchdog@901C {
 				reg = <0x901C 0x4>;
 				status = "disabled";
 				clocks = <&clk NPCM7XX_CLK_TIMER>;
+				nuvoton,sysgcr = <&gcr>;
 			};
 
 			watchdog2: watchdog@a01C {
@@ -391,6 +393,7 @@ watchdog2: watchdog@a01C {
 				reg = <0xa01C 0x4>;
 				status = "disabled";
 				clocks = <&clk NPCM7XX_CLK_TIMER>;
+				nuvoton,sysgcr = <&gcr>;
 			};
 
 			serial0: serial@1000 {


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

end of thread, other threads:[~2026-11-28  2:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28  2:52 [PATCH 0/2] ARM: dts: nuvoton: npcm7xx: Fix PECI reg offset and wire watchdog sysgcr William A. Kennington III
2026-11-28  2:52 ` [PATCH 1/2] ARM: dts: nuvoton: npcm7xx: Fix PECI controller reg offset in APB William A. Kennington III
2026-11-28  2:52 ` [PATCH 2/2] ARM: dts: nuvoton: npcm7xx: Add nuvoton,sysgcr to watchdog nodes William A. Kennington III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.