linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fix clock of X1000 watchdog node.
@ 2020-02-16 12:10 周琰杰 (Zhou Yanjie)
  2020-02-16 12:10 ` [PATCH] " 周琰杰 (Zhou Yanjie)
  2020-02-16 12:10 ` [PATCH] MIPS: X1000: Fix clock of " 周琰杰 (Zhou Yanjie)
  0 siblings, 2 replies; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-02-16 12:10 UTC (permalink / raw)
  To: linux-mips
  Cc: linux-kernel, devicetree, paul, robh+dt, mark.rutland, ralf,
	paulburton, sernia.zhou, zhenwenjin, dongsheng.qiu

Fix clock of Ingenic X1000's watchdog node.


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

* [PATCH] Fix clock of X1000 watchdog node.
  2020-02-16 12:10 Fix clock of X1000 watchdog node 周琰杰 (Zhou Yanjie)
@ 2020-02-16 12:10 ` 周琰杰 (Zhou Yanjie)
  2020-02-16 12:10 ` [PATCH] MIPS: X1000: Fix clock of " 周琰杰 (Zhou Yanjie)
  1 sibling, 0 replies; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-02-16 12:10 UTC (permalink / raw)
  To: linux-mips
  Cc: linux-kernel, devicetree, paul, robh+dt, mark.rutland, ralf,
	paulburton, sernia.zhou, zhenwenjin, dongsheng.qiu

Fix clock of X1000's watchdog node.

周琰杰 (Zhou Yanjie) (1):
  MIPS: X1000: Fix clock of watchdog node.

 arch/mips/boot/dts/ingenic/x1000.dtsi | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

-- 
2.7.4


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

* [PATCH] MIPS: X1000: Fix clock of watchdog node.
  2020-02-16 12:10 Fix clock of X1000 watchdog node 周琰杰 (Zhou Yanjie)
  2020-02-16 12:10 ` [PATCH] " 周琰杰 (Zhou Yanjie)
@ 2020-02-16 12:10 ` 周琰杰 (Zhou Yanjie)
  2020-02-19 19:01   ` Paul Burton
  1 sibling, 1 reply; 4+ messages in thread
From: 周琰杰 (Zhou Yanjie) @ 2020-02-16 12:10 UTC (permalink / raw)
  To: linux-mips
  Cc: linux-kernel, devicetree, paul, robh+dt, mark.rutland, ralf,
	paulburton, sernia.zhou, zhenwenjin, dongsheng.qiu

The devicetree ABI was broken on purpose by commit 6d532143c915
("watchdog: jz4740: Use regmap provided by TCU driver"), and
commit 1d9c30745455 ("watchdog: jz4740: Use WDT clock provided
by TCU driver"). The commit message of the latter explains why the ABI
was broken.

However, the current devicetree files were not updated to the new ABI
described in Documentation/devicetree/bindings/timer/ingenic,tcu.txt,
so the watchdog driver would not probe.

Fix this problem by updating the clock of watchdog node from
"&cgu X1000_CLK_RTCLK" to "&tcu TCU_CLK_WDT" to comply with the new
ABI.

Fixes: 7a16ccd300c2 ("[v8,1/4] MIPS: Ingenic: Add Ingenic X1000
support.").

Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
---
 arch/mips/boot/dts/ingenic/x1000.dtsi | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi
index 4994c69..147f7d5 100644
--- a/arch/mips/boot/dts/ingenic/x1000.dtsi
+++ b/arch/mips/boot/dts/ingenic/x1000.dtsi
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <dt-bindings/clock/ingenic,tcu.h>
 #include <dt-bindings/clock/x1000-cgu.h>
 #include <dt-bindings/dma/x1000-dma.h>
 
@@ -72,7 +73,7 @@
 			compatible = "ingenic,x1000-watchdog", "ingenic,jz4780-watchdog";
 			reg = <0x0 0x10>;
 
-			clocks = <&cgu X1000_CLK_RTCLK>;
+			clocks = <&tcu TCU_CLK_WDT>;
 			clock-names = "wdt";
 		};
 	};
@@ -158,7 +159,6 @@
 	i2c0: i2c-controller@10050000 {
 		compatible = "ingenic,x1000-i2c";
 		reg = <0x10050000 0x1000>;
-
 		#address-cells = <1>;
 		#size-cells = <0>;
 
@@ -173,7 +173,6 @@
 	i2c1: i2c-controller@10051000 {
 		compatible = "ingenic,x1000-i2c";
 		reg = <0x10051000 0x1000>;
-
 		#address-cells = <1>;
 		#size-cells = <0>;
 
@@ -188,7 +187,6 @@
 	i2c2: i2c-controller@10052000 {
 		compatible = "ingenic,x1000-i2c";
 		reg = <0x10052000 0x1000>;
-
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-- 
2.7.4


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

* Re: [PATCH] MIPS: X1000: Fix clock of watchdog node.
  2020-02-16 12:10 ` [PATCH] MIPS: X1000: Fix clock of " 周琰杰 (Zhou Yanjie)
@ 2020-02-19 19:01   ` Paul Burton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Burton @ 2020-02-19 19:01 UTC (permalink / raw)
  To: 周琰杰 (Zhou Yanjie)
  Cc: linux-mips, linux-kernel, devicetree, paul, robh+dt,
	mark.rutland, ralf, paulburton, sernia.zhou, zhenwenjin,
	dongsheng.qiu, linux-mips

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1179 bytes --]

Hello,

周琰杰 (Zhou Yanjie) wrote:
> The devicetree ABI was broken on purpose by commit 6d532143c915
> ("watchdog: jz4740: Use regmap provided by TCU driver"), and
> commit 1d9c30745455 ("watchdog: jz4740: Use WDT clock provided
> by TCU driver"). The commit message of the latter explains why the ABI
> was broken.
> 
> However, the current devicetree files were not updated to the new ABI
> described in Documentation/devicetree/bindings/timer/ingenic,tcu.txt,
> so the watchdog driver would not probe.
> 
> Fix this problem by updating the clock of watchdog node from
> "&cgu X1000_CLK_RTCLK" to "&tcu TCU_CLK_WDT" to comply with the new
> ABI.
> 
> Fixes: 7a16ccd300c2 ("[v8,1/4] MIPS: Ingenic: Add Ingenic X1000
> support.").

Applied to mips-fixes.

> commit eb41113870c9
> https://git.kernel.org/mips/c/eb41113870c9
> 
> Fixes: 7a16ccd300c2 ("[v8,1/4] MIPS: Ingenic: Add Ingenic X1000 support.").
> Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
> Signed-off-by: Paul Burton <paulburton@kernel.org>

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paulburton@kernel.org to report it. ]

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

end of thread, other threads:[~2020-02-19 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 12:10 Fix clock of X1000 watchdog node 周琰杰 (Zhou Yanjie)
2020-02-16 12:10 ` [PATCH] " 周琰杰 (Zhou Yanjie)
2020-02-16 12:10 ` [PATCH] MIPS: X1000: Fix clock of " 周琰杰 (Zhou Yanjie)
2020-02-19 19:01   ` Paul Burton

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