From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 31 Oct 2016 21:41:55 +0100 (CET) Received: from outils.crapouillou.net ([89.234.176.41]:40022 "EHLO outils.crapouillou.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23993008AbcJaUkTIDs90 (ORCPT ); Mon, 31 Oct 2016 21:40:19 +0100 From: Paul Cercueil To: rtc-linux@googlegroups.com, Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Ralf Baechle , Maarten ter Huurne , Lars-Peter Clausen , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Cc: Paul Cercueil Subject: [PATCH v3 5/7] MIPS: jz4740: DTS: Probe the jz4740-rtc driver from devicetree Date: Mon, 31 Oct 2016 21:39:49 +0100 Message-Id: <20161031203951.5444-5-paul@crapouillou.net> In-Reply-To: <20161031203951.5444-1-paul@crapouillou.net> References: <20161030230247.20538-1-paul@crapouillou.net> <20161031203951.5444-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1477946418; bh=u8OFy4ogbdE/gfvwyaS7QzuIfaiJ3O9nXyFRpkrEnds=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ZvukspquorRDj2c5JzP3XSxDUUk8iPUsw1OTVFsx6qmq8tUStJOrkEttncsB6pgh4+HaSPhS8G6tJYPjfaTsQ8x/8PgIEExv/BH6r4LrDBnCCufjlzrA51vi27FuPXuwr3mft1PYQ4x3rW1JS06fVTxlA9xC5r05CGA62yTSbiI= Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 55619 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: paul@crapouillou.net Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Now that the jz4740-rtc driver supports devicetree, we can add a devicetree node for it. Signed-off-by: Paul Cercueil Acked-by: Maarten ter Huurne --- arch/mips/boot/dts/ingenic/jz4740.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) v2: Previous patch 5/5 was garbage. This is a new patch. v3: Changed 'jz4740-rtc@10003000' to 'rtc@10003000' diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi index f6ae6ed..c6acd6a 100644 --- a/arch/mips/boot/dts/ingenic/jz4740.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi @@ -44,6 +44,17 @@ #clock-cells = <1>; }; + rtc_dev: rtc@10003000 { + compatible = "ingenic,jz4740-rtc"; + reg = <0x10003000 0x40>; + + interrupt-parent = <&intc>; + interrupts = <15>; + + clocks = <&cgu JZ4740_CLK_RTC>; + clock-names = "rtc"; + }; + uart0: serial@10030000 { compatible = "ingenic,jz4740-uart"; reg = <0x10030000 0x100>; -- 2.9.3