# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evt1-overlay.dts"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 10 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evt1-overlay.dts" 2
# 15 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evt1-overlay.dts"
/dts-v1/;
/plugin/;

# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 1
# 15 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-products-common-overlay.dtsi" 1
# 17 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-products-common-overlay.dtsi"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 1
# 17 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/gpio/gpio.h" 1
# 18 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/input/input.h" 1
# 13 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/input/input.h"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/input/linux-event-codes.h" 1
# 14 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/input/input.h" 2
# 19 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/clock/qcom,gcc-kalama.h" 1
# 20 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 2

# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 1

# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/pinctrl/qcom,pmic-gpio.h" 1
# 3 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/iio/qcom,spmi-adc5-gen3-smb139x.h" 1
# 4 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2

# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550.dtsi" 1
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/interrupt-controller/irq.h" 1
# 2 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/spmi/spmi.h" 1
# 3 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550.dtsi" 2

&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 qcom,pm8550@1 {
  compatible = "qcom,spmi-pmic";
  reg = <0x1 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8550_tz: pm8550-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x1 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };

  pm8550_pwm_1: pwms@e800 {
   compatible = "qcom,pwm-lpg";
   reg = <0xe800>;
   reg-names = "lpg-base";
   #pwm-cells = <2>;
   qcom,num-lpg-channels = <3>;
   nvmem = <&pmk8550_sdam_21 &pmk8550_sdam_22>;
   nvmem-names = "lpg_chan_sdam", "lut_sdam";
   qcom,lut-sdam-base = <0x45>;
   qcom,lut-patterns = <0 10 20 30 40 50 60 70 80 90 100
          90 80 70 60 50 40 30 20 10 0>;
   qcom,tick-duration-us = <7800>;

   lpg@1 {
    qcom,lpg-chan-id = <1>;
    qcom,ramp-step-ms = <100>;
    qcom,ramp-low-index = <0>;
    qcom,ramp-high-index = <19>;
    qcom,ramp-pattern-repeat;
    qcom,lpg-sdam-base = <0x48>;
   };

   lpg@2 {
    qcom,lpg-chan-id = <2>;
    qcom,ramp-step-ms = <100>;
    qcom,ramp-low-index = <0>;
    qcom,ramp-high-index = <19>;
    qcom,ramp-pattern-repeat;
    qcom,lpg-sdam-base = <0x56>;
   };

   lpg@3 {
    qcom,lpg-chan-id = <3>;
    qcom,ramp-step-ms = <100>;
    qcom,ramp-low-index = <0>;
    qcom,ramp-high-index = <19>;
    qcom,ramp-pattern-repeat;
    qcom,lpg-sdam-base = <0x64>;
   };
  };

  pm8550_pwm_2: pwms@eb00 {
   compatible = "qcom,pwm-lpg";
   reg = <0xeb00>;
   reg-names = "lpg-base";
   #pwm-cells = <2>;
   qcom,num-lpg-channels = <1>;
  };

  pm8550_rgb: qcom,leds@ef00 {
   compatible = "qcom,tri-led";
   reg = <0xef00>;

   red {
    label = "red";
    pwms = <&pm8550_pwm_1 0 1000000>;
    led-sources = <0>;
    linux,default-trigger = "timer";
   };

   green {
    label = "green";
    pwms = <&pm8550_pwm_1 1 1000000>;
    led-sources = <1>;
    linux,default-trigger = "timer";
   };

   blue {
    label = "blue";
    pwms = <&pm8550_pwm_1 2 1000000>;
    led-sources = <2>;
    linux,default-trigger = "timer";
   };
  };

  pm8550_bcl: bcl@4700 {
   compatible = "qcom,bcl-v5";
   reg = <0x4700 0x100>;
   interrupts = <0x1 0x47 0x0 0>,
     <0x1 0x47 0x1 0>,
     <0x1 0x47 0x2 0>;
   interrupt-names = "bcl-lvl0",
      "bcl-lvl1",
      "bcl-lvl2";
   qcom,pmic7-threshold;
   #thermal-sensor-cells = <1>;
  };

  pm8550_flash: qcom,flash_led@ee00 {
   compatible = "qcom,pm8350c-flash-led";
   reg = <0xee00>;
   interrupts = <0x1 0xee 0x0 1>,
         <0x1 0xee 0x3 1>,
         <0x1 0xee 0x4 1>;
   interrupt-names = "led-fault-irq",
       "all-ramp-down-done-irq",
       "all-ramp-up-done-irq";
   qcom,thermal-derate-current = <200 500>;
   status = "disabled";

   pm8550_flash0: qcom,flash_0 {
    label = "flash";
    qcom,led-name = "led:flash_0";
    qcom,max-current-ma = <1500>;
    qcom,default-led-trigger = "flash0_trigger";
    qcom,id = <0>;
    qcom,duration-ms = <1280>;
    qcom,ires-ua = <12500>;
   };

   pm8550_flash1: qcom,flash_1 {
    label = "flash";
    qcom,led-name = "led:flash_1";
    qcom,max-current-ma = <1500>;
    qcom,default-led-trigger = "flash1_trigger";
    qcom,id = <1>;
    qcom,duration-ms = <1280>;
    qcom,ires-ua = <12500>;
   };

   pm8550_flash2: qcom,flash_2 {
    label = "flash";
    qcom,led-name = "led:flash_2";
    qcom,max-current-ma = <1500>;
    qcom,default-led-trigger = "flash2_trigger";
    qcom,id = <2>;
    qcom,duration-ms = <1280>;
    qcom,ires-ua = <12500>;
   };

   pm8550_flash3: qcom,flash_3 {
    label = "flash";
    qcom,led-name = "led:flash_3";
    qcom,max-current-ma = <1500>;
    qcom,default-led-trigger = "flash3_trigger";
    qcom,id = <3>;
    qcom,duration-ms = <1280>;
    qcom,ires-ua = <12500>;
   };

   pm8550_torch0: qcom,torch_0 {
    label = "torch";
    qcom,led-name = "led:torch_0";
    qcom,max-current-ma = <500>;
    qcom,default-led-trigger = "torch0_trigger";
    qcom,id = <0>;
    qcom,ires-ua = <12500>;
   };

   pm8550_torch1: qcom,torch_1 {
    label = "torch";
    qcom,led-name = "led:torch_1";
    qcom,max-current-ma = <500>;
    qcom,default-led-trigger = "torch1_trigger";
    qcom,id = <1>;
    qcom,ires-ua = <12500>;
   };

   pm8550_torch2: qcom,torch_2 {
    label = "torch";
    qcom,led-name = "led:torch_2";
    qcom,max-current-ma = <500>;
    qcom,default-led-trigger = "torch2_trigger";
    qcom,id = <2>;
    qcom,ires-ua = <12500>;
   };

   pm8550_torch3: qcom,torch_3 {
    label = "torch";
    qcom,led-name = "led:torch_3";
    qcom,max-current-ma = <500>;
    qcom,default-led-trigger = "torch3_trigger";
    qcom,id = <3>;
    qcom,ires-ua = <12500>;
   };

   pm8550_switch0: qcom,led_switch_0 {
    label = "switch";
    qcom,led-name = "led:switch_0";
    qcom,default-led-trigger = "switch0_trigger";
   };

   pm8550_switch1: qcom,led_switch_1 {
    label = "switch";
    qcom,led-name = "led:switch_1";
    qcom,default-led-trigger = "switch1_trigger";
   };

   pm8550_switch2: qcom,led_switch_2 {
    label = "switch";
    qcom,led-name = "led:switch_2";
    qcom,default-led-trigger = "switch2_trigger";
   };
  };
 };
};

