]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: bcm2835: dts: add thermal node to device-tree of bcm283x
authorMartin Sperl <kernel@martin.sperl.org>
Wed, 2 Nov 2016 10:18:23 +0000 (10:18 +0000)
committerEric Anholt <eric@anholt.net>
Fri, 11 Nov 2016 16:55:52 +0000 (08:55 -0800)
Add the node for the thermal sensor of the bcm2835-soc
to the device tree.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Changelog:
V1 -> V5: generic settings is shared in bcm283x.dtsi, but disabled
  moved the compatible string to the SOC specific dtsi
            for arm and arm64
V5 -> V6: fix remove 0x prefix from thermal@0x7e212000

Note: there is no arm/boot/dts/bcm2837.dtsi as of now,
      so the 32-bit rpi3 dt is not modified.
Signed-off-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2835.dtsi
arch/arm/boot/dts/bcm2836.dtsi
arch/arm/boot/dts/bcm283x.dtsi

index a78759e737101728340675ff1b7cc4a171e00fb2..0890d97e674d4b0ee542822a39b1000ba0715414 100644 (file)
@@ -23,3 +23,9 @@
                };
        };
 };
+
+/* enable thermal sensor with the correct compatible property set */
+&thermal {
+       compatible = "brcm,bcm2835-thermal";
+       status = "okay";
+};
index 9d0651d8f373d4042a0a9ed7809d0b9b81921ae8..519a44f5d25a6aa49eaeb0d50e5361276e5ca995 100644 (file)
@@ -76,3 +76,9 @@
        interrupt-parent = <&local_intc>;
        interrupts = <8>;
 };
+
+/* enable thermal sensor with the correct compatible property set */
+&thermal {
+       compatible = "brcm,bcm2836-thermal";
+       status = "okay";
+};
index eae6ab88d1a648d9980f19e804f260344e8a5872..9a44da19089717f02462c657840ae9f24fd942ba 100644 (file)
                        interrupts = <2 14>; /* pwa1 */
                };
 
+               thermal: thermal@7e212000 {
+                       compatible = "brcm,bcm2835-thermal";
+                       reg = <0x7e212000 0x8>;
+                       clocks = <&clocks BCM2835_CLOCK_TSENS>;
+                       status = "disabled";
+               };
+
                aux: aux@0x7e215000 {
                        compatible = "brcm,bcm2835-aux";
                        #clock-cells = <1>;