]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ARM: dts: bcm2711: Enable thermal
authorStefan Wahren <stefan.wahren@i2se.com>
Mon, 13 Jan 2020 18:56:17 +0000 (19:56 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 10:41:08 +0000 (11:41 +0100)
This enables thermal for the BCM2711 (used on Raspberry Pi 4) by adding
the AVS monitor and a subnode for the thermal part.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1578941778-23321-4-git-send-email-stefan.wahren@i2se.com
arch/arm/boot/dts/bcm2711.dtsi

index e2f6ffb00aa94340fc2db94fb7e75b0e7d998bca..8eedd6eb409b8cdc394993ab86d1e8803279103a 100644 (file)
                                                 IRQ_TYPE_LEVEL_HIGH)>;
                };
 
+               avs_monitor: avs-monitor@7d5d2000 {
+                       compatible = "brcm,bcm2711-avs-monitor",
+                                    "syscon", "simple-mfd";
+                       reg = <0x7d5d2000 0xf00>;
+
+                       thermal: thermal {
+                               compatible = "brcm,bcm2711-thermal";
+                               #thermal-sensor-cells = <0>;
+                       };
+               };
+
                dma: dma@7e007000 {
                        compatible = "brcm,bcm2835-dma";
                        reg = <0x7e007000 0xb00>;
 
 &cpu_thermal {
        coefficients = <(-487) 410040>;
+       thermal-sensors = <&thermal>;
 };
 
 &dsi0 {