&thermal_zones {
 pm8550_temp_alarm: pm8550_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550_tz>;

  trips {
   pm8550_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550-bcl-lvl0 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550_bcl 5>;

  trips {
   bcl_lvl0: bcl-lvl0 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };

 pm8550-bcl-lvl1 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550_bcl 6>;

  trips {
   bcl_lvl1: bcl-lvl1 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };

 pm8550-bcl-lvl2 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550_bcl 7>;

  trips {
   bcl_lvl2: bcl-lvl2 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };
};
# 6 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550b.dtsi" 1
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/input/qcom,hv-haptics.h" 1
# 2 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550b.dtsi" 2



&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 qcom,pm8550b@7 {
  compatible = "qcom,spmi-pmic";
  reg = <0x7 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8550b_tz: pm8550b-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x7 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550b_lite_tz: pm8550b-temp-alarm-lite@c00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xc00>;
   interrupts = <0x7 0xc 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550b_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550b-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };

  pm8550b_haptics: qcom,hv-haptics@f000 {
   compatible = "qcom,hv-haptics";
   reg = <0xf000>, <0xf100>, <0xf200>;
   interrupts = <0x7 0xf0 0x1 1>;
   interrupt-names = "fifo-empty";
   qcom,vmax-mv = <3600>;
   qcom,brake-mode = <1>;
   qcom,brake-pattern = /bits/ 8 <0xff 0x3f 0x1f>;
   qcom,lra-period-us = <6667>;
   qcom,drv-sig-shape = <1>;
   qcom,brake-sig-shape = <1>;
   status = "disabled";

   hap_swr_slave_reg: qcom,hap-swr-slave-reg {
    regulator-name = "hap-swr-slave-reg";
   };

   effect_0 {

    qcom,effect-id = <0>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-pattern-preload;
    qcom,wf-auto-res-disable;
   };

   effect_1 {

    qcom,effect-id = <1>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   effect_2 {

    qcom,effect-id = <2>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   effect_3 {

    qcom,effect-id = <3>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   effect_4 {

    qcom,effect-id = <4>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   effect_5 {

    qcom,effect-id = <5>;
    qcom,wf-vmax-mv = <3600>;
    qcom,wf-pattern-data = <0x01f 0 0>,
       <0x03f 0 0>,
       <0x05f 0 0>,
       <0x07f 0 0>,
       <0x17f 0 0>,
       <0x15f 0 0>,
       <0x13f 0 0>,
       <0x11f 0 0>;
    qcom,wf-pattern-period-us = <6667>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_0 {

    qcom,primitive-id = <0>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0 0 0>,
       <0 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_1 {

    qcom,primitive-id = <1>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_2 {

    qcom,primitive-id = <2>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_3 {

    qcom,primitive-id = <3>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_4 {

    qcom,primitive-id = <4>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_5 {

    qcom,primitive-id = <5>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_6 {

    qcom,primitive-id = <6>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_7 {

    qcom,primitive-id = <7>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };

   primitive_8 {

    qcom,primitive-id = <8>;
    qcom,wf-vmax-mv = <4800>;
    qcom,wf-pattern-data = <0x0ff 0 0>,
       <0x07f 0 0>;
    qcom,wf-pattern-period-us = <4167>;
    qcom,wf-brake-pattern = /bits/ 8 <0x0 0x0 0x0>;
    qcom,wf-auto-res-disable;
   };
  };

  pm8550b_bcl: bcl@4700 {
   compatible = "qcom,bcl-v5";
   reg = <0x4700 0x100>;
   interrupts = <0x7 0x47 0x0 0>,
     <0x7 0x47 0x1 0>,
     <0x7 0x47 0x2 0>;
   interrupt-names = "bcl-lvl0",
      "bcl-lvl1",
      "bcl-lvl2";
   qcom,pmic7-threshold;
   #thermal-sensor-cells = <1>;
  };

  bcl_soc:bcl-soc {
   compatible = "qcom,msm-bcl-soc";
   #thermal-sensor-cells = <0>;
  };

  pm8550b_eusb2_repeater: eusb2-repeater@fd00 {
   compatible = "qcom,pmic-eusb2-repeater";
   reg = <0xfd00>;
  };
 };
};

&thermal_zones {
 pm8550b_temp_alarm: pm8550b_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550b_tz>;

  trips {
   pm8550b_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550b_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550b_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550b_lite_temp_alarm: pm8550b_lite_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550b_lite_tz>;

  trips {
   trip0 {
    temperature = <125000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip1 {
    temperature = <135000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550b-ibat-lvl0 {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pm8550b_bcl 0>;

  trips {
   ibat_lvl0:ibat-lvl0 {
    temperature = <10000>;
    hysteresis = <200>;
    type = "passive";
   };
  };
 };

 pm8550b-ibat-lvl1 {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pm8550b_bcl 1>;

  trips {
   ibat_lvl1:ibat-lvl1 {
    temperature = <11500>;
    hysteresis = <200>;
    type = "passive";
   };
  };
 };

 pm8550b-bcl-lvl0 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-sensors = <&pm8550b_bcl 5>;

  trips {
   thermal-engine-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   thermal-hal-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   b_bcl_lvl0: b-bcl-lvl0 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };

 pm8550b-bcl-lvl1 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-sensors = <&pm8550b_bcl 6>;

  trips {
   thermal-engine-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   thermal-hal-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   b_bcl_lvl1: b-bcl-lvl1 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };

 pm8550b-bcl-lvl2 {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-sensors = <&pm8550b_bcl 7>;

  trips {
   thermal-engine-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   thermal-hal-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   b_bcl_lvl2: b-bcl-lvl2 {
    temperature = <1>;
    hysteresis = <1>;
    type = "passive";
   };
  };
 };

 socd {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-sensors = <&bcl_soc>;

  trips {
   thermal-engine-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   thermal-hal-trip {
    temperature = <100>;
    hysteresis = <0>;
    type = "passive";
   };

   socd_trip:socd-trip {
    temperature = <90>;
    hysteresis = <0>;
    type = "passive";
   };
  };
 };
};
# 7 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550ve.dtsi" 1



&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 qcom,pm8550ve_f@5 {
  compatible = "qcom,spmi-pmic";
  reg = <0x5 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8550ve_f_tz: pm8550ve-f-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x5 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550ve_f_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550ve-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };
};

&thermal_zones {
 pm8550ve_f_temp_alarm: pm8550ve_f_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550ve_f_tz>;

  trips {
   pm8550ve_f_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550ve_f_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550ve_f_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };
};
# 8 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pm8550vs.dtsi" 1



&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 pm8550vs_c: qcom,pm8550vs@2 {
  compatible = "qcom,spmi-pmic";
  reg = <0x2 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8550vs_c_tz: pm8550vs-c-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x2 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550vs_c_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550vs-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };

 pm8550vs_d: qcom,pm8550vs@3 {
  compatible = "qcom,spmi-pmic";
  reg = <0x3 0>;
  #address-cells = <1>;
  #size-cells = <0>;
  status = "disabled";

  pm8550vs_d_tz: pm8550vs-d-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x3 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550vs_d_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550vs-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };

 pm8550vs_e: qcom,pm8550vs@4 {
  compatible = "qcom,spmi-pmic";
  reg = <0x4 0>;
  #address-cells = <1>;
  #size-cells = <0>;
  status = "disabled";

  pm8550vs_e_tz: pm8550vs-e-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x4 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550vs_e_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550vs-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };

 pm8550vs_g: qcom,pm8550vs@6 {
  compatible = "qcom,spmi-pmic";
  reg = <0x6 0>;
  #address-cells = <1>;
  #size-cells = <0>;
  status = "disabled";

  pm8550vs_g_tz: pm8550vs-g-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0x6 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pm8550vs_g_gpios: pinctrl@8800 {
   compatible = "qcom,pm8550vs-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };
};

&thermal_zones {
 pm8550vs_c_temp_alarm: pm8550vs_c_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550vs_c_tz>;

  trips {
   pm8550vs_c_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_c_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_c_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550vs_d_temp_alarm: pm8550vs_d_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550vs_d_tz>;
  status = "disabled";

  trips {
   pm8550vs_d_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_d_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_d_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550vs_e_temp_alarm: pm8550vs_e_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550vs_e_tz>;
  status = "disabled";

  trips {
   pm8550vs_e_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_e_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_e_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8550vs_g_temp_alarm: pm8550vs_g_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8550vs_g_tz>;
  status = "disabled";

  trips {
   pm8550vs_g_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_g_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pm8550vs_g_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };
};
# 9 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmk8550.dtsi" 1



# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/iio/qcom,spmi-adc5-gen3-pmk8550.h" 1
# 5 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmk8550.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550.h" 1
# 6 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmk8550.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550b.h" 1
# 7 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmk8550.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/iio/qcom,spmi-adc5-gen3-pm8550vx.h" 1
# 8 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmk8550.dtsi" 2

&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 qcom,pmk8550@0 {
  compatible = "qcom,spmi-pmic";
  reg = <0x0 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pon_hlos@1300 {
   compatible = "qcom,pm8998-pon";
   reg = <0x1300>, <0x800>;
   reg-names = "pon_hlos", "pon_pbs";

   pwrkey {
    compatible = "qcom,pmk8350-pwrkey";
    interrupts = <0x0 0x13 0x7 (2 | 1)>;
    linux,code = <116>;
   };

   resin {
    compatible = "qcom,pmk8350-resin";
    interrupts = <0x0 0x13 0x6 (2 | 1)>;
    linux,code = <114>;
   };
  };

  pmk8550_sdam_1: sdam@7000 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7000>;
   #address-cells = <1>;
   #size-cells = <1>;

   smb1510_present: smb1510_present@5d {
    reg = <0x5d 0x1>;
    bits = <5 5>;
   };

   ocp_log: ocp-log@76 {
    reg = <0x76 0x6>;
   };
  };

  pmk8550_sdam_2: sdam@7100 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7100>;
   #address-cells = <1>;
   #size-cells = <1>;

   restart_reason: restart@48 {
    reg = <0x48 0x1>;
    bits = <1 7>;
   };
  };

  pmk8550_sdam_5: sdam@7400 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7400>;
  };

  pmk8550_sdam_6: sdam@7500 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7500>;
  };

  pmk8550_sdam_13: sdam@7c00 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7c00>;
  };

  pmk8550_sdam_14: sdam@7d00 {
   compatible = "qcom,spmi-sdam";
   reg = <0x7d00>;
  };

  pmk8550_sdam_21: sdam@8400 {
   compatible = "qcom,spmi-sdam";
   reg = <0x8400>;
  };

  pmk8550_sdam_22: sdam@8500 {
   compatible = "qcom,spmi-sdam";
   reg = <0x8500>;
  };

  pmk8550_sdam_41: sdam@9800 {
   compatible = "qcom,spmi-sdam";
   reg = <0x9800>;
  };

  pmk8550_sdam_43: sdam@9a00 {
   compatible = "qcom,spmi-sdam";
   reg = <0x9a00>;
   #address-cells = <1>;
   #size-cells = <1>;

   ibb_spur_sqm_timer: sqm-timer@b8 {
    reg = <0xb8 0x2>;
   };
  };

  pmk8550_sdam_46: sdam@9d00 {
   compatible = "qcom,spmi-sdam";
   reg = <0x9d00>;
  };

  pmk8550_gpios: pinctrl@b800 {
   compatible = "qcom,pmk8550-gpio";
   reg = <0xb800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };

  pmk8550_rtc: rtc@6100 {
   compatible = "qcom,pmk8350-rtc";
   reg = <0x6100>, <0x6200>;
   reg-names = "rtc", "alarm";
   interrupts = <0x0 0x62 0x1 1>;
  };

  pmk8550_vadc: vadc@9000 {
   compatible = "qcom,spmi-adc5-gen3";
   reg = <0x9000>, <0x9100>;
   #address-cells = <1>;
   #size-cells = <0>;
   interrupt-names = "adc-sdam0" , "adc-sdam1";
   interrupts = <0x0 0x90 0x1 1>,
         <0x0 0x91 0x1 1>;
   #thermal-sensor-cells = <1>;
   #io-channel-cells = <1>;
   io-channel-ranges;


   pmk8550_offset_ref {
    reg = <(0 << 8 | 0x00)>;
    label = "pmk8550_offset_ref";
    qcom,pre-scaling = <1 1>;
   };

   pmk8550_vref_1p25 {
    reg = <(0 << 8 | 0x01)>;
    label = "pmk8550_vref_1p25";
    qcom,pre-scaling = <1 1>;
   };

   pmk8550_die_temp {
    reg = <(0 << 8 | 0x03)>;
    label = "pmk8550_die_temp";
    qcom,pre-scaling = <1 1>;
   };

   pmk8550_xo_therm {
    reg = <(0 << 8 | 0x44)>;
    label = "pmk8550_xo_therm";
    qcom,ratiometric;
    qcom,hw-settle-time = <200>;
    qcom,pre-scaling = <1 1>;
    qcom,adc-tm-type = <1>;
   };


   pm8550_offset_ref {
    reg = <(1 << 8 | 0x00)>;
    label = "pm8550_offset_ref";
    qcom,pre-scaling = <1 1>;
   };

   pm8550_vref_1p25 {
    reg = <(1 << 8 | 0x01)>;
    label = "pm8550_vref_1p25";
    qcom,pre-scaling = <1 1>;
   };

   pm8550_die_temp {
    reg = <(1 << 8 | 0x03)>;
    label = "pm8550_die_temp";
    qcom,pre-scaling = <1 1>;
   };

   pm8550_vph_pwr {
    reg = <(1 << 8 | 0x8e)>;
    label = "pm8550_vph_pwr";
    qcom,pre-scaling = <1 3>;
   };


   pm8550b_offset_ref {
    reg = <(7 << 8 | 0x00)>;
    label = "pm8550b_offset_ref";
    qcom,pre-scaling = <1 1>;
   };

   pm8550b_vref_1p25 {
    reg = <(7 << 8 | 0x01)>;
    label = "pm8550b_vref_1p25";
    qcom,pre-scaling = <1 1>;
   };

   pm8550b_die_temp {
    reg = <(7 << 8 | 0x03)>;
    label = "pm8550b_die_temp";
    qcom,pre-scaling = <1 1>;
   };

   pm8550b_lite_die_temp {
    reg = <(7 << 8 | 0x18)>;
    label = "pm8550b_lite_die_temp";
    qcom,pre-scaling = <1 1>;
   };

   pm8550b_vph_pwr {
    reg = <(7 << 8 | 0x8e)>;
    label = "pm8550b_vph_pwr";
    qcom,pre-scaling = <1 3>;
   };

   pm8550b_vbat_sns_qbg {
    reg = <(7 << 8 | 0x8f)>;
    label = "pm8550b_vbat_sns_qbg";
    qcom,pre-scaling = <1 3>;
   };


   pm8550vs_c_die_temp {
    reg = <(2 << 8 | 0x03)>;
    label = "pm8550vs_c_die_temp";
    qcom,pre-scaling = <1 1>;
   };


   pm8550vs_d_die_temp {
    reg = <(3 << 8 | 0x03)>;
    label = "pm8550vs_d_die_temp";
    qcom,pre-scaling = <1 1>;
   };


   pm8550vs_e_die_temp {
    reg = <(4 << 8 | 0x03)>;
    label = "pm8550vs_e_die_temp";
    qcom,pre-scaling = <1 1>;
   };


   pm8550vs_g_die_temp {
    reg = <(6 << 8 | 0x03)>;
    label = "pm8550vs_g_die_temp";
    qcom,pre-scaling = <1 1>;
   };


   pm8550ve_die_temp {
    reg = <(5 << 8 | 0x03)>;
    label = "pm8550ve_die_temp";
    qcom,pre-scaling = <1 1>;
   };
  };
 };
};
# 10 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/pmr735d.dtsi" 1



&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 pmr735d_k:
 qcom,pmr735d@a {
  compatible = "qcom,spmi-pmic";
  reg = <0xa 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pmr735d_k_tz: pmr735d-k-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0xa 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pmr735d_k_gpios: pinctrl@8800 {
   compatible = "qcom,pmr735d-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };

 pmr735d_l:
 qcom,pmr735d@b {
  compatible = "qcom,spmi-pmic";
  reg = <0xb 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pmr735d_l_tz: pmr735d-l-temp-alarm@a00 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0xa00>;
   interrupts = <0xb 0xa 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };

  pmr735d_l_gpios: pinctrl@8800 {
   compatible = "qcom,pmr735d-gpio";
   reg = <0x8800>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
  };
 };
};

&thermal_zones {
 pmr735d_k_temp_alarm: pmr735d_k_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pmr735d_k_tz>;

  trips {
   pmr735d_k_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pmr735d_k_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pmr735d_k_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pmr735d_l_temp_alarm: pmr735d_l_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pmr735d_l_tz>;

  trips {
   pmr735d_l_trip0: trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   pmr735d_l_trip1: trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   pmr735d_l_trip2: trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };
};
# 11 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-pmic-overlay.dtsi" 2

&pm8550vs_d {
 status = "ok";
};

&pm8550vs_e {
 status = "ok";
};

&pm8550vs_g {
 status = "ok";
};

&pm8550vs_d_temp_alarm {
 status = "ok";
};

&pm8550vs_e_temp_alarm {
 status = "ok";
};

&pm8550vs_g_temp_alarm {
 status = "ok";
};

&spmi_bus {
 #address-cells = <2>;
 #size-cells = <0>;
 interrupt-controller;
 #interrupt-cells = <4>;

 pm8010_m: qcom,pm8010@c {
  compatible = "qcom,spmi-pmic";
  reg = <0xc 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8010m_tz: pm8010-m-temp-alarm@2400 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0x2400>;
   interrupts = <0xc 0x24 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };
 };

 pm8010_n: qcom,pm8010@d {
  compatible = "qcom,spmi-pmic";
  reg = <0xd 0>;
  #address-cells = <1>;
  #size-cells = <0>;

  pm8010n_tz: pm8010-n-temp-alarm@2400 {
   compatible = "qcom,spmi-temp-alarm";
   reg = <0x2400>;
   interrupts = <0xd 0x24 0x0 (2 | 1)>;
   #thermal-sensor-cells = <0>;
  };
 };
};

&pm8550_gpios {
 key_vol_up {
  key_vol_up_default: key_vol_up_default {
   pins = "gpio6";
   function = "normal";
   input-enable;
   bias-pull-up;
   power-source = <1>;
  };
 };

 sd_card_det {
  sd_card_det_default: sd_card_det_default {
   pins = "gpio12";
   function = "normal";
   input-enable;
   output-disable;
   bias-pull-up;
   power-source = <1>;
  };
 };
};

&pmk8550_gpios {
 pinctrl-0 = <&alt_sleep_clk_default>;
 pinctrl-names = "default";

 alt_sleep_clk {
  alt_sleep_clk_default: alt_sleep_clk_default {
   pins = "gpio3";
   function = "func1";
   input-disable;
   output-enable;
   bias-disable;
   power-source = <0>;
  };
 };
};

&pm8550vs_d_gpios {
 eusb2_repeater_reset {
  eusb2_repeater_reset_default: eusb2_repeater_reset_default {
   pins = "gpio4";
   function = "normal";
   input-enable;
   output-enable;
   bias-disable;
   power-source = <1>;
   qcom,drive-strength = <2>;
  };
 };
};

&pm8550_tz {
 io-channels = <&pmk8550_vadc (1 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550b_tz {
 io-channels = <&pmk8550_vadc (7 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550b_lite_tz {
 io-channels = <&pmk8550_vadc (7 << 8 | 0x18)>;
 io-channel-names = "thermal";
};

&pm8550vs_c_tz {
 io-channels = <&pmk8550_vadc (2 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550vs_d_tz {
 io-channels = <&pmk8550_vadc (3 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550vs_e_tz {
 io-channels = <&pmk8550_vadc (4 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550vs_g_tz {
 io-channels = <&pmk8550_vadc (6 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pm8550ve_f_tz {
 io-channels = <&pmk8550_vadc (5 << 8 | 0x03)>;
 io-channel-names = "thermal";
};

&pmk8550_vadc {
 pm8550_msm_therm {
  reg = <(1 << 8 | 0x44)>;
  label = "pm8550_msm_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550_cam_flash_therm {
  reg = <(1 << 8 | 0x45)>;
  label = "pm8550_cam_flash_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550_wlan_therm {
  reg = <(1 << 8 | 0x46)>;
  label = "pm8550_wlan_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550_pa_therm_1 {
  reg = <(1 << 8 | 0x47)>;
  label = "pm8550_pa_therm_1";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550_rear_tof_therm {
  reg = <(1 << 8 | 0x48)>;
  label = "pm8550_rear_tof_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_usb_therm {
  reg = <(7 << 8 | 0x47)>;
  label = "pm8550b_usb_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_wls_therm {
  reg = <(7 << 8 | 0x49)>;
  label = "pm8550b_wls_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_chg_temp {
  reg = <(7 << 8 | 0x10)>;
  label = "pm8550b_chg_temp";
 };

 pm8550b_iin_fb {
  reg = <(7 << 8 | 0x17)>;
  label = "pm8550b_iin_fb";
 };

 pm8550b_ichg_fb {
  reg = <(7 << 8 | 0xa1)>;
  label = "pm8550b_ichg_fb";
 };

 smb139x_1_smb_temp {
  reg = <(0x09 << 8 | 0x06)>;
  label = "smb139x_1_smb_temp";
 };

 smb139x_1_iin_smb {
  reg = <(0x09 << 8 | 0x19)>;
  label = "smb139x_1_iin_smb";
 };

 smb139x_1_ichg_smb {
  reg = <(0x09 << 8 | 0x1b)>;
  label = "smb139x_1_ichg_smb";
 };

 smb139x_2_smb_temp {
  reg = <(0x0b << 8 | 0x06)>;
  label = "smb139x_2_smb_temp";
 };

 smb139x_2_iin_smb {
  reg = <(0x0b << 8 | 0x19)>;
  label = "smb139x_2_iin_smb";
 };

 smb139x_2_ichg_smb {
  reg = <(0x0b << 8 | 0x1b)>;
  label = "smb139x_2_ichg_smb";
 };
};

&thermal_zones {
 pm8010m_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8010m_tz>;

  trips {
   trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 pm8010n_tz {
  polling-delay-passive = <100>;
  polling-delay = <0>;
  thermal-governor = "step_wise";
  thermal-sensors = <&pm8010n_tz>;

  trips {
   trip0 {
    temperature = <95000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip1 {
    temperature = <115000>;
    hysteresis = <0>;
    type = "passive";
   };

   trip2 {
    temperature = <145000>;
    hysteresis = <0>;
    type = "critical";
   };
  };
 };

 skin-msm-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x44)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 cam-flash-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x45)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 wlan-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x46)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 pa-therm-1 {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x47)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 rear-tof-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x48)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 usb-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x47)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 wls-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x49)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 xo-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (0 << 8 | 0x44)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   xo_config0: xo-config0 {
    temperature = <78000>;
    hysteresis = <8000>;
    type = "passive";
   };

   xo_config1: xo-config1 {
    temperature = <80000>;
    hysteresis = <10000>;
    type = "passive";
   };

   display_test_config1: display-test-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   display_test_config2: display-test-config2 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   display_test_config3: display-test-config3 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   display_test_config4: display-test-config4 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };
};

&pm8550b_eusb2_repeater {
 vdd18-supply = <&pm_humu_l15>;
 vdd3-supply = <&pm_humu_l5>;
};

&pm8550b_haptics {
 nvmem-names = "hap_cfg_sdam";
 nvmem = <&pmk8550_sdam_46>;
};

&soc {
 reboot_reason {
  compatible = "qcom,reboot-reason";
  nvmem-cells = <&restart_reason>;
  nvmem-cell-names = "restart_reason";
 };

 DBO3: regulator-dbo3 {
  compatible = "qti-regulator-fixed";
  regulator-name = "dbo3";
  regulator-min-microvolt = <3600000>;
  regulator-max-microvolt = <3600000>;
  gpio = <&pm8550_gpios 9 0>;
  regulator-enable-ramp-delay = <1500>;
  enable-active-high;
 };

 pmic-pon-log {
  compatible = "qcom,pmic-pon-log";
  nvmem = <&pmk8550_sdam_5>, <&pmk8550_sdam_6>;
  nvmem-names = "pon_log0", "pon_log1";
 };

 regulator_ocp_notifier: regulator-ocp-notifier {
  compatible = "qcom,regulator-ocp-notifier";
  interrupt-parent = <&spmi_bus>;
  interrupts = <0x0 0x71 0x1 1>;
  nvmem-cells = <&ocp_log>;
  nvmem-cell-names = "ocp_log";
 };
};
# 22 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-thermal-overlay.dtsi" 1
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/thermal/thermal_qti.h" 1






# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/thermal/thermal.h" 1
# 8 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/thermal/thermal_qti.h" 2
# 2 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-thermal-overlay.dtsi" 2

&thermal_zones {
 socd {
  cooling-maps {
   socd_apc1 {
    trip = <&socd_trip>;
    cooling-device = <&APC1_pause 1 1>;
   };

   socd_cdsp1 {
    trip = <&socd_trip>;
    cooling-device = <&cdsp_sw 4 4>;
   };

   socd_gpu0 {
    trip = <&socd_trip>;
    cooling-device = <&msm_gpu 4 4>;
   };
  };
 };

 pm8550b-bcl-lvl0 {
  cooling-maps {
   lbat_0_mdm_lte {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&modem_lte_dsc 8 8>;
   };

   lbat_0_nr_scg {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&modem_nr_scg_dsc 3 3>;
   };

   lbat_0_nr {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&modem_nr_dsc 6 6>;
   };

   lbat_cpu_3_4_5 {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&cpu_3_4_5_pause 1 1>;
   };

   lbat_cdsp0 {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&cdsp_sw 2 2>;
   };

   lbat_gpu0 {
    trip = <&b_bcl_lvl0>;
    cooling-device = <&msm_gpu 2 2>;
   };
  };
 };

 pm8550b-bcl-lvl1 {
  cooling-maps {
   lbat_1_mdm_lte {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&modem_lte_dsc 10 10>;
   };

   lbat_1_nr_scg {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&modem_nr_scg_dsc 10 10>;
   };

   lbat_1_nr {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&modem_nr_dsc 9 9>;
   };

   lbat_cpu_6_7 {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&cpu_6_7_pause 1 1>;
   };

   lbat_cdsp1 {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&cdsp_sw 4 4>;
   };

   lbat_gpu1 {
    trip = <&b_bcl_lvl1>;
    cooling-device = <&msm_gpu 4 4>;
   };
  };
 };

 pm8550b-bcl-lvl2 {
  cooling-maps {
   lbat_cdsp2 {
    trip = <&b_bcl_lvl2>;
    cooling-device = <&cdsp_sw 5 (~0)>;
   };

   lbat_gpu2 {
    trip = <&b_bcl_lvl2>;
    cooling-device = <&msm_gpu 5 (~0)>;
   };
  };
 };

 pm8550-bcl-lvl0 {
  cooling-maps {
   vph_lte0 {
    trip = <&bcl_lvl0>;
    cooling-device = <&modem_lte_dsc 8 8>;
   };

   vph_nr0_scg {
    trip = <&bcl_lvl0>;
    cooling-device = <&modem_nr_scg_dsc 3 3>;
   };

   vph_nr0 {
    trip = <&bcl_lvl0>;
    cooling-device = <&modem_nr_dsc 6 6>;
   };

   vph_cpu_3_4_5 {
    trip = <&bcl_lvl0>;
    cooling-device = <&cpu_3_4_5_pause 1 1>;
   };

   vph_cdsp0 {
    trip = <&bcl_lvl0>;
    cooling-device = <&cdsp_sw 2 2>;
   };

   vph_gpu0 {
    trip = <&bcl_lvl0>;
    cooling-device = <&msm_gpu 2 2>;
   };
  };
 };

 pm8550-bcl-lvl1 {
  cooling-maps {
   vph_lte1 {
    trip = <&bcl_lvl1>;
    cooling-device = <&modem_lte_dsc 10 10>;
   };

   vph_nr1_scg {
    trip = <&bcl_lvl1>;
    cooling-device = <&modem_nr_scg_dsc 10 10>;
   };

   vph_nr1 {
    trip = <&bcl_lvl1>;
    cooling-device = <&modem_nr_dsc 9 9>;
   };

   vph_cpu_6_7 {
    trip = <&bcl_lvl1>;
    cooling-device = <&cpu_6_7_pause 1 1>;
   };

   vph_cdsp1 {
    trip = <&bcl_lvl1>;
    cooling-device = <&cdsp_sw 4 4>;
   };

   vph_gpu1 {
    trip = <&bcl_lvl1>;
    cooling-device = <&msm_gpu 4 4>;
   };
  };
 };

 pm8550-bcl-lvl2 {
  cooling-maps {
   vph_cdsp2 {
    trip = <&bcl_lvl2>;
    cooling-device = <&cdsp_sw 5 (~0)>;
   };

   vph_gpu2 {
    trip = <&bcl_lvl2>;
    cooling-device = <&msm_gpu 5 (~0)>;
   };
  };
 };

 pm8550vs_c_tz {
  cooling-maps {
   pm8550vs_c_apc1 {
    trip = <&pm8550vs_c_trip0>;
    cooling-device = <&APC1_pause 1 1>;
   };
  };
 };

 pm8550vs_d_tz {
  cooling-maps {
   pm8550vs_d_gpu {
    trip = <&pm8550vs_d_trip0>;
    cooling-device = <&msm_gpu 5 (~0)>;
   };
  };
 };

 pm8550ve_f_tz {
  cooling-maps {
   pm8550vs_e_nsp {
    trip = <&pm8550ve_f_trip0>;
    cooling-device = <&cdsp_sw 5 (~0)>;
   };

   pm8550vs_e_lte {
    trip = <&pm8550ve_f_trip0>;
    cooling-device = <&modem_lte_dsc 255 255>;
   };

   pm8550vs_e_nr {
    trip = <&pm8550ve_f_trip0>;
    cooling-device = <&modem_nr_scg_dsc 255 255>;
   };
  };
 };

 xo-therm {
  cooling-maps {
   apc1_cdev {
    trip = <&xo_config0>;
    cooling-device = <&APC1_pause 1 1>;
   };

   cdsp_cdev {
    trip = <&xo_config0>;
    cooling-device = <&cdsp_sw 5 (~0)>;
   };

   gpu_cdev {
    trip = <&xo_config0>;
    cooling-device = <&msm_gpu 5 (~0)>;
   };

   cpu3_hot_cdev {
    trip = <&xo_config1>;
    cooling-device = <&cpu3_hotplug 1 1>;
   };

   cpu4_hot_cdev {
    trip = <&xo_config1>;
    cooling-device = <&cpu4_hotplug 1 1>;
   };

   cpu5_hot_cdev {
    trip = <&xo_config1>;
    cooling-device = <&cpu5_hotplug 1 1>;
   };

   cpu6_hot_cdev {
    trip = <&xo_config1>;
    cooling-device = <&cpu6_hotplug 1 1>;
   };

   cpu7_hot_cdev {
    trip = <&xo_config1>;
    cooling-device = <&cpu7_hotplug 1 1>;
   };

   lte_cdev {
    trip = <&xo_config1>;
    cooling-device = <&modem_lte_dsc 255 255>;
   };

   nr_cdev {
    trip = <&xo_config1>;
    cooling-device = <&modem_nr_scg_dsc 255 255>;
   };

   display_cdev1 {
    trip = <&display_test_config1>;
    cooling-device = <&display_fps 1 1>;
   };

   display_cdev2 {
    trip = <&display_test_config2>;
    cooling-device = <&display_fps 2 2>;
   };

   display_cdev3 {
    trip = <&display_test_config3>;
    cooling-device = <&display_fps 3 3>;
   };

   display_cdev4 {
    trip = <&display_test_config4>;
    cooling-device = <&display_fps 4 4>;
   };
  };
 };
};
# 23 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay-base.dtsi" 2

&sdhc_2 {
 status = "disabled";
 vdd-supply = <&pm_humu_l9>;
 qcom,vdd-voltage-level = <2950000 2960000>;
 qcom,vdd-current-level = <0 800000>;

 vdd-io-supply = <&pm_humu_l8>;
 qcom,vdd-io-voltage-level = <1800000 2960000>;
 qcom,vdd-io-current-level = <0 5600>;

 pinctrl-names = "default", "sleep";
 pinctrl-0 = <&sdc2_on>, <&sd_card_det_default>;
 pinctrl-1 = <&sdc2_off>, <&sd_card_det_default>;

 cd-gpios = <&pm8550_gpios 12 1>;

 resets = <&gcc 22>;
 reset-names = "core_reset";

 qcom,iommu-dma = "bypass";
 qcom,uses_level_shifter;
};

&soc {
 gpio_keys {
  compatible = "gpio-keys";
  label = "gpio-keys";

  pinctrl-names = "default";
  pinctrl-0 = <&key_vol_up_default>;

  vol_up {
   label = "volume_up";
   gpios = <&pm8550_gpios 6 1>;
   linux,input-type = <1>;
   linux,code = <115>;
   gpio-key,wakeup;
   debounce-interval = <15>;
   linux,can-disable;
  };
 };

 qcom,pmic_glink_log {
  qcom,charger_ulog_glink {
   status = "disabled";
  };
  bm_adsp_ulog: qcom,bm_adsp_ulog {
   compatible = "qcom,bm-adsp-ulog";
   categories = <0xFFBFFFFF>;
   level = <4>;
   init-log-enabled;
  };
 };
};

&pm8550b_haptics {
 status = "okay";
};

&ufsphy_mem {
 compatible = "qcom,ufs-phy-qmp-v4-kalama";


 vdda-phy-supply = <&pm_v6d_l1>;
 vdda-phy-max-microamp = <188000>;


 vdda-pll-supply = <&pm_v6e_l3>;
 vdda-pll-max-microamp = <18300>;


 vdd-phy-gdsc-supply = <&gcc_ufs_mem_phy_gdsc>;


 vdda-qref-supply = <&pm_v6e_l1>;
 vdda-qref-max-microamp = <30000>;

 status = "ok";
};

&ufshc_mem {
 vdd-hba-supply = <&gcc_ufs_phy_gdsc>;

 vcc-supply = <&pm_humu_l17>;
 vcc-max-microamp = <1300000>;

 vccq-supply = <&pm_v6g_l1>;
 vccq-max-microamp = <1200000>;


 qcom,vddp-ref-clk-supply = <&pm_v6g_l3>;
 qcom,vddp-ref-clk-max-microamp = <100>;

 qcom,vccq-parent-supply = <&pm_v6g_s4>;
 qcom,vccq-parent-max-microamp = <210000>;

 reset-gpios = <&tlmm 210 1>;
 resets = <&gcc 24>;
 reset-names = "rst";

 status = "ok";
};

&pm8550_switch0 {
 qcom,led-mask = <9>;
 qcom,symmetry-en;
};

&pm8550_switch1 {
 qcom,led-mask = <6>;
 qcom,symmetry-en;
};

&pm8550_switch2 {
 qcom,led-mask = <15>;
 qcom,symmetry-en;
};

&pm8550_flash {
 status = "ok";
};

&pm8550_rgb {
 red {
  label = "charging";
 };

 green {
  status = "disabled";
 };

 blue {
  status = "disabled";
 };
};

&eusb2_phy0 {
 dummy-supply = <&pm8550b_eusb2_repeater>;
 usb-repeater = <&pm8550b_eusb2_repeater>;
};

&usb0 {
 usb-role-switch;
 port {
  usb_port0: endpoint {
   remote-endpoint = <&usb_port0_connector>;
  };
 };

 dwc3@a600000 {
  snps,usb2-gadget-lpm-disable;
 };
};

&ucsi {
 connector {
  port {
   usb_port0_connector: endpoint {
    remote-endpoint = <&usb_port0>;
   };
  };
 };
};

&battery_charger {
 qcom,thermal-mitigation = <3000000 1500000 1000000 500000>;
};
# 18 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-products-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay.dtsi" 1
# 13 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay.dtsi"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/carrier-channel-ids.dtsi" 1
# 15 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/carrier-channel-ids.dtsi"
/ {
 channel-id-map =
  "acg",
  "amxbr",
  "amxpr",
  "amxmx",
  "amxcl",
  "amxar",
  "amxla",
  "amxpe",
  "amxco",
  "tefbr",
  "tefmx",
  "tefar",
  "tefcl",
  "tefpe",
  "tefco",
  "perar",
  "entcl",
  "iusmx",
  "niibr",
  "niicl",
  "niimx",
  "niipe",
  "oibr",
  "timbr",
  "tigco",
  "retbr",
  "retar",
  "retla",
  "retcl",
  "tefla",
  "retla1st",
  "tefunl",
  "tigca",
  "tigca1st",
  "retmx",
  "attmx",
  "womcl",
  "avaco",
  "retpe",
  "openla",
  "opencl",
  "openmx",
  "altmx",
  "openpe",
  "openpub",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "reteu",
  "retgb",
  "retfr",
  "retes",
  "retie",
  "retde",
  "vfgb",
  "vfde",
  "vffr",
  "o2gb",
  "o2de",
  "orafr",
  "bouyfr",
  "eegb",
  "tescogb",
  "yoigo",
  "oraes",
  "retapac",
  "retmea",
  "vfit",
  "vfes",
  "vfeu",
  "3gb",
  "tescoie",
  "altfr",
  "3ie",
  "altpt",
  "timit",
  "retma",
  "windit",
  "vfhu",
  "vfro",
  "telhu",
  "playpl",
  "oraeu",
  "dteu",
  "teleu",
  "pluspl",
  "dtpl",
  "tefes",
  "altice",
  "vipeu",
  "veoneu",
  "openeu",
  "reteu2",
  "demogb",
  "retdemo",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "retca",
  "bwaca",
  "tkpca",
  "vzw",
  "att",
  "tmo",
  "sprint",
  "repw",
  "attpre",
  "cricket",
  "cc",
  "usc",
  "tracfone",
  "retus",
  "metropcs",
  "rcica",
  "wndca",
  "dmc",
  "bby",
  "amz",
  "acg",
  "lra",
  "comcast",
  "fi",
  "vzwpre",
  "boost",
  "spectrum",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "retin",
  "retcn",
  "telstra",
  "vfau",
  "amzin",
  "jioin",
  "airin",
  "retid",
  "cmcc",
  "ctcn",
  "cucn",
  "retmm",
  "gt4gtw",
  "retth",
  "retru",
  "trueth",
  "smarthk",
  "mobilpk",
  "retsea",
  "retjp",
  "softbank",
  "optus",
  "retkr",
  "retjio",
  "ymobile",
  "lguplus",
  "docomo",
  "retanz",
  "cbncn",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined",
  "undefined";
};
# 14 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-overlay.dtsi" 2

&utags {
 compatible = "mmi,utags";
 mmi,main-utags = "/dev/block/bootdevice/by-name/utags";
 mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup";
};

&hw {
 compatible = "mmi,utags";
 mmi,dir-name = "hw";
 mmi,main-utags = "/dev/block/bootdevice/by-name/hw";
};

&pmk8550_sdam_2 {
 extra_restart_reason:restart@a0 {
  reg = <0xa0 0x1>;
  bit = <0 7>;
 };
};

&reserved_memory {
 ramoops_region {
  compatible = "ramoops";
  no-map;
  reg = <0x0 0xae000000 0x0 0x60000>;
  console-size = <0x40000>;
  record-size = <0x20000>;
 };

 mmi_annotate_mem: mmi_annotate_mem_region {
  no-map;
  reg = <0x0 0xadfff000 0x0 0x1000>;
 };
};

&soc {
 mmi_annotate {
  compatible = "mmi,annotate";
  memory-region = <&mmi_annotate_mem>;
  mem-size = <0x2000>;
  persist_unsupported;
 };

 reboot_reason {
  nvmem-cells = <&restart_reason>, <&extra_restart_reason>;
  nvmem-cell-names = "restart_reason", "extra_restart_reason";
 };
};

&soc {
 mmi,suspend_dbg {
  compatible = "mmi,suspend_dbg";
 };
};
# 19 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-products-common-overlay.dtsi" 2
# 16 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-haptics-overlay.dtsi" 1
# 13 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-haptics-overlay.dtsi"
&pm8550b_haptics {
 qcom,rt-imp-detect;
 qcom,vmax-mv = <1400>;
 qcom,lra-period-us = <5714>;
 moto,lra-period-us-min = <5406>;
 moto,lra-period-us-max = <6451>;
 moto,cal_again;
 status = "ok";

 effect_0 {

  qcom,effect-id = <0>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_1 {

  qcom,effect-id = <1>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_2 {

  qcom,effect-id = <2>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_3 {

  qcom,effect-id = <3>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_4 {

  qcom,effect-id = <4>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_5 {

  qcom,effect-id = <5>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };

 effect_21 {

  qcom,effect-id = <21>;
  qcom,wf-vmax-mv = <5000>;
  qcom,wf-pattern-data = <0x0ff 0 0>,
     <0x0ff 0 0>,
     <0x0ff 1 0>;
  qcom,wf-pattern-period-us = <5880>;
  qcom,wf-brake-mode = <0>;
  qcom,wf-brake-pattern = /bits/ 8 <0xff 0xff 0x9f 0x6f 0x3f 0x1f>;
  qcom,wf-auto-res-disable;
 };
};
# 17 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-fingerprint-overlay.dtsi" 1
&tlmm {
 fps_rst_active: fps_rst_active {

                mux {
                        pins = "gpio42";
                        function = "gpio";
                };

                config {
                        pins = "gpio42";
                        drive-strength = <2>;
                        output-low;
                };
        };

        fps_rst_suspend: fps_rst_suspend {

                mux {
                        pins = "gpio42";
                        function = "gpio";
                };

                config {
                        pins = "gpio42";
                        drive-strength = <2>;
                };
        };

        fps_int_active: fps_int_active {

                mux {
                        pins = "gpio40";
                        function = "gpio";
                };

                config {
                        pins = "gpio40";
                        drive-strength = <2>;
                        bias-disable;
                        input-enable;
                };
        };

        fps_int_suspend: fps_int_suspend {

                mux {
                        pins = "gpio40";
                        function = "gpio";
                };

                config {
                        pins = "gpio40";
                        drive-strength = <2>;
                        bias-disable;
                        input-enable;
                };
        };
};

&L14B {
 regulator-max-microvolt = <3300000>;
 qcom,init-voltage = <3300000>;
 status = "ok";
};

&soc {
 qcom,qbt_handler {
        status = "disabled";
 };

 goodix_fingerprint {
  compatible = "goodix,fingerprint";
  status = "ok";
  rgltr-ctrl-support;
  fp,vdd-supply = <&L14B>;
  fp,voltage-range = <3300000 3300000>;
  fp-gpio-reset = <&tlmm 42 0x00>;
  fp-gpio-irq = <&tlmm 40 0x00>;
  interrupt-parent = <&tlmm>;
  interrupts = <40 0>;
  interrupt-controller;
  pinctrl-names = "default", "suspend";
  pinctrl-0 = <&fps_rst_active &fps_int_active>;
  pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>;
 };
};
# 18 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-touchscreen-overlay.dtsi" 1
# 13 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-touchscreen-overlay.dtsi"
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/clock/qcom,rpmh.h" 1
# 14 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-touchscreen-overlay.dtsi" 2

&L9B {
 regulator-min-microvolt = <2960000>;
 regulator-max-microvolt = <3008000>;
 qcom,init-voltage = <3008000>;
};

&L10B {
 qcom,init-voltage = <1800000>;
};

&qupv3_se4_i2c {
 status = "disabled";
};

&qupv3_se4_spi {
 #address-cells = <1>;
 #size-cells = <0>;

 status = "ok";

 goodix-berlin@0 {
  status = "ok";
  compatible = "goodix,gt9916P";
  reg = <0>;
  spi-max-frequency = <15000000>;

  goodix,reset-gpio = <&tlmm 24 0x0>;
  goodix,irq-gpio = <&tlmm 25 0x2002>;
  goodix,irq-flags = <0x2002>;
  goodix,panel-max-id = <10>;
  goodix,panel-max-x = <17280>;
  goodix,panel-max-y = <38400>;
  goodix,panel-max-w = <255>;
  goodix,panel-max-p = <4096>;
  goodix,avdd-name = "pm_humu_l9";
  goodix,iovdd-name = "pm_humu_l10";
  pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release";
  pinctrl-0 = <&ts_active>;
  pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>;
  pinctrl-2 = <&ts_release>;
  mmi,power-off-suspend;
  mmi,usb-charger-detection;
  mmi,supported_gesture_type = <0x07>;
  mmi,enable-gestures;
  goodix,gesture-wait-pm;
  mmi,fod_coords = <540 2141>;
  goodix,edge-ctrl;
  goodix,interpolation-ctrl;
  goodix,sample-ctrl;
 };
};
# 19 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/moto-rtwo-wl2868c.dtsi" 1
&tlmm{
 pmic_en_default: pmic_en_default {
  mux {
   pins = "gpio6";
   function = "gpio";
  };
  config {
   pins = "gpio6";
   drive-strength = <2>;
   bias-pull-up;
                        output-high;
  };
 };
};





&gcc {
 qcom,critical-devices = <&qupv3_hub_i2c2>, <&qupv3_0_i2c_hub>;
};

&qupv3_hub_i2c2 {
 status = "ok";

 cam_pmic: wl2868c@2F{
  compatible = "semi,wl2868c";
  reg = <0x2F>;
  semi,cs-gpios = <&tlmm 6 1>;
  pinctrl-names = "default";
  pinctrl-0 = <&pmic_en_default>;
  vin1-supply = <&S4G>;
  vin2-supply = <&BOB1>;

  regulators {
   camera_ldo1: ldo1 {
    regulator-name = "ldo1";
    regulator-min-microvolt = <600000>;
    regulator-max-microvolt = <1800000>;
   };

   camera_ldo2: ldo2 {
    regulator-name = "ldo2";
    regulator-min-microvolt = <600000>;
    regulator-max-microvolt = <1800000>;
   };

   camera_ldo3: ldo3 {
    regulator-name = "ldo3";
    regulator-min-microvolt = <1200000>;
    regulator-max-microvolt = <4300000>;
   };

   camera_ldo4: ldo4 {
    regulator-name = "ldo4";
    regulator-min-microvolt = <1200000>;
    regulator-max-microvolt = <4300000>;
   };

   camera_ldo5: ldo5 {
    regulator-name = "ldo5";
    regulator-min-microvolt = <1200000>;
    regulator-max-microvolt = <4300000>;
   };

   camera_ldo6: ldo6 {
    regulator-name = "ldo6";
    regulator-min-microvolt = <1200000>;
    regulator-max-microvolt = <4300000>;
   };

   camera_ldo7: ldo7 {
    regulator-name = "ldo7";
    regulator-min-microvolt = <1200000>;
    regulator-max-microvolt = <4300000>;
   };
  };
 };
};
# 20 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/scripts/dtc/include-prefixes/dt-bindings/regulator/qcom,rpmh-regulator-levels.h" 1
# 21 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evb-sensors-overlay.dtsi" 1
# 13 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evb-sensors-overlay.dtsi"
&tlmm {
 sar_int_default: sar_int_default {
   mux {
    pins = "gpio19";
    function = "gpio";
   };
   config {
    pins = "gpio19";
    num-grp-pins = <1>;
    drive-strength = <2>;
    bias-pull-up;
   };
 };

 sar_int_sleep: sar_int_sleep {
   mux {
    pins = "gpio19";
    function = "gpio";
   };
   config {
    pins = "gpio19";
    num-grp-pins = <1>;
    drive-strength = <2>;
    bias-pull-up;
   };
 };
};

&qupv3_hub_i2c2 {
 status = "ok";
 sx937x@2c {
  compatible = "Semtech,sx937x";
  reg = <0x2c>;
  Semtech,power-supply-type = <0>;
  cap_vdd-supply = <&pm_humu_l15>;
  pinctrl-names = "default","sleep";
  pinctrl-0 = <&sar_int_default>;
  pinctrl-1 = <&sar_int_sleep>;
  interrupt-parent = <&tlmm>;
  interrupts = <19 0x02>;
  interrupt-names = "capsense0_irq";
  Semtech,nirq-gpio= <&tlmm 19 0x02>;


  Semtech,ref-phases-a = <4>;
  Semtech,ref-phases-b = <5>;
  Semtech,ref-phases-c = <6>;
  Semtech,button-flag = <0x1f>;
  Semtech,button-names = "Moto CapSense Ch0","Moto CapSense Ch1","Moto CapSense Ch2","Moto CapSense Ch3","Moto CapSense Ch4";
  Semtech,debug-name = "capsense0";
  Semtech,reg-num = <63>;
  Semtech,reg-init = <
   0x4004 0x74
   0x8020 0x32
   0x8028 0x46E
   0x8034 0x46E
   0x8040 0x46E
   0x804C 0x46E
   0x8058 0x46E
   0x8064 0x46E
   0x8070 0x46E
   0x807C 0x85C
   0x8030 0xFFF9FD
   0x803C 0xFEF9FF
   0x8048 0xFFD9FF
   0x8054 0xF7F9FF
   0x8060 0xBFF9FF
   0x806C 0xFFF97F
   0x8078 0xFFF9EF
   0x8084 0x0
   0x8098 0x7739
   0x80B8 0x7840
   0x80D8 0x824D
   0x80F8 0x2B2B
   0x8118 0x6540
   0x8138 0x0
   0x8158 0x0
   0x8178 0x0
   0x80A0 0x22220002
   0x80C0 0x44440001
   0x80E0 0x20200002
   0x8100 0x2B2B0001
   0x8120 0x5D5D0001
   0x8140 0x0
   0x8160 0x0
   0x8180 0x0
   0x8188 0x8000015
   0x818C 0x8000016
   0x8190 0x6
   0x8194 0x0
   0x8090 0x2AD67000
   0x80B0 0x2DD67000
   0x80D0 0x2DD67000
   0x80F0 0x1CD67000
   0x8110 0x2DD67000
   0x8130 0x2AD67000
   0x8150 0x0
   0x8170 0x0
   0x8088 0x300000
   0x80A8 0x300000
   0x80C8 0x300000
   0x80E8 0x300000
   0x8108 0x300000
   0x8128 0x300000
   0x8148 0x300000
   0x8168 0x0
   0x808C 0xE0600080
   0x80AC 0xE0600080
   0x80CC 0xE0600080
   0x80EC 0xE0600080
   0x810C 0xE06000C0
   0x812C 0xE06000C0
   0x814C 0xE0600018
   0x816C 0x0
   0x8024 0x7F00
  >;
  status = "ok";
 };
};
# 22 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-thermal-overlay.dtsi" 1
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/moto_therm_sys_temp.dtsi" 1
&soc {
 sys_temp_support {
  compatible = "mmi,sys-temp";
  mmi,temperature-names = "front_temp",
   "back_temp",
   "fuse_temp";
  status = "ok";
 };
};
# 2 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-thermal-overlay.dtsi" 2

&socd_trip {
    temperature = <95>;
};

&pmk8550_vadc {
 pm8550_mmw_therm {
  reg = <(1 << 8 | 0x49)>;
  label = "pm8550_mmw_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550_spkr_therm {
  reg = <(1 << 8 | 0x4d)>;
  label = "pm8550_spkr_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_spkr_therm {
  reg = <(7 << 8 | 0x4b)>;
  label = "pm8550b_spkr_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_mchg_therm {
  reg = <(7 << 8 | 0x4c)>;
  label = "pm8550b_mchg_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };

 pm8550b_pa1_therm {
  reg = <(7 << 8 | 0x4d)>;
  label = "pm8550b_pa1_therm";
  qcom,ratiometric;
  qcom,hw-settle-time = <200>;
  qcom,pre-scaling = <1 1>;
  qcom,adc-tm-type = <1>;
 };
};

&thermal_zones {
 skin-msm-therm {
  status = "disabled";
 };
 msm-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x44)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 cam-flash-therm {
  status = "disabled";
 };
 cam-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x45)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 wlan-therm {
  status = "disabled";
 };
 chg-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x46)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 pa-therm-1 {
  status = "disabled";
 };
 pa0-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x47)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 rear-tof-therm {
  status = "disabled";
 };
 wchg-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x48)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 spkr-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x4d)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 wls-therm {
  status = "disabled";
 };
 schg-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x49)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 usb-therm {
  status = "disabled";
 };
 quiet-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x47)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 mmw-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (1 << 8 | 0x49)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 spkr1-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x4b)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 mchg-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x4c)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 pa1-therm {
  polling-delay-passive = <0>;
  polling-delay = <0>;
  thermal-sensors = <&pmk8550_vadc (7 << 8 | 0x4d)>;
  trips {
   active-config0 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };

   active-config1 {
    temperature = <125000>;
    hysteresis = <1000>;
    type = "passive";
   };
  };
 };

 socd {
  cooling-maps {
   socd_apc1 {
    trip = <&socd_trip>;
    cooling-device = <&APC1_pause 0 0>;
   };
   socd_cpu3 {
    trip = <&socd_trip>;
    cooling-device = <&CPU3 (~0) 7>;
   };
   socd_cpu7 {
    trip = <&socd_trip>;
    cooling-device = <&cpu7_pause 1 1>;
   };
  };
 };
};
# 23 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-charger.dtsi" 1
&soc {
 mmi_charger: mmi,charger {
  compatible = "mmi,mmi-charger";
  mmi,enable-charging-limit;
  mmi,upper-limit-capacity = <75>;
  mmi,lower-limit-capacity = <65>;
  mmi,heartbeat-interval = <60000>;
  mmi,dcp-power-max = <10000>;
  mmi,hvdcp-power-max = <20000>;
  mmi,factory-kill-debounce-ms = <3000>;
 };

 qcom,pmic_glink {
  qti_glink_charger: mmi,qti-glink-charger {
   compatible = "mmi,qti-glink-charger";
   mmi,df-serialnum = "unknown-sn";
   mmi,chrg-iterm-ma = <300>;
   mmi,fg-iterm-ma = <350>;
   mmi,max-fv-mv = <4400>;
   mmi,max-fcc-ma = <4000>;
   mmi,demo-fv-mv = <4000>;
  };
 };
};

&battery_charger {
 qcom,thermal-mitigation = <12400000 10000000 8000000 7000000 6000000 5000000 4000000 3000000 1500000 1000000 100000>;
 qcom,wireless-fw-name = "cps4035.bin";
};
# 24 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-charger-overlay.dtsi" 1
&mmi_charger {
 mmi,upper-limit-capacity = <70>;
 mmi,pd-power-max = <125000>;
 mmi,heartbeat-interval = <10000>;
};

&qti_glink_charger {
 profile-ids-map = "107000", "SB18D58448", "38000", "SB18D58447","107000", "SB18E04368", "38000", "SB18EO5257";
};

&battery_charger {
 qcom,thermal-mitigation = <12400000 10000000 8000000 7000000 6000000 5000000 4000000 3000000 1500000 1000000 100000>;
 qcom,wireless-fw-name = "cps4038.bin";
};
# 25 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2

&soc {
 mmi_relay {
  compatible = "mmi,sys-relay";
 };

 lpd_mitigate: mmi,lpd-mitigate {
  compatible = "mmi,lpd-mitigate";
  mmi,mitigate-mode-cfg = <3>;
  mmi,default-mitigate-mode-cfg = <1>;
 };
};

&tlmm {
 redriver_enable: redriver_enable {
  mux {
   pins = "gpio22";
   function = "gpio";
  };

  config {
   pins = "gpio22";
   drive-strength = <2>;
   bias-disable;
   output-high;
  };
 };
 redriver_disable: redriver_disable {
  mux {
   pins = "gpio22";
   function = "gpio";
  };

  config {
   pins = "gpio22";
   drive-strength = <2>;
   output-low;
  };
 };
};

&qupv3_hub_i2c2 {
 status = "ok";
# 1 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-moto-common-redriver.dtsi" 1
redriver:redriver@30{
 compatible = "parade,ps5169-redriver";
 reg = <0x30>;
 vcc-supply = <&L15B>;
 pinctrl-names = "default";
 pinctrl-0 = <&redriver_enable>;
 redriver,enable-gpio = <&tlmm 22 0x00>;
 redriver,orientation-gpio = <&tlmm 11 0x00>;
 config-seq =

  <0x9d 0x80 10000
  0x9d 0x00 0
  0x40 0x80 0
  0x8d 0x01 0
  0x90 0x01 0
  0x51 0x87 0
  0x50 0x20 0
  0x54 0x11 0
  0x5d 0x66 0
  0x52 0x50 0
  0x55 0x00 0
  0x56 0x00 0
  0x57 0x00 0
  0x58 0x00 0
  0x59 0x00 0
  0x5a 0x00 0
  0x5b 0x00 0
  0x5e 0x07 0
  0x5f 0x00 0
  0x60 0x00 0
  0x61 0x03 0
  0x65 0x40 0
  0x66 0x00 0
  0x67 0x03 0
  0x75 0x0c 0
  0x77 0x00 0
  0x78 0x7c 0>;
};
# 69 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-device-common-overlay.dtsi" 2
};

&usb0 {
 ssusb_redriver = <&redriver>;
};

&pm8550b_eusb2_repeater {
 qcom,host-param-override-seq =


  <0xa 0x51

   0x6 0x53

   0x5 0x54

   0x6 0x57>;
};

&apps_rsc_drv2 {
       rpmh-regulator-ldob4 {
               compatible = "qcom,rpmh-vrm-regulator";
               qcom,resource-name = "ldob4";
               qcom,regulator-type = "pmic5-ldo";
               qcom,supported-modes =
                       <2
                        4>;
               qcom,mode-threshold-currents = <0 10000>;

               L4B: pm_humu_l4: regulator-pm-humu-l4 {
                       regulator-name = "pm_humu_l4";
                       qcom,set = <3>;
                       regulator-min-microvolt = <1800000>;
                       regulator-max-microvolt = <1800000>;
                       qcom,init-voltage = <1800000>;
                       qcom,init-mode = <4>;
               };
       };
};
# 19 "/home/luuxis/evo/kernel/motorola/sm8550/arch/arm64/boot/dts/vendor/qcom/kalama-rtwo-evt1-overlay.dts" 2

/ {
 model = "rtwo";
 compatible = "qcom,kalama-mtp", "qcom,kalama", "qcom,mtp", "qcom,rtwo";
 qcom,msm-id = <519 0x10000>, <536 0x10000>, <519 0x20000>, <536 0x20000>;
 qcom,board-id = <0x41 0xA100>;
};

&pm8550b_eusb2_repeater {
 qcom,param-override-seq =


  <0xb 0x51

   0x6 0x53

   0x4 0x54

   0x6 0x57>;
};
