linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399
@ 2016-05-21 21:23 Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 1/3] arm64: dts: rockchip: add rk3368 io-domain core nodes Heiko Stuebner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Heiko Stuebner @ 2016-05-21 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

This adds the core io-domain nodes for both the rk3368 and rk3399
as well as the actual supplies on the rk3368-r88 board.

This of course needs
    PM / AVS: rockchip-io: make io-domains a child of the GRF
that went into mainline during the 4.7 merge window.

Heiko Stuebner (3):
  arm64: dts: rockchip: add rk3368 io-domain core nodes
  arm64: dts: rockchip: add rk3368-r88 iodomains
  arm64: dts: rockchip: add rk3399 io-domain core nodes

 arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 16 ++++++++++++++++
 arch/arm64/boot/dts/rockchip/rk3368.dtsi    | 10 ++++++++++
 arch/arm64/boot/dts/rockchip/rk3399.dtsi    | 10 ++++++++++
 3 files changed, 36 insertions(+)

-- 
2.6.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] arm64: dts: rockchip: add rk3368 io-domain core nodes
  2016-05-21 21:23 [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stuebner
@ 2016-05-21 21:23 ` Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 2/3] arm64: dts: rockchip: add rk3368-r88 iodomains Heiko Stuebner
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2016-05-21 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

Add the core io-domain nodes to grf and pmugrf which individual
boards than just have to enable and add the necessary supplies to.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm64/boot/dts/rockchip/rk3368.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
index 4fb8484..58c2585 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi
@@ -634,6 +634,11 @@
 	pmugrf: syscon at ff738000 {
 		compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
 		reg = <0x0 0xff738000 0x0 0x1000>;
+
+		pmu_io_domains: io-domains {
+			compatible = "rockchip,rk3368-pmu-io-voltage-domain";
+			status = "disabled";
+		};
 	};
 
 	cru: clock-controller at ff760000 {
@@ -647,6 +652,11 @@
 	grf: syscon at ff770000 {
 		compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
 		reg = <0x0 0xff770000 0x0 0x1000>;
+
+		io_domains: io-domains {
+			compatible = "rockchip,rk3368-io-voltage-domain";
+			status = "disabled";
+		};
 	};
 
 	wdt: watchdog at ff800000 {
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] arm64: dts: rockchip: add rk3368-r88 iodomains
  2016-05-21 21:23 [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 1/3] arm64: dts: rockchip: add rk3368 io-domain core nodes Heiko Stuebner
@ 2016-05-21 21:23 ` Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 3/3] arm64: dts: rockchip: add rk3399 io-domain core nodes Heiko Stuebner
  2016-06-05 22:14 ` [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stübner
  3 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2016-05-21 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

Add the supply-links according to the R88 schematics.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm64/boot/dts/rockchip/rk3368-r88.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
index b56b720..82a32e5 100644
--- a/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3368-r88.dts
@@ -236,6 +236,15 @@
 	};
 };
 
+&io_domains {
+	status = "ok";
+
+	audio-supply = <&vcc_io>;
+	gpio30-supply = <&vcc_io>;
+	gpio1830-supply = <&vcc_io>;
+	wifi-supply = <&vccio_wl>;
+};
+
 &sdio0 {
 	assigned-clocks = <&cru SCLK_SDIO0>;
 	assigned-clock-parents = <&cru PLL_CPLL>;
@@ -329,6 +338,13 @@
 	};
 };
 
+&pmu_io_domains {
+	status = "okay";
+
+	pmu-supply = <&vcc_io>;
+	vop-supply = <&vcc_io>;
+};
+
 &saradc {
 	vref-supply = <&vcc_18>;
 	status = "okay";
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] arm64: dts: rockchip: add rk3399 io-domain core nodes
  2016-05-21 21:23 [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 1/3] arm64: dts: rockchip: add rk3368 io-domain core nodes Heiko Stuebner
  2016-05-21 21:23 ` [PATCH 2/3] arm64: dts: rockchip: add rk3368-r88 iodomains Heiko Stuebner
@ 2016-05-21 21:23 ` Heiko Stuebner
  2016-06-05 22:14 ` [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stübner
  3 siblings, 0 replies; 5+ messages in thread
From: Heiko Stuebner @ 2016-05-21 21:23 UTC (permalink / raw)
  To: linux-arm-kernel

Add the core io-domain nodes to grf and pmugrf which individual
boards than just have to enable and add the necessary supplies to.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index a6a60fa..12acae6 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -407,6 +407,11 @@
 		reg = <0x0 0xff320000 0x0 0x1000>;
 		#address-cells = <1>;
 		#size-cells = <1>;
+
+		pmu_io_domains: io-domains {
+			compatible = "rockchip,rk3399-pmu-io-voltage-domain";
+			status = "disabled";
+		};
 	};
 
 	spi3: spi at ff350000 {
@@ -517,6 +522,11 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 
+		io_domains: io-domains {
+			compatible = "rockchip,rk3399-io-voltage-domain";
+			status = "disabled";
+		};
+
 		emmc_phy: phy at f780 {
 			compatible = "rockchip,rk3399-emmc-phy";
 			reg = <0xf780 0x24>;
-- 
2.6.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399
  2016-05-21 21:23 [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stuebner
                   ` (2 preceding siblings ...)
  2016-05-21 21:23 ` [PATCH 3/3] arm64: dts: rockchip: add rk3399 io-domain core nodes Heiko Stuebner
@ 2016-06-05 22:14 ` Heiko Stübner
  3 siblings, 0 replies; 5+ messages in thread
From: Heiko Stübner @ 2016-06-05 22:14 UTC (permalink / raw)
  To: linux-arm-kernel

Am Samstag, 21. Mai 2016, 23:23:45 schrieb Heiko Stuebner:
> This adds the core io-domain nodes for both the rk3368 and rk3399
> as well as the actual supplies on the rk3368-r88 board.
> 
> This of course needs
>     PM / AVS: rockchip-io: make io-domains a child of the GRF
> that went into mainline during the 4.7 merge window.
> 
> Heiko Stuebner (3):
>   arm64: dts: rockchip: add rk3368 io-domain core nodes
>   arm64: dts: rockchip: add rk3368-r88 iodomains
>   arm64: dts: rockchip: add rk3399 io-domain core nodes

I have all 3 in my dts64 branch now.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-06-05 22:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-21 21:23 [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stuebner
2016-05-21 21:23 ` [PATCH 1/3] arm64: dts: rockchip: add rk3368 io-domain core nodes Heiko Stuebner
2016-05-21 21:23 ` [PATCH 2/3] arm64: dts: rockchip: add rk3368-r88 iodomains Heiko Stuebner
2016-05-21 21:23 ` [PATCH 3/3] arm64: dts: rockchip: add rk3399 io-domain core nodes Heiko Stuebner
2016-06-05 22:14 ` [PATCH 0/3] arm64: dts: rockchip: add io-domain support for rk3368 and rk3399 Heiko Stübner

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).