ARM64: dts: rk3399: gru: add backlight and eDP panel device nodes
authorYakir Yang <ykk@rock-chips.com>
Sat, 9 Apr 2016 08:14:31 +0000 (16:14 +0800)
committerYakir Yang <ykk@rock-chips.com>
Fri, 15 Apr 2016 01:04:00 +0000 (09:04 +0800)
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 <ykk@rock-chips.com>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi

index 4099fe9bf7f1dfa2d960fb0a512ad95f0e467649..fa649dc9b5546736fd009c11ff276d330a954952 100644 (file)
                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 */