Lines Matching +full:bcm2711 +full:- +full:thermal
1 // SPDX-License-Identifier: GPL-2.0+
3 * Broadcom AVS RO thermal sensor driver
21 #include <linux/thermal.h>
31 struct thermal_zone_device *thermal; member
42 ret = regmap_read(priv->regmap, AVS_RO_TEMP_STATUS, &val); in bcm2711_get_temp()
47 return -EIO; in bcm2711_get_temp()
62 { .compatible = "brcm,bcm2711-thermal" },
69 struct thermal_zone_device *thermal; in bcm2711_thermal_probe() local
71 struct device *dev = &pdev->dev; in bcm2711_thermal_probe()
78 return -ENOMEM; in bcm2711_thermal_probe()
81 parent = of_get_parent(dev->of_node); /* parent should be syscon node */ in bcm2711_thermal_probe()
89 priv->regmap = regmap; in bcm2711_thermal_probe()
91 thermal = devm_thermal_of_zone_register(dev, 0, priv, in bcm2711_thermal_probe()
93 if (IS_ERR(thermal)) { in bcm2711_thermal_probe()
94 ret = PTR_ERR(thermal); in bcm2711_thermal_probe()
99 priv->thermal = thermal; in bcm2711_thermal_probe()
101 return thermal_add_hwmon_sysfs(thermal); in bcm2711_thermal_probe()
115 MODULE_DESCRIPTION("Broadcom AVS RO thermal sensor driver");