diff options
author | Kevin Hilman <khilman@linaro.org> | 2015-01-23 23:19:03 -0500 |
---|---|---|
committer | Kukjin Kim <kgene@kernel.org> | 2015-01-23 23:24:09 -0500 |
commit | e0fc8de687e3f78d2e9d36fed9feb1ad8ecc0995 (patch) | |
tree | 6b8360f51494a3930dd0019fc56230ea1c96895f | |
parent | 9ce09a1f11f68e2c91e0a592c7250cd5df041468 (diff) |
ARM: dts: add on-board INA231 sensors for exynos5422-odroidxu3
The odroid-xu3 has 4 INA231 current sensors on board which can be
accessed from the Linux via the hwmon interface.
There is one sensor for each of these power rails:
- A15 cluster: VDD_ARM
- A7 cluster: VDD_KFC
- GPU: VDD_G3D
- memory: VDD_MEM
In addition to adding the sensors, LDO26 from the PMIC needs to be
enabled because it's powering these sensor.
Cc: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
-rw-r--r-- | arch/arm/boot/dts/exynos5422-odroidxu3.dts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts index c29123c0734d..38694a4a5417 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts | |||
@@ -174,6 +174,13 @@ | |||
174 | regulator-always-on; | 174 | regulator-always-on; |
175 | }; | 175 | }; |
176 | 176 | ||
177 | ldo26_reg: LDO26 { | ||
178 | regulator-name = "vdd_ldo26"; | ||
179 | regulator-min-microvolt = <3000000>; | ||
180 | regulator-max-microvolt = <3000000>; | ||
181 | regulator-always-on; | ||
182 | }; | ||
183 | |||
177 | buck1_reg: BUCK1 { | 184 | buck1_reg: BUCK1 { |
178 | regulator-name = "vdd_mif"; | 185 | regulator-name = "vdd_mif"; |
179 | regulator-min-microvolt = <800000>; | 186 | regulator-min-microvolt = <800000>; |
@@ -330,3 +337,35 @@ | |||
330 | &usbdrd_dwc3_1 { | 337 | &usbdrd_dwc3_1 { |
331 | dr_mode = "otg"; | 338 | dr_mode = "otg"; |
332 | }; | 339 | }; |
340 | |||
341 | &i2c_0 { | ||
342 | status = "okay"; | ||
343 | |||
344 | /* A15 cluster: VDD_ARM */ | ||
345 | ina231@40 { | ||
346 | compatible = "ti,ina231"; | ||
347 | reg = <0x40>; | ||
348 | shunt-resistor = <10000>; | ||
349 | }; | ||
350 | |||
351 | /* memory: VDD_MEM */ | ||
352 | ina231@41 { | ||
353 | compatible = "ti,ina231"; | ||
354 | reg = <0x41>; | ||
355 | shunt-resistor = <10000>; | ||
356 | }; | ||
357 | |||
358 | /* GPU: VDD_G3D */ | ||
359 | ina231@44 { | ||
360 | compatible = "ti,ina231"; | ||
361 | reg = <0x44>; | ||
362 | shunt-resistor = <10000>; | ||
363 | }; | ||
364 | |||
365 | /* A7 cluster: VDD_KFC */ | ||
366 | ina231@45 { | ||
367 | compatible = "ti,ina231"; | ||
368 | reg = <0x45>; | ||
369 | shunt-resistor = <10000>; | ||
370 | }; | ||
371 | }; | ||