Re: [PATCH 2/3] arm64: dts: exynos: Add TMU sensor dt node for Exynos5433 SoC

2015-03-04 Thread Lukasz Majewski
Hi Chanwoo,

 This patch adds the TMU (Thermal Management Unit) sensor devicetree
 node for Exynos5433. The Exynos5433 includes the five temperature
 sensors as following:
 - two temperature sensor for Cortex-A57 (ATLAS)
 - one temperature sensor for Cortex-A53 (APOLLO)
 - one temperature sensor for G3D IP
 - one temperature sensor for ISP IP
 
 Cc: Kukjin Kim kg...@kernel.org
 Signed-off-by: Chanwoo Choi cw00.c...@samsung.com
 Acked-by: Inki Dae inki@samsung.com
 ---
  .../dts/exynos/exynos5433-tmu-sensor-conf.dtsi | 22 +
  arch/arm64/boot/dts/exynos/exynos5433.dtsi | 55
 ++ 2 files changed, 77 insertions(+)
  create mode 100644
 arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi
 
 diff --git
 a/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi
 b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi new file
 mode 100644 index 000..396e60f --- /dev/null
 +++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi
 @@ -0,0 +1,22 @@
 +/*
 + * Device tree sources for Exynos5433 TMU sensor configuration
 + *
 + * Copyright (c) 2015 Chanwoo Choi cw00.c...@samsung.com
 + *
 + * This program is free software; you can redistribute it and/or
 modify
 + * it under the terms of the GNU General Public License version 2 as
 + * published by the Free Software Foundation.
 + */
 +
 +#include dt-bindings/thermal/thermal_exynos.h
 +
 +#thermal-sensor-cells = 0;
 +samsung,tmu_gain = 8;
 +samsung,tmu_reference_voltage = 16;
 +samsung,tmu_noise_cancel_mode = 4;
 +samsung,tmu_efuse_value = 75;
 +samsung,tmu_min_efuse_value = 40;
 +samsung,tmu_max_efuse_value = 150;
 +samsung,tmu_first_point_trim = 25;
 +samsung,tmu_second_point_trim = 85;
 +samsung,tmu_default_temp_offset = 50;
 diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
 b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 0776b6d..b44ddcc
 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
 +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
 @@ -872,6 +872,61 @@
   status = disabled;
   };
  
 + tmu_atlas0: tmu@1006 {
 + compatible = samsung,exynos5433-tmu;
 + reg = 0x1006 0x200;
 + interrupts = 0 95 0;
 + clocks = cmu_peris CLK_PCLK_TMU0_APBIF,
 +  cmu_peris CLK_SCLK_TMU0;
 + clock-names = tmu_apbif, tmu_sclk;
 + #include exynos5433-tmu-sensor-conf.dtsi
 + status = disabled;
 + };
 +
 + tmu_atlas1: tmu@10068000 {
 + compatible = samsung,exynos5433-tmu;
 + reg = 0x10068000 0x200;
 + interrupts = 0 96 0;
 + clocks = cmu_peris CLK_PCLK_TMU0_APBIF,
 +  cmu_peris CLK_SCLK_TMU0;
 + clock-names = tmu_apbif, tmu_sclk;
 + #include exynos5433-tmu-sensor-conf.dtsi
 + status = disabled;
 + };
 +
 + tmu_g3d: tmu@1007 {
 + compatible = samsung,exynos5433-tmu;
 + reg = 0x1007 0x200;
 + interrupts = 0 99 0;
 + clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
 +  cmu_peris CLK_SCLK_TMU1;
 + clock-names = tmu_apbif, tmu_sclk;
 + #include exynos5433-tmu-sensor-conf.dtsi
 + status = disabled;
 + };
 +
 + tmu_apollo: tmu@10078000 {
 + compatible = samsung,exynos5433-tmu;
 + reg = 0x10078000 0x200;
 + interrupts = 0 115 0;
 + clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
 +  cmu_peris CLK_SCLK_TMU1;
 + clock-names = tmu_apbif, tmu_sclk;
 + #include exynos5433-tmu-sensor-conf.dtsi
 + status = disabled;
 + };
 +
 + tmu_isp: tmu@1007c000 {
 + compatible = samsung,exynos5433-tmu;
 + reg = 0x1007c000 0x200;
 + interrupts = 0 94 0;
 + clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
 +  cmu_peris CLK_SCLK_TMU1;
 + clock-names = tmu_apbif, tmu_sclk;
 + #include exynos5433-tmu-sensor-conf.dtsi
 + status = disabled;
 + };
 +
   pmu_system_controller: system-controller@105c {
   compatible = samsung,exynos5433-pmu,
 syscon; reg = 0x105c 0x5008;

Reviewed-by: Lukasz Majewski l.majew...@samsung.com

-- 
Best regards,

Lukasz Majewski

Samsung RD Institute Poland (SRPOL) | Linux Platform Group
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to 

[PATCH 2/3] arm64: dts: exynos: Add TMU sensor dt node for Exynos5433 SoC

2015-02-26 Thread Chanwoo Choi
This patch adds the TMU (Thermal Management Unit) sensor devicetree node for
Exynos5433. The Exynos5433 includes the five temperature sensors as following:
- two temperature sensor for Cortex-A57 (ATLAS)
- one temperature sensor for Cortex-A53 (APOLLO)
- one temperature sensor for G3D IP
- one temperature sensor for ISP IP

Cc: Kukjin Kim kg...@kernel.org
Signed-off-by: Chanwoo Choi cw00.c...@samsung.com
Acked-by: Inki Dae inki@samsung.com
---
 .../dts/exynos/exynos5433-tmu-sensor-conf.dtsi | 22 +
 arch/arm64/boot/dts/exynos/exynos5433.dtsi | 55 ++
 2 files changed, 77 insertions(+)
 create mode 100644 arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi

diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi 
b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi
new file mode 100644
index 000..396e60f
--- /dev/null
+++ b/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi
@@ -0,0 +1,22 @@
+/*
+ * Device tree sources for Exynos5433 TMU sensor configuration
+ *
+ * Copyright (c) 2015 Chanwoo Choi cw00.c...@samsung.com
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include dt-bindings/thermal/thermal_exynos.h
+
+#thermal-sensor-cells = 0;
+samsung,tmu_gain = 8;
+samsung,tmu_reference_voltage = 16;
+samsung,tmu_noise_cancel_mode = 4;
+samsung,tmu_efuse_value = 75;
+samsung,tmu_min_efuse_value = 40;
+samsung,tmu_max_efuse_value = 150;
+samsung,tmu_first_point_trim = 25;
+samsung,tmu_second_point_trim = 85;
+samsung,tmu_default_temp_offset = 50;
diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi 
b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
index 0776b6d..b44ddcc 100644
--- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi
+++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi
@@ -872,6 +872,61 @@
status = disabled;
};
 
+   tmu_atlas0: tmu@1006 {
+   compatible = samsung,exynos5433-tmu;
+   reg = 0x1006 0x200;
+   interrupts = 0 95 0;
+   clocks = cmu_peris CLK_PCLK_TMU0_APBIF,
+cmu_peris CLK_SCLK_TMU0;
+   clock-names = tmu_apbif, tmu_sclk;
+   #include exynos5433-tmu-sensor-conf.dtsi
+   status = disabled;
+   };
+
+   tmu_atlas1: tmu@10068000 {
+   compatible = samsung,exynos5433-tmu;
+   reg = 0x10068000 0x200;
+   interrupts = 0 96 0;
+   clocks = cmu_peris CLK_PCLK_TMU0_APBIF,
+cmu_peris CLK_SCLK_TMU0;
+   clock-names = tmu_apbif, tmu_sclk;
+   #include exynos5433-tmu-sensor-conf.dtsi
+   status = disabled;
+   };
+
+   tmu_g3d: tmu@1007 {
+   compatible = samsung,exynos5433-tmu;
+   reg = 0x1007 0x200;
+   interrupts = 0 99 0;
+   clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
+cmu_peris CLK_SCLK_TMU1;
+   clock-names = tmu_apbif, tmu_sclk;
+   #include exynos5433-tmu-sensor-conf.dtsi
+   status = disabled;
+   };
+
+   tmu_apollo: tmu@10078000 {
+   compatible = samsung,exynos5433-tmu;
+   reg = 0x10078000 0x200;
+   interrupts = 0 115 0;
+   clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
+cmu_peris CLK_SCLK_TMU1;
+   clock-names = tmu_apbif, tmu_sclk;
+   #include exynos5433-tmu-sensor-conf.dtsi
+   status = disabled;
+   };
+
+   tmu_isp: tmu@1007c000 {
+   compatible = samsung,exynos5433-tmu;
+   reg = 0x1007c000 0x200;
+   interrupts = 0 94 0;
+   clocks = cmu_peris CLK_PCLK_TMU1_APBIF,
+cmu_peris CLK_SCLK_TMU1;
+   clock-names = tmu_apbif, tmu_sclk;
+   #include exynos5433-tmu-sensor-conf.dtsi
+   status = disabled;
+   };
+
pmu_system_controller: system-controller@105c {
compatible = samsung,exynos5433-pmu, syscon;
reg = 0x105c 0x5008;
-- 
1.8.5.5

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html