| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2025, Luca Weiss <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 7 |
#include <dt-bindings/spmi/spmi.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
thermal-zones { |
| 11 |
pm7550_thermal: pm7550-thermal { |
| 12 |
polling-delay-passive = <100>; |
| 13 |
|
| 14 |
thermal-sensors = <&pm7550_temp_alarm>; |
| 15 |
|
| 16 |
trips { |
| 17 |
trip0 { |
| 18 |
temperature = <95000>; |
| 19 |
hysteresis = <0>; |
| 20 |
type = "passive"; |
| 21 |
}; |
| 22 |
|
| 23 |
trip1 { |
| 24 |
/* |
| 25 |
* Current Linux driver currently only supports up to |
| 26 |
* 125°C, should be updated to 145°C once available. |
| 27 |
*/ |
| 28 |
temperature = <125000>; |
| 29 |
hysteresis = <0>; |
| 30 |
type = "critical"; |
| 31 |
}; |
| 32 |
}; |
| 33 |
}; |
| 34 |
}; |
| 35 |
}; |
| 36 |
|
| 37 |
&spmi_bus { |
| 38 |
pm7550: pmic@1 { |
| 39 |
compatible = "qcom,pm7550", "qcom,spmi-pmic"; |
| 40 |
reg = <0x1 SPMI_USID>; |
| 41 |
#address-cells = <1>; |
| 42 |
#size-cells = <0>; |
| 43 |
|
| 44 |
pm7550_temp_alarm: temp-alarm@a00 { |
| 45 |
compatible = "qcom,spmi-temp-alarm"; |
| 46 |
reg = <0xa00>; |
| 47 |
interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
| 48 |
#thermal-sensor-cells = <0>; |
| 49 |
}; |
| 50 |
|
| 51 |
pm7550_gpios: gpio@8800 { |
| 52 |
compatible = "qcom,pm7550-gpio", "qcom,spmi-gpio"; |
| 53 |
reg = <0x8800>; |
| 54 |
gpio-controller; |
| 55 |
gpio-ranges = <&pm7550_gpios 0 0 12>; |
| 56 |
#gpio-cells = <2>; |
| 57 |
interrupt-controller; |
| 58 |
#interrupt-cells = <2>; |
| 59 |
}; |
| 60 |
|
| 61 |
pm7550_flash: led-controller@ee00 { |
| 62 |
compatible = "qcom,pm7550-flash-led", "qcom,spmi-flash-led"; |
| 63 |
reg = <0xee00>; |
| 64 |
status = "disabled"; |
| 65 |
}; |
| 66 |
}; |
| 67 |
}; |