All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Smart <chris@distroguy.com>
To: openbmc@lists.ozlabs.org
Subject: [PATCH v2] ARM: dts: witherspoon: add Epson RX8900CE RTC module
Date: Wed, 26 Oct 2016 17:55:14 +1100	[thread overview]
Message-ID: <20161026065509.GA10287@distroguy.com> (raw)

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 <chris@distroguy.com>
---

Changes since v1:
	- fixed up the entry for rtc@32

 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..19a91a207530 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

             reply	other threads:[~2016-10-26  6:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26  6:55 Chris Smart [this message]
2016-10-27  0:18 ` [PATCH v2] ARM: dts: witherspoon: add Epson RX8900CE RTC module Joel Stanley
2016-10-27  0:42   ` Chris Smart
2016-10-27  0:49 ` [PATCH v3] " Chris Smart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161026065509.GA10287@distroguy.com \
    --to=chris@distroguy.com \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.