* [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example
  2022-07-20 12:50 [PATCH v3 0/4] mediatek: watchdog: Fix compatible fallbacks Allen-KH Cheng
@ 2022-07-20 12:50 ` Allen-KH Cheng
  2022-07-20 13:10   ` AngeloGioacchino Del Regno
  2022-07-25 22:27   ` Rob Herring
  2022-07-20 12:50 ` [PATCH v3 2/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt7986 Allen-KH Cheng
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 10+ messages in thread
From: Allen-KH Cheng @ 2022-07-20 12:50 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Krzysztof Kozlowski,
	Matthias Brugger, Rob Herring, nfraprado
  Cc: angelogioacchino.delregno, Project_Global_Chrome_Upstream_Group,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Allen-KH Cheng
The watchdog timer of mt8186. mt8195 and mt7986 have their DT data.
We should not use 'mediatek,mt6589-wdt' as fallback.
For mediatek,wdt example of mt8183, We remove mediatek,mt6589-wdt fallback.
Fixes:a45b408a020b("dt-bindings: watchdog: Add compatible for MediaTek MT8186")
Fixes:b326f2c85f3d("dt-bindings: watchdog: Add compatible for Mediatek MT8195")
Fixes:41e73feb1024("dt-bindings: watchdog: Add compatible for Mediatek MT7986")
Fixes:f43f97a0fc0e("dt-bindings: mediatek: mt8183: Add #reset-cells")
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
index 762c62e428ef..67ef991ec4cf 100644
--- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
@@ -14,12 +14,12 @@ Required properties:
 	"mediatek,mt7622-wdt", "mediatek,mt6589-wdt": for MT7622
 	"mediatek,mt7623-wdt", "mediatek,mt6589-wdt": for MT7623
 	"mediatek,mt7629-wdt", "mediatek,mt6589-wdt": for MT7629
-	"mediatek,mt7986-wdt", "mediatek,mt6589-wdt": for MT7986
+	"mediatek,mt7986-wdt": for MT7986
 	"mediatek,mt8183-wdt": for MT8183
-	"mediatek,mt8186-wdt", "mediatek,mt6589-wdt": for MT8186
+	"mediatek,mt8186-wdt": for MT8186
 	"mediatek,mt8516-wdt", "mediatek,mt6589-wdt": for MT8516
 	"mediatek,mt8192-wdt": for MT8192
-	"mediatek,mt8195-wdt", "mediatek,mt6589-wdt": for MT8195
+	"mediatek,mt8195-wdt": for MT8195
 
 - reg : Specifies base physical address and size of the registers.
 
@@ -32,8 +32,7 @@ Optional properties:
 Example:
 
 watchdog: watchdog@10007000 {
-	compatible = "mediatek,mt8183-wdt",
-		     "mediatek,mt6589-wdt";
+	compatible = "mediatek,mt8183-wdt";
 	mediatek,disable-extrst;
 	reg = <0 0x10007000 0 0x100>;
 	interrupts = <GIC_SPI 139 IRQ_TYPE_NONE>;
-- 
2.18.0
^ permalink raw reply related	[flat|nested] 10+ messages in thread* Re: [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example
  2022-07-20 12:50 ` [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example Allen-KH Cheng
@ 2022-07-20 13:10   ` AngeloGioacchino Del Regno
  2022-07-25 22:27   ` Rob Herring
  1 sibling, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-07-20 13:10 UTC (permalink / raw)
  To: Allen-KH Cheng, Wim Van Sebroeck, Guenter Roeck,
	Krzysztof Kozlowski, Matthias Brugger, Rob Herring, nfraprado
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-kernel, linux-mediatek
Il 20/07/22 14:50, Allen-KH Cheng ha scritto:
> The watchdog timer of mt8186. mt8195 and mt7986 have their DT data.
> We should not use 'mediatek,mt6589-wdt' as fallback.
> 
> For mediatek,wdt example of mt8183, We remove mediatek,mt6589-wdt fallback.
> 
> Fixes:a45b408a020b("dt-bindings: watchdog: Add compatible for MediaTek MT8186")
> Fixes:b326f2c85f3d("dt-bindings: watchdog: Add compatible for Mediatek MT8195")
> Fixes:41e73feb1024("dt-bindings: watchdog: Add compatible for Mediatek MT7986")
> Fixes:f43f97a0fc0e("dt-bindings: mediatek: mt8183: Add #reset-cells")
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Please fix the commit title: dt-binding: => dt-bindings:
After which....
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply	[flat|nested] 10+ messages in thread* Re: [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example
  2022-07-20 12:50 ` [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example Allen-KH Cheng
  2022-07-20 13:10   ` AngeloGioacchino Del Regno
@ 2022-07-25 22:27   ` Rob Herring
  1 sibling, 0 replies; 10+ messages in thread
From: Rob Herring @ 2022-07-25 22:27 UTC (permalink / raw)
  To: Allen-KH Cheng
  Cc: Matthias Brugger, Rob Herring, angelogioacchino.delregno,
	Krzysztof Kozlowski, nfraprado,
	Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, Guenter Roeck, Wim Van Sebroeck, linux-mediatek,
	linux-kernel
On Wed, 20 Jul 2022 20:50:12 +0800, Allen-KH Cheng wrote:
> The watchdog timer of mt8186. mt8195 and mt7986 have their DT data.
> We should not use 'mediatek,mt6589-wdt' as fallback.
> 
> For mediatek,wdt example of mt8183, We remove mediatek,mt6589-wdt fallback.
> 
> Fixes:a45b408a020b("dt-bindings: watchdog: Add compatible for MediaTek MT8186")
> Fixes:b326f2c85f3d("dt-bindings: watchdog: Add compatible for Mediatek MT8195")
> Fixes:41e73feb1024("dt-bindings: watchdog: Add compatible for Mediatek MT7986")
> Fixes:f43f97a0fc0e("dt-bindings: mediatek: mt8183: Add #reset-cells")
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> ---
>  Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
> 
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH v3 2/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt7986
  2022-07-20 12:50 [PATCH v3 0/4] mediatek: watchdog: Fix compatible fallbacks Allen-KH Cheng
  2022-07-20 12:50 ` [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example Allen-KH Cheng
@ 2022-07-20 12:50 ` Allen-KH Cheng
  2022-07-20 13:11   ` AngeloGioacchino Del Regno
  2022-07-20 12:50 ` [PATCH v3 3/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt8195 Allen-KH Cheng
  2022-07-20 12:50 ` [PATCH v3 4/4] arm64: dts: mediatek: Fix the watchdog node name Allen-KH Cheng
  3 siblings, 1 reply; 10+ messages in thread
From: Allen-KH Cheng @ 2022-07-20 12:50 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Krzysztof Kozlowski,
	Matthias Brugger, Rob Herring, nfraprado
  Cc: angelogioacchino.delregno, Project_Global_Chrome_Upstream_Group,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Allen-KH Cheng
The watchdog driver for mt7986 relies on DT data. The fallback
compatible "mediatek,mt6589-wdt" won't work.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index e3a407d03551..6ab8329c635f 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -113,8 +113,7 @@
 		};
 
 		watchdog: watchdog@1001c000 {
-			compatible = "mediatek,mt7986-wdt",
-				     "mediatek,mt6589-wdt";
+			compatible = "mediatek,mt7986-wdt";
 			reg = <0 0x1001c000 0 0x1000>;
 			interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
 			#reset-cells = <1>;
-- 
2.18.0
^ permalink raw reply related	[flat|nested] 10+ messages in thread* Re: [PATCH v3 2/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt7986
  2022-07-20 12:50 ` [PATCH v3 2/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt7986 Allen-KH Cheng
@ 2022-07-20 13:11   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-07-20 13:11 UTC (permalink / raw)
  To: Allen-KH Cheng, Wim Van Sebroeck, Guenter Roeck,
	Krzysztof Kozlowski, Matthias Brugger, Rob Herring, nfraprado
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-kernel, linux-mediatek
Il 20/07/22 14:50, Allen-KH Cheng ha scritto:
> The watchdog driver for mt7986 relies on DT data. The fallback
> compatible "mediatek,mt6589-wdt" won't work.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH v3 3/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt8195
  2022-07-20 12:50 [PATCH v3 0/4] mediatek: watchdog: Fix compatible fallbacks Allen-KH Cheng
  2022-07-20 12:50 ` [PATCH v3 1/4] dt-binding: mediatek: watchdog: Fix compatible fallbacks and example Allen-KH Cheng
  2022-07-20 12:50 ` [PATCH v3 2/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt7986 Allen-KH Cheng
@ 2022-07-20 12:50 ` Allen-KH Cheng
  2022-07-20 13:11   ` AngeloGioacchino Del Regno
  2022-07-20 12:50 ` [PATCH v3 4/4] arm64: dts: mediatek: Fix the watchdog node name Allen-KH Cheng
  3 siblings, 1 reply; 10+ messages in thread
From: Allen-KH Cheng @ 2022-07-20 12:50 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Krzysztof Kozlowski,
	Matthias Brugger, Rob Herring, nfraprado
  Cc: angelogioacchino.delregno, Project_Global_Chrome_Upstream_Group,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Allen-KH Cheng
The watchdog driver for mt8195 relies on DT data. The fallback
compatible "mediatek,mt6589-wdt" won't work.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8195.dtsi | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
index 066c14989708..31bf4bb97824 100644
--- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi
@@ -325,8 +325,7 @@
 		};
 
 		watchdog: watchdog@10007000 {
-			compatible = "mediatek,mt8195-wdt",
-				     "mediatek,mt6589-wdt";
+			compatible = "mediatek,mt8195-wdt";
 			reg = <0 0x10007000 0 0x100>;
 		};
 
-- 
2.18.0
^ permalink raw reply related	[flat|nested] 10+ messages in thread* Re: [PATCH v3 3/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt8195
  2022-07-20 12:50 ` [PATCH v3 3/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt8195 Allen-KH Cheng
@ 2022-07-20 13:11   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-07-20 13:11 UTC (permalink / raw)
  To: Allen-KH Cheng, Wim Van Sebroeck, Guenter Roeck,
	Krzysztof Kozlowski, Matthias Brugger, Rob Herring, nfraprado
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-kernel, linux-mediatek
Il 20/07/22 14:50, Allen-KH Cheng ha scritto:
> The watchdog driver for mt8195 relies on DT data. The fallback
> compatible "mediatek,mt6589-wdt" won't work.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH v3 4/4] arm64: dts: mediatek: Fix the watchdog node name
  2022-07-20 12:50 [PATCH v3 0/4] mediatek: watchdog: Fix compatible fallbacks Allen-KH Cheng
                   ` (2 preceding siblings ...)
  2022-07-20 12:50 ` [PATCH v3 3/4] arm64: dts: mediatek: Remove mt6589 wdt fallback string from mt8195 Allen-KH Cheng
@ 2022-07-20 12:50 ` Allen-KH Cheng
  2022-07-20 13:12   ` AngeloGioacchino Del Regno
  3 siblings, 1 reply; 10+ messages in thread
From: Allen-KH Cheng @ 2022-07-20 12:50 UTC (permalink / raw)
  To: Wim Van Sebroeck, Guenter Roeck, Krzysztof Kozlowski,
	Matthias Brugger, Rob Herring, nfraprado
  Cc: angelogioacchino.delregno, Project_Global_Chrome_Upstream_Group,
	devicetree, linux-arm-kernel, linux-kernel, linux-mediatek,
	Allen-KH Cheng
The proper name is 'watchdog', not 'toprgu'.
Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8516.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
index d1b67c82d761..fff59dc1b4d7 100644
--- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
@@ -202,7 +202,7 @@
 			#clock-cells = <1>;
 		};
 
-		toprgu: toprgu@10007000 {
+		toprgu: watchdog@10007000 {
 			compatible = "mediatek,mt8516-wdt",
 				     "mediatek,mt6589-wdt";
 			reg = <0 0x10007000 0 0x1000>;
-- 
2.18.0
^ permalink raw reply related	[flat|nested] 10+ messages in thread* Re: [PATCH v3 4/4] arm64: dts: mediatek: Fix the watchdog node name
  2022-07-20 12:50 ` [PATCH v3 4/4] arm64: dts: mediatek: Fix the watchdog node name Allen-KH Cheng
@ 2022-07-20 13:12   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-07-20 13:12 UTC (permalink / raw)
  To: Allen-KH Cheng, Wim Van Sebroeck, Guenter Roeck,
	Krzysztof Kozlowski, Matthias Brugger, Rob Herring, nfraprado
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-kernel, linux-mediatek
Il 20/07/22 14:50, Allen-KH Cheng ha scritto:
> The proper name is 'watchdog', not 'toprgu'.
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply	[flat|nested] 10+ messages in thread