From 655d35ff62c922e9e22747794b4f6b2de2da0c10 Mon Sep 17 00:00:00 2001 From: Huan Biao Date: Fri, 25 May 2018 16:16:15 +0800 Subject: [PATCH] thermal: enable thermal sensor for g12b PD#165090: thermal: enable g12b thermal sensor dts Change-Id: Ia7dbdf0330bacbd50bc1f1c599abac439ff38985 Signed-off-by: Huan Biao --- arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts | 2 ++ arch/arm64/boot/dts/amlogic/mesong12b.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts b/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts index 63e1483..1c58613 100644 --- a/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts +++ b/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts @@ -33,6 +33,8 @@ i2c2 = &i2c2; i2c3 = &i2c3; i2c4 = &i2c_AO; + tsensor0 = &p_tsensor; + tsensor1 = &d_tsensor; }; memory@00000000 { diff --git a/arch/arm64/boot/dts/amlogic/mesong12b.dtsi b/arch/arm64/boot/dts/amlogic/mesong12b.dtsi index c9b3468..3a6c8b2 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12b.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12b.dtsi @@ -487,7 +487,7 @@ p_tsensor: p_tsensor@ff634594 { compatible = "amlogic, r1p1-tsensor"; device_name = "meson-pthermal"; - status = "disabled"; + status = "okay"; reg = <0x0 0xff634800 0x0 0x50>, <0x0 0xff800268 0x0 0x4>; cal_type = <0x1>; @@ -505,7 +505,7 @@ d_tsensor: d_tsensor@ff800228 { compatible = "amlogic, r1p1-tsensor"; device_name = "meson-dthermal"; - status = "disabled"; + status = "okay"; reg = <0x0 0xff634c00 0x0 0x50>, <0x0 0xff800230 0x0 0x4>; cal_type = <0x1>; -- 2.7.4