From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx-out02.mykolab.com (mx.kolabnow.com [95.128.36.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3t47Zv2rXKzDt3c for ; Thu, 27 Oct 2016 11:49:59 +1100 (AEDT) X-Virus-Scanned: amavisd-new at kolabnow.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham Received: from mx05.mykolab.com (mx05.mykolab.com [10.20.7.161]) by mx-out02.mykolab.com (Postfix) with ESMTPS id 919E861715; Thu, 27 Oct 2016 02:49:55 +0200 (CEST) Date: Thu, 27 Oct 2016 11:49:48 +1100 From: Chris Smart To: openbmc@lists.ozlabs.org Subject: [PATCH v3] ARM: dts: witherspoon: add Epson RX8900CE RTC module Message-ID: <20161027004942.GA16971@distroguy.com> References: <20161026065509.GA10287@distroguy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20161026065509.GA10287@distroguy.com> X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 00:49:59 -0000 This commit adds the relevant device tree entry for the Epson RX8900CE RTC module on the I2C bus. Note that there are two options that we may need to set. If there is no connected battery: epson,vdet-disable; If there is no trickle charge diode: epson,vdet-disable; These are currently left commented out in the commit. Signed-off-by: Chris Smart --- Changes since v1: - fixed up the entry for rtc@32 Changes since v2: - fix up code formatting Tested with kernel config from openbmc meta-ast2500 yocto, compiled with: ARCH=arm CROSS_COMPILE=arm-linux-gnu- make -j$(nproc) dtbs arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts index 328a9c4e189e..2972c6279183 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts @@ -148,7 +148,19 @@ /* TPM */ /* 9552 */ + /* RTC */ + rtc@32 { + compatible = "epson,rx8900"; + reg = <0x32>; + /* + * If no battery, set this: + * epson,vdet-disable; + * If no trickle charge diode, set this: + * epson,vdet-disable; + */ + }; + /* EEPROM */ eeprom@51 { -- 2.9.3