]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra210: Set IO PAD default voltage to 1.8V which only work on 1.8V
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 3 Jun 2015 12:09:22 +0000 (17:39 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Tue, 9 Jun 2015 05:41:29 +0000 (22:41 -0700)
On T210, some of IO pads are designed to work on two voltages 1.8V
and 3.3V. The IO-PAD SPI-HV is having the autodetect capability to
detect the voltage level from platform but for other IO PAD, the
capability is removed as part of 20nm design. Hence SW need to
explicitly set the PWR-DET register for the other IO PADS as per
power tree.

All IO pads are not the capable of working on 1.8V and 3.3V
although there is PWR-DET bits on the power detect registers.
These are dummy on nature and just available for backward
compatibility.

The IO pads are:
SPI-HV:
Autodetect capability and 1.8/3.3V support.
GPIO, SDMMC1, SDMMC3, AUDIO_HV:
Work on 1.8V and 3.3V, SW need to set PWR-DET bit.
AUDIO, CAM, DBG, DMIC, PEX-CTRL, SPI, UART, SYS, BB:
Only work on 1.8V.

Configure the IO pad volateg to 1.8V which works on 1.8V only to
match with power tree.

bug 200112284

Change-Id: I8cc3639d6a791f9f261700cb60074ee949987e0f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
(cherry picked from commit 130e6c65b64be9ecde8bdc5b2154cf3ab285932d)
Reviewed-on: http://git-master/r/754581

arch/arm64/boot/dts/tegra210-soc-base.dtsi

index 7f97e4f31f7c79c71462bdb81453bbd88218f596..639bf6a19343ac1c6ade0a2ecb43b4a3f255eab0 100644 (file)
                reg = <0x0 0x7000e400 0x0 0x400>;
                #padcontroller-cells = <1>;
                status = "disabled";
+               io-pad-defaults {
+                       audio {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       cam {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       dbg {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       dmic {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       pex-ctrl {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       spi {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       uart {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+
+                       bb {
+                               nvidia,io-pad-init-voltage = <IO_PAD_VOLTAGE_1_8V>;
+                       };
+               };
        };
 
        adma: adma@702e2000 {