All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart
@ 2016-11-17 18:37 Geert Uytterhoeven
  2016-11-30  9:58 ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2016-11-17 18:37 UTC (permalink / raw)
  To: Simon Horman, Magnus Damm; +Cc: linux-renesas-soc, Geert Uytterhoeven

Enable i2c6, and add a device node for the da9063 PMIC, with subnodes
for rtc and wdt.  Regulator support is not yet included.

This allows the system to be restarted when the watchdog timer times
out, or when a system restart is requested.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Tested using 'reboot -f' and 'cat > /dev/watchdog' (and wait).

v2:
  - Now also confirmed by schematics.
---
 arch/arm/boot/dts/r8a7793-gose.dts | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7793-gose.dts b/arch/arm/boot/dts/r8a7793-gose.dts
index 6329d9d2e8a3e3f4..9b6902834b5d3f6c 100644
--- a/arch/arm/boot/dts/r8a7793-gose.dts
+++ b/arch/arm/boot/dts/r8a7793-gose.dts
@@ -576,6 +576,27 @@
 	};
 };
 
+&i2c6 {
+	status = "okay";
+	clock-frequency = <100000>;
+
+	pmic@58 {
+		compatible = "dlg,da9063";
+		reg = <0x58>;
+		interrupt-parent = <&irqc0>;
+		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-controller;
+
+		rtc {
+			compatible = "dlg,da9063-rtc";
+		};
+
+		wdt {
+			compatible = "dlg,da9063-watchdog";
+		};
+	};
+};
+
 &rcar_sound {
 	pinctrl-0 = <&sound_pins &sound_clk_pins>;
 	pinctrl-names = "default";
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart
  2016-11-17 18:37 [PATCH v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart Geert Uytterhoeven
@ 2016-11-30  9:58 ` Simon Horman
  2016-11-30 10:00   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2016-11-30  9:58 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc

On Thu, Nov 17, 2016 at 07:37:46PM +0100, Geert Uytterhoeven wrote:
> Enable i2c6, and add a device node for the da9063 PMIC, with subnodes
> for rtc and wdt.  Regulator support is not yet included.
> 
> This allows the system to be restarted when the watchdog timer times
> out, or when a system restart is requested.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks, I have queued this up for v4.11.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart
  2016-11-30  9:58 ` Simon Horman
@ 2016-11-30 10:00   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2016-11-30 10:00 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Magnus Damm, linux-renesas-soc

On Wed, Nov 30, 2016 at 10:58:51AM +0100, Simon Horman wrote:
> On Thu, Nov 17, 2016 at 07:37:46PM +0100, Geert Uytterhoeven wrote:
> > Enable i2c6, and add a device node for the da9063 PMIC, with subnodes
> > for rtc and wdt.  Regulator support is not yet included.
> > 
> > This allows the system to be restarted when the watchdog timer times
> > out, or when a system restart is requested.
> > 
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Thanks, I have queued this up for v4.11.

... with s/shmobile/dts/ applied to the subject

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-30 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-17 18:37 [PATCH v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart Geert Uytterhoeven
2016-11-30  9:58 ` Simon Horman
2016-11-30 10:00   ` Simon Horman

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.