MLK-11779 sim: imx: set gpio active high
authorGao Pan <b54642@freescale.com>
Mon, 26 Oct 2015 04:58:25 +0000 (12:58 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:09 +0000 (14:49 -0500)
Sim card CVCC is determined by the gpio value from sim controller.
How the CVCC is controlled on both post card boards is decribed below.

NCN8025:Vcc=ACTIVE_HIGH?5V:3V
TDA8035:Vcc=ACTIVE_HIGH?5V:1.8V

Different sim cards have different CVCC range. To support all cards
with same dts, this patch set gpio active high.

Signed-off-by: Gao Pan <b54642@freescale.com>
arch/arm/boot/dts/imx6ul-14x14-evk.dts

index 03b0a29..fe4f599 100644 (file)
        assigned-clocks = <&clks IMX6UL_CLK_SIM_SEL>;
        assigned-clock-parents = <&clks IMX6UL_CLK_SIM_PODF>;
        assigned-clock-rates = <240000000>;
-       pinctrl-assert-gpios = <&gpio4 23 GPIO_ACTIVE_LOW>;
+       /* GPIO_ACTIVE_HIGH/LOW:sim card voltage control
+        * NCN8025:Vcc = ACTIVE_HIGH?5V:3V
+        * TDA8035:Vcc = ACTIVE_HIGH?5V:1.8V
+        */
+       pinctrl-assert-gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
        port = <1>;
        sven_low_active;
 };