From: Phil Elwell Date: Mon, 13 Mar 2017 12:30:37 +0000 (+0000) Subject: thermal: Compatible strings for bcm2836, bcm2837 X-Git-Tag: Ubuntu-raspi2-4.10.0-1018.21~58 X-Git-Url: https://git.proxmox.com/?p=mirror_ubuntu-zesty-kernel.git;a=commitdiff_plain;h=1a0ef4808adca624286c55dda269917a874994eb thermal: Compatible strings for bcm2836, bcm2837 The upstream dt-bindings documentation for bcm2835-thermal (which exists even though the driver isn't upstreamed) says to use dedicated compatible strings on bcm2836 and bcm2837, even though the downstream driver doesn't support them. The Pi2 DTB uses "brcm,bcm2836-thermal", so the driver doesn't load. The Pi3 DTB doesn't override the base value, but the arm64 Pi3 support uses "brcm,bcm2837-thermal". Solve the documentation problem by adding "brcm,bcm2836-thermal" and "brcm,bcm2837-thermal" as alternative compatible strings for the bcm2835-thermal driver. Signed-off-by: Phil Elwell Signed-off-by: Tim Gardner --- diff --git a/drivers/thermal/bcm2835-thermal.c b/drivers/thermal/bcm2835-thermal.c index c63fb9f9d143..25b78c3eac15 100644 --- a/drivers/thermal/bcm2835-thermal.c +++ b/drivers/thermal/bcm2835-thermal.c @@ -89,6 +89,8 @@ static int bcm2835_thermal_remove(struct platform_device *pdev) static const struct of_device_id bcm2835_thermal_of_match_table[] = { { .compatible = "brcm,bcm2835-thermal", }, + { .compatible = "brcm,bcm2836-thermal", }, + { .compatible = "brcm,bcm2837-thermal", }, {}, }; MODULE_DEVICE_TABLE(of, bcm2835_thermal_of_match_table);