Thread (11 messages) 11 messages, 3 authors, 2022-09-27

Re: [PATCH 1/3] arm64: dts: mediatek: asurada: Add display regulators

From: Chen-Yu Tsai <wenst@chromium.org>
Date: 2022-09-21 14:21:03
Also in: linux-devicetree, linux-mediatek, lkml

Hi,

On Fri, Sep 9, 2022 at 1:12 AM Nícolas F. R. A. Prado
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
Add the regulators present on the Asurada platform that are used to
power the internal and external displays.

Signed-off-by: Nícolas F. R. A. Prado <redacted>

---

 .../boot/dts/mediatek/mt8192-asurada.dtsi     | 114 ++++++++++++++++++
 1 file changed, 114 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
index 4b314435f8fd..1d99e470ea1a 100644
--- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi
@@ -23,6 +23,42 @@ memory@40000000 {
                reg = <0 0x40000000 0 0x80000000>;
        };

+       pp1000_dpbrdg: regulator-1v0-dpbrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp1000_dpbrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp1000_dpbrdg_en_pins>;
+               regulator-min-microvolt = <1000000>;
+               regulator-max-microvolt = <1000000>;
This is fed by a rail called PP1350_VS2, which is from the MT6359 PMIC.
And this regulator is a proper LDO.
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 19 GPIO_ACTIVE_HIGH>;
+       };
+
+       pp1000_mipibrdg: regulator-1v0-mipibrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp1000_mipibrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp1000_mipibrdg_en_pins>;
+               regulator-min-microvolt = <1000000>;
+               regulator-max-microvolt = <1000000>;
This is fed by a rail called PP1350_VS2, which is from the MT6359 PMIC.
And this regulator is a proper LDO.
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 129 GPIO_ACTIVE_HIGH>;
+       };
+
+       pp1800_dpbrdg: regulator-1v8-dpbrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp1800_dpbrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp1800_dpbrdg_en_pins>;
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
This regulator is only a power switch. Please drop the min/max properties.
This is fed by a rail called PP1800_VIO18_U, which is from an LDO on the
MT6359 PMIC.
quoted hunk ↗ jump to hunk
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 126 GPIO_ACTIVE_HIGH>;
+       };
+
        /* system wide LDO 1.8V power rail */
        pp1800_ldo_g: regulator-1v8-g {
                compatible = "regulator-fixed";
@@ -34,6 +70,30 @@ pp1800_ldo_g: regulator-1v8-g {
                vin-supply = <&pp3300_g>;
        };

+       pp1800_mipibrdg: regulator-1v8-mipibrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp1800_mipibrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp1800_mipibrdg_en_pins>;
+               regulator-min-microvolt = <1800000>;
+               regulator-max-microvolt = <1800000>;
This regulator is only a power switch. Please drop the min/max properties.
This is fed by a rail called PP1800_VIO18_U, which is from an LDO on the
MT6359 PMIC.
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 128 GPIO_ACTIVE_HIGH>;
+       };
+
+       pp3300_dpbrdg: regulator-3v3-dpbrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp3300_dpbrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp3300_dpbrdg_en_pins>;
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
This regulator is only a power switch. Please drop the min/max properties.
This is fed by a rail called PP3300_G, which is already described below.
quoted hunk ↗ jump to hunk
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 26 GPIO_ACTIVE_HIGH>;
+       };
+
        /* system wide switching 3.3V power rail */
        pp3300_g: regulator-3v3-g {
                compatible = "regulator-fixed";
@@ -56,6 +116,18 @@ pp3300_ldo_z: regulator-3v3-z {
                vin-supply = <&ppvar_sys>;
        };

+       pp3300_mipibrdg: regulator-3v3-mipibrdg {
+               compatible = "regulator-fixed";
+               regulator-name = "pp3300_mipibrdg";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pp3300_mipibrdg_en_pins>;
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
This regulator is only a power switch. Please drop the min/max properties.
This is fed by a rail called PP3300_G, which is already described above.

ChenYu
quoted hunk ↗ jump to hunk
+               enable-active-high;
+               regulator-boot-on;
+               gpio = <&pio 127 GPIO_ACTIVE_HIGH>;
+       };
+
        /* separately switched 3.3V power rail */
        pp3300_u: regulator-3v3-u {
                compatible = "regulator-fixed";
@@ -719,6 +791,48 @@ pins-wifi-kill {
                };
        };

+       pp1000_dpbrdg_en_pins: pp1000-dpbrdg-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO19__FUNC_GPIO19>;
+                       output-low;
+               };
+       };
+
+       pp1000_mipibrdg_en_pins: pp1000-mipibrdg-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO129__FUNC_GPIO129>;
+                       output-low;
+               };
+       };
+
+       pp1800_dpbrdg_en_pins: pp1800-dpbrdg-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO126__FUNC_GPIO126>;
+                       output-low;
+               };
+       };
+
+       pp1800_mipibrdg_en_pins: pp1800-mipibrd-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO128__FUNC_GPIO128>;
+                       output-low;
+               };
+       };
+
+       pp3300_dpbrdg_en_pins: pp3300-dpbrdg-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO26__FUNC_GPIO26>;
+                       output-low;
+               };
+       };
+
+       pp3300_mipibrdg_en_pins: pp3300-mipibrdg-en-pins {
+               pins-en {
+                       pinmux = <PINMUX_GPIO127__FUNC_GPIO127>;
+                       output-low;
+               };
+       };
+
        pp3300_wlan_pins: pp3300-wlan-pins {
                pins-pcie-en-pp3300-wlan {
                        pinmux = <PINMUX_GPIO143__FUNC_GPIO143>;
--
2.37.3
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help