ARM: dts: msm: Add UI peripherals support for tuna
Add UI peripherals support for tuna for pmxr2230 and pm7550ba. While at it add pm7550ba, pmr735b, pmxr2230 files. Change-Id: If355df7776f21e71e632966d691f13a14a9b3e4f Signed-off-by: Kavya Nunna <quic_knunna@quicinc.com>
This commit is contained in:
301
qcom/pm7550ba.dtsi
Normal file
301
qcom/pm7550ba.dtsi
Normal file
@@ -0,0 +1,301 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#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,pm7550ba@7 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <7 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
pm7550ba_tz: qcom,temp-alarm@a00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xa00>;
|
||||
interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pm7550ba_sdam_1: sdam@7000 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7000>;
|
||||
};
|
||||
|
||||
pm7550ba_sdam_2: sdam@7100 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7100>;
|
||||
};
|
||||
|
||||
pm7550ba_sdam_3: sdam@7200 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7200>;
|
||||
};
|
||||
|
||||
pm7550ba_sdam_4: sdam@7300 {
|
||||
compatible = "qcom,spmi-sdam";
|
||||
reg = <0x7300>;
|
||||
};
|
||||
|
||||
pm7550ba_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pm7550ba-gpio";
|
||||
reg = <0x8800>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
|
||||
pm7550ba_eusb2_repeater: eusb2-repeater@fd00 {
|
||||
compatible = "qcom,pmic-eusb2-repeater";
|
||||
reg = <0xfd00>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pm7550ba_vib: qcom,vibrator@df00 {
|
||||
compatible = "qcom,qpnp-vibrator-ldo";
|
||||
reg = <0xdf00>;
|
||||
qcom,vib-ldo-volt-uv = <3000000>;
|
||||
qcom,disable-overdrive;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
pm7550ba_amoled: qcom,amoled {
|
||||
compatible = "qcom,amoled-regulator";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
status = "disabled";
|
||||
|
||||
oledb_vreg: oledb@fa00 {
|
||||
reg = <0xfa00>;
|
||||
reg-names = "oledb_base";
|
||||
regulator-name = "oledb";
|
||||
regulator-min-microvolt = <5000000>;
|
||||
regulator-max-microvolt = <8000000>;
|
||||
qcom,swire-control;
|
||||
};
|
||||
|
||||
ab_vreg: ab@f900 {
|
||||
reg = <0xf900>;
|
||||
reg-names = "ab_base";
|
||||
regulator-name = "ab";
|
||||
regulator-min-microvolt = <4600000>;
|
||||
regulator-max-microvolt = <5200000>;
|
||||
qcom,swire-control;
|
||||
};
|
||||
|
||||
ibb_vreg: ibb@f800 {
|
||||
reg = <0xf800>;
|
||||
reg-names = "ibb_base";
|
||||
regulator-name = "ibb";
|
||||
regulator-min-microvolt = <1400000>;
|
||||
regulator-max-microvolt = <6600000>;
|
||||
qcom,swire-control;
|
||||
regulator-allow-set-load;
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba_amoled_ecm: qcom,amoled-ecm@f900 {
|
||||
compatible = "qcom,amoled-ecm";
|
||||
reg = <0xf900>;
|
||||
status = "disabled";
|
||||
|
||||
nvmem-names = "amoled-ecm-sdam0", "amoled-ecm-sdam1",
|
||||
"amoled-ecm-sdam2";
|
||||
nvmem = <&pmk8550_sdam_13>, <&pmk8550_sdam_14>,
|
||||
<&pmk8550_sdam_41>;
|
||||
interrupt-names = "ecm-sdam0", "ecm-sdam1",
|
||||
"ecm-sdam2";
|
||||
interrupts = <0x0 0x7c 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x7d 0x1 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x0 0x98 0x1 IRQ_TYPE_EDGE_RISING>;
|
||||
};
|
||||
|
||||
pm7550ba_bcl: bcl@4700 {
|
||||
compatible = "qcom,bcl-v5";
|
||||
reg = <0x4700 0x100>;
|
||||
interrupts = <0x7 0x47 0x0 IRQ_TYPE_NONE>,
|
||||
<0x7 0x47 0x1 IRQ_TYPE_NONE>,
|
||||
<0x7 0x47 0x2 IRQ_TYPE_NONE>;
|
||||
interrupt-names = "bcl-lvl0",
|
||||
"bcl-lvl1",
|
||||
"bcl-lvl2";
|
||||
qcom,pmic7-threshold;
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
|
||||
bcl_soc:bcl-soc {
|
||||
compatible = "qcom,msm-bcl-soc";
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
pm7550ba_temp_alarm: pm7550ba_tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pm7550ba_tz>;
|
||||
|
||||
trips {
|
||||
pm7550ba_trip0: trip0 {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pm7550ba_trip1: trip1 {
|
||||
temperature = <115000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
|
||||
pm7550ba_trip2: trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba-ibat-lvl0 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pm7550ba_bcl 0>;
|
||||
|
||||
trips {
|
||||
ibat_lvl0:ibat-lvl0 {
|
||||
temperature = <7000>;
|
||||
hysteresis = <200>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba-ibat-lvl1 {
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pm7550ba_bcl 1>;
|
||||
|
||||
trips {
|
||||
ibat_lvl1:ibat-lvl1 {
|
||||
temperature = <9000>;
|
||||
hysteresis = <200>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba-bcl-lvl0 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pm7550ba_bcl 5>;
|
||||
|
||||
trips {
|
||||
thermal-engine-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
b_bcl_lvl0: b-bcl-lvl0 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba-bcl-lvl1 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pm7550ba_bcl 6>;
|
||||
|
||||
trips {
|
||||
thermal-engine-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
b_bcl_lvl1: b-bcl-lvl1 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm7550ba-bcl-lvl2 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pm7550ba_bcl 7>;
|
||||
|
||||
trips {
|
||||
thermal-engine-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
b_bcl_lvl2: b-bcl-lvl2 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
socd {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&bcl_soc>;
|
||||
|
||||
trips {
|
||||
thermal-engine-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
thermal-hal-trip {
|
||||
temperature = <100>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
socd_trip:socd-trip {
|
||||
temperature = <90>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
66
qcom/pmr735b.dtsi
Normal file
66
qcom/pmr735b.dtsi
Normal file
@@ -0,0 +1,66 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#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,pmr735b@5 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <5 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
pmr735b_tz: qcom,temp-alarm@a00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xa00>;
|
||||
interrupts = <0x5 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pmr735b_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pmr735b-gpio";
|
||||
reg = <0x8800>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
pmr735b_temp_alarm: pmr735b_tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pmr735b_tz>;
|
||||
|
||||
trips {
|
||||
pmr735b_trip0: trip0 {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pmr735b_trip1: trip1 {
|
||||
temperature = <115000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
|
||||
pmr735b_trip2: trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
311
qcom/pmxr2230.dtsi
Normal file
311
qcom/pmxr2230.dtsi
Normal file
@@ -0,0 +1,311 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#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,pmxr2230@1 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <1 SPMI_USID>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
pmxr2230_tz: pmxr2230-temp-alarm@a00 {
|
||||
compatible = "qcom,spmi-temp-alarm";
|
||||
reg = <0xa00>;
|
||||
interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
|
||||
#thermal-sensor-cells = <0>;
|
||||
};
|
||||
|
||||
pmxr2230_gpios: pinctrl@8800 {
|
||||
compatible = "qcom,pmxr2230-gpio";
|
||||
reg = <0x8800>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <2>;
|
||||
};
|
||||
|
||||
pmxr2230_pwm_1: pwms@e800 {
|
||||
compatible = "qcom,pwm-lpg";
|
||||
reg = <0xe800>;
|
||||
reg-names = "lpg-base";
|
||||
#pwm-cells = <2>;
|
||||
qcom,num-lpg-channels = <3>;
|
||||
nvmem = <&pmk8550_sdam_21 &pmk8550_sdam_22>;
|
||||
nvmem-names = "lpg_chan_sdam", "lut_sdam";
|
||||
qcom,lut-sdam-base = <0x45>;
|
||||
qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100
|
||||
90 80 70 60 50 40 30 20 10 0>;
|
||||
qcom,tick-duration-us = <7800>;
|
||||
|
||||
lpg@1 {
|
||||
qcom,lpg-chan-id = <1>;
|
||||
qcom,ramp-step-ms = <100>;
|
||||
qcom,ramp-low-index = <0>;
|
||||
qcom,ramp-high-index = <19>;
|
||||
qcom,ramp-pattern-repeat;
|
||||
qcom,lpg-sdam-base = <0x48>;
|
||||
};
|
||||
|
||||
lpg@2 {
|
||||
qcom,lpg-chan-id = <2>;
|
||||
qcom,ramp-step-ms = <100>;
|
||||
qcom,ramp-low-index = <0>;
|
||||
qcom,ramp-high-index = <19>;
|
||||
qcom,ramp-pattern-repeat;
|
||||
qcom,lpg-sdam-base = <0x56>;
|
||||
};
|
||||
|
||||
lpg@3 {
|
||||
qcom,lpg-chan-id = <3>;
|
||||
qcom,ramp-step-ms = <100>;
|
||||
qcom,ramp-low-index = <0>;
|
||||
qcom,ramp-high-index = <19>;
|
||||
qcom,ramp-pattern-repeat;
|
||||
qcom,lpg-sdam-base = <0x64>;
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230_pwm_2: pwms@e900 {
|
||||
compatible = "qcom,pwm-lpg";
|
||||
reg = <0xe900>;
|
||||
reg-names = "lpg-base";
|
||||
#pwm-cells = <2>;
|
||||
qcom,num-lpg-channels = <1>;
|
||||
};
|
||||
|
||||
pmxr2230_pwm_4: pwms@eb00 {
|
||||
compatible = "qcom,pwm-lpg";
|
||||
reg = <0xeb00>;
|
||||
reg-names = "lpg-base";
|
||||
#pwm-cells = <2>;
|
||||
qcom,num-lpg-channels = <1>;
|
||||
};
|
||||
|
||||
pmxr2230_rgb: qcom,leds@ef00 {
|
||||
compatible = "qcom,tri-led";
|
||||
reg = <0xef00>;
|
||||
|
||||
red {
|
||||
label = "red";
|
||||
pwms = <&pmxr2230_pwm_1 0 1000000>;
|
||||
led-sources = <0>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
green {
|
||||
label = "green";
|
||||
pwms = <&pmxr2230_pwm_1 1 1000000>;
|
||||
led-sources = <1>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
|
||||
blue {
|
||||
label = "blue";
|
||||
pwms = <&pmxr2230_pwm_1 2 1000000>;
|
||||
led-sources = <2>;
|
||||
linux,default-trigger = "timer";
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230_flash: qcom,flash_led@ee00 {
|
||||
compatible = "qcom,qti-pm8350c-flash-led";
|
||||
reg = <0xee00>;
|
||||
interrupts = <0x1 0xee 0x0 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x1 0xee 0x3 IRQ_TYPE_EDGE_RISING>,
|
||||
<0x1 0xee 0x4 IRQ_TYPE_EDGE_RISING>;
|
||||
interrupt-names = "led-fault-irq",
|
||||
"all-ramp-down-done-irq",
|
||||
"all-ramp-up-done-irq";
|
||||
qcom,thermal-derate-current = <200 500>;
|
||||
status = "disabled";
|
||||
|
||||
pmxr2230_flash0: qcom,flash_0 {
|
||||
label = "flash";
|
||||
qcom,led-name = "led:flash_0";
|
||||
qcom,max-current-ma = <1500>;
|
||||
qcom,default-led-trigger = "flash0_trigger";
|
||||
qcom,id = <0>;
|
||||
qcom,duration-ms = <1280>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_flash1: qcom,flash_1 {
|
||||
label = "flash";
|
||||
qcom,led-name = "led:flash_1";
|
||||
qcom,max-current-ma = <1500>;
|
||||
qcom,default-led-trigger = "flash1_trigger";
|
||||
qcom,id = <1>;
|
||||
qcom,duration-ms = <1280>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_flash2: qcom,flash_2 {
|
||||
label = "flash";
|
||||
qcom,led-name = "led:flash_2";
|
||||
qcom,max-current-ma = <1500>;
|
||||
qcom,default-led-trigger = "flash2_trigger";
|
||||
qcom,id = <2>;
|
||||
qcom,duration-ms = <1280>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_flash3: qcom,flash_3 {
|
||||
label = "flash";
|
||||
qcom,led-name = "led:flash_3";
|
||||
qcom,max-current-ma = <1500>;
|
||||
qcom,default-led-trigger = "flash3_trigger";
|
||||
qcom,id = <3>;
|
||||
qcom,duration-ms = <1280>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_torch0: qcom,torch_0 {
|
||||
label = "torch";
|
||||
qcom,led-name = "led:torch_0";
|
||||
qcom,max-current-ma = <500>;
|
||||
qcom,default-led-trigger = "torch0_trigger";
|
||||
qcom,id = <0>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_torch1: qcom,torch_1 {
|
||||
label = "torch";
|
||||
qcom,led-name = "led:torch_1";
|
||||
qcom,max-current-ma = <500>;
|
||||
qcom,default-led-trigger = "torch1_trigger";
|
||||
qcom,id = <1>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_torch2: qcom,torch_2 {
|
||||
label = "torch";
|
||||
qcom,led-name = "led:torch_2";
|
||||
qcom,max-current-ma = <500>;
|
||||
qcom,default-led-trigger = "torch2_trigger";
|
||||
qcom,id = <2>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_torch3: qcom,torch_3 {
|
||||
label = "torch";
|
||||
qcom,led-name = "led:torch_3";
|
||||
qcom,max-current-ma = <500>;
|
||||
qcom,default-led-trigger = "torch3_trigger";
|
||||
qcom,id = <3>;
|
||||
qcom,ires-ua = <12500>;
|
||||
};
|
||||
|
||||
pmxr2230_switch0: qcom,led_switch_0 {
|
||||
label = "switch";
|
||||
qcom,led-name = "led:switch_0";
|
||||
qcom,default-led-trigger = "switch0_trigger";
|
||||
};
|
||||
|
||||
pmxr2230_switch1: qcom,led_switch_1 {
|
||||
label = "switch";
|
||||
qcom,led-name = "led:switch_1";
|
||||
qcom,default-led-trigger = "switch1_trigger";
|
||||
};
|
||||
|
||||
pmxr2230_switch2: qcom,led_switch_2 {
|
||||
label = "switch";
|
||||
qcom,led-name = "led:switch_2";
|
||||
qcom,default-led-trigger = "switch2_trigger";
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230_bcl: bcl@4700 {
|
||||
compatible = "qcom,bcl-v5";
|
||||
reg = <0x4700 0x100>;
|
||||
interrupts = <0x1 0x47 0x0 IRQ_TYPE_NONE>,
|
||||
<0x1 0x47 0x1 IRQ_TYPE_NONE>,
|
||||
<0x1 0x47 0x2 IRQ_TYPE_NONE>;
|
||||
interrupt-names = "bcl-lvl0",
|
||||
"bcl-lvl1",
|
||||
"bcl-lvl2";
|
||||
qcom,pmic7-threshold;
|
||||
#thermal-sensor-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
pmxr2230_temp_alarm: pmxr2230_tz {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "step_wise";
|
||||
thermal-sensors = <&pmxr2230_tz>;
|
||||
|
||||
trips {
|
||||
pmxr2230_trip0: trip0 {
|
||||
temperature = <95000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pmxr2230_trip1: trip1 {
|
||||
temperature = <115000>;
|
||||
hysteresis = <0>;
|
||||
type = "passive";
|
||||
};
|
||||
|
||||
pmxr2230_trip2: trip2 {
|
||||
temperature = <145000>;
|
||||
hysteresis = <0>;
|
||||
type = "critical";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230-bcl-lvl0 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmxr2230_bcl 5>;
|
||||
|
||||
trips {
|
||||
bcl_lvl0: bcl-lvl0 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230-bcl-lvl1 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmxr2230_bcl 6>;
|
||||
|
||||
trips {
|
||||
bcl_lvl1: bcl-lvl1 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmxr2230-bcl-lvl2 {
|
||||
polling-delay-passive = <100>;
|
||||
polling-delay = <0>;
|
||||
thermal-sensors = <&pmxr2230_bcl 7>;
|
||||
|
||||
trips {
|
||||
bcl_lvl2: bcl-lvl2 {
|
||||
temperature = <1>;
|
||||
hysteresis = <1>;
|
||||
type = "passive";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
46
qcom/tuna-pm7550ba.dtsi
Normal file
46
qcom/tuna-pm7550ba.dtsi
Normal file
@@ -0,0 +1,46 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include "pm7550ba.dtsi"
|
||||
#include <dt-bindings/spmi/spmi.h>
|
||||
|
||||
/ {
|
||||
qcom,pmic-id-size = <8>;
|
||||
qcom,pmic-id = <0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x4C>;
|
||||
};
|
||||
|
||||
&spmi0_debug_bus {
|
||||
qcom,pm7550ba-debug@7 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <7 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
|
||||
&pmic_glink_debug {
|
||||
/* Primary SPMI bus */
|
||||
glink_debug_spmi0: spmi@0 {
|
||||
reg = <0>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
|
||||
qcom,pm7550ba-debug@7 {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <7 SPMI_USID>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm7550ba_vib {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pm7550ba_amoled {
|
||||
status = "okay";
|
||||
};
|
||||
|
73
qcom/tuna-pmic-overlay.dtsi
Normal file
73
qcom/tuna-pmic-overlay.dtsi
Normal file
@@ -0,0 +1,73 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
#include "pmk8550.dtsi"
|
||||
#include "pmxr2230.dtsi"
|
||||
#include "pm8550vs.dtsi"
|
||||
#include "pmr735b.dtsi"
|
||||
#include "pm8550ve.dtsi"
|
||||
#include "pmd802x.dtsi"
|
||||
#include "pm8010.dtsi"
|
||||
|
||||
&pm8550vs_g {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&pm8550vs_g_temp_alarm {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&pm8550vs_d {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&pm8550vs_d_temp_alarm {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&pm8550ve_f {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&pm8550ve_f_temp_alarm {
|
||||
status = "ok";
|
||||
};
|
||||
|
||||
&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";
|
||||
};
|
||||
|
||||
&pmk8550_gpios {
|
||||
pinctrl-0 = <&alt_sleep_clk_default>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
alt_sleep_clk {
|
||||
alt_sleep_clk_default: alt_sleep_clk_default {
|
||||
pins = "gpio3";
|
||||
function = "func1";
|
||||
input-disable;
|
||||
output-enable;
|
||||
bias-disable;
|
||||
power-source = <0>;
|
||||
};
|
||||
};
|
||||
};
|
@@ -1416,6 +1416,23 @@
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
pm8010@c {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <12 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
pm8010@d {
|
||||
compatible = "qcom,spmi-pmic";
|
||||
reg = <13 SPMI_USID>;
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
qcom,can-sleep;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
thermal_zones: thermal-zones {
|
||||
@@ -1605,6 +1622,7 @@
|
||||
#include "tuna-usb.dtsi"
|
||||
#include "tuna-qupv3.dtsi"
|
||||
#include "msm-rdbg.dtsi"
|
||||
#include "tuna-pmic-overlay.dtsi"
|
||||
|
||||
&qupv3_se7_2uart {
|
||||
status = "ok";
|
||||
|
Reference in New Issue
Block a user