linux-mips
[Top] [All Lists]

[PATCH v2 6/8] MIPS: jz4780: dts: Fix watchdog node

To: Ralf Baechle <ralf@linux-mips.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Wim Van Sebroeck <wim@iguana.be>, Guenter Roeck <linux@roeck-us.net>
Subject: [PATCH v2 6/8] MIPS: jz4780: dts: Fix watchdog node
From: Paul Cercueil <paul@crapouillou.net>
Date: Sat, 30 Dec 2017 14:51:06 +0100
Cc: devicetree@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Paul Cercueil <paul@crapouillou.net>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1514641895; bh=+tCJpqKOub7DjxEvVHq20nQ9FtHHQ8cH2vkKrBWMx9Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=CZkGFiw7tzDipjXbZPzfWf+7fQEoGW+urQnkRMjGpyRlgNtCDOjXXLk1BifUpCPq9spmXXpBGiPnxOwSmn4LhTkjO70Fx/l6M41/Zu6Gnf4YR/XJBq2Nz8NthHyRHCoj3BxMgUh/9VroyG2QUJhWiyT6hTTP7C0zgQ8IkPWbznM=
In-reply-to: <20171230135108.6834-1-paul@crapouillou.net>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20171228162939.3928-2-paul@crapouillou.net> <20171230135108.6834-1-paul@crapouillou.net>
Sender: linux-mips-bounce@linux-mips.org
- The previous node requested a memory area of 0x100 bytes, while the
  driver only manipulates four registers present in the first 0x10 bytes.

- The driver requests for the "rtc" clock, but the previous node did not
  provide any.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Mathieu Malaterre <malat@debian.org>
---
 arch/mips/boot/dts/ingenic/jz4780.dtsi | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

 v2: No change

diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi 
b/arch/mips/boot/dts/ingenic/jz4780.dtsi
index 9b5794667aee..a52f59bf58c7 100644
--- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
@@ -221,7 +221,10 @@
 
        watchdog: watchdog@10002000 {
                compatible = "ingenic,jz4780-watchdog";
-               reg = <0x10002000 0x100>;
+               reg = <0x10002000 0x10>;
+
+               clocks = <&cgu JZ4780_CLK_RTCLK>;
+               clock-names = "rtc";
        };
 
        nemc: nemc@13410000 {
-- 
2.11.0


<Prev in Thread] Current Thread [Next in Thread>