linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arm64: dts: mt8173: add node for thermal calibration
@ 2017-01-13  5:52 Dawei Chien
  2017-01-13  8:51 ` Daniel Kurtz
  0 siblings, 1 reply; 3+ messages in thread
From: Dawei Chien @ 2017-01-13  5:52 UTC (permalink / raw)
  To: Rob Herring, Matthias Brugger
  Cc: Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Daniel Kurtz,
	Dawei Chien, devicetree, linux-arm-kernel, linux-kernel,
	linux-pm, linux-mediatek, srv_heupstream, Sascha Hauer,
	Punit Agrawal

From: "dawei.chien@mediatek.com" <dawei.chien@mediatek.com>

Add this for supporting thermal calibration by e-fuse data.

Signed-off-by: Dawei Chien <dawei.chien@mediatek.com>
---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
index 12e7027..adfac1e 100644
--- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
@@ -401,6 +401,11 @@
 		efuse: efuse@10206000 {
 			compatible = "mediatek,mt8173-efuse";
 			reg = <0 0x10206000 0 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			thermal_calibration: calib@528 {
+				reg = <0x528 0xc>;
+			};
 		};
 
 		apmixedsys: clock-controller@10209000 {
@@ -574,6 +579,8 @@
 			resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
 			mediatek,auxadc = <&auxadc>;
 			mediatek,apmixedsys = <&apmixedsys>;
+			nvmem-cells = <&thermal_calibration>;
+			nvmem-cell-names = "calibration-data";
 		};
 
 		nor_flash: spi@1100d000 {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: arm64: dts: mt8173: add node for thermal calibration
  2017-01-13  5:52 arm64: dts: mt8173: add node for thermal calibration Dawei Chien
@ 2017-01-13  8:51 ` Daniel Kurtz
  2017-01-23  9:20   ` Matthias Brugger
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Kurtz @ 2017-01-13  8:51 UTC (permalink / raw)
  To: Dawei Chien
  Cc: Rob Herring, Matthias Brugger, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, open list:OPEN FIRMWARE AND...,
	linux-arm-kernel, linux-kernel, linux-pm,
	moderated list:ARM/Mediatek SoC support, srv_heupstream,
	Sascha Hauer, Punit Agrawal

On Fri, Jan 13, 2017 at 1:52 PM, Dawei Chien <dawei.chien@mediatek.com> wrote:
>
> From: "dawei.chien@mediatek.com" <dawei.chien@mediatek.com>
>
> Add this for supporting thermal calibration by e-fuse data.
>
> Signed-off-by: Dawei Chien <dawei.chien@mediatek.com>

Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>

> ---
>  arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> index 12e7027..adfac1e 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
> @@ -401,6 +401,11 @@
>                 efuse: efuse@10206000 {
>                         compatible = "mediatek,mt8173-efuse";
>                         reg = <0 0x10206000 0 0x1000>;
> +                       #address-cells = <1>;
> +                       #size-cells = <1>;
> +                       thermal_calibration: calib@528 {
> +                               reg = <0x528 0xc>;
> +                       };
>                 };
>
>                 apmixedsys: clock-controller@10209000 {
> @@ -574,6 +579,8 @@
>                         resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
>                         mediatek,auxadc = <&auxadc>;
>                         mediatek,apmixedsys = <&apmixedsys>;
> +                       nvmem-cells = <&thermal_calibration>;
> +                       nvmem-cell-names = "calibration-data";
>                 };
>
>                 nor_flash: spi@1100d000 {
> --
> 1.9.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arm64: dts: mt8173: add node for thermal calibration
  2017-01-13  8:51 ` Daniel Kurtz
@ 2017-01-23  9:20   ` Matthias Brugger
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Brugger @ 2017-01-23  9:20 UTC (permalink / raw)
  To: Daniel Kurtz, Dawei Chien
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	open list:OPEN FIRMWARE AND...,
	linux-arm-kernel, linux-kernel, linux-pm,
	moderated list:ARM/Mediatek SoC support, srv_heupstream,
	Sascha Hauer, Punit Agrawal



On 01/13/2017 09:51 AM, Daniel Kurtz wrote:
> On Fri, Jan 13, 2017 at 1:52 PM, Dawei Chien <dawei.chien@mediatek.com> wrote:
>>
>> From: "dawei.chien@mediatek.com" <dawei.chien@mediatek.com>
>>
>> Add this for supporting thermal calibration by e-fuse data.
>>
>> Signed-off-by: Dawei Chien <dawei.chien@mediatek.com>
>
> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
>

applied, thanks

>> ---
>>  arch/arm64/boot/dts/mediatek/mt8173.dtsi | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
>> index 12e7027..adfac1e 100644
>> --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi
>> +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi
>> @@ -401,6 +401,11 @@
>>                 efuse: efuse@10206000 {
>>                         compatible = "mediatek,mt8173-efuse";
>>                         reg = <0 0x10206000 0 0x1000>;
>> +                       #address-cells = <1>;
>> +                       #size-cells = <1>;
>> +                       thermal_calibration: calib@528 {
>> +                               reg = <0x528 0xc>;
>> +                       };
>>                 };
>>
>>                 apmixedsys: clock-controller@10209000 {
>> @@ -574,6 +579,8 @@
>>                         resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
>>                         mediatek,auxadc = <&auxadc>;
>>                         mediatek,apmixedsys = <&apmixedsys>;
>> +                       nvmem-cells = <&thermal_calibration>;
>> +                       nvmem-cell-names = "calibration-data";
>>                 };
>>
>>                 nor_flash: spi@1100d000 {
>> --
>> 1.9.1
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-23  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-13  5:52 arm64: dts: mt8173: add node for thermal calibration Dawei Chien
2017-01-13  8:51 ` Daniel Kurtz
2017-01-23  9:20   ` Matthias Brugger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).