5cd596d6be4861798c4a484d4405efd41bb9ef27
[openwrt/staging/mkresin.git] /
1 From 04f2cfb2130c52d8e01c5c2fddf1c0f5d0f3583c Mon Sep 17 00:00:00 2001
2 From: Allen Wild <allenwild93@gmail.com>
3 Date: Sat, 13 Jul 2019 11:14:02 -0400
4 Subject: [PATCH 706/725] configs: arm64/bcm2711: Use CONFIG_BRCMSTB_THERMAL
5 instead of CONFIG_BCM2835_THERMAL
6
7 The Raspberry Pi 4 uses the brcmstb thermal driver rather than brcm2835,
8 based on the device tree compatible string 'brcm,avs-tmon-bcm2838'. With
9 CONFIG_BRCMSTB_THERMAL enabled, reading temperature from
10 /sys/class/thermal/thermal_zone0/temp works as expected instead of
11 returning EINVAL.
12
13 Fixes: https://github.com/raspberrypi/linux/issues/3071
14 Signed-off-by: Allen Wild <allenwild93@gmail.com>
15 ---
16 arch/arm64/configs/bcm2711_defconfig | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 --- a/arch/arm64/configs/bcm2711_defconfig
20 +++ b/arch/arm64/configs/bcm2711_defconfig
21 @@ -658,7 +658,7 @@ CONFIG_SENSORS_ADS1015=m
22 CONFIG_SENSORS_INA2XX=m
23 CONFIG_SENSORS_TMP102=m
24 CONFIG_THERMAL=y
25 -CONFIG_BCM2835_THERMAL=y
26 +CONFIG_BRCMSTB_THERMAL=y
27 CONFIG_WATCHDOG=y
28 CONFIG_GPIO_WATCHDOG=m
29 CONFIG_BCM2835_WDT=y