diff --git a/qcom/Makefile b/qcom/Makefile index e4df28eb5d6f..52f01595230e 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -20,9 +20,11 @@ bengal-guamp-evt-overlay.dtbo-base := bengal-moto-base.dtb bengal-guamp-dvt-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-base := bengal-moto-base.dtb +bengal-guamna-gwlc-evt-overlay.dtbo-base := bengal-moto-base.dtb dtbo-$(CONFIG_BORNEO_DTB) += \ bengal-borneo-evt-overlay.dtbo diff --git a/qcom/bengal-guamna-common-overlay.dtsi b/qcom/bengal-guamna-common-overlay.dtsi index 4fb4051ff29d..85ec59f54078 100644 --- a/qcom/bengal-guamna-common-overlay.dtsi +++ b/qcom/bengal-guamna-common-overlay.dtsi @@ -12,6 +12,7 @@ #include #include "bengal-moto-common-overlay.dtsi" +#include "bengal-guamna-pinctrl-overlay.dtsi" #include "bengal-guam-display.dtsi" #include "bengal-audio-overlay.dtsi" #include "bengal-guam-touchscreen-overlay.dtsi" @@ -19,6 +20,8 @@ #include "bengal-guam-fps.dtsi" #include "bengal-guam-moto-thermal.dtsi" +#define GUAMNA_RADIO_GWLC 2 + &qupv3_se4_2uart { status = "ok"; }; diff --git a/qcom/bengal-guamna-gwlc-evt-overlay.dts b/qcom/bengal-guamna-gwlc-evt-overlay.dts new file mode 100644 index 000000000000..11435c1ccd97 --- /dev/null +++ b/qcom/bengal-guamna-gwlc-evt-overlay.dts @@ -0,0 +1,43 @@ +/* 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-guam-awinic-audio-overlay.dtsi" + +/ { + model = "guamna"; + compatible = "qcom,bengal-guamna", "qcom,bengal-moto", "qcom,bengal"; + qcom,msm-id = <417 0x10000>; + qcom,board-id = <(GUAMNA_RADIO_GWLC << 8) 0xA000>; +}; + +/* + * 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>; + }; +}; + diff --git a/qcom/bengal-guamna-pinctrl-overlay.dtsi b/qcom/bengal-guamna-pinctrl-overlay.dtsi new file mode 100644 index 000000000000..93a8e5409ca4 --- /dev/null +++ b/qcom/bengal-guamna-pinctrl-overlay.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017-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. + */ + +&tlmm { + tps61280_en_default: tps61280_en_default { + mux { + pins = "gpio108"; + function = "gpio"; + }; + config { + pins = "gpio108"; + drive-strength = <8>; + output-high; + }; + }; +};