Discussion:
[PATCH 2/4] ARM: mediatek: dts: Add mt6796 binding
Matthias Brugger
2017-07-20 10:22:45 UTC
Permalink
From: Matthias Brugger <***@suse.com>

This patch adds the binding for the MT6797 SoC.

Signed-off-by: Matthias Brugger <***@gmail.com>
---
Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
index b0d8d3a9d79e..20ada673ab0c 100644
--- a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
+++ b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt
@@ -5,6 +5,7 @@ Required properties:
- compatible should contain:
"mediatek,mt2701-wdt", "mediatek,mt6589-wdt": for MT2701
"mediatek,mt6589-wdt": for MT6589
+ "mediatek,mt6797-wdt", "mediatek,mt6589-wdt": for MT6797

- reg : Specifies base physical address and size of the registers.
--
2.12.3
Matthias Brugger
2017-07-20 10:22:46 UTC
Permalink
From: Matthias Brugger <***@suse.com>

This patch adds the watchdog driver to the MT6796 SoC.

Signed-off-by: Matthias Brugger <***@gmail.com>
---
arch/arm64/boot/dts/mediatek/mt6797.dtsi | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
index 31088a9f71de..1cb45219ef05 100644
--- a/arch/arm64/boot/dts/mediatek/mt6797.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
@@ -147,6 +147,11 @@
infracfg = <&infrasys>;
};

+ watchdog: ***@10007000 {
+ compatible = "mediatek,mt6797-wdt", "mediatek,mt6589-wdt";
+ reg = <0 0x10007000 0 0x100>;
+ };
+
apmixedsys: ***@1000c000 {
compatible = "mediatek,mt6797-apmixedsys";
reg = <0 0x1000c000 0 0x1000>;
--
2.12.3
Matthias Brugger
2017-07-20 10:22:47 UTC
Permalink
After adding the clock subsystem to the SOC, the dummy
clock clk32k is not longer needed. Delete it.

Signed-off-by: Matthias Brugger <***@gmail.com>
---
arch/arm64/boot/dts/mediatek/mt6797.dtsi | 7 -------
1 file changed, 7 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
index 1cb45219ef05..4beaa71107d7 100644
--- a/arch/arm64/boot/dts/mediatek/mt6797.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt6797.dtsi
@@ -108,13 +108,6 @@
clock-output-names = "clk26m";
};

- clk32k: ***@1 {
- compatible = "fixed-clock";
- #clock-cells = <0>;
- clock-frequency = <32000>;
- clock-output-names = "clk32k";
- };
-
timer {
compatible = "arm,armv8-timer";
interrupt-parent = <&gic>;
--
2.12.3
Rob Herring
2017-07-24 19:56:44 UTC
Permalink
This patch cleans up the binding documentation stating explicitly
the binding and it's fallback for every SoC.
---
Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Acked-by: Rob Herring <***@kernel.org>
Rob Herring
2017-07-24 19:57:09 UTC
Permalink
Post by Matthias Brugger
This patch adds the binding for the MT6797 SoC.
---
Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 +
1 file changed, 1 insertion(+)
Acked-by: Rob Herring <***@kernel.org>

Loading...