From e1ad7607bb0e9097f418dcdfe6a1bd46df76a95e Mon Sep 17 00:00:00 2001 From: Nitesh Kumar Date: Sun, 5 May 2024 23:43:43 +0530 Subject: [PATCH] ARM: dts: qcom: Enable compatible string for drivers Enable compatible string of drivers in monaco. Change-Id: I664f5c62455cff8214bd081f5334fcda7ccfc6cb Signed-off-by: Nitesh Kumar --- qcom/monaco-regulators.dtsi | 2 +- qcom/monaco-thermal-overlay.dtsi | 66 ++++++++++++++++++++++++++++++-- qcom/monaco-thermal.dtsi | 32 +++++++++++++++- qcom/pm5100.dtsi | 2 +- 4 files changed, 95 insertions(+), 7 deletions(-) diff --git a/qcom/monaco-regulators.dtsi b/qcom/monaco-regulators.dtsi index 6172bb2d..344e82fd 100644 --- a/qcom/monaco-regulators.dtsi +++ b/qcom/monaco-regulators.dtsi @@ -58,7 +58,7 @@ }; cx_cdev: cx-cdev-lvl { - /* compatible = "qcom,regulator-cooling-device"; */ + compatible = "qcom,regulator-cooling-device"; regulator-cdev-supply = <&VDD_CX_FLOOR_LEVEL>; regulator-levels = ; diff --git a/qcom/monaco-thermal-overlay.dtsi b/qcom/monaco-thermal-overlay.dtsi index a47837e4..96f3cb29 100644 --- a/qcom/monaco-thermal-overlay.dtsi +++ b/qcom/monaco-thermal-overlay.dtsi @@ -13,6 +13,21 @@ cooling-device = <&CPU0 1 1>; }; + trip0_cpu1 { + trip = <&pm5100_trip0>; + cooling-device = <&CPU1 1 1>; + }; + + trip0_cpu2 { + trip = <&pm5100_trip0>; + cooling-device = <&CPU2 1 1>; + }; + + trip0_cpu3 { + trip = <&pm5100_trip0>; + cooling-device = <&CPU3 1 1>; + }; + trip1_cpu2 { trip = <&pm5100_trip0>; cooling-device = <&cpu2_pause 1 1>; @@ -27,11 +42,26 @@ pm5100-bcl-lvl0 { cooling-maps { - cpu0_cdev { + cpu0_cdev0 { trip = <&bcl_lvl0>; cooling-device = <&CPU0 2 2>; }; + cpu1_cdev0 { + trip = <&bcl_lvl0>; + cooling-device = <&CPU1 2 2>; + }; + + cpu2_cdev0 { + trip = <&bcl_lvl0>; + cooling-device = <&CPU2 2 2>; + }; + + cpu3_cdev0 { + trip = <&bcl_lvl0>; + cooling-device = <&CPU3 2 2>; + }; + cpu2_cdev { trip = <&bcl_lvl0>; cooling-device = <&cpu2_pause 1 1>; @@ -51,11 +81,26 @@ pm5100-bcl-lvl1 { cooling-maps { - cpu0_cdev { + cpu0_cdev0 { trip = <&bcl_lvl1>; cooling-device = <&CPU0 2 2>; }; + cpu1_cdev0 { + trip = <&bcl_lvl1>; + cooling-device = <&CPU1 2 2>; + }; + + cpu2_cdev0 { + trip = <&bcl_lvl1>; + cooling-device = <&CPU2 2 2>; + }; + + cpu3_cdev0 { + trip = <&bcl_lvl1>; + cooling-device = <&CPU3 2 2>; + }; + cpu1_cdev { trip = <&bcl_lvl1>; cooling-device = <&cpu1_pause 1 1>; @@ -76,11 +121,26 @@ socd { cooling-maps { - soc_cpu0 { + socd_cpu0 { trip = <&socd_trip>; cooling-device = <&CPU0 1 1>; }; + socd_cpu1 { + trip = <&socd_trip>; + cooling-device = <&CPU1 1 1>; + }; + + socd_cpu2 { + trip = <&socd_trip>; + cooling-device = <&CPU2 1 1>; + }; + + socd_cpu3 { + trip = <&socd_trip>; + cooling-device = <&CPU3 1 1>; + }; + soc_cpu2 { trip = <&socd_trip>; cooling-device = <&cpu2_pause 1 1>; diff --git a/qcom/monaco-thermal.dtsi b/qcom/monaco-thermal.dtsi index 4d7ac68f..35c04d5f 100644 --- a/qcom/monaco-thermal.dtsi +++ b/qcom/monaco-thermal.dtsi @@ -69,8 +69,36 @@ }; }; + qcom,cpu-hotplug { + compatible = "qcom,cpu-hotplug"; + + cpu0_hotplug: cpu0-hotplug { + qcom,cpu = <&CPU0>; + qcom,cdev-alias = "cpu-hotplug0"; + #cooling-cells = <2>; + }; + + cpu1_hotplug: cpu1-hotplug { + qcom,cpu = <&CPU1>; + qcom,cdev-alias = "cpu-hotplug1"; + #cooling-cells = <2>; + }; + + cpu2_hotplug: cpu2-hotplug { + qcom,cpu = <&CPU2>; + qcom,cdev-alias = "cpu-hotplug2"; + #cooling-cells = <2>; + }; + + cpu3_hotplug: cpu3-hotplug { + qcom,cpu = <&CPU3>; + qcom,cdev-alias = "cpu-hotplug3"; + #cooling-cells = <2>; + }; + }; + tsens0:tsens@4410000 { - //compatible = "qcom,tsens26xx"; + compatible = "qcom,tsens26xx"; reg = <0x04410000 0x20>, <0x04411000 0x140>; reg-names = "tsens_srot_physical", @@ -139,7 +167,7 @@ }; lmh_cpu_vdd: qcom,lmh-cpu-vdd@f550800 { - //compatible = "qcom,lmh-cpu-vdd"; + compatible = "qcom,lmh-cpu-vdd"; reg = <0xf550800 0x1000>; #cooling-cells = <2>; }; diff --git a/qcom/pm5100.dtsi b/qcom/pm5100.dtsi index 49b22e02..3d303c4c 100644 --- a/qcom/pm5100.dtsi +++ b/qcom/pm5100.dtsi @@ -279,7 +279,7 @@ }; bcl_off: bcl-off@4700 { - /* compatible = "qcom,bcl-off"; */ + compatible = "qcom,bcl-off"; reg = <0x4700 0x100>; #cooling-cells = <2>; };