From: David Leonard <David.Leonard@digi.com>
To: Frank Li <Frank.li@nxp.com>
Cc: linux-arm-kernel@lists.infradead.org,
Dong Aisheng <aisheng.dong@nxp.com>,
Fabio Estevam <festevam@gmail.com>,
Shawn Guo <shawnguo@kernel.org>, Jacky Bai <ping.bai@nxp.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Linus Walleij <linus.walleij@linaro.org>,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH 1/6] pinctrl: ls1012a: Add pinctrl driver support
Date: Wed, 28 Aug 2024 11:13:21 +1000 (AEST) [thread overview]
Message-ID: <41b62521-63ce-e1d1-065f-d84b17da2b58@digi.com> (raw)
In-Reply-To: <Zs4W9EGSCFfxDgq9@lizhi-Precision-Tower-5810>
On Tue, 27 Aug 2024, Frank Li wrote:
> On Tue, Aug 27, 2024 at 12:05:24PM +1000, David Leonard wrote:
>> Add QorIQ LS1012A pinctrl driver, allowing i2c-core to exert
>> GPIO control over the second I2C bus.
>>
>> Signed-off-by: David Leonard <David.Leonard@digi.com>
>> ---
>
> Why not use pinctrl-single ?
>
> You can ref arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
>
> It did similar thing to use GPIO recover i2c bus.
>
> Just need change dts file.
This is a great suggestion for the LS1046A and means I could
withdraw the "fsl,ls1046a-pinctrl" driver, which I'll do.
But I don't think it's suitable for use with the LS1012A.
The reason is that the the LS1012A's pinmux register PMUXCR0 is more
complicated. It has a global override bit, overriding the "backing"
RCW configuration for 3 pingroups. In addition, when overriding, the
PMUXCR0 can only supply a subset of the functions that RCW can.
/*
* LS1012A
* Group: qspi_1 qspi_2 qspi_3
* ================== =========== =============
* Pin: 62 123 124 61 122 60
* ----- ------ ----- ----------- ------ ------
* i2c SCL SDA (RCW only)
* spi SCK DATA0
* spi SCK DATA0 DATA1
* spi SCK DATA0 DATA1 DATA2 DATA3
* gpio GPIO4 GPIO11 GPIO5
* gpio GPIO12
* gpio GPIO13 GPIO14
* gpio_reset GPIO13 REQ_B (RCW only)
*/
In particular, when PMUXCR0 is overriding RCW, it can't provide "i2c"
or "gpio_reset" functions for qspi_3. It can only provide "spi" and "gpio".
The fsl,ls1012a-pinctrl driver recognises when you are asking
for the configuration that the RCW can provide, and diables the
override.
Cheers,
David
prev parent reply other threads:[~2024-08-28 1:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 2:05 [PATCH 1/6] pinctrl: ls1012a: Add pinctrl driver support David Leonard
2024-08-27 6:32 ` Alexander Stein
2024-08-27 12:23 ` David Leonard
2024-08-27 18:12 ` Frank Li
2024-08-27 18:14 ` Frank Li
2024-08-28 1:13 ` David Leonard [this message]
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=41b62521-63ce-e1d1-065f-d84b17da2b58@digi.com \
--to=david.leonard@digi.com \
--cc=Frank.li@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ping.bai@nxp.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox