ARM: shmobile: silk: Add DA9063 PMIC node
PATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Add DA9063 PMIC node to the I2C bus.
--- arch/arm/boot/dts/r8a7794-silk.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +12 -0
@@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi"; clock-frequency = <400000>; + + pmic at 5a { + compatible = "dlg,da9063"; + reg = <0x5a>; + interrupt-parent = <&irqc0>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + }; }; &mmcif0 {
Signature · 1 line
2.16.2
PATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Hi Marek,
Quoted 3 lines · Marek Vasut
Add DA9063 PMIC node to the I2C bus.
Signed-off-by Marek Vasut <[email protected]>
Thanks for your patch!
Oneline-summary prefix should be "ARM: dts: silk:".
arch/arm/boot/dts/r8a7794-silk.dts line 407
Quoted 8 lines
arch/arm/boot/dts/r8a7794-silk.dts +2
-0@@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi"; clock-frequency = <400000>; + + pmic at 5a {
Hmm, the da9063 is actually connected to two i2c buses: i2c1 (3.3v) and i2c7 (1.8v).
On Koelsch, we describe the 1.8v connection, as that i2c bus ("i2c_dvfs") is meant
for power control.
arch/arm/boot/dts/r8a7794-silk.dts line 411
Quoted 4 lines
arch/arm/boot/dts/r8a7794-silk.dts +4
-0+ compatible = "dlg,da9063"; + reg = <0x5a>; + interrupt-parent = <&irqc0>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
According to my schematics, the interrupt is connected to GP3_31?
arch/arm/boot/dts/r8a7794-silk.dts line 418
Quoted 7 lines
arch/arm/boot/dts/r8a7794-silk.dts +6
-0+ interrupt-controller; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + }; };
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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 TorvaldsPATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Quoted 1 line · Geert Uytterhoeven
Hi Marek,
Hi,
Quoted 8 lines · Marek Vasut
Quoted 3 lines
Add DA9063 PMIC node to the I2C bus.
Signed-off-by Marek Vasut <[email protected]>Thanks for your patch!
Oneline-summary prefix should be "ARM: dts: silk:".
Right, fixed
Quoted 5 lines
Quoted 5 lines
arch/arm/boot/dts/r8a7794-silk.dts +0
-0@@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi";
Quoted 9 lines
arch/arm/boot/dts/r8a7794-silk.dts line 407
Quoted 3 lines
arch/arm/boot/dts/r8a7794-silk.dts +2
-0clock-frequency = <400000>; + + pmic at 5a {Hmm, the da9063 is actually connected to two i2c buses: i2c1 (3.3v) and i2c7 (1.8v).
On Koelsch, we describe the 1.8v connection, as that i2c bus ("i2c_dvfs") is meant
for power control.
On Koelsch, the pmic is sitting on i2c6 only. What am I missing ?
Quoted 6 lines
arch/arm/boot/dts/r8a7794-silk.dts line 411
Quoted 4 lines
arch/arm/boot/dts/r8a7794-silk.dts +4
-0+ compatible = "dlg,da9063"; + reg = <0x5a>; + interrupt-parent = <&irqc0>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>;According to my schematics, the interrupt is connected to
GP3_31?
Yeah, fixed, thanks.
Quoted 12 lines
arch/arm/boot/dts/r8a7794-silk.dts line 418
Quoted 7 lines
arch/arm/boot/dts/r8a7794-silk.dts +6
-0+ interrupt-controller; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + }; };Gr{oetje,eeting}s,
Geert
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Hi Marek,
Quoted 27 lines · Marek Vasut
Quoted 8 lines · Geert Uytterhoeven
Quoted 3 lines · Marek Vasut
Add DA9063 PMIC node to the I2C bus.
Signed-off-by Marek Vasut <[email protected]>Thanks for your patch!
Oneline-summary prefix should be "ARM: dts: silk:".
Right, fixed
Quoted 5 lines
Quoted 5 lines
arch/arm/boot/dts/r8a7794-silk.dts +0
-0@@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi";Quoted 9 lines
arch/arm/boot/dts/r8a7794-silk.dts line 407
Quoted 3 lines
arch/arm/boot/dts/r8a7794-silk.dts +2
-0clock-frequency = <400000>; + + pmic at 5a {Hmm, the da9063 is actually connected to two i2c buses: i2c1 (3.3v) and i2c7 (1.8v).
On Koelsch, we describe the 1.8v connection, as that i2c bus ("i2c_dvfs") is meant
for power control.
Quoted 1 line
On Koelsch, the pmic is sitting on i2c6 only. What am I missing ?
On Koelsch, i2c6 is wired to the da9063' 2-wire bus, and i2c1 is wired to the da9063's HS (high-speed) 2-wire bus.
Wolfram: do you like i2c slaves connected to multiple buses?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at 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 TorvaldsPATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Quoted 1 line · Geert Uytterhoeven
Hi Marek,
Hi,
Quoted 28 lines · Marek Vasut
Quoted 27 lines · Geert Uytterhoeven
Quoted 8 lines · Marek Vasut
Quoted 3 lines
Add DA9063 PMIC node to the I2C bus.
Signed-off-by Marek Vasut <[email protected]>Thanks for your patch!
Oneline-summary prefix should be "ARM: dts: silk:".
Right, fixed
Quoted 14 lines
arch/arm/boot/dts/r8a7794-silk.dts line 407
Quoted 8 lines
arch/arm/boot/dts/r8a7794-silk.dts +2
-0@@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi"; clock-frequency = <400000>; + + pmic at 5a {Hmm, the da9063 is actually connected to two i2c buses: i2c1 (3.3v) and i2c7 (1.8v).
On Koelsch, we describe the 1.8v connection, as that i2c bus ("i2c_dvfs") is meant
for power control.
Quoted 4 lines
Quoted 1 line
On Koelsch, the pmic is sitting on i2c6 only. What am I missing ?
On Koelsch, i2c6 is wired to the da9063' 2-wire bus, and i2c1 is wired to the da9063's HS (high-speed) 2-wire bus.
On Silk it's wired to i2c1 and i2c7 apparently, I checked with i2cdetect/i2cdump that the PMIC responds on both busses, although it has address 0x5a on i2c1 and 0x58 on i2c7 .
Quoted 6 lines
Wolfram: do you like i2c slaves connected to multiple buses?
Gr{oetje,eeting}s,
Geert
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Quoted 2 lines
Quoted 2 lines
Wolfram: do you like i2c slaves connected to multiple buses?
'Like' would be an exaggeration, but if they are connected to multiple busses, this might be a reason to describe that. People could then in userspace bind/unbind to the bus they want? Not pretty, but there might be reasons for that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180803/bc0b119e/attachment.sig>
PATCH 1/1 ARM: shmobile: silk: Add DA9063 PMIC node
Quoted 7 lines · Wolfram Sang
Quoted 2 lines
Quoted 2 lines
Wolfram: do you like i2c slaves connected to multiple buses?
'Like' would be an exaggeration, but if they are connected to multiple busses, this might be a reason to describe that. People could then in userspace bind/unbind to the bus they want? Not pretty, but there might be reasons for that?
Would that be useful for a PMIC ? I suspect it'd create quite a few problems if the user could move PMIC between I2C busses at will and I don't see any benefits.
Signature · 2 lines
Best regards, Marek Vasut