Skip to contentSkip to conversation

ARM: dts: silk: Add DA9063 PMIC node

PATCH Superseded Marek Vasut 3 participants 4 messages Aug 4, 2018 – Aug 11, 2018 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: silk: Add DA9063 PMIC node

Add DA9063 PMIC node to the I2C bus.

Cc Geert Uytterhoeven <[email protected]>
Cc Kuninori Morimoto <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc linux-renesas-soc at vger.kernel.org

---
V2: - Replace shmobile with dts since it's a DT patch in subject
- Connect the 9063_IRQ# line to GP3_31
- Since the DA9063 is connected to both i2c1 and i2c7, connect it to i2c7, which is the dedicated dvfs i2c.

---
 arch/arm/boot/dts/r8a7794-silk.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
arch/arm/boot/dts/r8a7794-silk.dts +17 -0
index daec965889d3..6ea60e1faf75 100644
@@ -405,6 +405,23 @@
 	clock-frequency = <400000>;
 };
 
+&i2c7 {
+	status = "okay";
+	clock-frequency = <100000>;
+
+	pmic at 58 {
+		compatible = "dlg,da9063";
+		reg = <0x58>;
+		interrupt-parent = <&gpio3>;
+		interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-controller;
+
+		wdt {
+			compatible = "dlg,da9063-watchdog";
+		};
+	};
+};
+
 &mmcif0 {
 	pinctrl-0 = <&mmcif0_pins>;
 	pinctrl-names = "default";
Signature · 1 line
2.16.2
#1 lore raw

PATCH v2 1/1 ARM: dts: silk: Add DA9063 PMIC node

Hi Marek,

Quoted 8 lines · Marek Vasut

Add DA9063 PMIC node to the I2C bus.

Cc Geert Uytterhoeven <[email protected]>
Cc Kuninori Morimoto <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc linux-renesas-soc at vger.kernel.org
Quoted 5 lines

---
V2: - Replace shmobile with dts since it's a DT patch in subject
- Connect the 9063_IRQ# line to GP3_31
- Since the DA9063 is connected to both i2c1 and i2c7, connect it to i2c7, which is the dedicated dvfs i2c.

Thanks for the update!

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +4 -0
@@ -405,6 +405,23 @@
        clock-frequency = <400000>;
 };
 
+&i2c7 {
+       status = "okay";
+       clock-frequency = <100000>;
+

arch/arm/boot/dts/r8a7794-silk.dts line 421

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +10 -0
+       pmic at 58 {
+               compatible = "dlg,da9063";
+               reg = <0x58>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-controller;
+
+               wdt {
+                       compatible = "dlg,da9063-watchdog";
+               };

Given Silk has the full da9063 (unlike the "L" version on Porter), shouldn't you add an rtc subnode?

Oh, Silk also has the onkey pin wired, so perhaps you want to add an onkey subnode, too? Does that feature work?

BTW, Stout also has the onkey wired, but lacks the onkey subnode.

arch/arm/boot/dts/r8a7794-silk.dts line 424

Quoted 3 lines
arch/arm/boot/dts/r8a7794-silk.dts +3 -0
+       };
+};
+

Nevertheless:

Gr{oetje,eeting}s,

Geert

--
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 Torvalds

#2 lore raw

PATCH v2 1/1 ARM: dts: silk: Add DA9063 PMIC node

Quoted 46 lines · Geert Uytterhoeven

Hi Marek,

Quoted 8 lines · Marek Vasut

Add DA9063 PMIC node to the I2C bus.

Cc Geert Uytterhoeven <[email protected]>
Cc Kuninori Morimoto <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc linux-renesas-soc at vger.kernel.org
Quoted 5 lines

---
V2: - Replace shmobile with dts since it's a DT patch in subject
- Connect the 9063_IRQ# line to GP3_31
- Since the DA9063 is connected to both i2c1 and i2c7, connect it to i2c7, which is the dedicated dvfs i2c.

Thanks for the update!

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +4 -0
@@ -405,6 +405,23 @@
        clock-frequency = <400000>;
 };
 
+&i2c7 {
+       status = "okay";
+       clock-frequency = <100000>;
+

arch/arm/boot/dts/r8a7794-silk.dts line 421

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +10 -0
+       pmic at 58 {
+               compatible = "dlg,da9063";
+               reg = <0x58>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-controller;
+
+               wdt {
+                       compatible = "dlg,da9063-watchdog";
+               };

Given Silk has the full da9063 (unlike the "L" version on Porter), shouldn't you add an rtc subnode?

Oh, Silk also has the onkey pin wired, so perhaps you want to add an onkey subnode, too? Does that feature work?

Quoted 8 lines

BTW, Stout also has the onkey wired, but lacks the onkey subnode.

arch/arm/boot/dts/r8a7794-silk.dts line 424

Quoted 3 lines
arch/arm/boot/dts/r8a7794-silk.dts +3 -0
+       };
+};
+

Nevertheless:

Thanks, I have applied this patch for v4.20.

Marek,

please consider some follow-up patches to address the issues raised by Geert.

#3 lore raw

PATCH v2 1/1 ARM: dts: silk: Add DA9063 PMIC node

Quoted 56 lines · Simon Horman
Quoted 46 lines · Geert Uytterhoeven

Hi Marek,

Quoted 8 lines · Marek Vasut

Add DA9063 PMIC node to the I2C bus.

Cc Geert Uytterhoeven <[email protected]>
Cc Kuninori Morimoto <[email protected]>
Cc Simon Horman <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc linux-renesas-soc at vger.kernel.org
Quoted 5 lines

---
V2: - Replace shmobile with dts since it's a DT patch in subject
- Connect the 9063_IRQ# line to GP3_31
- Since the DA9063 is connected to both i2c1 and i2c7, connect it to i2c7, which is the dedicated dvfs i2c.

Thanks for the update!

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +4 -0
@@ -405,6 +405,23 @@
        clock-frequency = <400000>;
 };
 
+&i2c7 {
+       status = "okay";
+       clock-frequency = <100000>;
+

arch/arm/boot/dts/r8a7794-silk.dts line 421

Quoted 10 lines
arch/arm/boot/dts/r8a7794-silk.dts +10 -0
+       pmic at 58 {
+               compatible = "dlg,da9063";
+               reg = <0x58>;
+               interrupt-parent = <&gpio3>;
+               interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
+               interrupt-controller;
+
+               wdt {
+                       compatible = "dlg,da9063-watchdog";
+               };

Given Silk has the full da9063 (unlike the "L" version on Porter), shouldn't you add an rtc subnode?

Oh, Silk also has the onkey pin wired, so perhaps you want to add an onkey subnode, too? Does that feature work?

Quoted 8 lines

BTW, Stout also has the onkey wired, but lacks the onkey subnode.

arch/arm/boot/dts/r8a7794-silk.dts line 424

Quoted 3 lines
arch/arm/boot/dts/r8a7794-silk.dts +3 -0
+       };
+};
+

Nevertheless:

Quoted 6 lines

Thanks, I have applied this patch for v4.20.

Marek,

please consider some follow-up patches to address the issues raised by Geert.

Thanks for the reminder, I missed the email. Patch is out.

Signature · 2 lines
Best regards,
Marek Vasut