1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2021, Luca Weiss <luca@z3ntu.x 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 13 14 thermal-sensors = <&pm 15 16 trips { 17 trip0 { 18 temper 19 hyster 20 type = 21 }; 22 23 trip1 { 24 temper 25 hyster 26 type = 27 }; 28 29 trip2 { 30 temper 31 hyster 32 type = 33 }; 34 }; 35 }; 36 }; 37 }; 38 39 &spmi_bus { 40 pmic@0 { 41 compatible = "qcom,pm6350", "q 42 reg = <0x0 SPMI_USID>; 43 #address-cells = <1>; 44 #size-cells = <0>; 45 46 pm6350_pon: pon@800 { 47 compatible = "qcom,pm8 48 reg = <0x800>; 49 mode-bootloader = <0x2 50 mode-recovery = <0x1>; 51 52 pm6350_pwrkey: pwrkey 53 compatible = " 54 interrupts = < 55 debounce = <15 56 bias-pull-up; 57 linux,code = < 58 }; 59 60 pm6350_resin: resin { 61 compatible = " 62 interrupts = < 63 debounce = <15 64 bias-pull-up; 65 status = "disa 66 }; 67 }; 68 69 pm6350_temp: temp-alarm@2400 { 70 compatible = "qcom,spm 71 reg = <0x2400>; 72 interrupts = <0x0 0x24 73 #thermal-sensor-cells 74 }; 75 76 pm6350_gpios: gpio@c000 { 77 compatible = "qcom,pm6 78 reg = <0xc000>; 79 gpio-controller; 80 gpio-ranges = <&pm6350 81 #gpio-cells = <2>; 82 interrupt-controller; 83 #interrupt-cells = <2> 84 }; 85 }; 86 87 pmic@1 { 88 compatible = "qcom,pm6350", "q 89 reg = <0x1 SPMI_USID>; 90 #address-cells = <1>; 91 #size-cells = <0>; 92 }; 93 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.