arm: dts: rk322x: Add io-domain support for rk3229-evb and rk3229-echo-v10
authorDavid Wu <david.wu@rock-chips.com>
Fri, 12 May 2017 06:15:51 +0000 (14:15 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 12 May 2017 06:23:23 +0000 (14:23 +0800)
The power domain of VCCIO3 is selected from maskrom,
so we don't need to configure it.

Change-Id: I11f87fe6f178943daa5ec9dcc22f4f505fe58163
Signed-off-by: David Wu <david.wu@rock-chips.com>
arch/arm/boot/dts/rk3229-echo-v10.dts
arch/arm/boot/dts/rk3229-evb.dts

index 74fe7a7b865e6b6d8a3b4e1c3f4dc36460a98476..204f28a6373fb9360b5ea9621be1ae4b9e2a9aa9 100644 (file)
        cpu-supply = <&vdd_arm>;
 };
 
        cpu-supply = <&vdd_arm>;
 };
 
+&io_domains {
+       status = "okay";
+
+       vccio1-supply = <&vcc_io>;
+       vccio2-supply = <&vcc_io>;
+       vccio4-supply = <&vcc_io>;
+};
+
 &pinctrl {
        pmic {
                pmic_int_l: pmic-int-l {
 &pinctrl {
        pmic {
                pmic_int_l: pmic-int-l {
index 3776e493594782c9b131bc3a42a0895a737e9003..fadc2274d52e0bdb5cea3e9db67ae9b1ab01b326 100644 (file)
                regulator-always-on;
                regulator-boot-on;
        };
                regulator-always-on;
                regulator-boot-on;
        };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               vccio_1v8_reg: regulator@0 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "vccio_1v8";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-always-on;
+               };
+
+               vccio_3v3_reg: regulator@1 {
+                       compatible = "regulator-fixed";
+                       regulator-name = "vccio_3v3";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;
+               };
+       };
 };
 
 &cpu0 {
 };
 
 &cpu0 {
        mali-supply = <&vdd_log>;
 };
 
        mali-supply = <&vdd_log>;
 };
 
+&io_domains {
+       status = "okay";
+
+       vccio1-supply = <&vccio_3v3_reg>;
+       vccio2-supply = <&vccio_1v8_reg>;
+       vccio4-supply = <&vccio_3v3_reg>;
+};
+
 &pinctrl {
        usb {
                host_vbus_drv: host-vbus-drv {
 &pinctrl {
        usb {
                host_vbus_drv: host-vbus-drv {