devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog
@ 2018-04-06  7:50 Quentin Schulz
  2018-04-06  7:50 ` [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600 Quentin Schulz
  2018-04-06  7:56 ` [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Viresh Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Quentin Schulz @ 2018-04-06  7:50 UTC (permalink / raw)
  To: vireshk, shiraz.linux.kernel, robh+dt, mark.rutland, mturquette,
	sboyd
  Cc: linux-arm-kernel, devicetree, linux-kernel, linux-clk,
	thomas.petazzoni, Quentin Schulz

The SPEAr600 has a built-in watchdog which already has a DT binding
described in Documentation/devicetree/bindings/watchdog/sp805-wdt.txt.

Let's add the description of the watchdog device in the SPEAr600 Device
Tree.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
---
 arch/arm/boot/dts/spear600.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/spear600.dtsi b/arch/arm/boot/dts/spear600.dtsi
index 00166eb..d7c3096 100644
--- a/arch/arm/boot/dts/spear600.dtsi
+++ b/arch/arm/boot/dts/spear600.dtsi
@@ -213,6 +213,14 @@
 				interrupts = <6>;
 				status = "disabled";
 			};
+
+			wdt: wdt@fc880000 {
+				compatible = "arm,sp805", "arm,primecell";
+				reg = <0xfc880000 0x1000>;
+				interrupt-parent = <&vic1>;
+				interrupts = <20>;
+				status = "disabled";
+			};
 		};
 	};
 };

base-commit: 5e1dacccbb87780856219e29122f1eccec912ebb
-- 
git-series 0.9.1

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

