linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228
@ 2017-06-09  9:36 David Wu
  2017-06-09 10:45 ` Heiko Stuebner
  0 siblings, 1 reply; 4+ messages in thread
From: David Wu @ 2017-06-09  9:36 UTC (permalink / raw)
  To: khilman, rafael.j.wysocki, nm, heiko
  Cc: huangtao, linux-rockchip, linux-pm, linux-arm-kernel,
	linux-kernel, David Wu

This adds the necessary data for handling io voltage domains on the rk3228.

Signed-off-by: David Wu <david.wu@rock-chips.com>
---
 .../devicetree/bindings/power/rockchip-io-domain.txt       |  7 +++++++
 drivers/power/avs/rockchip-io-domain.c                     | 14 ++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/rockchip-io-domain.txt b/Documentation/devicetree/bindings/power/rockchip-io-domain.txt
index d3a5a93..43c21fb 100644
--- a/Documentation/devicetree/bindings/power/rockchip-io-domain.txt
+++ b/Documentation/devicetree/bindings/power/rockchip-io-domain.txt
@@ -32,6 +32,7 @@ SoC is on the same page.
 Required properties:
 - compatible: should be one of:
   - "rockchip,rk3188-io-voltage-domain" for rk3188
+  - "rockchip,rk3228-io-voltage-domain" for rk3228
   - "rockchip,rk3288-io-voltage-domain" for rk3288
   - "rockchip,rk3328-io-voltage-domain" for rk3328
   - "rockchip,rk3368-io-voltage-domain" for rk3368
@@ -59,6 +60,12 @@ Possible supplies for rk3188:
 - vccio1-supply: The supply connected to VCCIO1.
                  Sometimes also labeled VCCIO1 and VCCIO2.
 
+Possible supplies for rk3228:
+- vccio1-supply: The supply connected to VCCIO1.
+- vccio2-supply: The supply connected to VCCIO2.
+- vccio3-supply: The supply connected to VCCIO3.
+- vccio4-supply: The supply connected to VCCIO4.
+
 Possible supplies for rk3288:
 - audio-supply:  The supply connected to APIO4_VDD.
 - bb-supply:     The supply connected to APIO5_VDD.
diff --git a/drivers/power/avs/rockchip-io-domain.c b/drivers/power/avs/rockchip-io-domain.c
index 8581252..031a343 100644
--- a/drivers/power/avs/rockchip-io-domain.c
+++ b/drivers/power/avs/rockchip-io-domain.c
@@ -253,6 +253,16 @@ static void rk3399_pmu_iodomain_init(struct rockchip_iodomain *iod)
 	},
 };
 
+static const struct rockchip_iodomain_soc_data soc_data_rk3228 = {
+	.grf_offset = 0x418,
+	.supply_names = {
+		"vccio1",
+		"vccio2",
+		"vccio3",
+		"vccio4",
+	},
+};
+
 static const struct rockchip_iodomain_soc_data soc_data_rk3288 = {
 	.grf_offset = 0x380,
 	.supply_names = {
@@ -345,6 +355,10 @@ static void rk3399_pmu_iodomain_init(struct rockchip_iodomain *iod)
 		.data = (void *)&soc_data_rk3188
 	},
 	{
+		.compatible = "rockchip,rk3228-io-voltage-domain",
+		.data = (void *)&soc_data_rk3228
+	},
+	{
 		.compatible = "rockchip,rk3288-io-voltage-domain",
 		.data = (void *)&soc_data_rk3288
 	},
-- 
1.9.1

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

* Re: [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228
  2017-06-09  9:36 [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228 David Wu
@ 2017-06-09 10:45 ` Heiko Stuebner
  2017-06-30 22:02   ` Heiko Stuebner
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stuebner @ 2017-06-09 10:45 UTC (permalink / raw)
  To: David Wu
  Cc: khilman, rafael.j.wysocki, nm, huangtao, linux-rockchip,
	linux-pm, linux-arm-kernel, linux-kernel

Am Freitag, 9. Juni 2017, 17:36:14 CEST schrieb David Wu:
> This adds the necessary data for handling io voltage domains on the rk3228.
> 
> Signed-off-by: David Wu <david.wu@rock-chips.com>

matches the manual, so
Reviewed-by: Heiko Stuebner <heiko@sntech.de>


Heiko

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

* Re: [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228
  2017-06-09 10:45 ` Heiko Stuebner
@ 2017-06-30 22:02   ` Heiko Stuebner
  2017-07-01 16:17     ` Rafael J. Wysocki
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stuebner @ 2017-06-30 22:02 UTC (permalink / raw)
  To: David Wu, khilman, rafael.j.wysocki
  Cc: nm, huangtao, linux-rockchip, linux-pm, linux-arm-kernel, linux-kernel

Am Freitag, 9. Juni 2017, 12:45:46 CEST schrieb Heiko Stuebner:
> Am Freitag, 9. Juni 2017, 17:36:14 CEST schrieb David Wu:
> > This adds the necessary data for handling io voltage domains on the rk3228.
> > 
> > Signed-off-by: David Wu <david.wu@rock-chips.com>
> 
> matches the manual, so
> Reviewed-by: Heiko Stuebner <heiko@sntech.de>

Kevin, Rafael,

any thoughts on this?


Thanks
Heiko

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

* Re: [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228
  2017-06-30 22:02   ` Heiko Stuebner
@ 2017-07-01 16:17     ` Rafael J. Wysocki
  0 siblings, 0 replies; 4+ messages in thread
From: Rafael J. Wysocki @ 2017-07-01 16:17 UTC (permalink / raw)
  To: Heiko Stuebner
  Cc: David Wu, Kevin Hilman, Rafael Wysocki, Nishanth Menon, huangtao,
	linux-rockchip, Linux PM, linux-arm-kernel,
	Linux Kernel Mailing List

On Sat, Jul 1, 2017 at 12:02 AM, Heiko Stuebner <heiko@sntech.de> wrote:
> Am Freitag, 9. Juni 2017, 12:45:46 CEST schrieb Heiko Stuebner:
>> Am Freitag, 9. Juni 2017, 17:36:14 CEST schrieb David Wu:
>> > This adds the necessary data for handling io voltage domains on the rk3228.
>> >
>> > Signed-off-by: David Wu <david.wu@rock-chips.com>
>>
>> matches the manual, so
>> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
>
> Kevin, Rafael,
>
> any thoughts on this?

I've queued it up.

Thanks,
Rafael

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

end of thread, other threads:[~2017-07-01 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-09  9:36 [PATCH] PM / AVS: rockchip-io: add io selectors and supplies for rk3228 David Wu
2017-06-09 10:45 ` Heiko Stuebner
2017-06-30 22:02   ` Heiko Stuebner
2017-07-01 16:17     ` Rafael J. Wysocki

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