Point each supply of the Startek KD070FHFID078 panel at the rail that
feeds it on the Genio 1200 EVK, and add the vddp-supply that the
himax,hx8279 binding now requires.

The Genio 1200 EVK is wired as follows:
- VDD (backlight LED power) comes from VSYS through a switch enabled by
  GPIO47. That is the regulator previously described as lcm0_iovcc, so
  rename it to lcm0_vdd and feed it from VSYS.
- IOVCC comes directly from MT6360 LDO2.
- VDDP comes directly from MT6360 LDO1. The lcm0_vddp regulator only
  passed LDO1 through, so drop it.

The previous description pointed vdd-supply at the VDDP rail and used
the VDD switch as the IOVCC regulator. It worked only because the driver
enables all the supplies together.

Signed-off-by: David Lechner <[email protected]>
---
 .../boot/dts/mediatek/mt8395-genio-common.dtsi      | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi 
b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
index aef908df530e..f415b6f71653 100644
--- a/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-common.dtsi
@@ -175,22 +175,16 @@ button-volume-up {
                };
        };
 
-       lcm0_iovcc: regulator-vio18-lcm0 {
+       lcm0_vdd: regulator-vsys-lcm0 {
                compatible = "regulator-fixed";
-               regulator-name = "vio18_lcm0";
+               regulator-name = "vsys_lcm0";
+               regulator-min-microvolt = <4200000>;
+               regulator-max-microvolt = <4200000>;
                enable-active-high;
                gpio = <&pio 47 GPIO_ACTIVE_HIGH>;
                pinctrl-names = "default";
                pinctrl-0 = <&dsi0_vreg_en_pins>;
-               vin-supply = <&mt6360_ldo2>;
-       };
-
-       lcm0_vddp: regulator-vsys-lcm0 {
-               compatible = "regulator-fixed";
-               regulator-name = "vsys_lcm0";
-               regulator-always-on;
-               regulator-boot-on;
-               vin-supply = <&mt6360_ldo1>;
+               vin-supply = <&reg_vsys>;
        };
 
        wifi_fixed_3v3: regulator-2 {
@@ -303,8 +297,9 @@ panel@0 {
                backlight = <&backlight_lcm0>;
                enable-gpios = <&pio 48 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&pio 108 GPIO_ACTIVE_HIGH>;
-               iovcc-supply = <&lcm0_iovcc>;
-               vdd-supply = <&lcm0_vddp>;
+               iovcc-supply = <&mt6360_ldo2>;
+               vdd-supply = <&lcm0_vdd>;
+               vddp-supply = <&mt6360_ldo1>;
                pinctrl-names = "default";
                pinctrl-0 = <&panel_default_pins>;
 

-- 
2.53.0

Reply via email to