blob: f5e11870c9b6d7e9b8e22bcb3651102421f119b0 [file] [log] [blame]
/*
* Copyright (c) 2018, 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.
*/
&blsp1_uart2 {
status = "ok";
};
&pm8916_chg{
status = "ok";
};
&pm8916_bms{
status = "ok";
qcom,battery-data = <&qrd_batterydata>;
qcom,batt-aging-comp;
};
&pm8916_vib{
status = "ok";
};
&soc {
gpio_keys {
compatible = "gpio-keys";
input-name = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&gpio_key_active>;
vol_up {
label = "volume_up";
gpios = <&tlmm 91 0x1>;
linux,input-type = <1>;
linux,code = <115>;
debounce-interval = <15>;
linux,can-disable;
gpio-key,wakeup;
};
};
};
/ {
qrd_batterydata: qcom,batterydata {
qcom,rpull-up-kohm = <100>;
qcom,vref-batt-therm = <1800000>;
#include "vbms-batterydata-mlp356477-2800mah.dtsi"
};
};
&mdss_dsi_active {
mux {
pins = "gpio61", "gpio93", "gpio94";
function = "gpio";
};
config {
pins = "gpio61", "gpio93", "gpio94";
drive-strength = <8>; /* 8 mA */
bias-disable = <0>; /* no pull */
output-high;
};
};
&mdss_dsi_suspend {
mux {
pins = "gpio61", "gpio93", "gpio94";
function = "gpio";
};
config {
pins = "gpio61", "gpio93", "gpio94";
drive-strength = <2>; /* 2 mA */
bias-pull-down; /* pull down */
};
};
#include "msm8937-mdss-panels.dtsi"
&mdss_mdp {
qcom,mdss-pref-prim-intf = "dsi";
};
&dsi_panel_pwr_supply {
#address-cells = <1>;
#size-cells = <0>;
qcom,panel-supply-entry@0 {
reg = <1>;
qcom,supply-name = "vddio";
qcom,supply-min-voltage = <1744000>;
qcom,supply-max-voltage = <1904000>;
qcom,supply-enable-load = <100000>;
qcom,supply-disable-load = <100>;
};
/delete-node/ qcom,panel-supply-entry@1;
/delete-node/ qcom,panel-supply-entry@2;
/delete-node/ qcom,panel-supply-entry@3;
};
&mdss_dsi {
hw-config = "single_dsi";
};
&mdss_dsi0 {
qcom,dsi-pref-prim-pan = <&dsi_hx8399c_hd_vid>;
pinctrl-names = "mdss_default", "mdss_sleep";
pinctrl-0 = <&mdss_dsi_active &mdss_te_active
&backlight_pwm_en_default>;
pinctrl-1 = <&mdss_dsi_suspend &mdss_te_suspend>;
qcom,platform-te-gpio = <&tlmm 24 0>;
qcom,platform-reset-gpio = <&tlmm 61 0>;
qcom,platform-bklight-en-gpio = <&tlmm 93 0>;
qcom,platform-enable-gpio = <&tlmm 94 0>;
};
&dsi_hx8399c_hd_vid {
qcom,mdss-dsi-panel-timings =
[e7 1c 12 00 42 42 18 20 17 03 04 00];
qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_pwm";
qcom,mdss-dsi-bl-pmic-pwm-frequency = <100>;
qcom,mdss-dsi-bl-pmic-bank-select = <0>;
qcom,mdss-dsi-pwm-gpio = <&pm8916_mpps 4 0>;
qcom,esd-check-enabled;
qcom,mdss-dsi-panel-status-check-mode = "reg_read";
qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a];
qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode";
qcom,mdss-dsi-panel-status-value = <0x9d 0x9d 0x9d 0x9d>;
qcom,mdss-dsi-panel-on-check-value = <0x9d 0x9d 0x9d 0x9d>;
qcom,mdss-dsi-panel-status-read-length = <4>;
qcom,mdss-dsi-panel-max-error-count = <3>;
qcom,mdss-dsi-min-refresh-rate = <48>;
qcom,mdss-dsi-max-refresh-rate = <60>;
qcom,mdss-dsi-pan-enable-dynamic-fps;
qcom,mdss-dsi-pan-fps-update =
"dfps_immediate_porch_mode_vfp";
};