From 327133677386ac26903bf3c9051a4827b09e2e42 Mon Sep 17 00:00:00 2001 From: Dyneteve Date: Mon, 13 Jan 2020 17:54:09 +0200 Subject: [PATCH 1/2] arch: arm64: Update display dtsi's --- .../dsi-panel-ft8719-tianma-fhd-video.dtsi | 126 ++--- ...dsi-panel-nt36672a-shenchao-fhd-video.dtsi | 414 +++++++------- .../dsi-panel-nt36672a-tianma-fhd-video.dtsi | 532 ++++++++---------- .../boot/dts/qcom/sm6150-sde-display.dtsi | 113 ++-- 4 files changed, 575 insertions(+), 610 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/dsi-panel-ft8719-tianma-fhd-video.dtsi b/arch/arm64/boot/dts/qcom/dsi-panel-ft8719-tianma-fhd-video.dtsi index 075fa897d208..184eb0df5870 100644 --- a/arch/arm64/boot/dts/qcom/dsi-panel-ft8719-tianma-fhd-video.dtsi +++ b/arch/arm64/boot/dts/qcom/dsi-panel-ft8719-tianma-fhd-video.dtsi @@ -29,7 +29,7 @@ qcom,mdss-dsi-underflow-color = <0xff>; qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; @@ -41,96 +41,88 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-force-clock-lane-hs; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <4095>; - qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2340>; - qcom,mdss-dsi-h-front-porch = <64>; - qcom,mdss-dsi-h-back-porch = <84>; + qcom,mdss-dsi-h-front-porch = <72>; + qcom,mdss-dsi-h-back-porch = <80>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <12>; - qcom,mdss-dsi-v-front-porch = <120>; + qcom,mdss-dsi-v-front-porch = <112>; qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 04 ff 87 19 01 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 03 ff 87 19 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 0D CA 80 80 81 81 81 81 81 81 81 81 81 80 + 39 01 00 00 00 00 02 00 00 + 39 01 00 00 00 00 04 ff 87 19 01 + 39 01 00 00 00 00 02 00 80 + 39 01 00 00 00 00 03 ff 87 19 - 39 01 00 00 00 00 02 00 90 - 39 01 00 00 00 00 0A CA FE FF 66 F6 FF 66 FB FF 32 - - /*39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 0B D9 F0 01 19 00 F8 0F 01 00 A4 01 - 39 01 00 00 00 00 02 00 90 - 39 01 00 00 00 00 09 D9 07 00 05 00 18 00 5D 01 - 39 01 00 00 00 00 02 00 00*/ - - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 04 ff 00 00 00 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 03 ff 00 00 - - 15 01 00 00 00 00 02 35 00 - 15 01 00 00 5A 00 02 11 00 - 15 01 00 00 14 00 02 29 00 - 15 01 00 00 00 00 02 51 ff - 15 01 00 00 00 00 02 53 24 - 15 01 00 00 00 00 02 55 00 - ]; + 39 01 00 00 00 00 02 00 80 + 39 01 00 00 00 00 0D CA 80 80 80 80 80 80 80 80 80 80 80 80 + 39 01 00 00 00 00 02 00 90 + 39 01 00 00 00 00 0A CA FE FF 66 F6 FF 66 FB FF 32 + 39 01 00 00 00 00 02 00 B5 + 39 01 00 00 00 00 02 CA 06 + 39 01 00 00 00 00 02 00 B2 + 39 01 00 00 00 00 02 CA 0c + 15 01 00 00 55 00 02 11 00 + 15 01 00 00 00 00 02 29 00 + 15 01 00 00 00 00 02 51 B8 + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 00 + ]; qcom,mdss-dsi-off-command = [ - 15 01 00 00 14 00 02 28 00 - 15 01 00 00 78 00 02 10 00 - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 04 ff 87 19 01 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 03 ff 87 19 - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 05 f7 5A A5 95 27 - ]; - qcom,mdss-dsi-ce-on-command = [ - ]; - qcom,mdss-dsi-ce-off-command = [ - ]; + 15 01 00 00 00 00 02 53 24 + 39 01 00 00 14 00 02 28 00 + 39 01 00 00 78 00 02 10 00 + 39 01 00 00 00 00 02 00 00 + 39 01 00 00 00 00 05 f7 5a a5 95 27]; qcom,mdss-dsi-cabc-on-command = [ - 39 01 00 00 00 00 02 55 01 - ]; + 39 01 00 00 00 00 02 55 01 + ]; qcom,mdss-dsi-cabc-off-command = [ - 39 01 00 00 00 00 02 55 00 - ]; - qcom,mdss-dsi-srgb-on-command = [ - 39 01 00 00 00 00 02 96 80 - ]; - qcom,mdss-dsi-srgb-off-command =[ - 39 01 00 00 00 00 02 96 00 + 39 01 00 00 00 00 02 55 00 ]; qcom,mdss-dsi-cabc_movie-on-command = [ - 39 01 00 00 00 00 02 55 03 + 39 01 00 00 00 00 02 55 03 ]; qcom,mdss-dsi-cabc_still-on-command = [ - 39 01 00 00 00 00 02 55 02 + 39 01 00 00 00 00 02 55 02 + ]; + qcom,mdss-dsi-hbm1-on-command = [ + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 51 CC + ]; + qcom,mdss-dsi-hbm2-on-command = [ + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 51 E6 + ]; + qcom,mdss-dsi-hbm3-on-command = [ + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 51 FF + ]; + qcom,mdss-dsi-hbm-off-command = [ + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 51 B8 ]; - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-cabc-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc_movie-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc_still-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc_movie-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc_still-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm1-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm2-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm3-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; }; }; }; diff --git a/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-shenchao-fhd-video.dtsi b/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-shenchao-fhd-video.dtsi index 420e5a1cbb19..04001294cbb7 100644 --- a/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-shenchao-fhd-video.dtsi +++ b/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-shenchao-fhd-video.dtsi @@ -1,4 +1,4 @@ -/* Copyright (c) 2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (C) 2019 XiaoMi, Inc. * * This program is free software; you can redistribute it and/or modify @@ -12,7 +12,7 @@ */ &mdss_mdp { - dsi_nt36672a_shenchao_video: qcom,mdss_dsi_nt36672a_shenchao_fhd_video { + dsi_nt36672a_shenchao_video: qcom,mdss_dsi_nt36672a_shenchao_video { qcom,mdss-dsi-panel-name = "nt36672a video mode dsi shenchao panel"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; @@ -29,7 +29,7 @@ qcom,mdss-dsi-underflow-color = <0xff>; qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; @@ -41,12 +41,11 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-force-clock-lane-hs; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <4095>; - qcom,mdss-dsi-reset-sequence = <1 1>, <0 1>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; qcom,mdss-dsi-display-timings { timing@0 { @@ -57,218 +56,233 @@ qcom,mdss-dsi-h-pulse-width = <2>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <8>; - qcom,mdss-dsi-v-front-porch = <13>; + qcom,mdss-dsi-v-front-porch = <10>; qcom,mdss-dsi-v-pulse-width = <3>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-on-command = [ - 15 01 00 00 00 00 02 ff 23 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 07 20 - 15 01 00 00 00 00 02 08 04 - 15 01 00 00 00 00 02 09 00 - 15 01 00 00 00 00 02 ff 25 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 18 96 - 15 01 00 00 00 00 02 05 04 - 15 01 00 00 00 00 02 ff 27 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 d9 10 - 15 01 00 00 00 00 02 ff 24 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 82 13 - 15 01 00 00 00 00 02 84 31 - 15 01 00 00 00 00 02 88 13 - 15 01 00 00 00 00 02 8a 31 - 15 01 00 00 00 00 02 8e e4 - 15 01 00 00 00 00 02 8f 01 - 15 01 00 00 00 00 02 90 80 - 15 01 00 00 00 00 02 9d b0 - 15 01 00 00 00 00 02 ff 26 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 a9 12 - 15 01 00 00 00 00 02 aa 10 - 15 01 00 00 00 00 02 ae 8a - 15 01 00 00 00 00 02 1c fa - 15 01 00 00 00 00 02 ff 10 - 15 01 00 00 00 00 02 b0 01 - 15 01 00 00 00 00 02 51 b8 - 39 01 00 00 00 00 03 68 06 - 04 15 01 00 00 00 00 02 53 - 2c 15 01 00 00 00 00 02 55 - 00 05 01 00 00 00 00 02 29 - 00 05 01 00 00 46 00 02 11 - 00]; + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 07 20 + 15 00 00 00 00 00 02 08 04 + 15 01 00 00 00 00 02 ff 25 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 18 96 + 15 01 00 00 00 00 02 05 04 + 15 01 00 00 00 00 02 ff 20 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 78 01 + 15 01 00 00 00 00 02 ff 24 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 82 13 + 15 01 00 00 00 00 02 84 31 + 15 01 00 00 00 00 02 88 13 + 15 01 00 00 00 00 02 8a 31 + 15 01 00 00 00 00 02 8e e4 + 15 01 00 00 00 00 02 8f 01 + 15 01 00 00 00 00 02 90 80 + 15 01 00 00 00 00 02 ff 26 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 a9 12 + 15 01 00 00 00 00 02 aa 10 + 15 01 00 00 00 00 02 ae 8a + 15 01 00 00 00 00 02 ff 10 + 05 01 00 00 50 00 02 11 00 + 15 01 00 00 00 00 02 b0 01 + 15 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 03 68 04 03 + 15 01 00 00 00 00 02 51 B8 + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 55 00 + 05 01 00 00 00 00 02 29 00]; qcom,mdss-dsi-off-command = [ - 05 01 00 00 14 00 02 28 00 + 05 01 00 00 14 00 02 28 00 05 01 00 00 78 00 02 10 00]; - qcom,mdss-dsi-ce-on-command = []; - qcom,mdss-dsi-ce-off-command = []; - qcom,mdss-dsi-srgb-on-command = []; - qcom,mdss-dsi-srgb-off-command = []; qcom,mdss-dsi-cabc-on-command = [ - 15 01 00 00 00 00 02 ff 23 - 15 00 00 00 00 00 02 fb 01 - 15 00 00 00 00 00 02 01 84 - 15 00 00 00 00 00 02 05 04 - 15 00 00 00 00 00 02 05 2d - 15 00 00 00 00 00 02 06 00 - 15 00 00 00 00 00 02 11 01 - 15 00 00 00 00 00 02 12 8a - 15 00 00 00 00 00 02 15 6a - 15 01 00 00 00 00 02 16 0b - 15 00 00 00 00 00 02 19 00 - 15 00 00 00 00 00 02 1a 04 - 15 00 00 00 00 00 02 1b 08 - 15 00 00 00 00 00 02 1c 0c - 15 00 00 00 00 00 02 1d 10 - 15 00 00 00 00 00 02 1e 2a - 15 00 00 00 00 00 02 1f 3f - 15 00 00 00 00 00 02 20 3f - 15 00 00 00 00 00 02 21 30 - 15 01 00 00 00 00 02 22 2e - 15 00 00 00 00 00 02 23 30 - 15 00 00 00 00 00 02 24 37 - 15 00 00 00 00 00 02 25 38 - 15 00 00 00 00 00 02 26 2c - 15 00 00 00 00 00 02 27 24 - 15 00 00 00 00 00 02 28 28 - 15 00 00 00 00 00 02 29 80 - 15 00 00 00 00 00 02 30 fd - 15 00 00 00 00 00 02 31 fc - 15 01 00 00 00 00 02 32 f8 - 15 00 00 00 00 00 02 33 f6 - 15 00 00 00 00 00 02 34 f5 - 15 00 00 00 00 00 02 35 f4 - 15 00 00 00 00 00 02 36 f3 - 15 00 00 00 00 00 02 37 f3 - 15 00 00 00 00 00 02 38 f2 - 15 00 00 00 00 00 02 39 f0 - 15 00 00 00 00 00 02 3a ee - 15 00 00 00 00 00 02 3b ec - 15 01 00 00 00 00 02 3d ea - 15 00 00 00 00 00 02 3f e8 - 15 00 00 00 00 00 02 40 e6 - 15 01 00 00 00 00 02 41 e5 - 15 01 00 00 00 00 02 ff 10 - 15 00 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + 15 00 00 00 00 00 02 07 20 + 15 00 00 00 00 00 02 08 04 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 00 00 00 00 00 02 16 0B + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + 15 00 00 00 00 00 02 29 80 + 15 00 00 00 00 00 02 30 FD + 15 00 00 00 00 00 02 31 FC + 15 00 00 00 00 00 02 32 F8 + 15 00 00 00 00 00 02 33 F6 + 15 00 00 00 00 00 02 34 F5 + 15 00 00 00 00 00 02 35 F4 + 15 00 00 00 00 00 02 36 F3 + 15 00 00 00 00 00 02 37 F3 + 15 00 00 00 00 00 02 38 F2 + 15 00 00 00 00 00 02 39 F0 + 15 00 00 00 00 00 02 3A EE + 15 00 00 00 00 00 02 3B EC + 15 01 00 00 00 00 02 3D EA + 15 00 00 00 00 00 02 3F E8 + 15 00 00 00 00 00 02 40 E6 + 15 00 00 00 00 00 02 41 E5 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 15 01 00 00 00 00 02 55 01 - 00 05 01 00 00 00 00 02 29 - 00 05 01 00 00 46 00 02 11 - 00]; + ]; qcom,mdss-dsi-cabc-off-command = [ - 15 01 00 00 00 00 02 ff 10 + 15 01 00 00 00 00 02 FF 10 15 01 00 00 00 00 02 55 00 - 00 05 01 00 00 00 00 02 29 - 00 05 01 00 00 46 00 02 11 - 00]; + ]; qcom,mdss-dsi-cabc_movie-on-command = [ - 15 01 00 00 00 00 02 ff 23 - 15 00 00 00 00 00 02 fb 01 - 15 00 00 00 00 00 02 01 84 - 15 00 00 00 00 00 02 05 04 - 15 00 00 00 00 00 02 05 2d - 15 00 00 00 00 00 02 06 00 - 15 00 00 00 00 00 02 11 01 - 15 00 00 00 00 00 02 12 8a - 15 00 00 00 00 00 02 15 6a - 15 01 00 00 00 00 02 16 0b - 15 00 00 00 00 00 02 19 00 - 15 00 00 00 00 00 02 1a 04 - 15 00 00 00 00 00 02 1b 08 - 15 00 00 00 00 00 02 1c 0c - 15 00 00 00 00 00 02 1d 10 - 15 00 00 00 00 00 02 1e 2a - 15 00 00 00 00 00 02 1f 3f - 15 00 00 00 00 00 02 20 3f - 15 00 00 00 00 00 02 21 30 - 15 01 00 00 00 00 02 22 2e - 15 00 00 00 00 00 02 23 30 - 15 00 00 00 00 00 02 24 37 - 15 00 00 00 00 00 02 25 38 - 15 00 00 00 00 00 02 26 2c - 15 00 00 00 00 00 02 27 24 - 15 00 00 00 00 00 02 28 28 - 15 00 00 00 00 00 02 2b 87 - 15 00 00 00 00 00 02 58 e4 - 15 00 00 00 00 00 02 59 e4 - 15 01 00 00 00 00 02 5a e4 - 15 00 00 00 00 00 02 5b e4 - 15 00 00 00 00 00 02 5c e4 - 15 00 00 00 00 00 02 5d e4 - 15 00 00 00 00 00 02 5e df - 15 00 00 00 00 00 02 5f da - 15 00 00 00 00 00 02 60 d7 - 15 00 00 00 00 00 02 61 d0 - 15 00 00 00 00 00 02 62 cd - 15 00 00 00 00 00 02 63 ca - 15 01 00 00 00 00 02 64 c8 - 15 00 00 00 00 00 02 65 c1 - 15 00 00 00 00 00 02 66 bb - 15 01 00 00 00 00 02 67 b3 - 15 01 00 00 00 00 02 ff 10 - 15 00 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + //dimming enable + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + //PWM Feq=30KHz + //15 00 00 00 00 00 02 07 60 + //resolution 1080*2340 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 01 00 00 00 00 02 16 0B + //CABC Gamma + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + //MOVING mode + 15 00 00 00 00 00 02 2B 87 + 15 00 00 00 00 00 02 58 E4 + 15 00 00 00 00 00 02 59 E4 + 15 01 00 00 00 00 02 5A E4 + 15 00 00 00 00 00 02 5B E4 + 15 00 00 00 00 00 02 5C E4 + 15 00 00 00 00 00 02 5D E4 + 15 00 00 00 00 00 02 5E DF + 15 00 00 00 00 00 02 5F DA + 15 00 00 00 00 00 02 60 D7 + 15 00 00 00 00 00 02 61 D0 + 15 00 00 00 00 00 02 62 CD + 15 00 00 00 00 00 02 63 CA + 15 01 00 00 00 00 02 64 C8 + 15 00 00 00 00 00 02 65 C1 + 15 00 00 00 00 00 02 66 BB + 15 01 00 00 00 00 02 67 B3 + 15 01 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 15 01 00 00 00 00 02 55 03 - 00 05 01 00 00 00 00 02 29 - 00 05 01 00 00 46 00 02 11 - 00]; - qcom,mdss-dsi-cabc_still-on-command = [ - 15 01 00 00 00 00 02 ff 23 - 15 00 00 00 00 00 02 fb 01 - 15 00 00 00 00 00 02 01 84 - 15 00 00 00 00 00 02 05 04 - 15 00 00 00 00 00 02 05 2d - 15 00 00 00 00 00 02 06 00 - 15 00 00 00 00 00 02 11 01 - 15 00 00 00 00 00 02 12 8a - 15 00 00 00 00 00 02 15 6a - 15 01 00 00 00 00 02 16 0b - 15 00 00 00 00 00 02 19 00 - 15 00 00 00 00 00 02 1a 04 - 15 00 00 00 00 00 02 1b 08 - 15 00 00 00 00 00 02 1c 0c - 15 00 00 00 00 00 02 1d 10 - 15 00 00 00 00 00 02 1e 2a - 15 00 00 00 00 00 02 1f 3f - 15 00 00 00 00 00 02 20 3f - 15 00 00 00 00 00 02 21 30 - 15 01 00 00 00 00 02 22 2e - 15 00 00 00 00 00 02 23 30 - 15 00 00 00 00 00 02 24 37 - 15 00 00 00 00 00 02 25 38 - 15 00 00 00 00 00 02 26 2c - 15 00 00 00 00 00 02 27 24 - 15 00 00 00 00 00 02 28 28 - 15 00 00 00 00 00 02 2a 3f - 15 00 00 00 00 00 02 45 e4 - 15 00 00 00 00 00 02 46 e4 - 15 01 00 00 00 00 02 47 e4 - 15 00 00 00 00 00 02 48 e4 - 15 00 00 00 00 00 02 49 e4 - 15 00 00 00 00 00 02 4a e4 - 15 00 00 00 00 00 02 4b d0 - 15 00 00 00 00 00 02 4c b2 - 15 00 00 00 00 00 02 4d af - 15 00 00 00 00 00 02 4e aa - 15 00 00 00 00 00 02 4f a4 - 15 00 00 00 00 00 02 50 9a - 15 01 00 00 00 00 02 51 90 - 15 00 00 00 00 00 02 52 85 - 15 00 00 00 00 00 02 53 7a - 15 01 00 00 00 00 02 54 66 - 15 01 00 00 00 00 02 ff 10 - 15 00 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 55 02]; + ]; + qcom,mdss-dsi-cabc_still-on-command = [ + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + //dimming enable + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + //PWM Feq=30KHz + // 15 00 00 00 00 00 02 07 60 + //resolution 1080*2340 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 01 00 00 00 00 02 16 0B + //CABC Gamma + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + //STILL mode + 15 00 00 00 00 00 02 2A 3F + //Still_PWM DUTY + 15 00 00 00 00 00 02 45 E4 + 15 00 00 00 00 00 02 46 E4 + 15 01 00 00 00 00 02 47 E4 + 15 00 00 00 00 00 02 48 E4 + 15 00 00 00 00 00 02 49 E4 + 15 00 00 00 00 00 02 4A E4 + 15 00 00 00 00 00 02 4B D0 + 15 00 00 00 00 00 02 4C B2 + 15 00 00 00 00 00 02 4D AF + 15 00 00 00 00 00 02 4E AA + 15 00 00 00 00 00 02 4F A4 + 15 00 00 00 00 00 02 50 9A + 15 01 00 00 00 00 02 51 90 + 15 00 00 00 00 00 02 52 85 + 15 00 00 00 00 00 02 53 7A + 15 01 00 00 00 00 02 54 66 + 15 01 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 55 02 + ]; + qcom,mdss-dsi-hbm1-on-command = [ + 15 01 00 00 00 00 02 51 CC + ]; + qcom,mdss-dsi-hbm2-on-command = [ + 15 01 00 00 00 00 02 51 E6 + ]; + qcom,mdss-dsi-hbm3-on-command = [ + 15 01 00 00 00 00 02 51 FF + ]; + qcom,mdss-dsi-hbm-off-command = [ + 15 01 00 00 00 00 02 51 B8 + ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc_movie-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc_still-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm1-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm2-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm3-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; }; }; }; -}; +}; \ No newline at end of file diff --git a/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-tianma-fhd-video.dtsi b/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-tianma-fhd-video.dtsi index 6a51b03fa553..02a3cc586b23 100644 --- a/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-tianma-fhd-video.dtsi +++ b/arch/arm64/boot/dts/qcom/dsi-panel-nt36672a-tianma-fhd-video.dtsi @@ -1,4 +1,4 @@ -/* Copyright (c) 2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. * Copyright (C) 2019 XiaoMi, Inc. * * This program is free software; you can redistribute it and/or modify @@ -12,13 +12,11 @@ */ &mdss_mdp { - dsi_nt36672a_tianma_video: qcom,mdss_dsi_nt36672a_tianma_fhd_video { + dsi_nt36672a_tianma_video: qcom,mdss_dsi_nt36672a_tianma_video { qcom,mdss-dsi-panel-name = "nt36672a video mode dsi tianma panel"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,mdss-dsi-virtual-channel-id = <0>; - qcom,mdss-pan-physical-width-dimension = <67>; - qcom,mdss-pan-physical-height-dimension = <145>; qcom,mdss-dsi-stream = <0>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; @@ -29,7 +27,7 @@ qcom,mdss-dsi-underflow-color = <0xff>; qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; @@ -41,11 +39,13 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-force-clock-lane-hs; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-reset-sequence = <1 1>, <0 5>, <1 15>; + qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-pan-physical-width-dimension = <67>; + qcom,mdss-pan-physical-height-dimension = <145>; qcom,mdss-dsi-display-timings { timing@0 { @@ -60,311 +60,225 @@ qcom,mdss-dsi-v-pulse-width = <3>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-on-command = [ - 15 01 00 00 00 00 02 ff 25 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 18 96 - 15 01 00 00 00 00 02 05 04 - 15 01 00 00 00 00 02 ff 20 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 78 01 - 15 01 00 00 00 00 02 ff 24 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 82 13 - 15 01 00 00 00 00 02 84 31 - 15 01 00 00 00 00 02 88 13 - 15 01 00 00 00 00 02 8a 31 - 15 01 00 00 00 00 02 8e e4 - 15 01 00 00 00 00 02 8f 01 - 15 01 00 00 00 00 02 90 80 - 15 01 00 00 00 00 02 ff 26 - 15 01 00 00 00 00 02 fb 01 - 15 01 00 00 00 00 02 a9 12 - 15 01 00 00 00 00 02 aa 10 - 15 01 00 00 00 00 02 ae 8a - 15 01 00 00 00 00 02 ff 10 - 05 01 00 00 50 00 02 11 00 - 15 01 00 00 00 00 02 b0 01 - 15 01 00 00 00 00 02 35 00 - 39 01 00 00 00 00 03 68 03 04 - 15 01 00 00 00 00 02 51 ff - 15 01 00 00 00 00 02 53 2c - 15 01 00 00 00 00 02 55 00 - 05 01 00 00 32 00 02 29 00]; + 15 01 00 00 00 00 02 ff 25 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 18 96 + 15 01 00 00 00 00 02 05 04 + 15 01 00 00 00 00 02 ff 20 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 78 01 + 15 01 00 00 00 00 02 ff 24 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 82 13 + 15 01 00 00 00 00 02 84 31 + 15 01 00 00 00 00 02 88 13 + 15 01 00 00 00 00 02 8a 31 + 15 01 00 00 00 00 02 8e e4 + 15 01 00 00 00 00 02 8f 01 + 15 01 00 00 00 00 02 90 80 + 15 01 00 00 00 00 02 ff 26 + 15 01 00 00 00 00 02 fb 01 + 15 01 00 00 00 00 02 a9 12 + 15 01 00 00 00 00 02 aa 10 + 15 01 00 00 00 00 02 ae 8a + 15 01 00 00 00 00 02 ff 10 + 05 01 00 00 50 00 02 11 00 + 15 01 00 00 00 00 02 b0 01 + 15 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 03 68 04 03 + 15 01 00 00 00 00 02 51 B8 + 15 01 00 00 00 00 02 53 2c + 15 01 00 00 00 00 02 55 00 + 05 01 00 00 00 00 02 29 00]; qcom,mdss-dsi-off-command = [ - 05 01 00 00 32 00 02 28 00 - 05 01 00 00 96 00 02 10 00]; - - qcom,mdss-dsi-ce-on-command = [ - ]; - qcom,mdss-dsi-ce-off-command = [ - ]; - qcom,mdss-dsi-srgb-on-command = [ - 15 01 00 00 00 00 02 FF 22 - 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 00 36 - 15 00 00 00 00 00 02 01 35 - 15 00 00 00 00 00 02 02 34 - 15 00 00 00 00 00 02 03 33 - 15 00 00 00 00 00 02 04 31 - 15 00 00 00 00 00 02 05 31 - 15 00 00 00 00 00 02 06 30 - 15 00 00 00 00 00 02 07 2F - 15 00 00 00 00 00 02 08 2E - 15 00 00 00 00 00 02 09 2D - 15 00 00 00 00 00 02 0A 2C - 15 00 00 00 00 00 02 0B 2B - 15 00 00 00 00 00 02 0C 29 - 15 00 00 00 00 00 02 0D 26 - 15 00 00 00 00 00 02 0E 23 - 15 00 00 00 00 00 02 0F 20 - 15 00 00 00 00 00 02 10 1D - 15 00 00 00 00 00 02 11 50 - 15 00 00 00 00 00 02 12 60 - 15 01 00 00 00 00 02 13 70 - - 15 00 00 00 00 00 02 14 58 - 15 00 00 00 00 00 02 15 68 - 15 00 00 00 00 00 02 16 78 - 15 00 00 00 00 00 02 17 77 - 15 00 00 00 00 00 02 18 40 - 15 00 00 00 00 00 02 19 40 - 15 00 00 00 00 00 02 1A 40 - 15 00 00 00 00 00 02 1B 40 - 15 00 00 00 00 00 02 1C 40 - 15 00 00 00 00 00 02 1D 40 - 15 00 00 00 00 00 02 1E 40 - 15 00 00 00 00 00 02 1F 40 - 15 00 00 00 00 00 02 20 40 - 15 00 00 00 00 00 02 21 45 - 15 00 00 00 00 00 02 22 49 - 15 00 00 00 00 00 02 23 4C - 15 00 00 00 00 00 02 24 4B - 15 00 00 00 00 00 02 25 48 - 15 00 00 00 00 00 02 26 44 - 15 00 00 00 00 00 02 27 41 - 15 01 00 00 00 00 02 28 40 - 15 00 00 00 00 00 02 2D 00 - 15 00 00 00 00 00 02 2F 37 - 15 00 00 00 00 00 02 30 37 - 15 00 00 00 00 00 02 31 37 - 15 00 00 00 00 00 02 32 37 - 15 00 00 00 00 00 02 33 37 - 15 00 00 00 00 00 02 34 37 - 15 00 00 00 00 00 02 35 37 - 15 00 00 00 00 00 02 36 37 - 15 00 00 00 00 00 02 37 37 - 15 00 00 00 00 00 02 38 38 - 15 00 00 00 00 00 02 39 38 - 15 00 00 00 00 00 02 3A 38 - 15 00 00 00 00 00 02 3B 37 - 15 00 00 00 00 00 02 3D 37 - 15 00 00 00 00 00 02 3F 37 - 15 00 00 00 00 00 02 40 36 - 15 00 00 00 00 00 02 41 34 - 15 00 00 00 00 00 02 42 40 - 15 00 00 00 00 00 02 43 40 - 15 01 00 00 00 00 02 44 40 - 15 00 00 00 00 00 02 45 40 - 15 00 00 00 00 00 02 46 40 - 15 00 00 00 00 00 02 47 40 - 15 00 00 00 00 00 02 48 40 - 15 00 00 00 00 00 02 49 40 - 15 00 00 00 00 00 02 4A 40 - 15 00 00 00 00 00 02 4B 3F - 15 00 00 00 00 00 02 4C 3E - 15 00 00 00 00 00 02 4D 3D - 15 00 00 00 00 00 02 4E 3C - 15 00 00 00 00 00 02 4F 3C - 15 00 00 00 00 00 02 50 3B - 15 00 00 00 00 00 02 51 3A - 15 00 00 00 00 00 02 52 39 - 15 00 00 00 00 00 02 53 01 - 15 00 00 00 00 00 02 54 00 - 15 00 00 00 00 00 02 55 FE - 15 00 00 00 00 00 02 56 77 - 15 00 00 00 00 00 02 58 3F - 15 00 00 00 00 00 02 59 3E - 15 01 00 00 00 00 02 5A 3E - 15 00 00 00 00 00 02 5B 3D - 15 00 00 00 00 00 02 5C 3D - 15 00 00 00 00 00 02 5D 3D - 15 00 00 00 00 00 02 5E 3D - 15 00 00 00 00 00 02 5F 3C - 15 00 00 00 00 00 02 60 BC - 15 00 00 00 00 00 02 61 3C - 15 00 00 00 00 00 02 62 3C - 15 00 00 00 00 00 02 63 3C - 15 00 00 00 00 00 02 64 3C - 15 00 00 00 00 00 02 65 3C - 15 00 00 00 00 00 02 66 BD - 15 00 00 00 00 00 02 67 BD - 15 00 00 00 00 00 02 68 3D - 15 00 00 00 00 00 02 69 BD - 15 00 00 00 00 00 02 6A 3C - 15 00 00 00 00 00 02 6B 3C - 15 00 00 00 00 00 02 6C 3D - 15 00 00 00 00 00 02 6D 3D - 15 01 00 00 00 00 02 6E 3C - 15 00 00 00 00 00 02 6F 3D - 15 00 00 00 00 00 02 70 00 - 15 00 00 00 00 00 02 71 C0 - 15 00 00 00 00 00 02 72 03 - 15 00 00 00 00 00 02 73 00 - 15 00 00 00 00 00 02 74 06 - 15 00 00 00 00 00 02 75 0C - 15 00 00 00 00 00 02 76 03 - 15 00 00 00 00 00 02 77 09 - 15 00 00 00 00 00 02 78 0F - 15 00 00 00 00 00 02 79 68 - 15 00 00 00 00 00 02 7A 88 - 15 00 00 00 00 00 02 7C 80 - 15 00 00 00 00 00 02 7D 80 - 15 00 00 00 00 00 02 7E 80 - 15 00 00 00 00 00 02 7F 80 - 15 00 00 00 00 00 02 80 C2 - 15 00 00 00 00 00 02 81 02 - 15 00 00 00 00 00 02 83 01 - - 15 01 00 00 00 00 02 84 00 - 15 00 00 00 00 00 02 85 85 - 15 00 00 00 00 00 02 86 80 - 15 00 00 00 00 00 02 87 80 - 15 00 00 00 00 00 02 88 40 - 15 00 00 00 00 00 02 89 74 - 15 00 00 00 00 00 02 8A 77 - 15 00 00 00 00 00 02 8B 7A - 15 00 00 00 00 00 02 8C 7E - 15 00 00 00 00 00 02 8D 7F - 15 00 00 00 00 00 02 8E 7E - 15 00 00 00 00 00 02 8F 79 - 15 00 00 00 00 00 02 90 73 - 15 00 00 00 00 00 02 91 65 - 15 00 00 00 00 00 02 92 6D - 15 00 00 00 00 00 02 93 74 - 15 00 00 00 00 00 02 94 7D - 15 00 00 00 00 00 02 95 80 - 15 00 00 00 00 00 02 96 80 - 15 00 00 00 00 00 02 97 81 - 15 00 00 00 00 00 02 98 82 - 15 01 00 00 00 00 02 99 82 - 15 00 00 00 00 00 02 9A 82 - 15 00 00 00 00 00 02 9B 81 - 15 00 00 00 00 00 02 9C 81 - 15 00 00 00 00 00 02 9D 80 - 15 00 00 00 00 00 02 9E 7F - 15 00 00 00 00 00 02 9F 7B - 15 00 00 00 00 00 02 A0 78 - 15 00 00 00 00 00 02 A2 80 - 15 00 00 00 00 00 02 A6 80 - 15 00 00 00 00 00 02 A7 80 - 15 00 00 00 00 00 02 A9 80 - 15 00 00 00 00 00 02 AA 80 - 15 00 00 00 00 00 02 AB 80 - 15 00 00 00 00 00 02 AC 80 - 15 00 00 00 00 00 02 AD 80 - 15 00 00 00 00 00 02 AE 80 - 15 00 00 00 00 00 02 AF 80 - 15 00 00 00 00 00 02 B7 76 - 15 00 00 00 00 00 02 B8 76 - 15 00 00 00 00 00 02 B9 05 - 15 01 00 00 00 00 02 BA 0D - 15 00 00 00 00 00 02 BB 14 - 15 00 00 00 00 00 02 BC 0F - 15 00 00 00 00 00 02 BD 18 - 15 00 00 00 00 00 02 BE 1F - 15 00 00 00 00 00 02 BF 05 - 15 00 00 00 00 00 02 C0 0D - 15 00 00 00 00 00 02 C1 14 - 15 00 00 00 00 00 02 C2 03 - 15 00 00 00 00 00 02 C3 07 - 15 00 00 00 00 00 02 C4 0A - 15 00 00 00 00 00 02 C5 A0 - 15 00 00 00 00 00 02 C6 55 - 15 00 00 00 00 00 02 C7 FF - 15 00 00 00 00 00 02 C8 39 - 15 00 00 00 00 00 02 C9 44 - 15 00 00 00 00 00 02 CA 12 - 15 00 00 00 00 00 02 CD 80 - 15 00 00 00 00 00 02 DB 80 - 15 00 00 00 00 00 02 DC 80 - 15 00 00 00 00 00 02 DD 80 - 15 01 00 00 00 00 02 E0 80 - 15 00 00 00 00 00 02 E1 80 - 15 00 00 00 00 00 02 E2 80 - 15 00 00 00 00 00 02 E3 80 - 15 00 00 00 00 00 02 E4 80 - 15 00 00 00 00 00 02 E5 40 - 15 00 00 00 00 00 02 E6 40 - 15 00 00 00 00 00 02 E7 40 - 15 00 00 00 00 00 02 E8 40 - 15 00 00 00 00 00 02 E9 40 - 15 00 00 00 00 00 02 EA 40 - 15 00 00 00 00 00 02 EB 40 - 15 00 00 00 00 00 02 EC 40 - 15 00 00 00 00 00 02 ED 40 - 15 00 00 00 00 00 02 EE 40 - 15 00 00 00 00 00 02 EF 40 - 15 00 00 00 00 00 02 F0 40 - 15 00 00 00 00 00 02 F1 40 - 15 00 00 00 00 00 02 F2 40 - 15 00 00 00 00 00 02 F3 40 - 15 01 00 00 00 00 02 F4 40 - 15 00 00 00 00 00 02 F5 40 - 15 00 00 00 00 00 02 F6 40 - 15 00 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 55 80 - ]; - qcom,mdss-dsi-srgb-off-command = [ - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 55 00 - ]; - qcom,mdss-dsi-cabc-on-command = [ - 15 01 00 00 00 00 02 FF 23 - 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 01 84 - 15 00 00 00 00 00 02 05 04 - 15 00 00 00 00 00 02 05 2D - 15 00 00 00 00 00 02 06 00 - 15 00 00 00 00 00 02 11 01 - 15 00 00 00 00 00 02 12 8A - 15 01 00 00 00 00 02 15 6A - 15 00 00 00 00 00 02 16 0B - 15 00 00 00 00 00 02 29 80 - 15 00 00 00 00 00 02 30 FF - 15 00 00 00 00 00 02 31 FF - 15 00 00 00 00 00 02 32 FF - 15 00 00 00 00 00 02 33 FF - 15 00 00 00 00 00 02 34 FF - 15 00 00 00 00 00 02 35 FF - 15 00 00 00 00 00 02 36 FF - 15 01 00 00 00 00 02 37 FF - 15 01 00 00 00 00 02 38 FF - 15 01 00 00 00 00 02 39 FF - 15 00 00 00 00 00 02 3A FF - 15 00 00 00 00 00 02 3B FA - 15 00 00 00 00 00 02 3D F5 - 15 00 00 00 00 00 02 3F F0 - 15 00 00 00 00 00 02 40 E8 - 15 00 00 00 00 00 02 41 E3 - 15 00 00 00 00 00 02 FF 10 - 15 00 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 55 01 - ]; - qcom,mdss-dsi-cabc-off-command = [ - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 55 00 - ]; + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-cabc-on-command = [ + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + 15 00 00 00 00 00 02 07 20 + 15 00 00 00 00 00 02 08 04 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 00 00 00 00 00 02 16 0B + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + 15 00 00 00 00 00 02 29 80 + 15 00 00 00 00 00 02 30 FD + 15 00 00 00 00 00 02 31 FC + 15 00 00 00 00 00 02 32 F8 + 15 00 00 00 00 00 02 33 F6 + 15 00 00 00 00 00 02 34 F5 + 15 00 00 00 00 00 02 35 F4 + 15 00 00 00 00 00 02 36 F3 + 15 00 00 00 00 00 02 37 F3 + 15 00 00 00 00 00 02 38 F2 + 15 00 00 00 00 00 02 39 F0 + 15 00 00 00 00 00 02 3A EE + 15 00 00 00 00 00 02 3B EC + 15 01 00 00 00 00 02 3D EA + 15 00 00 00 00 00 02 3F E8 + 15 00 00 00 00 00 02 40 E6 + 15 00 00 00 00 00 02 41 E5 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 55 01 + ]; + qcom,mdss-dsi-cabc-off-command = [ + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 55 00 + ]; + qcom,mdss-dsi-cabc_movie-on-command = [ + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + //dimming enable + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + //PWM Feq=30KHz +// 15 00 00 00 00 00 02 07 60 + //resolution 1080*2340 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 01 00 00 00 00 02 16 0B + //CABC Gamma + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + //MOVING mode + 15 00 00 00 00 00 02 2B 87 + 15 00 00 00 00 00 02 58 E4 + 15 00 00 00 00 00 02 59 E4 + 15 01 00 00 00 00 02 5A E4 + 15 00 00 00 00 00 02 5B E4 + 15 00 00 00 00 00 02 5C E4 + 15 00 00 00 00 00 02 5D E4 + 15 00 00 00 00 00 02 5E DF + 15 00 00 00 00 00 02 5F DA + 15 00 00 00 00 00 02 60 D7 + 15 00 00 00 00 00 02 61 D0 + 15 00 00 00 00 00 02 62 CD + 15 00 00 00 00 00 02 63 CA + 15 01 00 00 00 00 02 64 C8 + 15 00 00 00 00 00 02 65 C1 + 15 00 00 00 00 00 02 66 BB + 15 01 00 00 00 00 02 67 B3 + 15 01 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 55 03 + ]; + qcom,mdss-dsi-cabc_still-on-command = [ + 15 01 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + //dimming enable + 15 00 00 00 00 00 02 01 84 + 15 00 00 00 00 00 02 05 04 + 15 00 00 00 00 00 02 05 2D + 15 00 00 00 00 00 02 06 00 + //PWM Feq=30KHz +// 15 00 00 00 00 00 02 07 60 + //resolution 1080*2340 + 15 00 00 00 00 00 02 11 01 + 15 00 00 00 00 00 02 12 8A + 15 00 00 00 00 00 02 15 6A + 15 01 00 00 00 00 02 16 0B + //CABC Gamma + 15 00 00 00 00 00 02 19 00 + 15 00 00 00 00 00 02 1A 04 + 15 00 00 00 00 00 02 1B 08 + 15 00 00 00 00 00 02 1C 0C + 15 00 00 00 00 00 02 1D 10 + 15 00 00 00 00 00 02 1E 2A + 15 00 00 00 00 00 02 1F 3F + 15 00 00 00 00 00 02 20 3F + 15 00 00 00 00 00 02 21 30 + 15 01 00 00 00 00 02 22 2E + 15 00 00 00 00 00 02 23 30 + 15 00 00 00 00 00 02 24 37 + 15 00 00 00 00 00 02 25 38 + 15 00 00 00 00 00 02 26 2C + 15 00 00 00 00 00 02 27 24 + 15 00 00 00 00 00 02 28 28 + //STILL mode + 15 00 00 00 00 00 02 2A 1D + //Still_PWM DUTY + 15 00 00 00 00 00 02 45 E4 + 15 00 00 00 00 00 02 46 E4 + 15 01 00 00 00 00 02 47 E4 + 15 00 00 00 00 00 02 48 E4 + 15 00 00 00 00 00 02 49 E4 + 15 00 00 00 00 00 02 4A E4 + 15 00 00 00 00 00 02 4B D0 + 15 00 00 00 00 00 02 4C B2 + 15 00 00 00 00 00 02 4D AF + 15 00 00 00 00 00 02 4E AA + 15 00 00 00 00 00 02 4F A4 + 15 00 00 00 00 00 02 50 9A + 15 01 00 00 00 00 02 51 90 + 15 00 00 00 00 00 02 52 85 + 15 00 00 00 00 00 02 53 7A + 15 01 00 00 00 00 02 54 66 + 15 01 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 55 02 + ]; + qcom,mdss-dsi-hbm1-on-command = [ + 15 01 00 00 00 00 02 51 CC + ]; + qcom,mdss-dsi-hbm2-on-command = [ + 15 01 00 00 00 00 02 51 E6 + ]; + qcom,mdss-dsi-hbm3-on-command = [ + 15 01 00 00 00 00 02 51 FF + ]; + qcom,mdss-dsi-hbm-off-command = [ + 15 01 00 00 00 00 02 51 B8 + ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-ce-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-srgb-off-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc_movie-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc_still-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm1-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm2-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm3-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; }; }; }; -}; +}; \ No newline at end of file diff --git a/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi b/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi index 0197908ac0f4..c6c2d41aade6 100644 --- a/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6150-sde-display.dtsi @@ -22,6 +22,7 @@ #include "dsi-panel-sharp-split-link-wuxga-video.dtsi" #include "dsi-panel-ext-bridge-hdmi-1080p.dtsi" #include "dsi-panel-ft8719-tianma-fhd-video.dtsi" +#include "dsi-panel-nt36672a-tianma-fhd-video.dtsi" #include "dsi-panel-nt36672a-shenchao-fhd-video.dtsi" #include @@ -213,26 +214,43 @@ qcom,dsi-panel = <&dsi_sharp_split_link_wuxga_video>; }; - dsi_ft8719_tianma_vid_display: qcom,dsi-display@10 { - label = "dsi_ft8719_tianma_vid_display"; + dsi_nt36672a_shenchao_vid_display: qcom,dsi-display@10 { + label = "dsi_nt36672a_shenchao_vid_display"; qcom,display-type = "primary"; qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0", + "src_byte_clk0", "src_pixel_clk0", + "shadow_byte_clk0", "shadow_pixel_clk0"; - qcom,dsi-panel = <&dsi_ft8719_tianma_video>; + qcom,dsi-panel = <&dsi_nt36672a_shenchao_video>; }; - dsi_nt36672a_shenchao_vid_display: qcom,dsi-display@11 { - label = "dsi_nt36672a_shenchao_vid_display"; + dsi_nt36672a_tianma_vid_display: qcom,dsi-display@11 { + label = "dsi_nt36672a_tianma_vid_display"; qcom,display-type = "primary"; qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0", + "src_byte_clk0", "src_pixel_clk0", + "shadow_byte_clk0", "shadow_pixel_clk0"; - qcom,dsi-panel = <&dsi_nt36672a_shenchao_video>; + qcom,dsi-panel = <&dsi_nt36672a_tianma_video>; + }; + + dsi_ft8719_tianma_vid_display: qcom,dsi-display@12 { + label = "dsi_ft8719_tianma_vid_display"; + qcom,display-type = "primary"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0", + "src_byte_clk0", "src_pixel_clk0", + "shadow_byte_clk0", "shadow_pixel_clk0"; + + qcom,dsi-panel = <&dsi_ft8719_tianma_video>; }; sde_dsi: qcom,dsi-display { @@ -262,18 +280,9 @@ ibb-supply = <&lcdb_ncp_vreg>; qcom,dsi-display-list = - <&dsi_sim_vid_display - &dsi_sim_cmd_display - &dsi_hx83112a_truly_vid_display - &dsi_td4328_truly_vid_display - &dsi_td4328_truly_cmd_display - &dsi_rm69298_truly_amoled_vid_display - &dsi_rm69298_truly_amoled_cmd_display - &dsi_td4330_truly_vid_display - &dsi_td4330_truly_cmd_display - &dsi_sharp_split_link_wuxga_vid_display - &dsi_nt36672a_shenchao_vid_display - &dsi_ft8719_tianma_vid_display>; + <&dsi_nt36672a_shenchao_vid_display + &dsi_nt36672a_tianma_vid_display + &dsi_ft8719_tianma_vid_display>; }; sde_wb: qcom,wb-display@0 { @@ -467,34 +476,70 @@ }; }; -&dsi_ft8719_tianma_video { +&dsi_nt36672a_shenchao_video { + qcom,mdss-dsi-t-clk-post = <0x0f>; + qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 05 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-panel-phy-timings = + [26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 20 0a 0b 06 02 04 a0]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_nt36672a_tianma_video { qcom,mdss-dsi-t-clk-post = <0x0f>; qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 05 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-display-timings { timing@0{ qcom,mdss-dsi-panel-phy-timings = - [26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 20 0a 0b 06 02 04 a0]; + [26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 20 0a 0b 06 02 04 a0]; + qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; }; }; -&dsi_nt36672a_shenchao_video { - qcom,mdss-dsi-t-clk-post = <0x0f>; + +&dsi_ft8719_tianma_video { + qcom,mdss-dsi-t-clk-post = <0x0f>; qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 05 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-display-timings { timing@0{ qcom,mdss-dsi-panel-phy-timings = - [ - 26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 21 09 0b 06 02 04 a0 - 26 20 0a 0b 06 02 04 a0]; + [26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 21 09 0b 06 02 04 a0 + 26 20 0a 0b 06 02 04 a0]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; From efb9686a6152e0baa1c407158e88cd501c0c6fa1 Mon Sep 17 00:00:00 2001 From: Dyneteve Date: Mon, 13 Jan 2020 18:00:23 +0200 Subject: [PATCH 2/2] drivers: gpu: drm: Add HBM support and kill SRGB/CE on/off --- drivers/gpu/drm/msm/dsi-staging/dsi_defs.h | 8 +-- drivers/gpu/drm/msm/dsi-staging/dsi_display.c | 66 +++++-------------- drivers/gpu/drm/msm/dsi-staging/dsi_panel.c | 24 +++---- 3 files changed, 32 insertions(+), 66 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_defs.h b/drivers/gpu/drm/msm/dsi-staging/dsi_defs.h index a7c5a714b1f3..7e3a1bd45c9a 100644 --- a/drivers/gpu/drm/msm/dsi-staging/dsi_defs.h +++ b/drivers/gpu/drm/msm/dsi-staging/dsi_defs.h @@ -271,14 +271,14 @@ enum dsi_cmd_set_type { DSI_CMD_SET_PRE_OFF, DSI_CMD_SET_OFF, DSI_CMD_SET_POST_OFF, - DSI_CMD_SET_CE_ON, - DSI_CMD_SET_CE_OFF, - DSI_CMD_SET_SRGB_ON, - DSI_CMD_SET_SRGB_OFF, DSI_CMD_SET_CABC_ON, DSI_CMD_SET_CABC_OFF, DSI_CMD_SET_CABC_MOVIE_ON, DSI_CMD_SET_CABC_STILL_ON, + DSI_CMD_SET_HBM1_ON, + DSI_CMD_SET_HBM2_ON, + DSI_CMD_SET_HBM3_ON, + DSI_CMD_SET_HBM_OFF, DSI_CMD_SET_PRE_RES_SWITCH, DSI_CMD_SET_RES_SWITCH, DSI_CMD_SET_POST_RES_SWITCH, diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_display.c b/drivers/gpu/drm/msm/dsi-staging/dsi_display.c index 770276b99200..94a04b9c1231 100644 --- a/drivers/gpu/drm/msm/dsi-staging/dsi_display.c +++ b/drivers/gpu/drm/msm/dsi-staging/dsi_display.c @@ -4921,40 +4921,6 @@ static ssize_t sysfs_dynamic_dsi_clk_write(struct device *dev, } -static ssize_t dsi_display_set_ce(struct device *dev,struct device_attribute *attr,const char *buf,size_t len) -{ - - int rc = 0; - int param = 0; - struct dsi_display *display; - - display = dev_get_drvdata(dev); - if (!display) { - pr_err("Invalid display\n"); - return -EINVAL; - } - - rc = kstrtoint(buf, 10, ¶m); - if (rc) { - pr_err("kstrtoint failed. rc=%d\n", rc); - return rc; - } - - switch(param) { - case 0x1: //ce on - dsi_panel_set_feature(display->panel, DSI_CMD_SET_CE_ON); - break; - case 0x2: //ce off - dsi_panel_set_feature(display->panel, DSI_CMD_SET_CE_OFF); - break; - default: - pr_err("unknow cmds: %d\n", param); - break; - } - printk("xinj:_##### ce over ###\n"); - return len; -} - static ssize_t dsi_display_set_cabc(struct device *dev,struct device_attribute *attr,const char *buf,size_t len) { @@ -4985,7 +4951,6 @@ static ssize_t dsi_display_set_cabc(struct device *dev,struct device_attribute * pr_err("unknow cmds: %d\n", param); break; } - printk("xinj:_##### cabc over ###\n"); return len; } @@ -5019,7 +4984,6 @@ static ssize_t dsi_display_set_cabc_movie(struct device *dev,struct device_attri pr_err("unknow cmds: %d\n", param); break; } - printk("xinj:_##### cabc_movie over ###\n"); return len; } @@ -5053,10 +5017,10 @@ static ssize_t dsi_display_set_cabc_still(struct device *dev,struct device_attri pr_err("unknow cmds: %d\n", param); break; } - printk("xinj:_##### cabc_still over ###\n"); return len; } -static ssize_t dsi_display_set_srgb(struct device *dev,struct device_attribute *attr,const char *buf,size_t len) + +static ssize_t dsi_display_set_hbm(struct device *dev,struct device_attribute *attr,const char *buf,size_t len) { int rc = 0; @@ -5076,17 +5040,22 @@ static ssize_t dsi_display_set_srgb(struct device *dev,struct device_attribute * } switch(param) { - case 0x1: //srgb on - dsi_panel_set_feature(display->panel, DSI_CMD_SET_SRGB_ON); + case 0x1: //hbm1 on + dsi_panel_set_feature(display->panel, DSI_CMD_SET_HBM1_ON); break; - case 0x2: //srgb off - dsi_panel_set_feature(display->panel, DSI_CMD_SET_SRGB_OFF); + case 0x2: //hbm2 off + dsi_panel_set_feature(display->panel, DSI_CMD_SET_HBM2_ON); break; - default: - pr_err("unknow cmds: %d\n", param); + case 0x03://hbm3 on + dsi_panel_set_feature(display->panel, DSI_CMD_SET_HBM3_ON); break; + case 0x0://hbm off + dsi_panel_set_feature(display->panel, DSI_CMD_SET_HBM_OFF); + break; + default: + pr_err("unknow cmds: %d\n", param); + break; } - printk("xinj:_##### srgb over ###\n"); return len; } @@ -5153,16 +5122,14 @@ static int dsi_display_whitepoint_create_sysfs(void){ return ret; } -static DEVICE_ATTR(dsi_display_ce, 0644, NULL, dsi_display_set_ce); static DEVICE_ATTR(dsi_display_cabc, 0644, NULL, dsi_display_set_cabc); -static DEVICE_ATTR(dsi_display_srgb, 0644, NULL, dsi_display_set_srgb); +static DEVICE_ATTR(dsi_display_hbm, 0644, NULL, dsi_display_set_hbm); static DEVICE_ATTR(dsi_display_cabc_movie, 0644, NULL, dsi_display_set_cabc_movie); static DEVICE_ATTR(dsi_display_cabc_still, 0644, NULL, dsi_display_set_cabc_still); static struct attribute *dsi_display_feature_attrs[] = { - &dev_attr_dsi_display_ce.attr, &dev_attr_dsi_display_cabc.attr, - &dev_attr_dsi_display_srgb.attr, + &dev_attr_dsi_display_hbm.attr, &dev_attr_dsi_display_cabc_movie.attr, &dev_attr_dsi_display_cabc_still.attr, NULL, @@ -5185,7 +5152,6 @@ static int dsi_display_feature_create_sysfs(struct dsi_display *display){ return ret; } - static DEVICE_ATTR(dynamic_dsi_clock, 0644, sysfs_dynamic_dsi_clk_read, sysfs_dynamic_dsi_clk_write); diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c index 1398cc45cad7..a8c4076e31de 100644 --- a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c +++ b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c @@ -1698,14 +1698,14 @@ const char *cmd_set_prop_map[DSI_CMD_SET_MAX] = { "qcom,mdss-dsi-pre-off-command", "qcom,mdss-dsi-off-command", "qcom,mdss-dsi-post-off-command", - "qcom,mdss-dsi-ce-on-command", - "qcom,mdss-dsi-ce-off-command", - "qcom,mdss-dsi-srgb-on-command", - "qcom,mdss-dsi-srgb-off-command", - "qcom,mdss-dsi-cabc-on-command", - "qcom,mdss-dsi-cabc-off-command", + "qcom,mdss-dsi-cabc-on-command", + "qcom,mdss-dsi-cabc-off-command", "qcom,mdss-dsi-cabc_movie-on-command", "qcom,mdss-dsi-cabc_still-on-command", + "qcom,mdss-dsi-hbm1-on-command", + "qcom,mdss-dsi-hbm2-on-command", + "qcom,mdss-dsi-hbm3-on-command", + "qcom,mdss-dsi-hbm-off-command", "qcom,mdss-dsi-pre-res-switch", "qcom,mdss-dsi-res-switch", "qcom,mdss-dsi-post-res-switch", @@ -1732,14 +1732,14 @@ const char *cmd_set_state_map[DSI_CMD_SET_MAX] = { "qcom,mdss-dsi-pre-off-command-state", "qcom,mdss-dsi-off-command-state", "qcom,mdss-dsi-post-off-command-state", - "qcom,mdss-dsi-ce-on-command-state", - "qcom,mdss-dsi-ce-off-command-state", - "qcom,mdss-dsi-srgb-on-command-state", - "qcom,mdss-dsi-srgb-off-command-state", - "qcom,mdss-dsi-cabc-on-command-state", - "qcom,mdss-dsi-cabc-off-command-state", + "qcom,mdss-dsi-cabc-on-command-state", + "qcom,mdss-dsi-cabc-off-command-state", "qcom,mdss-dsi-cabc_movie-on-command-state", "qcom,mdss-dsi-cabc_still-on-command-state", + "qcom,mdss-dsi-hbm1-on-command-state", + "qcom,mdss-dsi-hbm2-on-command-state", + "qcom,mdss-dsi-hbm3-on-command-state", + "qcom,mdss-dsi-hbm-off-command-state", "qcom,mdss-dsi-pre-res-switch-state", "qcom,mdss-dsi-res-switch-state", "qcom,mdss-dsi-post-res-switch-state",