mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
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:
@@ -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>;
|
||||
|
||||
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user