devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IMX27: How to do 22k pull-up with the pinctrl ?
@ 2013-11-11 10:45 Chris Ruehl
       [not found] ` <5280B54A.1050503-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Ruehl @ 2013-11-11 10:45 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi,

while I port the static code to the DT I step into the problem to
set the PSCR for the sdhc2 ports to 22k pull-up
I look for something like described in
     pinctrl/fsl,imx-pinctrl.txt

the fsl,imx27-pinctrl only say 0/1 dis/enable pull up but not the strength.


pinctrl_sdhc2_1: sdhc2-1 {
                         fsl,pins = <
                                 MX27_PAD_SD2_D0__SD2_D0  0x1
                                 MX27_PAD_SD2_D1__SD2_D1  0x1
                                 MX27_PAD_SD2_D2__SD2_D2  0x1
                                 MX27_PAD_SD2_D3__SD2_D3  0x1
                                 MX27_PAD_SD2_CLK__SD2_CLK  0x1
                                 MX27_PAD_SD2_CMD__SD2_CMD  0x1
                         >;
                 };

its setup in board specific c-file

/* 22k pull-up for sd2 pins  */
         reg = __raw_readw(MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR + MX27_SYS_PSCR));
         reg &= ~0xfff0;
         reg |= 0xfff0;
         __raw_writew(reg, MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR + MX27_SYS_PSCR));


Any successions?

Regards
Chris
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-11-13  5:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-11 10:45 IMX27: How to do 22k pull-up with the pinctrl ? Chris Ruehl
     [not found] ` <5280B54A.1050503-CR359r9tUDPXPF5Rlphj1Q@public.gmane.org>
2013-11-11 12:03   ` Mark Rutland
     [not found]     ` <20131111120357.GE21201-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2013-11-11 14:26       ` Shawn Guo
     [not found]         ` <20131111142639.GC11083-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2013-11-11 16:21           ` Markus Pargmann
     [not found]             ` <20131111162138.GB30263-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-11-13  5:57               ` Chris Ruehl
2013-11-13  4:43           ` Chris Ruehl
2013-11-11 14:29       ` Linus Walleij
     [not found]         ` <CACRpkdatZfGDn-K-PRxCz53AKF+Q4CAwAbA+ufSKnXapZQkPyw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-13  5:50           ` Chris Ruehl
2013-11-13  4:38       ` Chris Ruehl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).