* [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8
@ 2021-01-19 22:34 Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 1/4] arm: dts: npcm7xx: Add syscon property Tomer Maimon
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Tomer Maimon @ 2021-01-19 22:34 UTC (permalink / raw)
To: openbmc; +Cc: Andrew Jeffery, Tomer Maimon, benjaminfair
Minor NPCM7xx modifications to the latest patches
that been pushed to dev-5.8.
Tomer Maimon (4):
arm: dts: npcm7xx: Add syscon property
arm: dts: npcm7xx: modify PECI node.
arm: dts: Olympus: Enable PECI dimm temperature
watchdog: npcm: Modify get reset status function
arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 9 ++++++---
arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 2 ++
drivers/watchdog/npcm_wdt.c | 4 +++-
3 files changed, 11 insertions(+), 4 deletions(-)
--
2.22.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH linux dev-5.8 v1 1/4] arm: dts: npcm7xx: Add syscon property
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
@ 2021-01-19 22:34 ` Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 2/4] arm: dts: npcm7xx: modify PECI node Tomer Maimon
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Tomer Maimon @ 2021-01-19 22:34 UTC (permalink / raw)
To: openbmc; +Cc: Andrew Jeffery, Tomer Maimon, benjaminfair
Add syscon property to ADC and watchdog nodes.
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
index 455a96b23b85..448cfc9d4ae1 100644
--- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
+++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
@@ -82,7 +82,7 @@
"simple-mfd";
reg = <0x801000 0x6C>;
};
-
+
fuse:fuse@18a000 {
compatible = "nuvoton,npcm750-fuse", "syscon",
"simple-mfd";
@@ -425,6 +425,7 @@
reg = <0x801C 0x4>;
status = "disabled";
clocks = <&clk NPCM7XX_CLK_TIMER>;
+ syscon = <&gcr>;
};
watchdog1: watchdog@901C {
@@ -433,6 +434,7 @@
reg = <0x901C 0x4>;
status = "disabled";
clocks = <&clk NPCM7XX_CLK_TIMER>;
+ syscon = <&gcr>;
};
watchdog2: watchdog@a01C {
@@ -441,6 +443,7 @@
reg = <0xa01C 0x4>;
status = "disabled";
clocks = <&clk NPCM7XX_CLK_TIMER>;
+ syscon = <&gcr>;
};
serial0: serial@1000 {
@@ -493,6 +496,7 @@
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk NPCM7XX_CLK_ADC>;
resets = <&rstc NPCM7XX_RESET_IPSRST1 NPCM7XX_RESET_ADC>;
+ syscon = <&fuse>;
status = "disabled";
};
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH linux dev-5.8 v1 2/4] arm: dts: npcm7xx: modify PECI node.
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 1/4] arm: dts: npcm7xx: Add syscon property Tomer Maimon
@ 2021-01-19 22:34 ` Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature Tomer Maimon
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Tomer Maimon @ 2021-01-19 22:34 UTC (permalink / raw)
To: openbmc; +Cc: Andrew Jeffery, Tomer Maimon, benjaminfair
Modify PECI compatible property and remove reg property.
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
index 448cfc9d4ae1..f4794b59fa55 100644
--- a/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
+++ b/arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi
@@ -367,8 +367,7 @@
};
peci: peci-bus@100000 {
- compatible = "nuvoton,npcm750-peci";
- reg = <0x100000 0x200>;
+ compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x100000 0x200>;
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 1/4] arm: dts: npcm7xx: Add syscon property Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 2/4] arm: dts: npcm7xx: modify PECI node Tomer Maimon
@ 2021-01-19 22:34 ` Tomer Maimon
2021-01-19 22:46 ` Joel Stanley
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 4/4] watchdog: npcm: Modify get reset status function Tomer Maimon
2021-01-20 5:36 ` [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Joel Stanley
4 siblings, 1 reply; 8+ messages in thread
From: Tomer Maimon @ 2021-01-19 22:34 UTC (permalink / raw)
To: openbmc; +Cc: Andrew Jeffery, Tomer Maimon, benjaminfair
Enable PECI dimm temperature nodes in Olympus
Quanta machine.
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
index 1692bb7314c5..de34c9b2ff2c 100644
--- a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
+++ b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
@@ -910,10 +910,12 @@
intel-peci-dimmtemp@30 {
compatible = "intel,peci-client";
reg = <0x30>;
+ status = "okay";
};
intel-peci-dimmtemp@31 {
compatible = "intel,peci-client";
reg = <0x31>;
+ status = "okay";
};
};
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH linux dev-5.8 v1 4/4] watchdog: npcm: Modify get reset status function
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
` (2 preceding siblings ...)
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature Tomer Maimon
@ 2021-01-19 22:34 ` Tomer Maimon
2021-01-20 5:36 ` [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Joel Stanley
4 siblings, 0 replies; 8+ messages in thread
From: Tomer Maimon @ 2021-01-19 22:34 UTC (permalink / raw)
To: openbmc; +Cc: Andrew Jeffery, Tomer Maimon, benjaminfair
Once the syscon phandle not found the WD reset
status will not supported and return to the
function caller.
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
---
drivers/watchdog/npcm_wdt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c
index a93180d0a6f4..f87cfadd8d9b 100644
--- a/drivers/watchdog/npcm_wdt.c
+++ b/drivers/watchdog/npcm_wdt.c
@@ -202,8 +202,10 @@ static void npcm_get_reset_status(struct npcm_wdt *wdt, struct device *dev)
u32 rstval;
gcr_regmap = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
- if (IS_ERR(gcr_regmap))
+ if (IS_ERR(gcr_regmap)) {
dev_warn(dev, "Failed to find gcr syscon, WD reset status not supported\n");
+ return;
+ }
regmap_read(gcr_regmap, NPCM7XX_RESSR_OFFSET, &rstval);
if (!rstval) {
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature Tomer Maimon
@ 2021-01-19 22:46 ` Joel Stanley
2021-01-20 8:38 ` Tomer Maimon
0 siblings, 1 reply; 8+ messages in thread
From: Joel Stanley @ 2021-01-19 22:46 UTC (permalink / raw)
To: Tomer Maimon; +Cc: Andrew Jeffery, OpenBMC Maillist, Benjamin Fair
On Tue, 19 Jan 2021 at 22:34, Tomer Maimon <tmaimon77@gmail.com> wrote:
>
> Enable PECI dimm temperature nodes in Olympus
> Quanta machine.
>
> Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
> ---
> arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> index 1692bb7314c5..de34c9b2ff2c 100644
> --- a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> +++ b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> @@ -910,10 +910,12 @@
> intel-peci-dimmtemp@30 {
> compatible = "intel,peci-client";
> reg = <0x30>;
> + status = "okay";
Nodes are enabled by default, you shouldn't need to add "okay" for it
to work. Can you confirm it works without adding this?
> };
> intel-peci-dimmtemp@31 {
> compatible = "intel,peci-client";
> reg = <0x31>;
> + status = "okay";
> };
> };
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
` (3 preceding siblings ...)
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 4/4] watchdog: npcm: Modify get reset status function Tomer Maimon
@ 2021-01-20 5:36 ` Joel Stanley
4 siblings, 0 replies; 8+ messages in thread
From: Joel Stanley @ 2021-01-20 5:36 UTC (permalink / raw)
To: Tomer Maimon; +Cc: Andrew Jeffery, OpenBMC Maillist, Benjamin Fair
On Tue, 19 Jan 2021 at 22:34, Tomer Maimon <tmaimon77@gmail.com> wrote:
>
> Minor NPCM7xx modifications to the latest patches
> that been pushed to dev-5.8.
>
> Tomer Maimon (4):
> arm: dts: npcm7xx: Add syscon property
> arm: dts: npcm7xx: modify PECI node.
> arm: dts: Olympus: Enable PECI dimm temperature
> watchdog: npcm: Modify get reset status function
I have merged patches 1, 2 and 4.
Cheers,
Joel
>
> arch/arm/boot/dts/nuvoton-common-npcm7xx.dtsi | 9 ++++++---
> arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 2 ++
> drivers/watchdog/npcm_wdt.c | 4 +++-
> 3 files changed, 11 insertions(+), 4 deletions(-)
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature
2021-01-19 22:46 ` Joel Stanley
@ 2021-01-20 8:38 ` Tomer Maimon
0 siblings, 0 replies; 8+ messages in thread
From: Tomer Maimon @ 2021-01-20 8:38 UTC (permalink / raw)
To: Joel Stanley; +Cc: Andrew Jeffery, OpenBMC Maillist, Benjamin Fair
[-- Attachment #1: Type: text/plain, Size: 1303 bytes --]
On Wed, 20 Jan 2021 at 00:47, Joel Stanley <joel@jms.id.au> wrote:
> On Tue, 19 Jan 2021 at 22:34, Tomer Maimon <tmaimon77@gmail.com> wrote:
> >
> > Enable PECI dimm temperature nodes in Olympus
> > Quanta machine.
> >
> > Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
> > ---
> > arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> > index 1692bb7314c5..de34c9b2ff2c 100644
> > --- a/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> > +++ b/arch/arm/boot/dts/nuvoton-npcm750-runbmc-olympus.dts
> > @@ -910,10 +910,12 @@
> > intel-peci-dimmtemp@30 {
> > compatible = "intel,peci-client";
> > reg = <0x30>;
> > + status = "okay";
>
> Nodes are enabled by default, you shouldn't need to add "okay" for it
> to work. Can you confirm it works without adding this?
>
> Yes you right.
is working fine without "okay"
>
> > };
> > intel-peci-dimmtemp@31 {
> > compatible = "intel,peci-client";
> > reg = <0x31>;
> > + status = "okay";
> > };
> > };
> >
> > --
> > 2.22.0
> >
>
Cheers,
Tomer
[-- Attachment #2: Type: text/html, Size: 2301 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-01-20 8:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 22:34 [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 1/4] arm: dts: npcm7xx: Add syscon property Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 2/4] arm: dts: npcm7xx: modify PECI node Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 3/4] arm: dts: Olympus: Enable PECI dimm temperature Tomer Maimon
2021-01-19 22:46 ` Joel Stanley
2021-01-20 8:38 ` Tomer Maimon
2021-01-19 22:34 ` [PATCH linux dev-5.8 v1 4/4] watchdog: npcm: Modify get reset status function Tomer Maimon
2021-01-20 5:36 ` [PATCH linux dev-5.8 v1 0/4] Minor NPCM7xx modifications to dev-5.8 Joel Stanley
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.