mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
Update gpu, cdsp based config mitiation rules for quiet-therm and NSP thermal zones as per latest recommondation for diwali. Change-Id: I04e7ffaeb74f8675281b34036f935df4ecbdc294
205 lines
4.9 KiB
Plaintext
205 lines
4.9 KiB
Plaintext
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include "diwali-pmic-overlay.dtsi"
|
|
#include "diwali-thermal-overlay.dtsi"
|
|
|
|
&soc {
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
label = "gpio-keys";
|
|
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&key_vol_up_default>;
|
|
|
|
vol_up {
|
|
label = "volume_up";
|
|
gpios = <&pm7325_gpios 6 GPIO_ACTIVE_LOW>;
|
|
linux,input-type = <1>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
gpio-key,wakeup;
|
|
debounce-interval = <15>;
|
|
linux,can-disable;
|
|
};
|
|
};
|
|
};
|
|
|
|
&qupv3_se0_i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
status = "ok";
|
|
qcom,i2c-touch-active = "novatek,NVT-ts";
|
|
|
|
novatek@62 {
|
|
compatible = "novatek,NVT-ts";
|
|
reg = <0x62>;
|
|
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <51 0x2008>;
|
|
|
|
pinctrl-names = "pmx_ts_active","pmx_ts_suspend",
|
|
"pmx_ts_release";
|
|
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
pinctrl-2 = <&ts_release>;
|
|
|
|
novatek,reset-gpio = <&tlmm 17 0x00>;
|
|
novatek,irq-gpio = <&tlmm 51 0x2008>;
|
|
|
|
novatek,trusted-touch-mode = "vm_mode";
|
|
novatek,touch-environment = "pvm";
|
|
novatek,trusted-touch-spi-irq = <566>;
|
|
novatek,trusted-touch-io-bases = <0x980000 0x910000>;
|
|
novatek,trusted-touch-io-sizes = <0x1000 0x4000>;
|
|
novatek,trusted-touch-vm-gpio-list = <&tlmm 0 0 &tlmm 1 0 &tlmm 2 0
|
|
&tlmm 3 0 &tlmm 17 0 &tlmm 51 0x2008>;
|
|
};
|
|
|
|
focaltech@38 {
|
|
compatible = "focaltech,fts_ts";
|
|
reg = <0x38>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <51 0x2008>;
|
|
focaltech,reset-gpio = <&tlmm 17 0x00>;
|
|
focaltech,irq-gpio = <&tlmm 51 0x2008>;
|
|
focaltech,max-touch-number = <5>;
|
|
focaltech,display-coords = <0 0 1080 2340>;
|
|
focaltech,touch-type = "primary";
|
|
|
|
vdd-supply = <&L3C>;
|
|
|
|
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend","pmx_ts_release";
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
pinctrl-2 = <&ts_release>;
|
|
};
|
|
|
|
synaptics_dsx@22 {
|
|
compatible = "synaptics,dsx-i2c";
|
|
reg = <0x22>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <51 0x2008>;
|
|
avdd-supply = <&L3C>;
|
|
vdd-supply = <&L12C>;
|
|
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend","pmx_ts_release";
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
pinctrl-2 = <&ts_release>;
|
|
synaptics,pwr-reg-name = "avdd";
|
|
synaptics,bus-reg-name = "vdd";
|
|
synaptics,ub-i2c-addr = <0x22>;
|
|
synaptics,max-y-for-2d = <1859>;
|
|
synaptics,irq-gpio = <&tlmm 51 0x2008>;
|
|
synaptics,reset-gpio = <&tlmm 17 0x00>;
|
|
synaptics,irq-on-state = <0>;
|
|
synaptics,power-delay-ms = <200>;
|
|
synaptics,reset-delay-ms = <200>;
|
|
synaptics,reset-on-state = <0>;
|
|
synaptics,reset-active-ms = <20>;
|
|
};
|
|
|
|
atmel_mxt_ts@4a {
|
|
compatible = "atmel,maxtouch";
|
|
reg = <0x4a>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <51 0x2008>;
|
|
|
|
avdd-supply = <&L3C>;
|
|
vdd-supply = <&L12C>;
|
|
|
|
pinctrl-names = "pmx_ts_active", "pmx_ts_suspend";
|
|
pinctrl-0 = <&ts_active>;
|
|
pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
|
|
|
|
atmel,xy_switch;
|
|
atmel,inverty;
|
|
atmel,invertx;
|
|
reset-gpios = <&tlmm 17 0x00>;
|
|
irq-gpios = <&tlmm 51 0x2008>;
|
|
atmel,panel-coords = <0 0 479 799>;
|
|
atmel,display-coords = <0 0 339 729>;
|
|
};
|
|
};
|
|
|
|
&qupv3_se9_i2c {
|
|
status = "ok";
|
|
qcom,clk-freq-out = <1000000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
nq@28 {
|
|
compatible = "qcom,sn-nci";
|
|
reg = <0x28>;
|
|
qcom,sn-irq = <&tlmm 41 0x00>;
|
|
qcom,sn-ven = <&tlmm 38 0x00>;
|
|
qcom,sn-firm = <&tlmm 40 0x00>;
|
|
qcom,sn-clkreq = <&tlmm 39 0x00>;
|
|
qcom,sn-vdd-1p8-supply = <&L18B>;
|
|
qcom,sn-vdd-1p8-voltage = <1800000 1800000>;
|
|
qcom,sn-vdd-1p8-current = <157000>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <41 0>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_enable_active>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
|
|
};
|
|
};
|
|
|
|
&sdhc_2 {
|
|
status = "ok";
|
|
vdd-supply = <&L9C>;
|
|
qcom,vdd-voltage-level = <2960000 2960000>;
|
|
qcom,vdd-current-level = <0 800000>;
|
|
|
|
vdd-io-supply = <&L6C>;
|
|
qcom,vdd-io-voltage-level = <1800000 2960000>;
|
|
qcom,vdd-io-current-level = <0 22000>;
|
|
|
|
pinctrl-names = "default", "sleep";
|
|
pinctrl-0 = <&sdc2_on>;
|
|
pinctrl-1 = <&sdc2_off>;
|
|
|
|
cd-gpios = <&tlmm 19 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&ufsphy_mem {
|
|
compatible = "qcom,ufs-phy-qmp-v4-diwali";
|
|
|
|
vdda-phy-supply = <&L10C>;
|
|
vdda-pll-supply = <&L6B>;
|
|
vdda-phy-max-microamp = <88100>;
|
|
vdda-pll-max-microamp = <18300>;
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&ufshc_mem {
|
|
vdd-hba-supply = <&gcc_ufs_phy_gdsc>;
|
|
|
|
vcc-supply = <&L7B>;
|
|
vcc-max-microamp = <1100000>;
|
|
|
|
vccq-supply = <&L9B>;
|
|
vccq-max-microamp = <1200000>;
|
|
|
|
vccq2-supply = <&L19B>;
|
|
vccq2-max-microamp = <800000>;
|
|
|
|
qcom,vddp-ref-clk-supply = <&L9B>;
|
|
qcom,vddp-ref-clk-max-microamp = <100>;
|
|
|
|
/*
|
|
* ufs-dev-types and nvmem entries are for ufs device
|
|
* identification using nvmem interface. Use number of
|
|
* ufs devices supported for ufs-dev-types, and nvmem handle
|
|
* added by pmic for sdam register.
|
|
*/
|
|
ufs-dev-types = <2>;
|
|
nvmem-cells = <&ufs_dev>;
|
|
nvmem-cell-names = "ufs_dev";
|
|
|
|
status = "ok";
|
|
};
|