From bf6121ea6b2d1a497a7fb7539c429335c1d01e1a Mon Sep 17 00:00:00 2001 From: Yakir Yang Date: Sat, 9 Apr 2016 16:14:31 +0800 Subject: [PATCH] ARM64: dts: rk3399: gru: add backlight and eDP panel device nodes Panel brightness is controller by EC, the AP just enable/disable the backlight power through GPIO1_C1. Change-Id: I46e1f3b5098159cb07f86ba203ef8cfa102dd385 Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index 4099fe9bf7f1..fa649dc9b554 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi @@ -486,6 +486,25 @@ rockchip,i2s-controller = <&i2s0>; rockchip,audio-codec = <&codec>; }; + + backlight: backlight { + compatible = "gpio-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&bl_en>; + gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; + }; + + edp_panel: edp-panel { + compatible = "samsung,lsn122dl01-c01", "panel-simple"; + backlight = <&backlight>; + power-supply = <&pp3300_disp>; + + ports { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; }; &cpu_l0 { @@ -832,6 +851,19 @@ ap_i2c_audio: &i2c8 { &edp { status = "okay"; + + ports { + edp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + edp_out_panel: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_in_edp>; + }; + }; + }; }; &vopb { @@ -1030,6 +1062,12 @@ ap_i2c_audio: &i2c8 { rockchip,pins = <3 12 RK_FUNC_GPIO &pcfg_output_high>; }; }; + + backlight-enable { + bl_en: bl-en { + rockchip,pins = <1 17 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; /* DON'T PUT ANYTHING BELOW HERE. PUT IT ABOVE PINCTRL */ -- 2.34.1