Debian Codegraph @

scripts/dtc/include-prefixes/arm64/qcom/pmiv0104.dtsi

raw
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 pmiv0104-thermal {
12 polling-delay-passive = <100>;
13
14 thermal-sensors = <&pmiv0104_temp_alarm>;
15
16 trips {
17 trip0 {
18 temperature = <95000>;
19 hysteresis = <0>;
20 type = "passive";
21 };
22
23 trip1 {
24 temperature = <115000>;
25 hysteresis = <0>;
26 type = "hot";
27 };
28
29 trip2 {
30 /*
31 * Current Linux driver currently only supports up to
32 * 125°C, should be updated to 145°C once available.
33 */
34 temperature = <125000>;
35 hysteresis = <0>;
36 type = "critical";
37 };
38 };
39 };
40 };
41 };
42
43 &spmi_bus {
44 pmic@PMIV0104_SID {
45 compatible = "qcom,pmiv0104", "qcom,spmi-pmic";
46 reg = <PMIV0104_SID SPMI_USID>;
47 #address-cells = <1>;
48 #size-cells = <0>;
49
50 pmiv0104_temp_alarm: temp-alarm@a00 {
51 compatible = "qcom,spmi-temp-alarm";
52 reg = <0xa00>;
53 interrupts = <PMIV0104_SID 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
54 #thermal-sensor-cells = <0>;
55 };
56
57 pmiv0104_gpios: gpio@8800 {
58 compatible = "qcom,pmiv0104-gpio", "qcom,spmi-gpio";
59 reg = <0x8800>;
60 gpio-controller;
61 gpio-ranges = <&pmiv0104_gpios 0 0 10>;
62 #gpio-cells = <2>;
63 interrupt-controller;
64 #interrupt-cells = <2>;
65 };
66
67 pmiv0104_eusb2_repeater: phy@fd00 {
68 compatible = "qcom,pmiv0104-eusb2-repeater";
69 reg = <0xfd00>;
70 #phy-cells = <0>;
71 };
72 };
73 };