bcm27xx: update to latest patches from RPi foundation
[openwrt/staging/wigyori.git] / target / linux / bcm27xx / patches-5.4 / 950-0759-ARM-dts-bcm2711-Enable-thermal.patch
1 From 642811db6c894ee89808764d8240aa2b5b7ed4e0 Mon Sep 17 00:00:00 2001
2 From: Stefan Wahren <stefan.wahren@i2se.com>
3 Date: Mon, 13 Jan 2020 19:56:17 +0100
4 Subject: [PATCH] ARM: dts: bcm2711: Enable thermal
5
6 Commit a1d6989bf12b01cd9198e2c31a96678ac9c47415 upstream.
7
8 This enables thermal for the BCM2711 (used on Raspberry Pi 4) by adding
9 the AVS monitor and a subnode for the thermal part.
10
11 Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
12 Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
13 Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
16 Link: https://lore.kernel.org/r/1578941778-23321-4-git-send-email-stefan.wahren@i2se.com
17 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
18 ---
19 arch/arm/boot/dts/bcm2711.dtsi | 12 ++++++++++++
20 1 file changed, 12 insertions(+)
21
22 --- a/arch/arm/boot/dts/bcm2711.dtsi
23 +++ b/arch/arm/boot/dts/bcm2711.dtsi
24 @@ -64,6 +64,17 @@
25 IRQ_TYPE_LEVEL_HIGH)>;
26 };
27
28 + avs_monitor: avs-monitor@7d5d2000 {
29 + compatible = "brcm,bcm2711-avs-monitor",
30 + "syscon", "simple-mfd";
31 + reg = <0x7d5d2000 0xf00>;
32 +
33 + thermal: thermal {
34 + compatible = "brcm,bcm2711-thermal";
35 + #thermal-sensor-cells = <0>;
36 + };
37 + };
38 +
39 dma: dma@7e007000 {
40 compatible = "brcm,bcm2835-dma";
41 reg = <0x7e007000 0xb00>;
42 @@ -514,6 +525,7 @@
43
44 &cpu_thermal {
45 coefficients = <(-487) 410040>;
46 + thermal-sensors = <&thermal>;
47 };
48
49 &dsi0 {