diff mbox

[9/9] arm64: dts: register Hi3660's thermal sensor

Message ID 1506073332-92438-10-git-send-email-kevin.wangtao@hisilicon.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tao Wang Sept. 22, 2017, 9:42 a.m. UTC
From: Kevin Wangtao <kevin.wangtao@linaro.org>

add binding for tsensor on H3660, this tsensor is used for
SoC thermal control, it supports alarm interrupt.

Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>
---
 arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Daniel Lezcano Oct. 2, 2017, 7:06 p.m. UTC | #1
On 22/09/2017 11:42, Tao Wang wrote:
> From: Kevin Wangtao <kevin.wangtao@linaro.org>
> 
> add binding for tsensor on H3660, this tsensor is used for
> SoC thermal control, it supports alarm interrupt.
> 
> Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>

I'm not able to apply this patch. Does it rely on another patch?

> ---
>  arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
> index b7a90d6..ae90991 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
> +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
> @@ -978,5 +978,13 @@
>  			clocks = <&crg_ctrl HI3660_OSC32K>;
>  			clock-names = "apb_pclk";
>  		};
> +
> +		tsensor: tsensor@fff30000 {
> +			compatible = "hisilicon,hi3660-tsensor";
> +			reg = <0x0 0xfff30000 0x0 0x1000>;
> +			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
> +			#thermal-sensor-cells = <1>;
> +		};
> +
>  	};
>  };
>
Tao Wang Oct. 9, 2017, 2:38 a.m. UTC | #2
on 2017/10/3 3:06, Daniel Lezcano wrote:
> On 22/09/2017 11:42, Tao Wang wrote:
>> From: Kevin Wangtao <kevin.wangtao@linaro.org>
>>
>> add binding for tsensor on H3660, this tsensor is used for
>> SoC thermal control, it supports alarm interrupt.
>>
>> Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>
> 
> I'm not able to apply this patch. Does it rely on another patch?
No, This patch is based on linux-next
> 
>> ---
>>   arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
>> index b7a90d6..ae90991 100644
>> --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
>> +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
>> @@ -978,5 +978,13 @@
>>   			clocks = <&crg_ctrl HI3660_OSC32K>;
>>   			clock-names = "apb_pclk";
>>   		};
>> +
>> +		tsensor: tsensor@fff30000 {
>> +			compatible = "hisilicon,hi3660-tsensor";
>> +			reg = <0x0 0xfff30000 0x0 0x1000>;
>> +			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
>> +			#thermal-sensor-cells = <1>;
>> +		};
>> +
>>   	};
>>   };
>>
> 
>
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
index b7a90d6..ae90991 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
+++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
@@ -978,5 +978,13 @@ 
 			clocks = <&crg_ctrl HI3660_OSC32K>;
 			clock-names = "apb_pclk";
 		};
+
+		tsensor: tsensor@fff30000 {
+			compatible = "hisilicon,hi3660-tsensor";
+			reg = <0x0 0xfff30000 0x0 0x1000>;
+			interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>;
+			#thermal-sensor-cells = <1>;
+		};
+
 	};
 };