mirror of
https://github.com/oplus-giulia-dev/android_kernel_oneplus_sm8650-devicetrees
synced 2025-11-04 06:44:04 +08:00
Add ufs shutdown power supply to add an additional vote for VCCQ LDO. In case of ufs shutdown, UFS VCCQ LDO would be turned off by PMIC regulator itself. Change-Id: Ic748277c0a8311aac135d677d3d757457b739d12
255 lines
6.3 KiB
Plaintext
255 lines
6.3 KiB
Plaintext
#include <dt-bindings/gpio/gpio.h>
|
|
#include "cliffs-pmic-overlay.dtsi"
|
|
#include "cliffs-thermal-overlay.dtsi"
|
|
|
|
&sdhc_2 {
|
|
status = "ok";
|
|
|
|
vdd-supply = <&L13B>;
|
|
qcom,vdd-voltage-level = <2960000 2960000>;
|
|
qcom,vdd-current-level = <0 800000>;
|
|
|
|
vdd-io-supply = <&L23B>;
|
|
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 31 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&ufsphy_mem {
|
|
compatible = "qcom,ufs-phy-qmp-v4-cliffs";
|
|
|
|
/* VDDA_UFS_CORE */
|
|
vdda-phy-supply = <&L1D>;
|
|
vdda-phy-max-microamp = <213030>;
|
|
/*
|
|
* Platforms supporting Gear 5 && Rate B require a different
|
|
* voltage supply. Check the Power Grid document.
|
|
*/
|
|
vdda-phy-min-microvolt = <912000>;
|
|
|
|
/* VDDA_UFS_0_1P2 */
|
|
vdda-pll-supply = <&L4B>;
|
|
vdda-pll-max-microamp = <18340>;
|
|
|
|
/* Phy GDSC for VDD_MX, always on */
|
|
vdd-phy-gdsc-supply = <&gcc_ufs_mem_phy_gdsc>;
|
|
|
|
/* Qref power supply, Refer Qref diagram */
|
|
vdda-qref-supply = <&L2B>;
|
|
vdda-qref-max-microamp = <64500>;
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&ufshc_mem {
|
|
vdd-hba-supply = <&gcc_ufs_phy_gdsc>;
|
|
|
|
vcc-supply = <&L12B>;
|
|
vcc-max-microamp = <1200000>;
|
|
|
|
vccq-supply = <&L3D>;
|
|
vccq-max-microamp = <1200000>;
|
|
|
|
/* VDD_PX10 is voted for the ufs_reset_n */
|
|
qcom,vddp-ref-clk-supply = <&L5B>;
|
|
qcom,vddp-ref-clk-max-microamp = <100>;
|
|
|
|
qcom,vccq-parent-supply = <&S2B>;
|
|
qcom,vccq-parent-max-microamp = <210000>;
|
|
|
|
qcom,vccq-shutdown-supply = <&L3D>;
|
|
qcom,vccq-shutdown-max-microamp = <1200000>;
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&soc {
|
|
gpio_key {
|
|
compatible = "gpio-keys";
|
|
label = "gpio-keys";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&key_vol_up_default>;
|
|
vol_up {
|
|
label = "volume_up";
|
|
gpios = <&pmxr2230_gpios 6 GPIO_ACTIVE_LOW>;
|
|
linux,input-type = <1>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
gpio-key,wakeup;
|
|
debounce-interval = <15>;
|
|
linux,can-disable;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pmxr2230_switch0 {
|
|
qcom,led-mask = <9>; /* Channels 1 & 4 */
|
|
qcom,symmetry-en;
|
|
};
|
|
|
|
&pmxr2230_switch1 {
|
|
qcom,led-mask = <6>; /* Channels 2 & 3 */
|
|
qcom,symmetry-en;
|
|
};
|
|
|
|
&pmxr2230_switch2 {
|
|
qcom,led-mask = <15>; /* All Channels */
|
|
qcom,symmetry-en;
|
|
};
|
|
|
|
&pmxr2230_flash {
|
|
status = "ok";
|
|
};
|
|
|
|
&qupv3_se4_spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
status = "ok";
|
|
qcom,touch-active = "goodix,gt9916S";
|
|
qcom,la-vm;
|
|
|
|
goodix-berlin@0 {
|
|
compatible = "goodix,gt9916S";
|
|
reg = <0>;
|
|
spi-max-frequency = <1000000>;
|
|
goodix,avdd-name = "avdd";
|
|
goodix,iovdd-name = "iovdd";
|
|
avdd-supply = <&L22B>;
|
|
iovdd-supply = <&L8B>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <129 0x2008>;
|
|
goodix,reset-gpio = <&tlmm 128 0x00>;
|
|
goodix,irq-gpio = <&tlmm 129 0x2008>;
|
|
goodix,irq-flags = <2>;
|
|
goodix,panel-max-x = <1080>;
|
|
goodix,panel-max-y = <2400>;
|
|
goodix,panel-max-w = <255>;
|
|
goodix,panel-max-p = <4096>;
|
|
goodix,firmware-name = "goodix_firmware_spi.bin";
|
|
goodix,config-name = "goodix_cfg_group_spi.bin";
|
|
goodix,touch-type = "primary";
|
|
goodix,qts_en;
|
|
qts,trusted-touch-mode = "vm_mode";
|
|
qts,touch-environment = "pvm";
|
|
qts,trusted-touch-type = "primary";
|
|
qts,trusted-touch-spi-irq = <668>;
|
|
qts,trusted-touch-io-bases = <0xa90000>;
|
|
qts,trusted-touch-io-sizes = <0x1000>;
|
|
qts,trusted-touch-vm-gpio-list = <&tlmm 16 0 &tlmm 17 0 &tlmm 18 0
|
|
&tlmm 19 0 &tlmm 128 0 &tlmm 129 0x2008>;
|
|
};
|
|
};
|
|
|
|
®ulator_ocp_notifier {
|
|
periph-1c1-supply = <&L1B>;
|
|
periph-1c2-supply = <&L2B>;
|
|
periph-1c3-supply = <&L3B>;
|
|
periph-1c4-supply = <&L4B>;
|
|
periph-1c5-supply = <&L5B>;
|
|
periph-1c7-supply = <&L7B>;
|
|
periph-1c8-supply = <&L8B>;
|
|
periph-1c9-supply = <&L9B>;
|
|
periph-1ca-supply = <&L10B>;
|
|
periph-1cb-supply = <&L11B>;
|
|
periph-1cc-supply = <&L12B>;
|
|
periph-1cd-supply = <&L13B>;
|
|
periph-1d0-supply = <&L16B>;
|
|
periph-1d1-supply = <&L17B>;
|
|
periph-1d2-supply = <&L18B>;
|
|
periph-1d3-supply = <&L19B>;
|
|
periph-1d4-supply = <&L20B>;
|
|
periph-1d5-supply = <&L21B>;
|
|
periph-1d6-supply = <&L22B>;
|
|
periph-1d7-supply = <&L23B>;
|
|
periph-19b-supply = <&S1B>;
|
|
periph-19e-supply = <&S2B>;
|
|
periph-1a1-supply = <&S3B>;
|
|
periph-1a4-supply = <&S4B_LEVEL>;
|
|
periph-1e4-supply = <&BOB>;
|
|
periph-2c1-supply = <&L1C>;
|
|
periph-2c2-supply = <&L2C_LEVEL>;
|
|
periph-2c3-supply = <&L3C>;
|
|
periph-29b-supply = <&S1C_LEVEL>;
|
|
periph-29e-supply = <&S2C_LEVEL>;
|
|
periph-2a4-supply = <&S4C_LEVEL>;
|
|
periph-2aa-supply = <&S6C_LEVEL>;
|
|
periph-2c1-supply = <&L1D>;
|
|
periph-2c2-supply = <&L2D_LEVEL>;
|
|
periph-2c3-supply = <&L3D>;
|
|
periph-3aa-supply = <&S6D_LEVEL>;
|
|
periph-3b0-supply = <&S8D_LEVEL>;
|
|
periph-4c1-supply = <&L1E>;
|
|
periph-4c2-supply = <&L2E>;
|
|
periph-4c3-supply = <&L3E>;
|
|
periph-4c4-supply = <&L4E>;
|
|
periph-4c5-supply = <&L5E>;
|
|
periph-4c6-supply = <&L6E>;
|
|
periph-4c7-supply = <&L7E>;
|
|
periph-49b-supply = <&S1E>;
|
|
periph-49e-supply = <&S2E>;
|
|
periph-4a1-supply = <&S3E>;
|
|
periph-89b-supply = <&S1I_LEVEL>;
|
|
periph-c40-supply = <&L1M>;
|
|
periph-c41-supply = <&L2M>;
|
|
periph-c42-supply = <&L3M>;
|
|
periph-c43-supply = <&L4M>;
|
|
periph-c45-supply = <&L6M>;
|
|
periph-c46-supply = <&L7M>;
|
|
periph-d40-supply = <&L1N>;
|
|
periph-d41-supply = <&L2N>;
|
|
periph-d42-supply = <&L3N>;
|
|
periph-d43-supply = <&L4N>;
|
|
periph-d44-supply = <&L5N>;
|
|
periph-d45-supply = <&L6N>;
|
|
periph-d46-supply = <&L7N>;
|
|
};
|
|
|
|
&usb0 {
|
|
qcom,wcd_usbss = <&wcd_usbss>;
|
|
};
|
|
|
|
&qupv3_se11_spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
status = "ok";
|
|
qcom,touch-active = "goodix,gt9916S2";
|
|
qcom,la-vm;
|
|
|
|
goodix-berlin@0 {
|
|
compatible = "goodix,gt9916S2";
|
|
reg = <0>;
|
|
spi-max-frequency = <1000000>;
|
|
goodix,avdd-name = "avdd";
|
|
goodix,iovdd-name = "iovdd";
|
|
avdd-supply = <&L22B>;
|
|
iovdd-supply = <&L8B>;
|
|
interrupt-parent = <&tlmm>;
|
|
interrupts = <29 0x2008>;
|
|
goodix,reset-gpio = <&tlmm 131 0x00>;
|
|
goodix,irq-gpio = <&tlmm 29 0x2008>;
|
|
goodix,irq-flags = <2>;
|
|
goodix,panel-max-x = <1080>;
|
|
goodix,panel-max-y = <2400>;
|
|
goodix,panel-max-w = <255>;
|
|
goodix,panel-max-p = <4096>;
|
|
goodix,firmware-name = "goodix_firmware_spi.bin";
|
|
goodix,config-name = "goodix_cfg_group_spi.bin";
|
|
goodix,touch-type = "secondary";
|
|
goodix,qts_en;
|
|
qts,trusted-touch-mode = "vm_mode";
|
|
qts,touch-environment = "pvm";
|
|
qts,trusted-touch-type = "secondary";
|
|
qts,trusted-touch-spi-irq = <582>;
|
|
qts,trusted-touch-io-bases = <0x88c000>;
|
|
qts,trusted-touch-io-sizes = <0x1000>;
|
|
qts,trusted-touch-vm-gpio-list = <&tlmm 44 0 &tlmm 45 0 &tlmm 46 0
|
|
&tlmm 47 0 &tlmm 131 0 &tlmm 29 0x2008>;
|
|
};
|
|
};
|