mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Claudiu Beznea <claudiu.beznea@microchip.com>
To: <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>,
	<robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
	<linux@armlinux.org.uk>, <arnd@arndb.de>
Cc: <linux-arm-kernel@lists.infradead.org>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Claudiu Beznea <claudiu.beznea@microchip.com>
Subject: [PATCH 05/11] ARM: dts: at91: sama7g5: add temperature sensor
Date: Wed, 26 Oct 2022 15:41:08 +0300	[thread overview]
Message-ID: <20221026124114.985876-6-claudiu.beznea@microchip.com> (raw)
In-Reply-To: <20221026124114.985876-1-claudiu.beznea@microchip.com>

Add temperature sensor node.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
 arch/arm/boot/dts/sama7g5.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi
index 1094c0afc0c5..52829be04427 100644
--- a/arch/arm/boot/dts/sama7g5.dtsi
+++ b/arch/arm/boot/dts/sama7g5.dtsi
@@ -9,6 +9,7 @@
  *
  */
 
+#include <dt-bindings/iio/adc/at91-sama5d2_adc.h>
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/at91.h>
@@ -109,6 +110,13 @@ ns_sram: sram@100000 {
 		ranges;
 	};
 
+	thermal_sensor: thermal-sensor {
+		compatible = "generic-adc-thermal";
+		#thermal-sensor-cells = <0>;
+		io-channels = <&adc AT91_SAMA7G5_ADC_TEMP_CHANNEL>;
+		io-channel-names = "sensor-channel";
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
-- 
2.34.1


  parent reply	other threads:[~2022-10-26 12:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-26 12:41 [PATCH 00/11] ARM: at91: fixes and enhancement Claudiu Beznea
2022-10-26 12:41 ` [PATCH 01/11] ARM: at91: pm: avoid soft resetting AC DLL Claudiu Beznea
2022-10-26 12:41 ` [PATCH 02/11] ARM: dts: at91: sama7g5: add otpc node Claudiu Beznea
2022-10-26 12:41 ` [PATCH 03/11] ARM: dts: at91: sama7g5: add io-channel-cells to adc node Claudiu Beznea
2022-10-26 12:41 ` [PATCH 04/11] ARM: dts: at91: sama7g5: add cells for temperature calibration Claudiu Beznea
2022-10-26 12:41 ` Claudiu Beznea [this message]
2022-10-26 12:41 ` [PATCH 06/11] ARM: dts: at91: sama7g5: add thermal zones node Claudiu Beznea
2022-10-26 12:41 ` [PATCH 07/11] ARM: configs: at91: sama7: use make savedefconfig Claudiu Beznea
2022-10-26 12:41 ` [PATCH 08/11] ARM: configs: at91: sama7: add config for microchip otpc Claudiu Beznea
2022-10-26 12:41 ` [PATCH 09/11] ARM: configs: at91: sama7: add config for thermal management Claudiu Beznea
2022-10-26 12:41 ` [PATCH 10/11] ARM: dts: at91: sama7g5: use generic name for securam Claudiu Beznea
2022-10-26 12:41 ` [PATCH 11/11] ARM: dts: at91: sam9x60ek: remove status = "okay" for regulators Claudiu Beznea
2022-11-01 15:09 ` [PATCH 00/11] ARM: at91: fixes and enhancement Claudiu.Beznea

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221026124114.985876-6-claudiu.beznea@microchip.com \
    --to=claudiu.beznea@microchip.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=arnd@arndb.de \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=nicolas.ferre@microchip.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®