You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kernel_samsung_sm7125/arch/arm64/boot/dts/samsung/drivers/atoll-sec-a52q-display-r00....

199 lines
5.0 KiB

/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include "../../../../../../drivers/gpu/drm/msm/samsung_lego/SELF_DISPLAY/self_display_cmd_FC3.dtsi"
#include "../../../../../../drivers/gpu/drm/msm/samsung_lego/S6E3FC3_AMS646YD04/dsi_panel_S6E3FC3_AMS646YD04_fhd_octa_cmd.dtsi"
#include "../../../../../../drivers/gpu/drm/msm/samsung_lego/PBA_BOOTING/dsi_panel_PBA_BOOTING_fhd_video.dtsi"
&tlmm {
pmx_sde_te {
sde_te_active: sde_te_active {
mux {
pins = "gpio10";
function = "mdp_vsync";
};
config {
pins = "gpio10";
drive-strength = <2>; /* 2 mA */
bias-pull-down; /* PULL DOWN */
};
};
sde_te_suspend: sde_te_suspend {
mux {
pins = "gpio10";
function = "mdp_vsync";
};
config {
pins = "gpio10";
drive-strength = <2>; /* 2 mA */
bias-pull-down; /* PULL DOWN */
};
};
};
pmx_sde: pmx_sde {
sde_dsi_active: sde_dsi_active {
mux {
pins = "gpio8";
function = "gpio";
};
config {
pins = "gpio8";
drive-strength = <8>; /* 8 mA */
bias-disable = <0>; /* no pull */
};
};
sde_dsi_suspend: sde_dsi_suspend {
mux {
pins = "gpio8";
function = "gpio";
};
config {
pins = "gpio8";
drive-strength = <2>; /* 2 mA */
bias-disable = <0>; /* no pull */
};
};
};
};
&pm6150_gpios {
pmx_sde_ub_det {
sde_ub_det_default: sde_ub_det_default {
pins = "gpio5";
function = "normal";
input-enable;
power-source = <1>;
bias-disable; /* No PULL */
};
};
};
&pm6150l_gpios {
pmx_sde_fg_err {
sde_fg_err_default: sde_fg_err_default {
pins = "gpio3";
function = "normal";
input-enable;
power-source = <0>;
bias-disable; /* No PULL */
};
};
};
&soc {
/* A52Q panel */
ss_dsi_panel_S6E3FC3_AMS646YD04_FHD_display: qcom,dsi-display@9 {
label = "ss_dsi_panel_S6E3FC3_AMS646YD04_FHD";
qcom,display-type = "primary";
};
/* PBA */
ss_dsi_panel_PBA_BOOTING_FHD_display: qcom,dsi-display@10 {
label = "ss_dsi_panel_PBA_BOOTING_FHD";
qcom,display-type = "primary";
};
};
&sde_dsi {
vci-supply = <&pm6150_l18>; /* 3.0V, VREG_L18A_3P0 */
vddi-supply = <&pm6150_l13>; /* 1.8V, VREG_L13A_1P8 */
pinctrl-names = "panel_active", "panel_suspend";
pinctrl-0 = <&sde_te_active &sde_dsi_active &sde_ub_det_default &sde_fg_err_default>;
pinctrl-1 = <&sde_te_suspend &sde_dsi_suspend &sde_ub_det_default &sde_fg_err_default>;
qcom,dsi-display-list =
<&ss_dsi_panel_S6E3FC3_AMS646YD04_FHD
&ss_dsi_panel_PBA_BOOTING_FHD>;
};
&ss_dsi_panel_S6E3FC3_AMS646YD04_FHD {
qcom,display-type = "primary";
qcom,dsi-display-active;
qcom,dsi-ctrl-num = <0>;
qcom,dsi-phy-num = <0>;
qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0";
qcom,dsi-panel = <&ss_dsi_panel_S6E3FC3_AMS646YD04_FHD>;
qcom,platform-reset-gpio = <&tlmm 8 0>;
qcom,platform-te-gpio = <&tlmm 10 0>; /* DISP_TE */
samsung,ub-con-det = <&pm6150_gpios 5 0>; /* OCTA_CON_DET*/
samsung,esd-irq-gpio1 = <&pm6150l_gpios 3 0>; /* FG_ERR*/
qcom,panel-supply-entries {
#address-cells = <1>;
#size-cells = <0>;
qcom,panel-supply-entry@0 {
reg = <0>;
qcom,supply-name = "vci";
qcom,supply-min-voltage = <3000000>;
qcom,supply-max-voltage = <3000000>;
qcom,supply-enable-load = <100000>;
qcom,supply-disable-load = <100>;
qcom,supply-pre-on-sleep = <0>; /* unit is ms*/
qcom,supply-post-on-sleep = <0>;
qcom,supply-pre-off-sleep = <0>;
};
qcom,panel-supply-entry@1 {
reg = <1>;
qcom,supply-name = "vddi";
qcom,supply-min-voltage = <1800000>;
qcom,supply-max-voltage = <1800000>;
qcom,supply-enable-load = <100000>;
qcom,supply-disable-load = <100>;
qcom,supply-pre-on-sleep = <0>; /* unit is ms*/
qcom,supply-post-on-sleep = <0>;
qcom,supply-pre-off-sleep = <0>;
};
};
};
&ss_dsi_panel_PBA_BOOTING_FHD {
qcom,display-type = "primary";
qcom,dsi-display-active;
qcom,dsi-ctrl-num = <0>;
qcom,dsi-phy-num = <0>;
qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0";
qcom,dsi-panel = <&ss_dsi_panel_PBA_BOOTING_FHD>;
qcom,platform-reset-gpio = <&tlmm 8 0>;
};
&cont_splash_memory {
reg = <0x0 0x9c000000 0x0 0x9E4000>; //0x9E4000 is roundup(1080 * 2400 * 4, 4K)
label = "cont_splash_region";
};
&dfps_data_memory {
reg = <0x0 0x9C9E4000 0x0 0x0100000>; //0x9C9E4000 is 0x9c000000 + 0x9E4000
label = "dfps_data_region";
};
&disp_rdump_memory {
reg = <0x0 0x9c000000 0x0 0x9E4000>; //0x9E4000 is roundup(1080 * 2400 * 4, 4K)
label = "disp_rdump_region";
};