mailarchive of the pengutronix oss-tools mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: oss-tools@pengutronix.de
Subject: Re: [OSS-Tools] [PATCH dt-utils] dtblint: add support for fsl, imx8mp-iomuxc
Date: Tue, 2 Apr 2024 17:08:34 +0200	[thread overview]
Message-ID: <nj7e7fyxzq35vmfyhilq4oiw4td2elrpm3qlk6jp7u3flg2fax@zsjia4avazgd> (raw)
In-Reply-To: <9339ba89-2804-4457-b67f-2ce330a63ad7@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 2407 bytes --]

Hello Ahmad,

On Tue, Apr 02, 2024 at 04:44:33PM +0200, Ahmad Fatoum wrote:
> On 02.04.24 15:09, Uwe Kleine-König wrote:
> > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> 
> Please add the version of the reference manual you took these values from.

Good idea. I'd even add it to the source file, too.

> > ---
> >  src/dtblint-imx-pinmux.c | 1317 ++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 1317 insertions(+)
> > 
> 
> > +		.padname = "SD1_DATA5",
> > +		.swmux_regoffset = 0x0a8,
> > +		.swmux_reset_default = 0x00000005,
> > +		.swmux_writeable_mask = 0x00000017,
> > +		.swpad_regoffset = 0x308,
> > +		.swpad_reset_default = 0x00000106,
> > +		.swpad_writeable_mask = 0x000001f6,
> > +		.swpad_writeable_mask = 0x000001f6,
> 
> This line is duplicated.

Yes, this is fixed in v2, together with two other such duplicates.

> > +		.padname = "ECSPI2_SS0",
> > +		.swmux_regoffset = 0x1fc,
> > +		.swmux_reset_default = 0x00000005,
> > +		.swmux_writeable_mask = 0x00000017,
> > +		.swpad_regoffset = 0x45c,
> > +		.swpad_reset_default = 0x00000106,
> > +		.swpad_writeable_mask = 0x000001f6,
> > +		.swpad_writeable_mask = 0x000001f6,
> 
> This is also duplicated.
> 
> > +	/* regname="AUDIOMIX_PDM_MIC_PDM_BITSTREAM_SELECT_INPUT_0" regoffset=0x4c0 reset_default=0x00000000 */
> > +	/* regname="AUDIOMIX_PDM_MIC_PDM_BITSTREAM_SELECT_INPUT_1" regoffset=0x4c4 reset_default=0x00000000 */
> > +	/* regname="AUDIOMIX_PDM_MIC_PDM_BITSTREAM_SELECT_INPUT_2" regoffset=0x4c8 reset_default=0x00000000 */
> > +	/* regname="AUDIOMIX_PDM_MIC_PDM_BITSTREAM_SELECT_INPUT_3" regoffset=0x4cc reset_default=0x00000000 */
> 
> [snip]
> 
> > +	/* regname="USDHC3_STROBE_SELECT_INPUT" regoffset=0x630 reset_default=0x00000000 */
> > +	/* regname="USDHC3_WP_ON_SELECT_INPUT" regoffset=0x634 reset_default=0x00000000 */
> 
> What are these comments about?

The table of swmux and swpad registers originates from the reference
manual. These comments are the registers in the IOMUXC that are not
relevant for the linter. I kept them because copying these details from
the NXP pdf isn't trivial. I can drop them if they are considered to be
useless here.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2024-04-02 15:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-02 13:09 Uwe Kleine-König
2024-04-02 14:44 ` Ahmad Fatoum
2024-04-02 15:08   ` Uwe Kleine-König [this message]
2024-04-02 15:11     ` Ahmad Fatoum

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=nj7e7fyxzq35vmfyhilq4oiw4td2elrpm3qlk6jp7u3flg2fax@zsjia4avazgd \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=oss-tools@pengutronix.de \
    /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