From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752102AbcAFHmr (ORCPT ); Wed, 6 Jan 2016 02:42:47 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]:49862 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751341AbcAFHmo convert rfc822-to-8bit (ORCPT ); Wed, 6 Jan 2016 02:42:44 -0500 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcKdUCnXG6JabOfSXKWrat+gtPqzo0= X-RZG-CLASS-ID: mo00 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery From: "H. Nikolaus Schaller" In-Reply-To: <568C5451.8070709@ti.com> Date: Wed, 6 Jan 2016 08:42:35 +0100 Cc: =?windows-1252?Q?Beno=EEt_Cousson?= , Tony Lindgren , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , linux-omap , devicetree@vger.kernel.org, LKML , Marek Belisko Content-Transfer-Encoding: 8BIT Message-Id: References: <568C5451.8070709@ti.com> To: Nishanth Menon , Laxman Dewangan X-Mailer: Apple Mail (2.1878.6) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 06.01.2016 um 00:40 schrieb Nishanth Menon : > On 01/05/2016 06:01 AM, H. Nikolaus Schaller wrote: >> tested on OMP5432 EVM >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> arch/arm/boot/dts/omap5-board-common.dtsi | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> >> diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi >> index 5cf76a1..30c0d3b 100644 >> --- a/arch/arm/boot/dts/omap5-board-common.dtsi >> +++ b/arch/arm/boot/dts/omap5-board-common.dtsi >> @@ -358,6 +358,14 @@ >> #clock-cells = <0>; >> }; >> >> + rtc { >> + compatible = "ti,palmas-rtc"; >> + interrupt-parent = <&palmas>; >> + interrupts = <8 IRQ_TYPE_NONE>; > > IRQ_TYPE_NONE is not correct here -> it should have some polarity - if > it had none, there'd be no interrupt, right? Well, it just translates IRQ_TYPE_NONE through Linux/include/dt-bindings/interrupt-controller/irq.h to interrupts = <8 0>; which is given as an example in Documentation//devicetree/bindings/rtc/rtc-palmas.txt Since I don't know anything about the rtc driver beyond the bindings documentation I assume it is correct... I have added Laxman Dewangan because he introduced this interrupts = <8 0>; > >> + ti,backup-battery-chargeable; >> + ti,backup-battery-charge-high-current; >> + }; >> + >> palmas_pmic { >> compatible = "ti,palmas-pmic"; >> interrupt-parent = <&palmas>; >> > > > -- > Regards, > Nishanth Menon BR, Nikolaus