Skip to content

Commit c2c106f

Browse files
author
Zhou weixin
committed
arm64: dts: rockchip: add power control for gt1x on px30/rk3326 evb
Change-Id: I40bae62b0d11a7947d6da02aad9c44cf411bb28f Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
1 parent 420f585 commit c2c106f

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,11 @@
607607
};
608608

609609
gt1x: gt1x@14 {
610-
compatible = "goodix,gt1x";
611-
reg = <0x14>;
612-
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
613-
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
610+
compatible = "goodix,gt1x";
611+
reg = <0x14>;
612+
power-supply = <&vcc3v3_lcd>;
613+
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
614+
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
614615
};
615616

616617
sensor@4c {

arch/arm64/boot/dts/rockchip/rk3326-evb-lp3-v10.dts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,17 @@
211211
BT,wake_host_irq = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
212212
status = "okay";
213213
};
214+
215+
vcc18_lcd_n: vcc18-lcd-n {
216+
compatible = "regulator-fixed";
217+
regulator-name = "vcc18_lcd_n";
218+
regulator-boot-on;
219+
gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
220+
enable-active-high;
221+
regulator-state-mem {
222+
regulator-off-in-suspend;
223+
};
224+
};
214225
};
215226

216227
&bus_apll {
@@ -233,7 +244,7 @@
233244
compatible = "sitronix,st7703", "simple-panel-dsi";
234245
reg = <0>;
235246
backlight = <&backlight>;
236-
enable-gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>;
247+
power-supply = <&vcc18_lcd_n>;
237248
prepare-delay-ms = <2>;
238249
reset-delay-ms = <1>;
239250
init-delay-ms = <20>;
@@ -680,10 +691,11 @@
680691
};
681692

682693
gt1x: gt1x@14 {
683-
compatible = "goodix,gt1x";
684-
reg = <0x14>;
685-
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
686-
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
694+
compatible = "goodix,gt1x";
695+
reg = <0x14>;
696+
power-supply = <&vcc18_lcd_n>;
697+
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
698+
goodix,irq-gpio = <&gpio0 RK_PA5 IRQ_TYPE_LEVEL_LOW>;
687699
};
688700

689701
sensor@4c {

0 commit comments

Comments
 (0)