From 36fabca971cb99641d290a4d21ec7e8968984647 Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Wed, 8 Jul 2020 10:56:17 +0800 Subject: [PATCH] arm/dts: panel: enable hbm for guam na ODM enable backlight 25mA current on DVT2, enable hbm brightness for DVT2 HW. Change-Id: I7c78bcdbfc604afea1d6605f7b1ded34ccd96a95 Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/1668483 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/Makefile | 4 ++- qcom/bengal-guamna-dvt2-overlay.dts | 29 ++++++++++++++++ qcom/bengal-guamna-gwlc-dvt2-overlay.dts | 44 ++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 qcom/bengal-guamna-dvt2-overlay.dts create mode 100644 qcom/bengal-guamna-gwlc-dvt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 106b81c0c1b7..4e8bc885533e 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -29,7 +29,9 @@ bengal-guamp-pvt-overlay.dtbo-base := bengal-moto-base.dtb dtbo-$(CONFIG_GUAMNA_DTB) += \ bengal-guamna-gwlc-evt-overlay.dtbo \ - bengal-guamna-evt-overlay.dtbo + bengal-guamna-evt-overlay.dtbo \ + bengal-guamna-gwlc-dvt2-overlay.dtbo \ + bengal-guamna-dvt2-overlay.dtbo bengal-guamna-evt-overlay.dtbo-base := bengal-moto-base-guamna.dtb bengal-guamna-gwlc-evt-overlay.dtbo-base := bengal-moto-base-guamna.dtb diff --git a/qcom/bengal-guamna-dvt2-overlay.dts b/qcom/bengal-guamna-dvt2-overlay.dts new file mode 100644 index 000000000000..dd4c41531edb --- /dev/null +++ b/qcom/bengal-guamna-dvt2-overlay.dts @@ -0,0 +1,29 @@ +/* Copyright (c) 2020, 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. + */ + +/dts-v1/; +/plugin/; + +#include "bengal-guamna-common-overlay.dtsi" +#include "bengal-guamna-awinic-audio-overlay.dtsi" +#include "bengal-hbm-display.dtsi" + +/ { + model = "guamna"; + compatible = "qcom,bengal-guamna", "qcom,bengal-moto", "qcom,bengal"; + qcom,msm-id = <417 0x10000>; + qcom,board-id = <0 0xB200>; +}; + +/* + * Guam HW rev specific changes go here + */ diff --git a/qcom/bengal-guamna-gwlc-dvt2-overlay.dts b/qcom/bengal-guamna-gwlc-dvt2-overlay.dts new file mode 100644 index 000000000000..ad957f66f20b --- /dev/null +++ b/qcom/bengal-guamna-gwlc-dvt2-overlay.dts @@ -0,0 +1,44 @@ +/* Copyright (c) 2020, 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. + */ + +/dts-v1/; +/plugin/; + +#include "bengal-guamna-common-overlay.dtsi" +#include "bengal-guamna-awinic-audio-overlay.dtsi" +#include "bengal-hbm-display.dtsi" + +/ { + model = "guamna"; + compatible = "qcom,bengal-guamna", "qcom,bengal-moto", "qcom,bengal"; + qcom,msm-id = <417 0x10000>; + qcom,board-id = <(GUAMNA_RADIO_GWLC << 8) 0xB200>; +}; + +/* + * Guam NA HW rev specific changes go here + */ +&qupv3_se1_i2c { + status = "okay"; + + tps61280@75 { + compatible = "ti,tps61280"; + reg = <0x75>; + ti,config = <0x0D>; + ti,vout-floor = <0x0D>; + ti,vout-roof = <0x1F>;/*0x1F*/ + ti,ilim = <0x0F>; + pinctrl-names = "default"; + pinctrl-0 = <&tps61280_en_default>; + }; +}; +