Loading arch/arm64/boot/dts/qcom/pm8195.dtsi +113 −1 Original line number Diff line number Diff line /* * Copyright (c) 2019, The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -29,10 +29,42 @@ compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_1_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_1_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading Loading @@ -127,6 +159,46 @@ #address-cells = <1>; #size-cells = <1>; pm8195_2_tz: qcom,temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_2_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_2_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading Loading @@ -180,6 +252,46 @@ #address-cells = <1>; #size-cells = <1>; pm8195_3_tz: qcom,temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_3_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_3_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading arch/arm64/boot/dts/qcom/sa8195-pmic.dtsi +80 −1 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -95,3 +95,82 @@ #include "sa8195p-regulator.dtsi" #include "pm8195.dtsi" &thermal_zones { pm8195_1_temp_alarm: pm8195_1_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_1_tz>; wake-capable-sensor; trips { pm8195_1_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_1_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; pm8195_2_temp_alarm: pm8195_2_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_2_tz>; wake-capable-sensor; trips { pm8195_2_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_2_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; pm8195_3_temp_alarm: pm8195_3_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_3_tz>; wake-capable-sensor; trips { pm8195_3_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_3_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; }; Loading
arch/arm64/boot/dts/qcom/pm8195.dtsi +113 −1 Original line number Diff line number Diff line /* * Copyright (c) 2019, The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -29,10 +29,42 @@ compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_1_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_1_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading Loading @@ -127,6 +159,46 @@ #address-cells = <1>; #size-cells = <1>; pm8195_2_tz: qcom,temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_2_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_2_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading Loading @@ -180,6 +252,46 @@ #address-cells = <1>; #size-cells = <1>; pm8195_3_tz: qcom,temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400 0x100>; interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_RISING>; io-channels = <&pm8195_3_vadc ADC_DIE_TEMP>; io-channel-names = "thermal"; #thermal-sensor-cells = <0>; qcom,temperature-threshold-set = <1>; }; pm8195_3_vadc: vadc@3100 { compatible = "qcom,spmi-adc5"; reg = <0x3100 0x100>; #address-cells = <1>; #size-cells = <0>; interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>; interrupt-names = "eoc-int-en-set"; #io-channel-cells = <1>; io-channel-ranges; /* Channel node */ ref_gnd { reg = <ADC_REF_GND>; label = "ref_gnd"; qcom,pre-scaling = <1 1>; }; vref_1p25 { reg = <ADC_1P25VREF>; label = "vref_1p25"; qcom,pre-scaling = <1 1>; }; die_temp { reg = <ADC_DIE_TEMP>; label = "die_temp"; qcom,pre-scaling = <1 1>; }; }; qcom,power-on@800 { compatible = "qcom,qpnp-power-on"; reg = <0x800 0x100>; Loading
arch/arm64/boot/dts/qcom/sa8195-pmic.dtsi +80 −1 Original line number Diff line number Diff line /* Copyright (c) 2019, The Linux Foundation. All rights reserved. /* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -95,3 +95,82 @@ #include "sa8195p-regulator.dtsi" #include "pm8195.dtsi" &thermal_zones { pm8195_1_temp_alarm: pm8195_1_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_1_tz>; wake-capable-sensor; trips { pm8195_1_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_1_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; pm8195_2_temp_alarm: pm8195_2_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_2_tz>; wake-capable-sensor; trips { pm8195_2_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_2_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; pm8195_3_temp_alarm: pm8195_3_tz { polling-delay-passive = <100>; polling-delay = <0>; thermal-governor = "step_wise"; thermal-sensors = <&pm8195_3_tz>; wake-capable-sensor; trips { pm8195_3_trip0: trip0 { temperature = <95000>; hysteresis = <0>; type = "passive"; }; pm8195_3_trip1: trip1 { temperature = <115000>; hysteresis = <0>; type = "passive"; }; trip2 { temperature = <145000>; hysteresis = <0>; type = "passive"; }; }; }; };