mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:04:24 +00:00
Add SPMI slave device for PM7550BA, and some of its peripheral devices. Change-Id: I95ba6fa7d454e44ec10f4a3d5dd775828147513d
88 lines
1.7 KiB
Plaintext
88 lines
1.7 KiB
Plaintext
#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: qcom,eusb2-repeater@fd00 {
|
|
compatible = "qcom,pmic-eusb2-repeater";
|
|
reg = <0xfd00>;
|
|
status = "disabled";
|
|
};
|
|
};
|
|
};
|
|
|
|
&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";
|
|
};
|
|
};
|
|
};
|
|
};
|