diff mbox

[v2] ARM: shmobile: gose: Add da9063 PMIC device node for system restart

Message ID 1479407866-7375-1-git-send-email-geert+renesas@glider.be (mailing list archive)
State Accepted
Commit c49b52f1e2163a209d9eed3d7a9bb6a3bfcd48db
Delegated to: Simon Horman
Headers show

Commit Message

Geert Uytterhoeven Nov. 17, 2016, 6:37 p.m. UTC
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(+)

Comments

Simon Horman Nov. 30, 2016, 9:58 a.m. UTC | #1
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.
Simon Horman Nov. 30, 2016, 10 a.m. UTC | #2
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
diff mbox

Patch

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";