mirror of
https://github.com/Evolution-X-Devices/kernel_xiaomi_sm8450-devicetrees
synced 2026-02-01 08:51:30 +00:00
Merge "ARM: dts: msm: Add pinctrl for PM8350C GPIO 8 on diwali"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
4099bc250d
@@ -1,2 +1,28 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "diwali-pmic-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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation = <3000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
||||
@@ -1,2 +1,28 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "diwali-pmic-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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation = <3000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
||||
390
qcom/diwali-pmic-overlay.dtsi
Normal file
390
qcom/diwali-pmic-overlay.dtsi
Normal file
@@ -0,0 +1,390 @@
|
||||
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
||||
#include <dt-bindings/iio/qcom,spmi-adc7-pm7325.h>
|
||||
#include <dt-bindings/clock/qcom,rpmh.h>
|
||||
|
||||
#include "pmk8350.dtsi"
|
||||
#include "pm8350c.dtsi"
|
||||
#include "pm7325.dtsi"
|
||||
#include "pmr735a.dtsi"
|
||||
#include "pm7250b.dtsi"
|
||||
|
||||
|
||||
&pm7250b_clkdiv {
|
||||
clocks = <&rpmhcc RPMH_CXO_CLK>;
|
||||
};
|
||||
|
||||
&spmi0_debug_bus {
|
||||
qcom,pm7250b-debug@8 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <8 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,pm7250b-debug@9 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <9 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
&spmi_glink_debug {
|
||||
spmi@0 {
|
||||
qcom,pm7250b-debug@8 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <8 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pmk8350 {
|
||||
/delete-node/ pon_pbs@800;
|
||||
/delete-node/ pon_hlos@1300;
|
||||
|
||||
pon_hlos@1300 {
|
||||
compatible = "qcom,pm8998-pon";
|
||||
reg = <0x1300>, <0x800>;
|
||||
reg-names = "pon_hlos", "pon_pbs";
|
||||
|
||||
pwrkey {
|
||||
compatible = "qcom,pmk8350-pwrkey";
|
||||
interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
|
||||
linux,code = <KEY_POWER>;
|
||||
};
|
||||
|
||||
resin {
|
||||
compatible = "qcom,pmk8350-resin";
|
||||
interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
|
||||
linux,code = <KEY_VOLUMEDOWN>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm7325_gpios {
|
||||
key_vol_up {
|
||||
key_vol_up_default: key_vol_up_default {
|
||||
pins = "gpio6";
|
||||
function = "normal";
|
||||
input-enable;
|
||||
bias-pull-up;
|
||||
power-source = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm8350c_gpios {
|
||||
lcd_backlight_ctrl {
|
||||
lcd_backlight_ctrl_default: lcd_backlight_ctrl_default {
|
||||
pins = "gpio8";
|
||||
function = "func1";
|
||||
input-disable;
|
||||
output-enable;
|
||||
bias-disable;
|
||||
power-source = <1>; /* 1.8V */
|
||||
qcom,drive-strength = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
pmic-pon-log {
|
||||
compatible = "qcom,pmic-pon-log";
|
||||
nvmem = <&pmk8350_sdam_5>;
|
||||
nvmem-names = "pon_log";
|
||||
};
|
||||
};
|
||||
|
||||
&pmk8350_vadc {
|
||||
/delete-node/ pm8350_ref_gnd;
|
||||
/delete-node/ pm8350_vref_1p25;
|
||||
/delete-node/ pm8350_die_temp;
|
||||
/delete-node/ pm8350_vph_pwr;
|
||||
|
||||
/delete-node/ pm8350b_ref_gnd;
|
||||
/delete-node/ pm8350b_vref_1p25;
|
||||
/delete-node/ pm8350b_die_temp;
|
||||
/delete-node/ pm8350b_vph_pwr;
|
||||
/delete-node/ pm8350b_vbat_sns;
|
||||
|
||||
/delete-node/ pmr735b_ref_gnd;
|
||||
/delete-node/ pmr735b_vref_1p25;
|
||||
/delete-node/ pmr735b_die_temp;
|
||||
|
||||
/* PM7325 Channel nodes */
|
||||
pm7325_ref_gnd {
|
||||
reg = <PM7325_ADC7_REF_GND>;
|
||||
label = "pm7325_ref_gnd";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_vref_1p25 {
|
||||
reg = <PM7325_ADC7_1P25VREF>;
|
||||
label = "pm7325_vref_1p25";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_die_temp {
|
||||
reg = <PM7325_ADC7_DIE_TEMP>;
|
||||
label = "pm7325_die_temp";
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_vph_pwr {
|
||||
reg = <PM7325_ADC7_VPH_PWR>;
|
||||
label = "pm7325_vph_pwr";
|
||||
qcom,pre-scaling = <1 3>;
|
||||
};
|
||||
|
||||
pm7325_quiet_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM1_100K_PU>;
|
||||
label = "pm7325_quiet_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_cam_flash_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM2_100K_PU>;
|
||||
label = "pm7325_cam_flash_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_skin_msm_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM3_100K_PU>;
|
||||
label = "pm7325_skin_msm_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7325_wide_rfc_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM4_100K_PU>;
|
||||
label = "pm7325_wide_rfc_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm7250b_2 {
|
||||
/* Slave ID - 8 */
|
||||
reg = <8 SPMI_USID>;
|
||||
};
|
||||
|
||||
&pm7250b_3 {
|
||||
/* Slave ID - 9 */
|
||||
reg = <9 SPMI_USID>;
|
||||
};
|
||||
|
||||
&pm7250b_vadc {
|
||||
interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
|
||||
|
||||
smb1390_therm@e {
|
||||
qcom,scale-fn-type = <ADC_SCALE_HW_CALIB_PM5_SMB1398_TEMP>;
|
||||
};
|
||||
|
||||
pm7250b_usb_conn_therm {
|
||||
reg = <ADC5_AMUX_THM3_100K_PU>;
|
||||
label = "pm7250b_usb_conn_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
pm7250b_smb_skin_therm {
|
||||
reg = <ADC5_AMUX_THM1_100K_PU>;
|
||||
label = "pm7250b_smb_skin_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
&pm7325_tz {
|
||||
io-channels = <&pmk8350_vadc PM7325_ADC7_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pmr735a_tz {
|
||||
io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>;
|
||||
io-channel-names = "thermal";
|
||||
};
|
||||
|
||||
&pmk8350_adc_tm {
|
||||
io-channels = <&pmk8350_vadc PM7325_ADC7_AMUX_THM1_100K_PU>,
|
||||
<&pmk8350_vadc PM7325_ADC7_AMUX_THM2_100K_PU>,
|
||||
<&pmk8350_vadc PM7325_ADC7_AMUX_THM3_100K_PU>,
|
||||
<&pmk8350_vadc PM7325_ADC7_AMUX_THM4_100K_PU>,
|
||||
<&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>;
|
||||
|
||||
pm7325_quiet_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM1_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
|
||||
pm7325_cam_flash_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM2_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
|
||||
pm7325_skin_msm_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM3_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
|
||||
pm7325_wide_rfc_therm {
|
||||
reg = <PM7325_ADC7_AMUX_THM4_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
|
||||
pmk8350_xo_therm {
|
||||
reg = <PMK8350_ADC7_AMUX_THM1_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&pm7250b_adc_tm {
|
||||
interrupts = <0x8 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
|
||||
io-channels = <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>,
|
||||
<&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>;
|
||||
|
||||
pm7250b_usb_conn_therm {
|
||||
reg = <ADC5_AMUX_THM3_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
|
||||
pm7250b_smb_skin_therm {
|
||||
reg = <ADC5_AMUX_THM1_100K_PU>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
skin-msm-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc PM7325_ADC7_AMUX_THM3_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
camera-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc PM7325_ADC7_AMUX_THM2_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
rear-cam-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc PM7325_ADC7_AMUX_THM4_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
conn-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc ADC5_AMUX_THM3_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
chg-skin-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc ADC5_AMUX_THM1_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xo-therm {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
quiet-therm-usr {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmk8350_vadc PM7325_ADC7_AMUX_THM1_100K_PU>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
temperature = <125000>;
|
||||
hysteresis = <1000>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm7250b_tz {
|
||||
interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
};
|
||||
|
||||
&pm7250b_bcl {
|
||||
interrupts = <0x8 0x1d 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x8 0x1d 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x8 0x1d 0x2 IRQ_TYPE_EDGE_RISING>;
|
||||
};
|
||||
|
||||
&pm7250b_charger {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&pm7250b_qg {
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&pm7250b_pdphy {
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -1,7 +1,37 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "diwali-pmic-overlay.dtsi"
|
||||
|
||||
&soc {
|
||||
qcom,userspace-cdev {
|
||||
display-fps {
|
||||
qcom,max-level = <4>;
|
||||
};
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&battery_charger {
|
||||
qcom,thermal-mitigation = <11500000 11000000 10500000 10000000 9500000
|
||||
9000000 8500000 8000000 7500000 7000000 6500000
|
||||
6000000 5500000 5000000 4500000 4000000 3500000
|
||||
3000000 2500000 2000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
||||
185
qcom/diwali.dtsi
185
qcom/diwali.dtsi
@@ -11,6 +11,7 @@
|
||||
#include <dt-bindings/soc/qcom,rpmh-rsc.h>
|
||||
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Diwali";
|
||||
@@ -1283,6 +1284,17 @@
|
||||
qcom,glink-channels = "fastrpcglink-apps-dsp";
|
||||
qcom,intents = <0x64 64>;
|
||||
};
|
||||
|
||||
qcom,pmic_glink_rpmsg {
|
||||
qcom,glink-channels = "PMIC_RTR_ADSP_APPS";
|
||||
};
|
||||
|
||||
qcom,pmic_glink_log_rpmsg {
|
||||
qcom,glink-channels = "PMIC_LOGS_ADSP_APPS";
|
||||
qcom,intents = <0x800 5
|
||||
0xc00 3
|
||||
0x2000 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2056,6 +2068,179 @@
|
||||
qcom,net-id = <0>;
|
||||
qcom,low-latency;
|
||||
};
|
||||
|
||||
spmi_bus: spmi0_bus: qcom,spmi@c42d000 {
|
||||
compatible = "qcom,spmi-pmic-arb";
|
||||
reg = <0xc42d000 0x4000>,
|
||||
<0xc400000 0x3000>,
|
||||
<0xc500000 0x400000>,
|
||||
<0xc440000 0x80000>,
|
||||
<0xc4c0000 0x10000>;
|
||||
reg-names = "cnfg", "core", "chnls", "obsrvr", "intr";
|
||||
interrupts-extended = <&pdc 1 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "periph_irq";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
cell-index = <0>;
|
||||
qcom,channel = <0>;
|
||||
qcom,ee = <0>;
|
||||
qcom,bus-id = <0>;
|
||||
};
|
||||
|
||||
spmi1_bus: qcom,spmi@c432000 {
|
||||
compatible = "qcom,spmi-pmic-arb";
|
||||
reg = <0xc432000 0x4000>,
|
||||
<0xc400000 0x3000>,
|
||||
<0xc500000 0x400000>,
|
||||
<0xc440000 0x80000>,
|
||||
<0xc4d0000 0x10000>;
|
||||
reg-names = "cnfg", "core", "chnls", "obsrvr", "intr";
|
||||
interrupts-extended = <&pdc 3 IRQ_TYPE_LEVEL_HIGH>;
|
||||
interrupt-names = "periph_irq";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
cell-index = <0>;
|
||||
qcom,channel = <0>;
|
||||
qcom,ee = <0>;
|
||||
qcom,bus-id = <1>;
|
||||
depends-on-supply = <&spmi0_bus>;
|
||||
};
|
||||
|
||||
spmi0_debug_bus: qcom,spmi-debug@10b14000 {
|
||||
compatible = "qcom,spmi-pmic-arb-debug";
|
||||
reg = <0x10b14000 0x60>, <0x221c8784 0x4>;
|
||||
reg-names = "core", "fuse";
|
||||
clocks = <&aoss_qmp>;
|
||||
clock-names = "core_clk";
|
||||
qcom,fuse-enable-bit = <18>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
depends-on-supply = <&spmi1_bus>;
|
||||
depends-on2-supply = <&smb1394_glink_debug>;
|
||||
|
||||
qcom,pmk8350-debug@0 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <0 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,pm7325-debug@1 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <1 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,pm8350c-debug@2 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <2 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,pmr735a-debug@4 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <4 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,pmg1110-debug@a {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <10 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,pmic_glink {
|
||||
compatible = "qcom,pmic-glink";
|
||||
qcom,pmic-glink-channel = "PMIC_RTR_ADSP_APPS";
|
||||
qcom,subsys-name = "lpass";
|
||||
qcom,protection-domain = "tms/servreg", "msm/adsp/charger_pd";
|
||||
depends-on-supply = <&ipcc_mproc>;
|
||||
|
||||
battery_charger: qcom,battery_charger {
|
||||
compatible = "qcom,battery-charger";
|
||||
};
|
||||
|
||||
ucsi: qcom,ucsi {
|
||||
compatible = "qcom,ucsi-glink";
|
||||
};
|
||||
|
||||
altmode: qcom,altmode {
|
||||
compatible = "qcom,altmode-glink";
|
||||
#altmode-cells = <1>;
|
||||
};
|
||||
};
|
||||
|
||||
qcom,pmic_glink_log {
|
||||
compatible = "qcom,pmic-glink";
|
||||
qcom,pmic-glink-channel = "PMIC_LOGS_ADSP_APPS";
|
||||
|
||||
qcom,battery_debug {
|
||||
compatible = "qcom,battery-debug";
|
||||
};
|
||||
|
||||
qcom,charger_ulog_glink {
|
||||
compatible = "qcom,charger-ulog-glink";
|
||||
};
|
||||
|
||||
spmi_glink_debug: qcom,spmi_glink_debug {
|
||||
compatible = "qcom,spmi-glink-debug";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
depends-on-supply = <&spmi1_bus>;
|
||||
|
||||
/* Primary SPMI bus */
|
||||
spmi@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
qcom,pm7250b-debug@8 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <8 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
/* Secondary SPMI bus */
|
||||
spmi@1 {
|
||||
reg = <1>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
smb1394_glink_debug: qcom,smb1394-debug@9 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <9 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,smb1394-debug@b {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <11 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
qcom,smb1394-debug@d {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <12 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#include "diwali-qupv3.dtsi"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
|
||||
qcom,pm7250b@2 {
|
||||
pm7250b_2: qcom,pm7250b@2 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <2 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
pm7250b_charger: qcom,qpnp-smb5 {
|
||||
compatible = "qcom,pm7250b-smb5";
|
||||
depends-on-supply = <&pm7250b_vadc>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
#cooling-cells = <2>;
|
||||
@@ -407,7 +408,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
qcom,pm7250b@3 {
|
||||
pm7250b_3: qcom,pm7250b@3 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <3 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
|
||||
61
qcom/pm7325.dtsi
Normal file
61
qcom/pm7325.dtsi
Normal file
@@ -0,0 +1,61 @@
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
|
||||
&spmi_bus {
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <4>;
|
||||
|
||||
qcom,pm7325@1 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <1 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
pm7325_tz: qcom,temp-alarm@a00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xa00>;
|
||||
interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pm7325_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pm7325-gpio";
|
||||
reg = <0x8800>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
pm7325_temp_alarm: pm7325_tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm7325_tz>;
|
||||
|
||||
trips {
|
||||
pm7325_trip0: trip0 {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pm7325_trip1: trip1 {
|
||||
temperature = <115000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
|
||||
pm7325_trip2: trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user