Skip to content

Commit

Permalink
dts: a20*: enable ldo3 / ldo4 always-on
Browse files Browse the repository at this point in the history
  • Loading branch information
hehopmajieh authored and stefansaraev committed May 18, 2023
1 parent 7eeb0e7 commit 13d64c1
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 7 deletions.
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts
Expand Up @@ -270,6 +270,21 @@
regulator-name = "avcc";
};

&reg_ldo3 {
regulator-always-on;
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-name = "vddio-csi0";
regulator-ramp-delay = <1600>;
};

&reg_ldo4 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-pg";
};

&reg_usb0_vbus {
status = "okay";
};
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-olimex-som204-evb.dts
Expand Up @@ -244,7 +244,16 @@
regulator-name = "avcc";
};

&reg_ldo3 {
regulator-always-on;
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-name = "vddio-csi0";
regulator-ramp-delay = <1600>;
};

&reg_ldo4 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-pg";
Expand Down
36 changes: 36 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dts
Expand Up @@ -84,6 +84,15 @@
default-state = "on";
};
};

reg_axp_ipsout: axp_ipsout {
compatible = "regulator-fixed";
regulator-name = "axp-ipsout";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};

};

&ahci {
Expand Down Expand Up @@ -178,6 +187,33 @@
};
};

#include "axp209.dtsi"

&ac_power_supply {
status = "okay";
};

&battery_power_supply {
status = "okay";
};

&reg_ldo3 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-soft-start;
regulator-ramp-delay = <1600>;
regulator-name = "vddio-csi0";
};

&reg_ldo3 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-soft-start;
regulator-ramp-delay = <1900>;
regulator-name = "vddio-csi1";

};

&reg_ahci_5v {
gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay";
Expand Down
13 changes: 6 additions & 7 deletions arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts
Expand Up @@ -182,9 +182,7 @@
&pio {
vcc-pa-supply = <&reg_vcc3v3>;
vcc-pc-supply = <&reg_vcc3v3>;
vcc-pe-supply = <&reg_ldo3>;
vcc-pf-supply = <&reg_vcc3v3>;
vcc-pg-supply = <&reg_ldo4>;

led_pins_olinuxinolime: led-pins {
pins = "PH2";
Expand Down Expand Up @@ -237,16 +235,17 @@
};

&reg_ldo3 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vddio-csi0";
regulator-soft-start;
regulator-ramp-delay = <1600>;
};

&reg_ldo4 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vddio-csi1";
};

Expand Down
12 changes: 12 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
Expand Up @@ -287,6 +287,18 @@
regulator-name = "avcc";
};

&reg_ldo3 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};

&reg_ldo4 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};

&reg_ahci_5v {
status = "okay";
};
Expand Down

0 comments on commit 13d64c1

Please sign in to comment.