From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 05 Sep 2017 18:39:55 +0200 (CEST) Received: from smtp3-g21.free.fr ([IPv6:2a01:e0c:1:1599::12]:25471 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23994929AbdIEQjOJ7622 (ORCPT ); Tue, 5 Sep 2017 18:39:14 +0200 Received: from macbookpro.malat.net (unknown [78.225.226.121]) by smtp3-g21.free.fr (Postfix) with ESMTP id CD1BD13F8BA; Tue, 5 Sep 2017 18:39:13 +0200 (CEST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 8A2E010C07EA; Tue, 5 Sep 2017 18:39:13 +0200 (CEST) From: Mathieu Malaterre Cc: Mathieu Malaterre , Rob Herring , Mark Rutland , Ralf Baechle , Linus Walleij , Paul Cercueil , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree Date: Tue, 5 Sep 2017 18:38:59 +0200 Message-Id: <20170905163901.10542-2-malat@debian.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170905163901.10542-1-malat@debian.org> References: <20170905163901.10542-1-malat@debian.org> To: unlisted-recipients:; (no To-header on input) 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: 59937 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: malat@debian.org 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 The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible string to jz4780. Signed-off-by: Mathieu Malaterre --- arch/mips/boot/dts/ingenic/jz4780.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi index 02a752eb6a8e..c338c7d1cbca 100644 --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi @@ -48,6 +48,17 @@ }; }; + rtc_dev: rtc@10003000 { + compatible = "ingenic,jz4780-rtc"; + reg = <0x10003000 0x4c>; + + interrupt-parent = <&intc>; + interrupts = <32>; + + clocks = <&cgu JZ4780_CLK_RTCLK>; + clock-names = "rtc"; + }; + pinctrl: pin-controller@10010000 { compatible = "ingenic,jz4780-pinctrl"; reg = <0x10010000 0x600>; -- 2.11.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp3-g21.free.fr ([IPv6:2a01:e0c:1:1599::12]:25471 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23994929AbdIEQjOJ7622 (ORCPT ); Tue, 5 Sep 2017 18:39:14 +0200 From: Mathieu Malaterre Subject: [PATCH 2/2] MIPS: jz4780: DTS: Probe the jz4740-rtc driver from devicetree Date: Tue, 5 Sep 2017 18:38:59 +0200 Message-ID: <20170905163901.10542-2-malat@debian.org> In-Reply-To: <20170905163901.10542-1-malat@debian.org> References: <20170905163901.10542-1-malat@debian.org> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: Cc: Mathieu Malaterre , Rob Herring , Mark Rutland , Ralf Baechle , Linus Walleij , Paul Cercueil , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Message-ID: <20170905163859.E4nw1BXZP9sst_x_HZgEZRsOLjDvU-mChsXT6iqNEWk@z> The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible string to jz4780. Signed-off-by: Mathieu Malaterre --- arch/mips/boot/dts/ingenic/jz4780.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi index 02a752eb6a8e..c338c7d1cbca 100644 --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi @@ -48,6 +48,17 @@ }; }; + rtc_dev: rtc@10003000 { + compatible = "ingenic,jz4780-rtc"; + reg = <0x10003000 0x4c>; + + interrupt-parent = <&intc>; + interrupts = <32>; + + clocks = <&cgu JZ4780_CLK_RTCLK>; + clock-names = "rtc"; + }; + pinctrl: pin-controller@10010000 { compatible = "ingenic,jz4780-pinctrl"; reg = <0x10010000 0x600>; -- 2.11.0