PM / AVS: rockchip-io: Add rk322x io-domains support
authorDavid Wu <david.wu@rock-chips.com>
Fri, 12 May 2017 03:30:37 +0000 (11:30 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 12 May 2017 06:22:14 +0000 (14:22 +0800)
Change-Id: Iaa91c932fdd9a9589945b0c6e19bc73517f7b322
Signed-off-by: David Wu <david.wu@rock-chips.com>
Documentation/devicetree/bindings/power/rockchip-io-domain.txt
drivers/power/avs/rockchip-io-domain.c

index 50d92c5d5abae2fa752038c53ec1ac1891dfcdae..817f353fae86152487f7a1edbbe7650f187754d4 100644 (file)
@@ -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,rk322x-io-voltage-domain" for rk3228
   - "rockchip,rk3288-io-voltage-domain" for rk3288
   - "rockchip,rk3328-io-voltage-domain" for rk3328
   - "rockchip,rk3366-io-voltage-domain" for rk3366
@@ -60,6 +61,12 @@ Possible supplies for rk3188:
 - vccio1-supply: The supply connected to VCCIO1.
                  Sometimes also labeled VCCIO1 and VCCIO2.
 
+Possible supplies for rk322x:
+- 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.
index 610f1049f2981700307584dd5cfeed6bf52e49db..c91ab6080ff1db8e6ced71c7fc9e34ad7714a40f 100644 (file)
@@ -276,6 +276,16 @@ static const struct rockchip_iodomain_soc_data soc_data_rk3188 = {
        },
 };
 
+static const struct rockchip_iodomain_soc_data soc_data_rk322x = {
+       .grf_offset = 0x418,
+       .supply_names = {
+               "vccio1",
+               "vccio2",
+               "vccio3",
+               "vccio4",
+       },
+};
+
 static const struct rockchip_iodomain_soc_data soc_data_rk3288 = {
        .grf_offset = 0x380,
        .supply_names = {
@@ -382,6 +392,10 @@ static const struct of_device_id rockchip_iodomain_match[] = {
                .compatible = "rockchip,rk3188-io-voltage-domain",
                .data = (void *)&soc_data_rk3188
        },
+       {
+               .compatible = "rockchip,rk322x-io-voltage-domain",
+               .data = (void *)&soc_data_rk322x
+       },
        {
                .compatible = "rockchip,rk3288-io-voltage-domain",
                .data = (void *)&soc_data_rk3288