All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Graute <oliver.graute@gmail.com>
To: "A.s. Dong" <aisheng.dong@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
	dl-linux-imx <linux-imx@nxp.com>,
	Fabio Estevam <fabio.estevam@nxp.com>,
	Anson Huang <anson.huang@nxp.com>
Subject: Re: Can't set MX6UL_PAD_LCD_DATA10 register with devicetree
Date: Tue, 9 Oct 2018 11:15:08 +0200	[thread overview]
Message-ID: <20181009091508.GA13624@graute-opti> (raw)
In-Reply-To: <AM0PR04MB42116046ADF97D5A0E05C63980E70@AM0PR04MB4211.eurprd04.prod.outlook.com>

On 09/10/18, A.s. Dong wrote:
> > -----Original Message-----
> > From: Shawn Guo [mailto:shawnguo@kernel.org]
> > Sent: Monday, October 8, 2018 2:21 PM
> > To: Oliver Graute <oliver.graute@gmail.com>
> > Cc: devicetree@vger.kernel.org; s.hauer@pengutronix.de; dl-linux-imx
> > <linux-imx@nxp.com>; Fabio Estevam <fabio.estevam@nxp.com>; Anson
> > Huang <anson.huang@nxp.com>
> > Subject: Re: Can't set MX6UL_PAD_LCD_DATA10 register with devicetree
> > 
> > Copy NXP folks and list.
> > 
> > On Fri, Oct 05, 2018 at 02:45:19PM +0200, Oliver Graute wrote:
> > > Hello list,
> > >
> > > I try to set the following PAD in my imx6ul devicetree (derived from
> > > imx6ul-14x14-evk.dts)
> > >
> > > MX6UL_PAD_LCD_DATA10__GPIO3_IO15 0x100b0
> > >
> > > but after kernel compiling and booting the register value is not
> > > changed. A readout with devmem2 show me the wrong value.
> > >
> > > devmem2 0x020E03CC
> > > /dev/mem opened.
> > > Memory mapped at address 0x76fc4000.
> > > Read at address  0x020E03CC (0x76fc43cc): 0x000010B0
> > >
> > > Setting the register manually with devmem2 just works fine.
> > >
> > > /usr/bin/devmem2 0x020E03CC w 0x000100B0
> > >
> > > other PADs like MX6UL_PAD_GPIO1_IO07__ENET1_MDC I could configure via
> > > the imx6ul devicetree.
> > >
> > > ideas what I'm doing wrong here?
> > >
> 
> I tested imx6ul evk with Shawn's for next tree by manual change LCD_DATA10
> Pad set to 0x100b0, but did not reproduced your issue.
> 
> As I don't have devme2 tool in my rootfs, so I tried memtool in NXP released rootfs.
> root@imx6ul7d:~# /unit_tests/memtool -32 0x20e03cc 1
> E
> Reading 0x1 count starting at address 0x020E03CC
> 
> 0x020E03CC:  000100B0
> 
> I guess you can debug the issue with below approaches:
> 1) use below cmd to dump pad setting via pinctrl sysfs
> cat /sys/kernel/debug/pinctrl/20e0000.iomuxc/pinconf-pins | grep LCD_DATA10
> 2) Enable CONFIG_DEBUG_PINCTRL will make the booting dump all pad settings
> in register value. Then you may find some clue on it. 

thx for this hint. I didn't know this CONFIG_DEBUG_PINCTRL option
before. In my dmesg output I now see all the PAD settings.

Best regards,

Oliver

  reply	other threads:[~2018-10-09 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-05 12:45 Can't set MX6UL_PAD_LCD_DATA10 register with devicetree Oliver Graute
2018-10-08  6:21 ` Shawn Guo
2018-10-09  2:55   ` A.s. Dong
2018-10-09  3:27   ` A.s. Dong
2018-10-09  9:15     ` Oliver Graute [this message]
2018-10-08 20:22 ` Fabio Estevam
2018-10-09  6:28   ` Oliver Graute
2018-10-09  7:48     ` Vokáč Michal
2018-10-09  9:20       ` Oliver Graute
2018-10-09 11:00         ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181009091508.GA13624@graute-opti \
    --to=oliver.graute@gmail.com \
    --cc=aisheng.dong@nxp.com \
    --cc=anson.huang@nxp.com \
    --cc=devicetree@vger.kernel.org \
    --cc=fabio.estevam@nxp.com \
    --cc=linux-imx@nxp.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.