From 7597adf8d2042dc437be21fd02988dc884f5db3c Mon Sep 17 00:00:00 2001 From: Adrian Alonso Date: Wed, 2 Sep 2020 09:54:26 -0500 Subject: MLK-24702-2: dts: arm64 freescale: imx8mn ab2 regulator power tree Follow the same regulator power tree as imx8mm ab2 target platforms Signed-off-by: Adrian Alonso Reviewed-by: Viorel Suman --- arch/arm64/boot/dts/freescale/imx8mn-ab2.dts | 128 ++++++++++++++++++--------- 1 file changed, 86 insertions(+), 42 deletions(-) (limited to 'arch/arm64/boot/dts/freescale/imx8mn-ab2.dts') diff --git a/arch/arm64/boot/dts/freescale/imx8mn-ab2.dts b/arch/arm64/boot/dts/freescale/imx8mn-ab2.dts index ac7c04029533..505e742d40f9 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-ab2.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-ab2.dts @@ -59,46 +59,90 @@ reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; }; - regulators { - compatible = "simple-bus"; - #address-cells = <1>; - #size-cells = <0>; + 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 = <12000>; + enable-active-high; + }; - reg_usdhc2_vmmc: regulator-usdhc2 { - compatible = "regulator-fixed"; - regulator-name = "VSD_3V3"; - pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; - enable-active-high; - startup-delay-us = <100>; - off-on-delay-us = <12000>; - }; - - 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; - regulator-always-on; - }; - - reg_ab2_vdd_pwr_5v0: regulator-ab2-vdd-pwr-5v0 { - compatible = "regulator-fixed"; - regulator-name = "ab2_vdd_pwr_5v0"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ab2_vdd_pwr_5v0>; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; - enable-active-high; - regulator-always-on; - }; + reg_ab2_ana_pwr: regulator-ab2-ana-pwr { + compatible = "regulator-fixed"; + 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>; + vin-supply = <&buck5_reg>; + enable-active-high; + }; + + reg_ab2_vdd_pwr_5v0: regulator-ab2-vdd-pwr-5v0 { + compatible = "regulator-fixed"; + regulator-name = "VDD_5V0"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ab2_vdd_pwr_5v0>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>; + vin-supply = <&buck5_reg>; + enable-active-high; + regulator-always-on; + regulator-boot-on; + }; + + reg_adc_dvdd_3v3: reg-adc-dvdd-3v3 { + compatible = "regulator-fixed"; + regulator-name = "ADC_DVDD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_ab2_ana_pwr>; + }; + + reg_adc_avdd_5v0: reg-adc-avdd-5v0 { + compatible = "regulator-fixed"; + regulator-name = "ADC_AVDD_5V0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <®_ab2_ana_pwr>; + }; + + reg_dac_dvdd_3v3: reg-dac-dvdd-3v3 { + compatible = "regulator-fixed"; + regulator-name = "DAC_DVDD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_ab2_ana_pwr>; + }; + + reg_dac_avdd_5v0: reg-dac-avdd-5v0 { + compatible = "regulator-fixed"; + regulator-name = "DAC_AVDD_5V0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <®_ab2_ana_pwr>; + }; + + reg_cph_3v3: reg-cph-3v3 { + compatible = "regulator-fixed"; + regulator-name = "CPH_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <®_ab2_vdd_pwr_5v0>; + }; + + reg_cph_1v8: reg-cph-1v8 { + compatible = "regulator-fixed"; + regulator-name = "CPH_1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <®_cph_3v3>; }; sound-ak5552 { @@ -644,7 +688,7 @@ reg = <0x20>; gpio-controller; #gpio-cells = <2>; - vcc-supply = <&buck5_reg>; + vcc-supply = <&buck4_reg>; }; pca6416_2: gpio@21 { @@ -677,8 +721,8 @@ compatible = "asahi-kasei,ak5552"; reg = <0x13>; reset-gpios = <&pca6416 2 GPIO_ACTIVE_HIGH>; - AVDD-supply = <®_ab2_ana_pwr>; - DVDD-supply = <®_ab2_vdd_pwr_5v0>; + AVDD-supply = <®_adc_avdd_5v0>; + DVDD-supply = <®_adc_dvdd_3v3>; }; }; -- cgit v1.2.3