Skip to contentSkip to conversation

ARM: dts: porter: Add missing PMIC nodes

PATCH New Marek Vasut 3 participants 4 messages May 23, 2018 – May 25, 2018 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: porter: Add missing PMIC nodes

Add PMIC nodes to Porter and connect CPU DVFS supply. There is one DA9063L and one DA9210 on Porter, the only difference from the other boards is that DA9063L is at I2C address 0x5a rather than 0x58 .

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
---
 arch/arm/boot/dts/r8a7791-porter.dts | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm/boot/dts/r8a7791-porter.dts +33 -0
index a01101b49d99..5f77d73d7462 100644
@@ -375,10 +375,43 @@
 	clock-frequency = <400000>;
 };
 
+&i2c6 {
+	status = "okay";
+	clock-frequency = <100000>;
+
+	pmic at 5a {
+		compatible = "dlg,da9063l";
+		reg = <0x5a>;
+		interrupt-parent = <&irqc0>;
+		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-controller;
+
+		wdt {
+			compatible = "dlg,da9063-watchdog";
+		};
+	};
+
+	vdd_dvfs: regulator at 68 {
+		compatible = "dlg,da9210";
+		reg = <0x68>;
+		interrupt-parent = <&irqc0>;
+		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
+
+		regulator-min-microvolt = <1000000>;
+		regulator-max-microvolt = <1000000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+};
+
 &sata0 {
 	status = "okay";
 };
 
+&cpu0 {
+	cpu0-supply = <&vdd_dvfs>;
+};
+
 /* composite video input */
 &vin0 {
 	status = "okay";
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/1 ARM: dts: porter: Add missing PMIC nodes

Hi Marek,

Quoted 4 lines · Marek Vasut

Add PMIC nodes to Porter and connect CPU DVFS supply. There is one DA9063L and one DA9210 on Porter, the only difference from the other boards is that DA9063L is at I2C address 0x5a rather than 0x58 .

Ah, so porter needs the regulator quirk, too.

Quoted 1 line

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 Torvalds
#2 lore raw

PATCH 1/1 ARM: dts: porter: Add missing PMIC nodes

Quoted 1 line · Geert Uytterhoeven

Hi Marek,

Hi,

Quoted 7 lines · Marek Vasut
Quoted 4 lines

Add PMIC nodes to Porter and connect CPU DVFS supply. There is one DA9063L and one DA9210 on Porter, the only difference from the other boards is that DA9063L is at I2C address 0x5a rather than 0x58 .

Ah, so porter needs the regulator quirk, too.

Most of the boards do in fact, they just miss the regulator nodes. Silk to from what I can test locally.

Quoted 8 lines
Quoted 1 line

Gr{oetje,eeting}s,

Geert

Signature · 2 lines
Best regards,
Marek Vasut
Applied
#3 lore raw

PATCH 1/1 ARM: dts: porter: Add missing PMIC nodes

In reply to Geert Uytterhoeven
Quoted 8 lines · Geert Uytterhoeven

Hi Marek,

Quoted 4 lines · Marek Vasut

Add PMIC nodes to Porter and connect CPU DVFS supply. There is one DA9063L and one DA9210 on Porter, the only difference from the other boards is that DA9063L is at I2C address 0x5a rather than 0x58 .

Quoted 5 lines

Ah, so porter needs the regulator quirk, too.

Quoted 1 line

Thanks, applied.