* DA9053 support on mx53qsb
@ 2012-09-26 19:59 Fabio Estevam
2012-09-26 20:04 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-09-26 19:59 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
I am trying to enable Dialog DA9053 on mx53qsb and did the following:
diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts
index 5bae4c7..f3c71e5 100644
--- a/arch/arm/boot/dts/imx53-qsb.dts
+++ b/arch/arm/boot/dts/imx53-qsb.dts
@@ -60,6 +60,7 @@
697 0x80000000 /* MX53_PAD_EIM_DA12__GPIO3_12 */
701 0x80000000 /* MX53_PAD_EIM_DA13__GPIO3_13 */
868 0x80000000 /* MX53_PAD_PATA_DA_0__GPIO7_6 */
+ 1149 0x80000000 /* MX53_PAD_GPIO_16__GPIO7_11 */
>;
};
@@ -106,6 +107,8 @@
pmic: dialog at 48 {
compatible = "dlg,da9053-aa", "dlg,da9052";
reg = <0x48>;
+ interrupt-parent = <&gpio7>;
+ interrupts = <11 0x8>; /* low-level active IRQ at GPIO7_11 */
regulators {
buck0 {
--
and this is what I get:
...
da9052 1-0048: DA9052 ADC IRQ failed ret=-22 ----> fails here
BUCK1: 500 <--> 2075 mV at 1250 mV at 3000 mA
BUCK2: 925 <--> 2075 mV at 1350 mV at 1500 mA
BUCK3: 925 <--> 2500 mV at 1500 mV at 1500 mA
BUCK4: at 2475 mV at 1500 mA
LDO1: at 1300 mV
LDO2: at 1300 mV
LDO3: at 3300 mV
LDO4: 1725 <--> 1800 mV at 2775 mV
LDO5: 1200 <--> 1800 mV at 1300 mV
LDO6: 1750 <--> 3300 mV at 1300 mV
LDO7: 1750 <--> 3300 mV at 2750 mV
LDO8: 1200 <--> 3600 mV at 1800 mV
LDO9: 1250 <--> 3600 mV at 1500 mV
LDO10: 1200 <--> 3600 mV at 1300 mV
....
LDO10: disabling
LDO9: disabling
LDO8: disabling
?????????? (and then hangs here).
Any suggestions as to what I am missing?
Thanks,
Fabio Estevam
^ permalink raw reply related [flat|nested] 4+ messages in thread
* DA9053 support on mx53qsb
2012-09-26 19:59 DA9053 support on mx53qsb Fabio Estevam
@ 2012-09-26 20:04 ` Arnd Bergmann
2012-09-26 20:06 ` Marek Vasut
2012-09-27 12:42 ` Fabio Estevam
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2012-09-26 20:04 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 26 September 2012 16:59:11 Fabio Estevam wrote:
>
> da9052 1-0048: DA9052 ADC IRQ failed ret=-22 ----> fails here
> BUCK1: 500 <--> 2075 mV at 1250 mV at 3000 mA
> BUCK2: 925 <--> 2075 mV at 1350 mV at 1500 mA
> BUCK3: 925 <--> 2500 mV at 1500 mV at 1500 mA
> BUCK4: at 2475 mV at 1500 mA
> LDO1: at 1300 mV
> LDO2: at 1300 mV
> LDO3: at 3300 mV
> LDO4: 1725 <--> 1800 mV at 2775 mV
> LDO5: 1200 <--> 1800 mV at 1300 mV
> LDO6: 1750 <--> 3300 mV at 1300 mV
> LDO7: 1750 <--> 3300 mV at 2750 mV
> LDO8: 1200 <--> 3600 mV at 1800 mV
> LDO9: 1250 <--> 3600 mV at 1500 mV
> LDO10: 1200 <--> 3600 mV at 1300 mV
> ....
>
> LDO10: disabling
> LDO9: disabling
> LDO8: disabling
> ?????????? (and then hangs here).
>
> Any suggestions as to what I am missing?
Maybe the pmic device gets created from DT before the GPIO controller
registers the IRQ domain.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* DA9053 support on mx53qsb
2012-09-26 20:04 ` Arnd Bergmann
@ 2012-09-26 20:06 ` Marek Vasut
2012-09-27 12:42 ` Fabio Estevam
1 sibling, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2012-09-26 20:06 UTC (permalink / raw)
To: linux-arm-kernel
Dear Arnd Bergmann,
> On Wednesday 26 September 2012 16:59:11 Fabio Estevam wrote:
> > da9052 1-0048: DA9052 ADC IRQ failed ret=-22 ----> fails here
> > BUCK1: 500 <--> 2075 mV at 1250 mV at 3000 mA
> > BUCK2: 925 <--> 2075 mV at 1350 mV at 1500 mA
> > BUCK3: 925 <--> 2500 mV at 1500 mV at 1500 mA
> > BUCK4: at 2475 mV at 1500 mA
> > LDO1: at 1300 mV
> > LDO2: at 1300 mV
> > LDO3: at 3300 mV
> > LDO4: 1725 <--> 1800 mV at 2775 mV
> > LDO5: 1200 <--> 1800 mV at 1300 mV
> > LDO6: 1750 <--> 3300 mV at 1300 mV
> > LDO7: 1750 <--> 3300 mV at 2750 mV
> > LDO8: 1200 <--> 3600 mV at 1800 mV
> > LDO9: 1250 <--> 3600 mV at 1500 mV
> > LDO10: 1200 <--> 3600 mV at 1300 mV
> > ....
> >
> > LDO10: disabling
> > LDO9: disabling
> > LDO8: disabling
> > ?????????? (and then hangs here).
> >
> > Any suggestions as to what I am missing?
>
> Maybe the pmic device gets created from DT before the GPIO controller
> registers the IRQ domain.
And misconfiguring the PMIC kills the CPU, thus the hang.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 4+ messages in thread
* DA9053 support on mx53qsb
2012-09-26 20:04 ` Arnd Bergmann
2012-09-26 20:06 ` Marek Vasut
@ 2012-09-27 12:42 ` Fabio Estevam
1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-09-27 12:42 UTC (permalink / raw)
To: linux-arm-kernel
Hi Arnd,
On Wed, Sep 26, 2012 at 5:04 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> Maybe the pmic device gets created from DT before the GPIO controller
> registers the IRQ domain.
I managed to fix the issue. The problems were:
- Registration of the da9052: https://lkml.org/lkml/2012/9/26/551
- The imx53-qsb.dts was missing to register the IRQ GPIO and was not
keeping the power supplies on. Patch sent to the list.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-09-27 12:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-26 19:59 DA9053 support on mx53qsb Fabio Estevam
2012-09-26 20:04 ` Arnd Bergmann
2012-09-26 20:06 ` Marek Vasut
2012-09-27 12:42 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).