From 9bb16c77daccb517c954f96528f5833b74a6e430 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Fri, 9 Oct 2020 10:05:09 +0800 Subject: [PATCH] add build target for ibiza [detail] add build target for ibiza Change-Id: I789231faa911cd8f6434b64d4c0a16c3abb99650 Reviewed-on: https://gerrit.mot.com/1770064 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: gaoyx9 --- qcom/Makefile | 7 +- qcom/holi-ibiza-common-overlay.dtsi | 131 ++++++++++++++++++++++++++++ qcom/holi-ibiza-evt1-overlay.dts | 24 +++++ qcom/ibiza-display.dtsi | 105 ++++++++++++++++++++++ qcom/ibiza-touchscreen.dtsi | 90 +++++++++++++++++++ 5 files changed, 356 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-ibiza-common-overlay.dtsi create mode 100644 qcom/holi-ibiza-evt1-overlay.dts create mode 100644 qcom/ibiza-display.dtsi create mode 100755 qcom/ibiza-touchscreen.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index e9c40adbabe9..69de0e04d60a 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -6,10 +6,15 @@ endif # Motorola Device Trees dtbo-$(CONFIG_DENVER_DTB) += \ - holi-denver-evt1-overlay.dtbo + holi-denver-evt1-overlay.dtbo holi-denver-evt1-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_IBIZA_DTB) += \ + holi-ibiza-evt1-overlay.dtbo + +holi-ibiza-evt1-overlay.dtbo-base := holi-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi new file mode 100644 index 000000000000..aca2fe4a248f --- /dev/null +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -0,0 +1,131 @@ +/* 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. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "ibiza-display.dtsi" +#include "ibiza-touchscreen.dtsi" +#include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" + +&tlmm { + tps61280_en_default: tps61280_en_default { + mux { + pins = "gpio102"; + }; + config { + pins = "gpio102"; + drive_strength = <16>; + output-high; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + tps61280@75 { + compatible = "ti,tps61280"; + reg = <0x75>; + ti,config = <0x0D>; + ti,vout-floor = <0x13>; + ti,vout-roof = <0x17>; + ti,ilim = <0x0F>; + pinctrl-names = "default"; + pinctrl-0 = <&tps61280_en_default>; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; diff --git a/qcom/holi-ibiza-evt1-overlay.dts b/qcom/holi-ibiza-evt1-overlay.dts new file mode 100644 index 000000000000..e36f218701ec --- /dev/null +++ b/qcom/holi-ibiza-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* 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 "holi-ibiza-common-overlay.dtsi" + +/ { + model = "Ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xA100>; +}; + diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi new file mode 100644 index 000000000000..bef62575edb8 --- /dev/null +++ b/qcom/ibiza-display.dtsi @@ -0,0 +1,105 @@ + +#include "display/dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "display/dsi-panel-mot-dummy-qhd-video.dtsi" + + + +&pm6150a_amoled { + status = "disabled"; +}; + +&pm6150l_lcdb { + status = "ok"; +}; + +&pm6150l_wled { + status = "ok"; +}; + +&sde_dsi { + lab-supply = <&lcdb_ldo_vreg>; + ibb-supply = <&lcdb_ncp_vreg>; + vddio-supply = <&L1E>; + + qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; +}; + +&dsi_panel_pwr_supply { + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; +}; + +&dsi_nt36675_auo_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + + 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_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 06 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/ibiza-touchscreen.dtsi b/qcom/ibiza-touchscreen.dtsi new file mode 100755 index 000000000000..68dc270e83ec --- /dev/null +++ b/qcom/ibiza-touchscreen.dtsi @@ -0,0 +1,90 @@ +/* + * Copyright (c) 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. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + panel = <&dsi_nt36675_auo_video>; + status = "ok"; + }; + +};