Received: by 10.192.165.148 with SMTP id m20csp1509361imm; Thu, 10 May 2018 11:50:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqD7ydkzW5SlyjNU3VZJwGHcVCvH+P7eJ2IYwmae8PC1d5pkFPHwYISfrcsu60cO+2XbZgp X-Received: by 2002:a65:51c4:: with SMTP id i4-v6mr1959056pgq.190.1525978224716; Thu, 10 May 2018 11:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525978224; cv=none; d=google.com; s=arc-20160816; b=vPS8brj9n4qAM2z0Bd2hiLbcK1NCNRTiyBdSJerCuv5SHn6C3E02IsC+L9vlv6Qp+/ tPdRnqLAA/SAzmd++rZrPsWGQlOgVqrTn4hFrAfj0+trwm4YQjyjqv1Ittv9GT19BW8a tSVeMCiQsmbZYaEGAY7a4e9Wcg30royeyDzf2k/3r/xAdaw/ekK1sXg1BEUIbpBTzver 2ObMHHMQ5EQO84XlaV/qM4LvM4RR+kbBP2yLaO7m9OduPnyGfNkukQOrLGcxKV/p4soV 7r2gI54h4YRQou+35tV5MvN013EoqaajVo6kecNPhb/7MoE6fLh8LeMeFjx+c5hBYZTN NUPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=4nus55XOsnPN2DkJJ5PA0tiM2FydUqp4+ratN6Y+oxY=; b=fCzSoi/+5noRH5w3xJMSdW0dC7jLAykDcnziSG+kKpjpzjrNKueMk5xNrwfXiz0qNt xKlh14qLyGR+4FoVusyVCwWRAFOv0d1pCSmZpTztPB7MBQidjUDCrnhJh4a4scCkDA2j hrFZCz3SKzxvCqUD5xDjkzQDS7tvqzplSRtWrkMBQRSgC8AVU5Y3hQhw43KaOL+XFFd7 8xjbPlqzUWLceVu5vaS5HzA8mgawZ7nJPt9d8Jf5RwzHbVfg0PyWeVHGCpvaXzOjoBmi qJh4ZvjsYYbql3mDtHOfuXZSmxKfB3qoN6IrLMFM9pGE9vdnGgX2DtcLaVW5r2WsX25Q +V1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=Vz+fqvis; 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=pass (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 c11-v6si1092790pgu.454.2018.05.10.11.50.10; Thu, 10 May 2018 11:50:24 -0700 (PDT) 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=pass header.i=@crapouillou.net header.s=mail header.b=Vz+fqvis; 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=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751981AbeEJSsf (ORCPT + 99 others); Thu, 10 May 2018 14:48:35 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:56278 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeEJSsc (ORCPT ); Thu, 10 May 2018 14:48:32 -0400 From: Paul Cercueil To: Guenter Roeck , Rob Herring , Mark Rutland , Ralf Baechle , James Hogan Cc: Wim Van Sebroeck , Mathieu Malaterre , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Paul Cercueil Subject: [PATCH v3 5/8] MIPS: jz4740: dts: Add bindings for the jz4740-wdt driver Date: Thu, 10 May 2018 20:47:48 +0200 Message-Id: <20180510184751.13416-5-paul@crapouillou.net> In-Reply-To: <20180510184751.13416-1-paul@crapouillou.net> References: <20180510184751.13416-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1525978110; bh=4nus55XOsnPN2DkJJ5PA0tiM2FydUqp4+ratN6Y+oxY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=Vz+fqviswLzgdWymPCkoYp3OFrmy+7XUtprDef2I98WRdv6iATHUJTCIuLfs1r1TsgJLDI1f6f1rF/XXmUDaTGwCNU2GFEevb8IiVrQxzTX1AjUHbgvd0xwUVU66ebKQ7/d7RqQMwWUFS3h9n5EO2kWkugp4DSRJ2ZEuehWHP5k= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Also remove the watchdog platform_device from platform.c, since it wasn't used anywhere anyway. Signed-off-by: Paul Cercueil --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 8 ++++++++ arch/mips/jz4740/platform.c | 16 ---------------- 2 files changed, 8 insertions(+), 16 deletions(-) v2: No change v3: No change diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index cd5185bb90ae..26c6b561d6f7 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi @@ -45,6 +45,14 @@ #clock-cells = <1>; }; + watchdog: watchdog@10002000 { + compatible = "ingenic,jz4740-watchdog"; + reg = <0x10002000 0x10>; + + clocks = <&cgu JZ4740_CLK_RTC>; + clock-names = "rtc"; + }; + rtc_dev: rtc@10003000 { compatible = "ingenic,jz4740-rtc"; reg = <0x10003000 0x40>; diff --git a/arch/mips/jz4740/platform.c b/arch/mips/jz4740/platform.c index 5b7cdd67a9d9..cbc5f8e87230 100644 --- a/arch/mips/jz4740/platform.c +++ b/arch/mips/jz4740/platform.c @@ -233,22 +233,6 @@ struct platform_device jz4740_adc_device = { .resource = jz4740_adc_resources, }; -/* Watchdog */ -static struct resource jz4740_wdt_resources[] = { - { - .start = JZ4740_WDT_BASE_ADDR, - .end = JZ4740_WDT_BASE_ADDR + 0x10 - 1, - .flags = IORESOURCE_MEM, - }, -}; - -struct platform_device jz4740_wdt_device = { - .name = "jz4740-wdt", - .id = -1, - .num_resources = ARRAY_SIZE(jz4740_wdt_resources), - .resource = jz4740_wdt_resources, -}; - /* PWM */ struct platform_device jz4740_pwm_device = { .name = "jz4740-pwm", -- 2.11.0