| 1 |
// SPDX-License-Identifier: BSD-3-Clause |
| 2 |
/* |
| 3 |
* Copyright (c) 2021, Luca Weiss <[email protected]> |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <dt-bindings/input/input.h> |
| 7 |
#include <dt-bindings/spmi/spmi.h> |
| 8 |
|
| 9 |
/ { |
| 10 |
thermal-zones { |
| 11 |
pm6350-thermal { |
| 12 |
polling-delay-passive = <100>; |
| 13 |
|
| 14 |
thermal-sensors = <&pm6350_temp>; |
| 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 |
temperature = <125000>; |
| 31 |
hysteresis = <0>; |
| 32 |
type = "critical"; |
| 33 |
}; |
| 34 |
}; |
| 35 |
}; |
| 36 |
}; |
| 37 |
}; |
| 38 |
|
| 39 |
&spmi_bus { |
| 40 |
pmic@0 { |
| 41 |
compatible = "qcom,pm6350", "qcom,spmi-pmic"; |
| 42 |
reg = <0x0 SPMI_USID>; |
| 43 |
#address-cells = <1>; |
| 44 |
#size-cells = <0>; |
| 45 |
|
| 46 |
pm6350_pon: pon@800 { |
| 47 |
compatible = "qcom,pm8998-pon"; |
| 48 |
reg = <0x800>; |
| 49 |
mode-bootloader = <0x2>; |
| 50 |
mode-recovery = <0x1>; |
| 51 |
|
| 52 |
pm6350_pwrkey: pwrkey { |
| 53 |
compatible = "qcom,pm8941-pwrkey"; |
| 54 |
interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; |
| 55 |
debounce = <15625>; |
| 56 |
bias-pull-up; |
| 57 |
linux,code = <KEY_POWER>; |
| 58 |
}; |
| 59 |
|
| 60 |
pm6350_resin: resin { |
| 61 |
compatible = "qcom,pm8941-resin"; |
| 62 |
interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>; |
| 63 |
debounce = <15625>; |
| 64 |
bias-pull-up; |
| 65 |
status = "disabled"; |
| 66 |
}; |
| 67 |
}; |
| 68 |
|
| 69 |
pm6350_temp: temp-alarm@2400 { |
| 70 |
compatible = "qcom,spmi-temp-alarm"; |
| 71 |
reg = <0x2400>; |
| 72 |
interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; |
| 73 |
#thermal-sensor-cells = <0>; |
| 74 |
}; |
| 75 |
|
| 76 |
pm6350_gpios: gpio@c000 { |
| 77 |
compatible = "qcom,pm6350-gpio", "qcom,spmi-gpio"; |
| 78 |
reg = <0xc000>; |
| 79 |
gpio-controller; |
| 80 |
gpio-ranges = <&pm6350_gpios 0 0 9>; |
| 81 |
#gpio-cells = <2>; |
| 82 |
interrupt-controller; |
| 83 |
#interrupt-cells = <2>; |
| 84 |
}; |
| 85 |
}; |
| 86 |
|
| 87 |
pmic@1 { |
| 88 |
compatible = "qcom,pm6350", "qcom,spmi-pmic"; |
| 89 |
reg = <0x1 SPMI_USID>; |
| 90 |
#address-cells = <1>; |
| 91 |
#size-cells = <0>; |
| 92 |
}; |
| 93 |
}; |