arm64: dts: rockchip: rk1808-evb: create lcd_pwr regulator

Since touch screen and panel both use LCD_PWR_EN to enable
power, create lcd_pwr regulator so touch screen and panel
both can quote it.

Change-Id: I5400637c3ae9e684c58effcd5eae1fdc1672780a
Signed-off-by: Lin Huang <hl@rock-chips.com>
This commit is contained in:
Lin Huang
2019-04-13 17:27:54 +08:00
committed by Tao Huang
parent 88af3cfd91
commit ddd5393ba4
2 changed files with 13 additions and 2 deletions

View File

@@ -49,8 +49,7 @@
compatible = "sitronix,st7703", "simple-panel-dsi";
reg = <0>;
backlight = <&backlight>;
enable-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
power-supply = <&vcc5v0_sys>;
power-supply = <&lcd_pwr>;
prepare-delay-ms = <2>;
reset-delay-ms = <1>;
init-delay-ms = <20>;

View File

@@ -214,6 +214,17 @@
WIFI,host_wake_irq = <&gpio4 RK_PC1 GPIO_ACTIVE_HIGH>;
status = "okay";
};
lcd_pwr: lcd-pwr {
compatible = "regulator-fixed";
regulator-name = "lcd_pwr";
regulator-boot-on;
gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
enable-active-high;
regulator-state-mem {
regulator-off-in-suspend;
};
};
};
&cpu0 {
@@ -548,6 +559,7 @@
gt1x: gt1x@14 {
compatible = "goodix,gt1x";
reg = <0x14>;
power-supply = <&lcd_pwr>;
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>;
};