Message ID | 1418124169-7123-4-git-send-email-geert+renesas@glider.be (mailing list archive) |
---|---|
State | Superseded |
Commit | b7c3a9b107a8d8ef53ba134be74a2857e7ae6d7d |
Delegated to: | Simon Horman |
Headers | show |
On Tue, Dec 09, 2014 at 12:22:48PM +0100, Geert Uytterhoeven wrote: > Add a minimal device node for the DA9063 PMIC, which is connected to i2c6. > This allows the system to be restarted when the watchdog timer times > out, or when a system restart is requested. > > Regulator support is not yet included, as no DT support code nor DT > binding documentation exists for the regulator functionality. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > Cc: devicetree@vger.kernel.org Hi, I had this queued up for v3.20, however, when rebasing on top of v3.19-rca (previous base was v3.18) I noticed that this patch appears to cause booting koelsch with shmobile_defconfig to stop at: rcar_sound ec500000.rcar_sound: can't get dma channel rcar_sound ec500000.rcar_sound: src[3] (Gen2) failed rcar_sound ec500000.rcar_sound: ssi[1] fallback to PIO mode rcar_sound ec500000.rcar_sound: probed TCP: cubic registered NET: Registered protocol family 10 da9063 6-0058: Failed to read IRQ status: -6 sit: IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 Key type dns_resolver registered random: nonblocking pool is initialized I have (hopefully temporarily) dropped this patch accordingly. > --- > Restart by watchdog timeout is working now. > Manual system restart depends on "[PATCH 1/4] watchdog: da9063: Add restart > handler support". > --- > arch/arm/boot/dts/r8a7791-koelsch.dts | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts > index 6938377d3798644b..a400c27a813f1a8b 100644 > --- a/arch/arm/boot/dts/r8a7791-koelsch.dts > +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts > @@ -524,6 +524,13 @@ > regulator-boot-on; > regulator-always-on; > }; > + > + pmic@58 { > + compatible = "dlg,da9063"; > + reg = <0x58>; > + interrupt-parent = <&irqc0>; > + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; > + }; > }; > > &pci0 { > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Simon, On Sun, Dec 21, 2014 at 11:52 AM, Simon Horman <horms@verge.net.au> wrote: > On Tue, Dec 09, 2014 at 12:22:48PM +0100, Geert Uytterhoeven wrote: >> Add a minimal device node for the DA9063 PMIC, which is connected to i2c6. >> This allows the system to be restarted when the watchdog timer times >> out, or when a system restart is requested. >> >> Regulator support is not yet included, as no DT support code nor DT >> binding documentation exists for the regulator functionality. >> >> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> >> Cc: devicetree@vger.kernel.org > > Hi, > > I had this queued up for v3.20, however, when rebasing on top > of v3.19-rca (previous base was v3.18) I noticed that this patch > appears to cause booting koelsch with shmobile_defconfig to > stop at: > > rcar_sound ec500000.rcar_sound: can't get dma channel > rcar_sound ec500000.rcar_sound: src[3] (Gen2) failed > rcar_sound ec500000.rcar_sound: ssi[1] fallback to PIO mode > rcar_sound ec500000.rcar_sound: probed > TCP: cubic registered > NET: Registered protocol family 10 > da9063 6-0058: Failed to read IRQ status: -6 > sit: IPv6 over IPv4 tunneling driver > NET: Registered protocol family 17 > Key type dns_resolver registered > random: nonblocking pool is initializered I could reproduce the issue on both renesas-devel-20141221-v3.19-rc1 and renesas-drivers-2014-12-22-v3.19-rc1. It doesn't happen on every boot, though. What does happen on every boot is that the da9063-irq value in /proc/interrupts is increasing fast. After a while, the kernel complains: irq 125: nobody cared (try booting with the "irqpoll" option) ... Disabling IRQ #125 None of the above happen in my local development branch... It turns out I don't see the problem because I (still) have code to disable all unused MSTP clocks during startup. If MSTP407 (IRQC) is disabled, everything works fine. If it's left enabled, spurious interrupts are coming in. Changing the interrupt to IRQ_TYPE_LEVEL_HIGH doesn't help, and irq-renesas-irqc.c does use irq_domain_xlate_twocell, so I'm a bit lost... > I have (hopefully temporarily) dropped this patch accordingly. > >> --- >> Restart by watchdog timeout is working now. >> Manual system restart depends on "[PATCH 1/4] watchdog: da9063: Add restart >> handler support". >> --- >> arch/arm/boot/dts/r8a7791-koelsch.dts | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts >> index 6938377d3798644b..a400c27a813f1a8b 100644 >> --- a/arch/arm/boot/dts/r8a7791-koelsch.dts >> +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts >> @@ -524,6 +524,13 @@ >> regulator-boot-on; >> regulator-always-on; >> }; >> + >> + pmic@58 { >> + compatible = "dlg,da9063"; >> + reg = <0x58>; >> + interrupt-parent = <&irqc0>; >> + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; >> + }; >> }; >> >> &pci0 { Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 6938377d3798644b..a400c27a813f1a8b 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -524,6 +524,13 @@ regulator-boot-on; regulator-always-on; }; + + pmic@58 { + compatible = "dlg,da9063"; + reg = <0x58>; + interrupt-parent = <&irqc0>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + }; }; &pci0 {
Add a minimal device node for the DA9063 PMIC, which is connected to i2c6. This allows the system to be restarted when the watchdog timer times out, or when a system restart is requested. Regulator support is not yet included, as no DT support code nor DT binding documentation exists for the regulator functionality. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: devicetree@vger.kernel.org --- Restart by watchdog timeout is working now. Manual system restart depends on "[PATCH 1/4] watchdog: da9063: Add restart handler support". --- arch/arm/boot/dts/r8a7791-koelsch.dts | 7 +++++++ 1 file changed, 7 insertions(+)