Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5084317ybv; Tue, 11 Feb 2020 08:54:23 -0800 (PST) X-Google-Smtp-Source: APXvYqyg/ZT0Mypd73AxuRTBeGXRSqh+weKvqZ5q39XVb3oxUIcSnNG9qin2BlCsT3xMGZ5dUkE/ X-Received: by 2002:aca:f1c6:: with SMTP id p189mr3558179oih.159.1581440063008; Tue, 11 Feb 2020 08:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581440063; cv=none; d=google.com; s=arc-20160816; b=VKwfgyKNaflSCRVggDVPZwT0ygKSNhDVXo34NM54/XPLjdj0tDBaviPd/HlYCscFj0 Iwp12zC/J0voo2H0xr+haXd/1z+XT955s8tGMGU/59J5VpjP5gQ2f8tb5ci3mG2o9iw9 5LJw5e3sXRuhAGz4BcGv3GwcYe+nO81fHaxmzbWjL1CJ1FwOn/vjQ00n84chT2BHZlKF JnyrGEgen6gCjaf0h2HHxZ1LYMOdf18vG6BBpFIH4WYS3zA+rlYE3tFs3RWXc9Qt+def HThQeXXvWsfPsMYbC+p66VSAeJn95TY4yYj8es4vNp4uNgFlriVodHQnnd0PKU7DlbdD ng3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=V41n7jOHB7QPynsif3J/pnhegI5IrC8I/pI86s+EjUs=; b=1IDTar0/wcnOLbHEULMqZlhFT4ar4mDP/xIDfG8yhcPjKy49iDb9R5jNNbfU1Ff/IB 0cilwBLYNfq5ZZAtVfrr6UiDg1uC7MdA4cW4Vfx1NdYO1PBCu8RuYTqgcWidZ3gj1P3B LST4GIPSyyeM6JpaXoZ6GFNPUSXcKbLOhxzLjqXig7wjBuUuOIsHwT+kIPNviMP9KkbH a6Zc+6bZn2V0xtFlwEsUalWWZwrtSf3t80dyX3ZLRANUbn93FLhBCxAY4Uv4vvITPf2Q u48E+LJLIFpYciAbFClsKNKHkSvMyZH7/JVYM//GUKVqgDNHQoUWaoxewWfmSY16L0gr BJtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ICHeqN1h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si2215967otp.212.2020.02.11.08.54.10; Tue, 11 Feb 2020 08:54:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=ICHeqN1h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728270AbgBKOxt (ORCPT + 99 others); Tue, 11 Feb 2020 09:53:49 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:50696 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbgBKOxt (ORCPT ); Tue, 11 Feb 2020 09:53:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1581432827; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=V41n7jOHB7QPynsif3J/pnhegI5IrC8I/pI86s+EjUs=; b=ICHeqN1houPtwMeLwhsY2oyaC4llFZddxcnJ6etRDyLXujpFzFQLexpMGzPChWE8eqMi2c PvaVg5Ubu1hY3AHsQpzWbb7AL0U0lsgVRdkBinmVGk7n5W92p2V8/0BWv+loFheEiSSvjW B2Aal3PHKFWeN/TuTX/JxDOT5Jvj5kc= From: Paul Cercueil To: Ralf Baechle , Paul Burton , Rob Herring , Mark Rutland Cc: Zhou Yanjie , od@zcrc.me, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Cercueil , stable@vger.kernel.org Subject: [PATCH] MIPS: ingenic: DTS: Fix watchdog nodes Date: Tue, 11 Feb 2020 11:53:37 -0300 Message-Id: <20200211145337.16311-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 watchdog nodes to comply with the new ABI. Fixes: 6d532143c915 ("watchdog: jz4740: Use regmap provided by TCU driver") Signed-off-by: Paul Cercueil Cc: stable@vger.kernel.org --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 17 +++++++++-------- arch/mips/boot/dts/ingenic/jz4780.dtsi | 17 +++++++++-------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index 5accda2767be..a3301bab9231 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include / { #address-cells = <1>; @@ -45,14 +46,6 @@ cgu: jz4740-cgu@10000000 { #clock-cells = <1>; }; - watchdog: watchdog@10002000 { - compatible = "ingenic,jz4740-watchdog"; - reg = <0x10002000 0x10>; - - clocks = <&cgu JZ4740_CLK_RTC>; - clock-names = "rtc"; - }; - tcu: timer@10002000 { compatible = "ingenic,jz4740-tcu", "simple-mfd"; reg = <0x10002000 0x1000>; @@ -73,6 +66,14 @@ &cgu JZ4740_CLK_PCLK interrupt-parent = <&intc>; interrupts = <23 22 21>; + + watchdog: watchdog@0 { + compatible = "ingenic,jz4740-watchdog"; + reg = <0x0 0xc>; + + clocks = <&tcu TCU_CLK_WDT>; + clock-names = "wdt"; + }; }; rtc_dev: rtc@10003000 { diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi index f928329b034b..bb89653d16a3 100644 --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include #include / { @@ -67,6 +68,14 @@ &cgu JZ4780_CLK_EXCLK interrupt-parent = <&intc>; interrupts = <27 26 25>; + + watchdog: watchdog@0 { + compatible = "ingenic,jz4780-watchdog"; + reg = <0x0 0xc>; + + clocks = <&tcu TCU_CLK_WDT>; + clock-names = "wdt"; + }; }; rtc_dev: rtc@10003000 { @@ -348,14 +357,6 @@ i2c4: i2c@10054000 { status = "disabled"; }; - watchdog: watchdog@10002000 { - compatible = "ingenic,jz4780-watchdog"; - reg = <0x10002000 0x10>; - - clocks = <&cgu JZ4780_CLK_RTCLK>; - clock-names = "rtc"; - }; - nemc: nemc@13410000 { compatible = "ingenic,jz4780-nemc"; reg = <0x13410000 0x10000>; -- 2.25.0