1 From 43bac4133f405b67857e4c985aecc44a57233bfe Mon Sep 17 00:00:00 2001
2 From: Martin Sperl <kernel@martin.sperl.org>
3 Date: Wed, 2 Nov 2016 10:18:23 +0000
4 Subject: [PATCH] ARM: bcm2835: dts: add thermal node to device-tree of bcm283x
6 Add the node for the thermal sensor of the bcm2835-soc
9 Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
10 Reviewed-by: Eric Anholt <eric@anholt.net>
11 Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
14 V1 -> V5: generic settings is shared in bcm283x.dtsi, but disabled
15 moved the compatible string to the SOC specific dtsi
17 V5 -> V6: fix remove 0x prefix from thermal@0x7e212000
19 Note: there is no arm/boot/dts/bcm2837.dtsi as of now,
20 so the 32-bit rpi3 dt is not modified.
21 Signed-off-by: Eric Anholt <eric@anholt.net>
23 arch/arm/boot/dts/bcm2835.dtsi | 6 ++++++
24 arch/arm/boot/dts/bcm2836.dtsi | 6 ++++++
25 arch/arm/boot/dts/bcm283x.dtsi | 7 +++++++
26 3 files changed, 19 insertions(+)
28 --- a/arch/arm/boot/dts/bcm2835.dtsi
29 +++ b/arch/arm/boot/dts/bcm2835.dtsi
35 +/* enable thermal sensor with the correct compatible property set */
37 + compatible = "brcm,bcm2835-thermal";
40 --- a/arch/arm/boot/dts/bcm2836.dtsi
41 +++ b/arch/arm/boot/dts/bcm2836.dtsi
43 interrupt-parent = <&local_intc>;
47 +/* enable thermal sensor with the correct compatible property set */
49 + compatible = "brcm,bcm2836-thermal";
52 --- a/arch/arm/boot/dts/bcm283x.dtsi
53 +++ b/arch/arm/boot/dts/bcm283x.dtsi
55 interrupts = <2 14>; /* pwa1 */
58 + thermal: thermal@7e212000 {
59 + compatible = "brcm,bcm2835-thermal";
60 + reg = <0x7e212000 0x8>;
61 + clocks = <&clocks BCM2835_CLOCK_TSENS>;
62 + status = "disabled";
66 compatible = "brcm,bcm2835-aux";