diff options
| author | Akshay Saraswat <akshay.s@samsung.com> | 2013-02-25 01:13:01 +0000 | 
|---|---|---|
| committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-03-12 17:06:06 +0900 | 
| commit | 618766c09855f7167f510eafa89172ae44cae543 (patch) | |
| tree | e763fe6051906d55b2cf25d5eba839d65b98fa8c | |
| parent | 39d182d3de5dcfaeb7d6997be4ab764081ff529e (diff) | |
| download | olio-uboot-2014.01-618766c09855f7167f510eafa89172ae44cae543.tar.xz olio-uboot-2014.01-618766c09855f7167f510eafa89172ae44cae543.zip | |
Exynos5: FDT: Add TMU device node values
Fdt entry for Exynos TMU driver specific pre-defined values used for
calibration of current temperature and defining threshold values.
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
| -rw-r--r-- | arch/arm/dts/exynos5250.dtsi | 5 | ||||
| -rw-r--r-- | board/samsung/dts/exynos5250-smdk5250.dts | 12 | ||||
| -rw-r--r-- | doc/device-tree-bindings/exynos/tmu.txt | 41 | ||||
| -rw-r--r-- | include/fdtdec.h | 1 | ||||
| -rw-r--r-- | lib/fdtdec.c | 1 | 
5 files changed, 60 insertions, 0 deletions
| diff --git a/arch/arm/dts/exynos5250.dtsi b/arch/arm/dts/exynos5250.dtsi index ed8c8dd60..61d35a83e 100644 --- a/arch/arm/dts/exynos5250.dtsi +++ b/arch/arm/dts/exynos5250.dtsi @@ -151,4 +151,9 @@  		};  	}; +	tmu@10060000 { +		compatible = "samsung,exynos-tmu"; +		reg = <0x10060000 0x10000>; +	}; +  }; diff --git a/board/samsung/dts/exynos5250-smdk5250.dts b/board/samsung/dts/exynos5250-smdk5250.dts index cbfab6f97..00dac40b3 100644 --- a/board/samsung/dts/exynos5250-smdk5250.dts +++ b/board/samsung/dts/exynos5250-smdk5250.dts @@ -66,4 +66,16 @@  			compatible = "maxim,max77686_pmic";  		};  	}; + +	tmu@10060000 { +		samsung,min-temp	= <25>; +		samsung,max-temp	= <125>; +		samsung,start-warning	= <95>; +		samsung,start-tripping	= <105>; +		samsung,efuse-min-value	= <40>; +		samsung,efuse-value	= <55>; +		samsung,efuse-max-value	= <100>; +		samsung,slope		= <274761730>; +		samsung,dc-value	= <25>; +	};  }; diff --git a/doc/device-tree-bindings/exynos/tmu.txt b/doc/device-tree-bindings/exynos/tmu.txt new file mode 100644 index 000000000..bb734dcac --- /dev/null +++ b/doc/device-tree-bindings/exynos/tmu.txt @@ -0,0 +1,41 @@ +Exynos Thermal management Unit + +Required properties: + + - compatible : Should be "samsung,exynos-tmu" for TMU + - samsung,min-temp : Minimum temperature value (25 degree celsius) +	- Current temperature of SoC should be more than this value. + - samsung,max-temp : Maximum temperature value (125 degree celsius) +	- Current temperature of SoC should be less than this value. + - samsung,start-warning : Temperature at which TMU starts giving warning (degree celsius) + - samsung,start-tripping : Temperature at which system will trip and shutdown (degree celsius) + - samsung,efuse-min-value : SOC efuse min value (Constant 40) +	- efuse-value should be more than this value. + - samsung,efuse-value : SOC actual efuse value (Literal value) +	- This is the data trimming info. +	- This value is used to calculate measuring error. + - samsung,efuse-max-value : SoC max efuse value (Constant 100) +	- efuse-value should be less than this value. + - samsung,slope : Default value 274761730 (Constant 0x1060_8802). +	- This is the default value for TMU_CONTROL register. +	- It sets the gain of amplifier to the positive-tc generator block. +	- It selects thermal tripping mode and enables thermal tripping. + - samsung,dc-value : Measured data calibration value (Constant 25) +	- Used for tempearture calculation. +	- This is 25 because temperature measured is always above 25 degrees. + + +Example: + +tmu@10060000 { +	compatible = "samsung,exynos-tmu" +	samsung,min-temp = <25>; +	samsung,max-temp = <125>; +	samsung,start-warning = <95>; +	samsung,start-tripping = <105>; +	samsung,efuse-min-value = <40>; +	samsung,efuse-value = <55>; +	samsung,efuse-max-value = <100>; +	samsung,slope = <274761730>; +	samsung,dc-value = <25>; +}; diff --git a/include/fdtdec.h b/include/fdtdec.h index b885a9578..655294211 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -80,6 +80,7 @@ enum fdt_compat_id {  	COMPAT_SAMSUNG_EXYNOS_SPI,	/* Exynos SPI */  	COMPAT_SAMSUNG_EXYNOS_EHCI,	/* Exynos EHCI controller */  	COMPAT_SAMSUNG_EXYNOS_USB_PHY,	/* Exynos phy controller for usb2.0 */ +	COMPAT_SAMSUNG_EXYNOS_TMU,	/* Exynos TMU */  	COMPAT_MAXIM_MAX77686_PMIC,	/* MAX77686 PMIC */  	COMPAT_MAXIM_98095_CODEC,	/* MAX98095 Codec */ diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 9a527ffd8..88f6b6827 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -55,6 +55,7 @@ static const char * const compat_names[COMPAT_COUNT] = {  	COMPAT(SAMSUNG_EXYNOS_SPI, "samsung,exynos-spi"),  	COMPAT(SAMSUNG_EXYNOS_EHCI, "samsung,exynos-ehci"),  	COMPAT(SAMSUNG_EXYNOS_USB_PHY, "samsung,exynos-usb-phy"), +	COMPAT(SAMSUNG_EXYNOS_TMU, "samsung,exynos-tmu"),  	COMPAT(MAXIM_MAX77686_PMIC, "maxim,max77686_pmic"),  	COMPAT(MAXIM_98095_CODEC, "maxim,max98095-codec"),  }; |