diff --git a/arch/arm64/boot/dts/qcom/qcs9075-radxa-vmarc-q9075-io.dts b/arch/arm64/boot/dts/qcom/qcs9075-radxa-vmarc-q9075-io.dts index ea413d5cce644..6c632212b5838 100644 --- a/arch/arm64/boot/dts/qcom/qcs9075-radxa-vmarc-q9075-io.dts +++ b/arch/arm64/boot/dts/qcom/qcs9075-radxa-vmarc-q9075-io.dts @@ -161,12 +161,898 @@ fan0: pwm-fan { compatible = "pwm-fan"; pwms = <&fan_pwm 0 100000>; - cooling-levels = <0 64 128 192 255>; + cooling-levels = <0 126 169 212 255>; #cooling-cells = <2>; status = "okay"; }; }; +&thermal_zones { + cpu-0-0-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_0_0_trip0: fan-cpu-0-0-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_0_trip1: fan-cpu-0-0-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_0_trip2: fan-cpu-0-0-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_0_trip3: fan-cpu-0-0-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_0_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_0_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_0_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_0_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-1-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_1_0_trip0: fan-cpu-0-1-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_0_trip1: fan-cpu-0-1-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_0_trip2: fan-cpu-0-1-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_0_trip3: fan-cpu-0-1-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_1_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_1_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_1_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_1_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-2-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_2_0_trip0: fan-cpu-0-2-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_0_trip1: fan-cpu-0-2-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_0_trip2: fan-cpu-0-2-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_0_trip3: fan-cpu-0-2-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_2_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_2_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_2_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_2_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-3-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_3_0_trip0: fan-cpu-0-3-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_0_trip1: fan-cpu-0-3-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_0_trip2: fan-cpu-0-3-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_0_trip3: fan-cpu-0-3-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_3_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_3_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_3_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_3_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + gpuss-0-thermal { + polling-delay = <1000>; + + trips { + fan_gpuss_0_trip0: fan-gpuss-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_gpuss_0_trip1: fan-gpuss-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_gpuss_0_trip2: fan-gpuss-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_gpuss_0_trip3: fan-gpuss-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_gpuss_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_gpuss_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_gpuss_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_gpuss_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-0-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_0_1_trip0: fan-cpu-0-0-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_1_trip1: fan-cpu-0-0-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_1_trip2: fan-cpu-0-0-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_0_1_trip3: fan-cpu-0-0-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_0_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_0_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_0_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_0_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-1-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_1_1_trip0: fan-cpu-0-1-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_1_trip1: fan-cpu-0-1-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_1_trip2: fan-cpu-0-1-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_1_1_trip3: fan-cpu-0-1-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_1_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_1_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_1_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_1_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-2-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_2_1_trip0: fan-cpu-0-2-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_1_trip1: fan-cpu-0-2-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_1_trip2: fan-cpu-0-2-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_2_1_trip3: fan-cpu-0-2-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_2_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_2_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_2_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_2_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-0-3-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_0_3_1_trip0: fan-cpu-0-3-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_1_trip1: fan-cpu-0-3-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_1_trip2: fan-cpu-0-3-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_0_3_1_trip3: fan-cpu-0-3-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_0_3_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_0_3_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_0_3_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_0_3_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-0-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_0_0_trip0: fan-cpu-1-0-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_0_trip1: fan-cpu-1-0-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_0_trip2: fan-cpu-1-0-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_0_trip3: fan-cpu-1-0-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_0_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_0_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_0_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_0_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-1-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_1_0_trip0: fan-cpu-1-1-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_0_trip1: fan-cpu-1-1-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_0_trip2: fan-cpu-1-1-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_0_trip3: fan-cpu-1-1-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_1_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_1_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_1_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_1_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-2-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_2_0_trip0: fan-cpu-1-2-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_0_trip1: fan-cpu-1-2-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_0_trip2: fan-cpu-1-2-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_0_trip3: fan-cpu-1-2-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_2_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_2_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_2_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_2_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-3-0-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_3_0_trip0: fan-cpu-1-3-0-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_0_trip1: fan-cpu-1-3-0-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_0_trip2: fan-cpu-1-3-0-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_0_trip3: fan-cpu-1-3-0-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_3_0_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_3_0_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_3_0_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_3_0_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-0-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_0_1_trip0: fan-cpu-1-0-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_1_trip1: fan-cpu-1-0-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_1_trip2: fan-cpu-1-0-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_0_1_trip3: fan-cpu-1-0-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_0_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_0_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_0_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_0_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-1-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_1_1_trip0: fan-cpu-1-1-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_1_trip1: fan-cpu-1-1-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_1_trip2: fan-cpu-1-1-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_1_1_trip3: fan-cpu-1-1-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_1_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_1_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_1_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_1_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-2-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_2_1_trip0: fan-cpu-1-2-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_1_trip1: fan-cpu-1-2-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_1_trip2: fan-cpu-1-2-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_2_1_trip3: fan-cpu-1-2-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_2_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_2_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_2_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_2_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; + + cpu-1-3-1-thermal { + polling-delay = <1000>; + + trips { + fan_cpu_1_3_1_trip0: fan-cpu-1-3-1-trip0 { + temperature = <60000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_1_trip1: fan-cpu-1-3-1-trip1 { + temperature = <70000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_1_trip2: fan-cpu-1-3-1-trip2 { + temperature = <80000>; + hysteresis = <2000>; + type = "active"; + }; + + fan_cpu_1_3_1_trip3: fan-cpu-1-3-1-trip3 { + temperature = <90000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + fan-map0 { + trip = <&fan_cpu_1_3_1_trip0>; + cooling-device = <&fan0 1 1>; + }; + + fan-map1 { + trip = <&fan_cpu_1_3_1_trip1>; + cooling-device = <&fan0 2 2>; + }; + + fan-map2 { + trip = <&fan_cpu_1_3_1_trip2>; + cooling-device = <&fan0 3 3>; + }; + + fan-map3 { + trip = <&fan_cpu_1_3_1_trip3>; + cooling-device = <&fan0 4 4>; + }; + }; + }; +}; + &i2c1 { qcom,load-firmware; qcom,xfer-mode = <1>; @@ -473,4 +1359,3 @@ input-enable; }; }; -