Skip to content

Commit 09d199b

Browse files
u1f35cjernejsk
authored andcommitted
ARM: dts: axp209: Add iio-hwmon node for internal temperature
This adds a DT node to hook up the internal temperature ADC to the iio-hwmon driver. The various voltage + current ADCs are consumed and exposed by their respective drivers, but this is not and is always available. Naming chosen to match the axp20x_ prefix the power sensors use. Signed-off-by: Jonathan McDowell <noodles@earth.li> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/2a9bd53a65c4a154cccba622c60cbffcdceaeb95.1683719613.git.noodles@earth.li Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent c7ea52e commit 09d199b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

arch/arm/boot/dts/axp209.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@
4848
* http://dl.linux-sunxi.org/AXP/AXP209%20Datasheet%20v1.0_cn.pdf
4949
*/
5050

51+
/ {
52+
pmic-temp {
53+
compatible = "iio-hwmon";
54+
io-channels = <&axp_adc 4>; /* Internal temperature */
55+
};
56+
};
57+
5158
&axp209 {
5259
compatible = "x-powers,axp209";
5360
interrupt-controller;

0 commit comments

Comments
 (0)