ARM: dts: am335x-evmsk: add support for VTT Toggle
authorHebbar, Gururaja <gururaja.hebbar@ti.com>
Fri, 2 Nov 2018 10:29:12 +0000 (15:59 +0530)
committerTero Kristo <t-kristo@ti.com>
Tue, 6 Nov 2018 13:25:29 +0000 (15:25 +0200)
AM335x EVM-SK EVM provides s/w control via GPIO over the VTT regulator
to reduce power consumption in low power state.

Now that wkup_m3_ipc code provides an option to toggle VTT, add the
relevant DT property.

On AM335x EVM-SK EVM, VTT enable pin is connected to GPIO0 Pin 7.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Keerthy <j-keerthy@ti.com>
arch/arm/boot/dts/am335x-evmsk.dts

index bf1a40e45c97b1b3a0cbbfa6ea583509f4e5bb8a..a95b1500da9f81516f10a4232ad3168deee21246 100644 (file)
 
 &am33xx_pinmux {
        pinctrl-names = "default";
-       pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>;
+       pinctrl-0 = <&gpio_keys_s0 &clkout2_pin &ddr3_vtt_toggle>;
+
+       ddr3_vtt_toggle: ddr3_vtt_toggle {
+               pinctrl-single,pins = <
+                       0x164 (PIN_OUTPUT | MUX_MODE7)  /* ecap0_in_pwm0_out.gpio0_7 */
+               >;
+       };
 
        lcd_pins_default: lcd_pins_default {
                pinctrl-single,pins = <
        };
 };
 
+&wkup_m3_ipc {
+       ti,needs-vtt-toggle;
+       ti,vtt-gpio-pin = <7>;
+};
+
 #include "tps65910.dtsi"
 
 &tps {