All of lore.kernel.org
 help / color / mirror / Atom feed
From: Neil Armstrong <narmstrong@baylibre.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	linux-amlogic@lists.infradead.org, khilman@baylibre.com
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] ARM: dts: meson: add the ADC thermal sensor to meson.dtsi
Date: Mon, 11 Jan 2021 15:03:22 +0100	[thread overview]
Message-ID: <e5bfa1ec-678d-0c60-bf0b-073c059ba843@baylibre.com> (raw)
In-Reply-To: <20201221181306.904272-3-martin.blumenstingl@googlemail.com>

On 21/12/2020 19:13, Martin Blumenstingl wrote:
> The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
> SoCs (Meson6, Meson8, Meson8b and Meson8m2). Add a "generic-adc-thermal"
> instance to meson.dtsi so the thermal sensor is available for all SoCs.
> If the temperature sensor calibration data is missing for a board then
> the "generic-adc-thermal" will not probe and not register a thermal
> sensor.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  arch/arm/boot/dts/meson.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
> index 5f074f7aa1a2..e0ca5f08d07d 100644
> --- a/arch/arm/boot/dts/meson.dtsi
> +++ b/arch/arm/boot/dts/meson.dtsi
> @@ -298,6 +298,13 @@ efuse: nvmem@0 {
>  		};
>  	};
>  
> +	thermal_sensor: thermal-sensor {
> +		compatible = "generic-adc-thermal";
> +		#thermal-sensor-cells = <0>;
> +		io-channels = <&saradc 8>;
> +		io-channel-names = "sensor-channel";
> +	};
> +
>  	xtal: xtal-clk {
>  		compatible = "fixed-clock";
>  		clock-frequency = <24000000>;
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

WARNING: multiple messages have this Message-ID (diff)
From: Neil Armstrong <narmstrong@baylibre.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	linux-amlogic@lists.infradead.org, khilman@baylibre.com
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/5] ARM: dts: meson: add the ADC thermal sensor to meson.dtsi
Date: Mon, 11 Jan 2021 15:03:22 +0100	[thread overview]
Message-ID: <e5bfa1ec-678d-0c60-bf0b-073c059ba843@baylibre.com> (raw)
In-Reply-To: <20201221181306.904272-3-martin.blumenstingl@googlemail.com>

On 21/12/2020 19:13, Martin Blumenstingl wrote:
> The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
> SoCs (Meson6, Meson8, Meson8b and Meson8m2). Add a "generic-adc-thermal"
> instance to meson.dtsi so the thermal sensor is available for all SoCs.
> If the temperature sensor calibration data is missing for a board then
> the "generic-adc-thermal" will not probe and not register a thermal
> sensor.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  arch/arm/boot/dts/meson.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
> index 5f074f7aa1a2..e0ca5f08d07d 100644
> --- a/arch/arm/boot/dts/meson.dtsi
> +++ b/arch/arm/boot/dts/meson.dtsi
> @@ -298,6 +298,13 @@ efuse: nvmem@0 {
>  		};
>  	};
>  
> +	thermal_sensor: thermal-sensor {
> +		compatible = "generic-adc-thermal";
> +		#thermal-sensor-cells = <0>;
> +		io-channels = <&saradc 8>;
> +		io-channel-names = "sensor-channel";
> +	};
> +
>  	xtal: xtal-clk {
>  		compatible = "fixed-clock";
>  		clock-frequency = <24000000>;
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Neil Armstrong <narmstrong@baylibre.com>
To: Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	linux-amlogic@lists.infradead.org, khilman@baylibre.com
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/5] ARM: dts: meson: add the ADC thermal sensor to meson.dtsi
Date: Mon, 11 Jan 2021 15:03:22 +0100	[thread overview]
Message-ID: <e5bfa1ec-678d-0c60-bf0b-073c059ba843@baylibre.com> (raw)
In-Reply-To: <20201221181306.904272-3-martin.blumenstingl@googlemail.com>

On 21/12/2020 19:13, Martin Blumenstingl wrote:
> The SoC temperature can be retrieved from ADC channel 8 on all 32-bit
> SoCs (Meson6, Meson8, Meson8b and Meson8m2). Add a "generic-adc-thermal"
> instance to meson.dtsi so the thermal sensor is available for all SoCs.
> If the temperature sensor calibration data is missing for a board then
> the "generic-adc-thermal" will not probe and not register a thermal
> sensor.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  arch/arm/boot/dts/meson.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
> index 5f074f7aa1a2..e0ca5f08d07d 100644
> --- a/arch/arm/boot/dts/meson.dtsi
> +++ b/arch/arm/boot/dts/meson.dtsi
> @@ -298,6 +298,13 @@ efuse: nvmem@0 {
>  		};
>  	};
>  
> +	thermal_sensor: thermal-sensor {
> +		compatible = "generic-adc-thermal";
> +		#thermal-sensor-cells = <0>;
> +		io-channels = <&saradc 8>;
> +		io-channel-names = "sensor-channel";
> +	};
> +
>  	xtal: xtal-clk {
>  		compatible = "fixed-clock";
>  		clock-frequency = <24000000>;
> 

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

  reply	other threads:[~2021-01-11 14:04 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-21 18:13 [PATCH 0/5] Thermal zone configuration for Meson8/Meson8b/Meson8m2 Martin Blumenstingl
2020-12-21 18:13 ` Martin Blumenstingl
2020-12-21 18:13 ` Martin Blumenstingl
2020-12-21 18:13 ` [PATCH 1/5] ARM: dts: meson: move iio-hwmon for the SoC temperature to meson.dtsi Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2021-01-11 14:03   ` Neil Armstrong
2021-01-11 14:03     ` Neil Armstrong
2021-01-11 14:03     ` Neil Armstrong
2020-12-21 18:13 ` [PATCH 2/5] ARM: dts: meson: add the ADC thermal sensor " Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2021-01-11 14:03   ` Neil Armstrong [this message]
2021-01-11 14:03     ` Neil Armstrong
2021-01-11 14:03     ` Neil Armstrong
2020-12-21 18:13 ` [PATCH 3/5] ARM: dts: meson8: add the thermal-zones with cooling configuration Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2021-01-11 14:04   ` Neil Armstrong
2021-01-11 14:04     ` Neil Armstrong
2021-01-11 14:04     ` Neil Armstrong
2020-12-21 18:13 ` [PATCH 4/5] ARM: dts: meson8b: " Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2021-01-11 14:04   ` Neil Armstrong
2021-01-11 14:04     ` Neil Armstrong
2021-01-11 14:04     ` Neil Armstrong
2020-12-21 18:13 ` [PATCH 5/5] ARM: multi_v7_defconfig: Enable support for the ADC thermal sensor Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2020-12-21 18:13   ` Martin Blumenstingl
2021-01-25 18:42 ` [PATCH 0/5] Thermal zone configuration for Meson8/Meson8b/Meson8m2 Kevin Hilman
2021-01-25 18:42   ` Kevin Hilman
2021-01-25 18:42   ` Kevin Hilman

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=e5bfa1ec-678d-0c60-bf0b-073c059ba843@baylibre.com \
    --to=narmstrong@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.