Message ID | 20180730111817.5636-1-marek.vasut+renesas@gmail.com (mailing list archive) |
---|---|
State | Deferred |
Delegated to: | Simon Horman |
Headers | show |
Series | ARM: shmobile: silk: Add DA9063 PMIC node | expand |
Hi Marek, On Mon, Jul 30, 2018 at 1:18 PM Marek Vasut <marek.vasut@gmail.com> wrote: > Add DA9063 PMIC node to the I2C bus. > > Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Thanks for your patch! Oneline-summary prefix should be "ARM: dts: silk:". > --- a/arch/arm/boot/dts/r8a7794-silk.dts > +++ b/arch/arm/boot/dts/r8a7794-silk.dts > @@ -403,6 +403,18 @@ > pinctrl-names = "i2c-hdmi"; > > clock-frequency = <400000>; > + > + pmic@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. > + 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? > + interrupt-controller; > + > + wdt { > + compatible = "dlg,da9063-watchdog"; > + }; > + }; > }; Gr{oetje,eeting}s, Geert
On 08/01/2018 02:32 PM, Geert Uytterhoeven wrote: > Hi Marek, Hi, > On Mon, Jul 30, 2018 at 1:18 PM Marek Vasut <marek.vasut@gmail.com> wrote: >> Add DA9063 PMIC node to the I2C bus. >> >> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> > > Thanks for your patch! > > Oneline-summary prefix should be "ARM: dts: silk:". Right, fixed >> --- a/arch/arm/boot/dts/r8a7794-silk.dts >> +++ b/arch/arm/boot/dts/r8a7794-silk.dts >> @@ -403,6 +403,18 @@ >> pinctrl-names = "i2c-hdmi"; >> >> clock-frequency = <400000>; >> + >> + pmic@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 ? >> + 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. >> + interrupt-controller; >> + >> + wdt { >> + compatible = "dlg,da9063-watchdog"; >> + }; >> + }; >> }; > > Gr{oetje,eeting}s, > > Geert >
Hi Marek, On Thu, Aug 2, 2018 at 3:56 PM Marek Vasut <marek.vasut@gmail.com> wrote: > On 08/01/2018 02:32 PM, Geert Uytterhoeven wrote: > > On Mon, Jul 30, 2018 at 1:18 PM Marek Vasut <marek.vasut@gmail.com> wrote: > >> Add DA9063 PMIC node to the I2C bus. > >> > >> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> > > > > Thanks for your patch! > > > > Oneline-summary prefix should be "ARM: dts: silk:". > > Right, fixed > > >> --- a/arch/arm/boot/dts/r8a7794-silk.dts > >> +++ b/arch/arm/boot/dts/r8a7794-silk.dts > >> @@ -403,6 +403,18 @@ > >> pinctrl-names = "i2c-hdmi"; > >> > >> clock-frequency = <400000>; > >> + > >> + pmic@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 ? 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
On 08/02/2018 04:07 PM, Geert Uytterhoeven wrote: > Hi Marek, Hi, > On Thu, Aug 2, 2018 at 3:56 PM Marek Vasut <marek.vasut@gmail.com> wrote: >> On 08/01/2018 02:32 PM, Geert Uytterhoeven wrote: >>> On Mon, Jul 30, 2018 at 1:18 PM Marek Vasut <marek.vasut@gmail.com> wrote: >>>> Add DA9063 PMIC node to the I2C bus. >>>> >>>> Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> >>> >>> Thanks for your patch! >>> >>> Oneline-summary prefix should be "ARM: dts: silk:". >> >> Right, fixed >> >>>> --- a/arch/arm/boot/dts/r8a7794-silk.dts >>>> +++ b/arch/arm/boot/dts/r8a7794-silk.dts >>>> @@ -403,6 +403,18 @@ >>>> pinctrl-names = "i2c-hdmi"; >>>> >>>> clock-frequency = <400000>; >>>> + >>>> + pmic@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 ? > > 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 . > Wolfram: do you like i2c slaves connected to multiple buses? > > Gr{oetje,eeting}s, > > Geert >
> > 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?
On 08/03/2018 12:48 PM, Wolfram Sang wrote: > >>> 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.
diff --git a/arch/arm/boot/dts/r8a7794-silk.dts b/arch/arm/boot/dts/r8a7794-silk.dts index daec965889d3..bf7e8ffd1e69 100644 --- a/arch/arm/boot/dts/r8a7794-silk.dts +++ b/arch/arm/boot/dts/r8a7794-silk.dts @@ -403,6 +403,18 @@ pinctrl-names = "i2c-hdmi"; clock-frequency = <400000>; + + pmic@5a { + compatible = "dlg,da9063"; + reg = <0x5a>; + interrupt-parent = <&irqc0>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + }; }; &mmcif0 {
Add DA9063 PMIC node to the I2C bus. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Cc: Simon Horman <horms+renesas@verge.net.au> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com> Cc: linux-renesas-soc@vger.kernel.org --- arch/arm/boot/dts/r8a7794-silk.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+)