* [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600
  2018-04-06  7:50 [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Quentin Schulz
@ 2018-04-06  7:50 ` Quentin Schulz
  2018-04-06  7:57   ` Viresh Kumar
  2018-04-06 20:47   ` Stephen Boyd
  2018-04-06  7:56 ` [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Viresh Kumar
  1 sibling, 2 replies; 5+ messages in thread
From: Quentin Schulz @ 2018-04-06  7:50 UTC (permalink / raw)
  To: vireshk, shiraz.linux.kernel, robh+dt, mark.rutland, mturquette,
	sboyd
  Cc: linux-arm-kernel, devicetree, linux-kernel, linux-clk,
	thomas.petazzoni, Quentin Schulz

There is no SPEAr600 device named "wdt". Instead, the description of the
WDT (watchdog) was recently added to the Device Tree, and the device
name is "fc880000.wdt", so we should associate the WDT fixed rate clock
to this device name.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
---
 drivers/clk/spear/spear6xx_clock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
index f911d9f..47810be 100644
--- a/drivers/clk/spear/spear6xx_clock.c
+++ b/drivers/clk/spear/spear6xx_clock.c
@@ -147,7 +147,7 @@ void __init spear6xx_clk_init(void __iomem *misc_base)
 
 	clk = clk_register_fixed_factor(NULL, "wdt_clk", "osc_30m_clk", 0, 1,
 			1);
-	clk_register_clkdev(clk, NULL, "wdt");
+	clk_register_clkdev(clk, NULL, "fc880000.wdt");
 
 	/* clock derived from pll1 clk */
 	clk = clk_register_fixed_factor(NULL, "cpu_clk", "pll1_clk",
-- 
git-series 0.9.1

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

* Re: [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog
  2018-04-06  7:50 [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Quentin Schulz
  2018-04-06  7:50 ` [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600 Quentin Schulz
@ 2018-04-06  7:56 ` Viresh Kumar
  1 sibling, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2018-04-06  7:56 UTC (permalink / raw)
  To: Quentin Schulz
  Cc: vireshk, shiraz.linux.kernel, robh+dt, mark.rutland, mturquette,
	sboyd, linux-arm-kernel, devicetree, linux-kernel, linux-clk,
	thomas.petazzoni

On 06-04-18, 09:50, Quentin Schulz wrote:
> The SPEAr600 has a built-in watchdog which already has a DT binding
> described in Documentation/devicetree/bindings/watchdog/sp805-wdt.txt.
> 
> Let's add the description of the watchdog device in the SPEAr600 Device
> Tree.
> 
> Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
> ---
>  arch/arm/boot/dts/spear600.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/spear600.dtsi b/arch/arm/boot/dts/spear600.dtsi
> index 00166eb..d7c3096 100644
> --- a/arch/arm/boot/dts/spear600.dtsi
> +++ b/arch/arm/boot/dts/spear600.dtsi
> @@ -213,6 +213,14 @@
>  				interrupts = <6>;
>  				status = "disabled";
>  			};
> +
> +			wdt: wdt@fc880000 {
> +				compatible = "arm,sp805", "arm,primecell";
> +				reg = <0xfc880000 0x1000>;
> +				interrupt-parent = <&vic1>;
> +				interrupts = <20>;
> +				status = "disabled";
> +			};
>  		};
>  	};
>  };

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

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

* Re: [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600
  2018-04-06  7:50 ` [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600 Quentin Schulz
@ 2018-04-06  7:57   ` Viresh Kumar
  2018-04-06 20:47   ` Stephen Boyd
  1 sibling, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2018-04-06  7:57 UTC (permalink / raw)
  To: Quentin Schulz
  Cc: vireshk, shiraz.linux.kernel, robh+dt, mark.rutland, mturquette,
	sboyd, linux-arm-kernel, devicetree, linux-kernel, linux-clk,
	thomas.petazzoni

On 06-04-18, 09:50, Quentin Schulz wrote:
> There is no SPEAr600 device named "wdt". Instead, the description of the
> WDT (watchdog) was recently added to the Device Tree, and the device
> name is "fc880000.wdt", so we should associate the WDT fixed rate clock
> to this device name.
> 
> Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
> ---
>  drivers/clk/spear/spear6xx_clock.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
> index f911d9f..47810be 100644
> --- a/drivers/clk/spear/spear6xx_clock.c
> +++ b/drivers/clk/spear/spear6xx_clock.c
> @@ -147,7 +147,7 @@ void __init spear6xx_clk_init(void __iomem *misc_base)
>  
>  	clk = clk_register_fixed_factor(NULL, "wdt_clk", "osc_30m_clk", 0, 1,
>  			1);
> -	clk_register_clkdev(clk, NULL, "wdt");
> +	clk_register_clkdev(clk, NULL, "fc880000.wdt");
>  
>  	/* clock derived from pll1 clk */
>  	clk = clk_register_fixed_factor(NULL, "cpu_clk", "pll1_clk",

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

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

* Re: [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600
  2018-04-06  7:50 ` [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600 Quentin Schulz
  2018-04-06  7:57   ` Viresh Kumar
@ 2018-04-06 20:47   ` Stephen Boyd
  1 sibling, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2018-04-06 20:47 UTC (permalink / raw)
  To: mark.rutland, mturquette, robh+dt, shiraz.linux.kernel, vireshk
  Cc: linux-arm-kernel, devicetree, linux-kernel, linux-clk,
	thomas.petazzoni, Quentin Schulz

Quoting Quentin Schulz (2018-04-06 00:50:45)
> There is no SPEAr600 device named "wdt". Instead, the description of the
> WDT (watchdog) was recently added to the Device Tree, and the device
> name is "fc880000.wdt", so we should associate the WDT fixed rate clock
> to this device name.
> 
> Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
> ---

Applied to clk-next

I take it there are other problems though, e.g. clcd. Why not use DT
lookups instead of clkdev ones?

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

end of thread, other threads:[~2018-04-06 20:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-06  7:50 [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Quentin Schulz
2018-04-06  7:50 ` [PATCH 2/2] clk: spear: fix WDT clock definition on SPEAr600 Quentin Schulz
2018-04-06  7:57   ` Viresh Kumar
2018-04-06 20:47   ` Stephen Boyd
2018-04-06  7:56 ` [PATCH 1/2] ARM: SPEAr600: add DT description of the watchdog Viresh Kumar

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).