summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorAdrian Alonso <adrian.alonso@nxp.com>2020-06-25 09:08:14 -0500
committerAdrian Alonso <adrian.alonso@nxp.com>2020-07-16 11:30:00 -0500
commite6864f76011544ac7819f32463a56617ac772180 (patch)
tree2b7a7f96914a4b7ffe33f0d56ffd82474969e2a9 /arch/arm
parent89c54ae69165c6d989b5699dd843f366beff7669 (diff)
MLK-24394-1: dts: arm: imx8mm ab2: fixed regulator support
Fixed regulator support for analog and main 5v power rails, set main 5v power rail as always-on and boot-on Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/dts/imx8mm-ab2.dts79
1 files changed, 41 insertions, 38 deletions
diff --git a/arch/arm/dts/imx8mm-ab2.dts b/arch/arm/dts/imx8mm-ab2.dts
index a0ab8126a84..0bcc37d3693 100644
--- a/arch/arm/dts/imx8mm-ab2.dts
+++ b/arch/arm/dts/imx8mm-ab2.dts
@@ -28,38 +28,49 @@
};
};
- reg_usdhc2_vmmc: regulator-usdhc2 {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
- regulator-name = "VSD_3V3";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
- off-on-delay-us = <20000>;
- enable-active-high;
- };
+ regulators {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <0>;
- reg_ab2_ana_pwr: regulator-ab2-ana-pwr {
- compatible = "regulator-fixed";
- regulator-name = "ab2_ana_pwr";
- pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_ab2_ana_pwr>;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
- enable-active-high;
- };
+ reg_usdhc2_vmmc: regulator@0 {
+ compatible = "regulator-fixed";
+ reg = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
+ regulator-name = "VSD_3V3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
+ off-on-delay-us = <20000>;
+ enable-active-high;
+ };
- reg_ab2_vdd_pwr_5v0: regulator-ab2-vdd-pwr-5v0 {
- compatible = "regulator-fixed";
- regulator-name = "ab2_vdd_pwr_5v0";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
- enable-active-high;
- startup-delay-us = <100>;
- u-boot,off-on-delay-us = <12000>;
+ reg_ab2_vdd_pwr_5v0: regulator@1 {
+ compatible = "regulator-fixed";
+ reg = <1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ab2_vdd_pwr_5v0>;
+ regulator-name = "VDD_5V0";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
+ regulator-always-on;
+ regulator-boot-on;
+ enable-active-high;
+ };
+
+ reg_ab2_ana_pwr: regulator@2 {
+ compatible = "regulator-fixed";
+ reg = <2>;
+ regulator-name = "ANA_12V0";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ab2_ana_pwr>;
+ regulator-min-microvolt = <12000000>;
+ regulator-max-microvolt = <12000000>;
+ gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
};
};
@@ -108,16 +119,8 @@
&iomuxc {
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_hog_1>;
imx8mm-ab2 {
- pinctrl_hog_1: hoggrp-1 {
- fsl,pins = <
- MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x19
- MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x19
- >;
- };
-
pinctrl_fec1: fec1grp {
fsl,pins = <
MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3