All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
@ 2022-01-28 16:21 Angus Ainslie
  2022-01-29 18:58 ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Angus Ainslie @ 2022-01-28 16:21 UTC (permalink / raw)
  To: NXP i.MX U-Boot Team
  Cc: Stefano Babic, Fabio Estevam, u-boot, kernel, trini, Angus Ainslie

SION (Software Input On Field) - force the select mode input path

Signed-off-by: Angus Ainslie <angus@akkea.ca>
---
 arch/arm/dts/imx8mq-pinfunc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/imx8mq-pinfunc.h b/arch/arm/dts/imx8mq-pinfunc.h
index b94b02080a..b51e4faea5 100644
--- a/arch/arm/dts/imx8mq-pinfunc.h
+++ b/arch/arm/dts/imx8mq-pinfunc.h
@@ -7,6 +7,7 @@
 #ifndef __DTS_IMX8MQ_PINFUNC_H
 #define __DTS_IMX8MQ_PINFUNC_H
 
+#define IMX_PAD_SION       0x40000000
 /*
  * The pin function ID is a tuple of
  * <mux_reg conf_reg input_reg mux_mode input_val>
-- 
2.25.1


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

* Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
  2022-01-28 16:21 [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit Angus Ainslie
@ 2022-01-29 18:58 ` Fabio Estevam
  2022-01-30 13:09   ` Angus Ainslie
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2022-01-29 18:58 UTC (permalink / raw)
  To: Angus Ainslie
  Cc: NXP i.MX U-Boot Team, Stefano Babic, U-Boot-Denx, kernel, Tom Rini

Hi Angus,

On Fri, Jan 28, 2022 at 1:21 PM Angus Ainslie <angus@akkea.ca> wrote:
>
> SION (Software Input On Field) - force the select mode input path
>
> Signed-off-by: Angus Ainslie <angus@akkea.ca>
> ---
>  arch/arm/dts/imx8mq-pinfunc.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/dts/imx8mq-pinfunc.h b/arch/arm/dts/imx8mq-pinfunc.h
> index b94b02080a..b51e4faea5 100644
> --- a/arch/arm/dts/imx8mq-pinfunc.h
> +++ b/arch/arm/dts/imx8mq-pinfunc.h
> @@ -7,6 +7,7 @@
>  #ifndef __DTS_IMX8MQ_PINFUNC_H
>  #define __DTS_IMX8MQ_PINFUNC_H
>
> +#define IMX_PAD_SION       0x40000000

We want to keep this file in sync with Linux.

If you need to pass IMX_PAD_SION in your board file, please use a
different header file.

Also, can't you just set the sion bit via devicetree? The last time we
discussed this issue, there seemed to be a DT problem.

Please let us know.

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

* Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
  2022-01-29 18:58 ` Fabio Estevam
@ 2022-01-30 13:09   ` Angus Ainslie
  2022-01-30 13:12     ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Angus Ainslie @ 2022-01-30 13:09 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: NXP i.MX U-Boot Team, Stefano Babic, U-Boot-Denx, kernel, Tom Rini

Hi Fabio,

On 2022-01-29 10:58, Fabio Estevam wrote:
> Hi Angus,
> 
> On Fri, Jan 28, 2022 at 1:21 PM Angus Ainslie <angus@akkea.ca> wrote:
>> 
>> SION (Software Input On Field) - force the select mode input path
>> 
>> Signed-off-by: Angus Ainslie <angus@akkea.ca>
>> ---
>>  arch/arm/dts/imx8mq-pinfunc.h | 1 +
>>  1 file changed, 1 insertion(+)
>> 
>> diff --git a/arch/arm/dts/imx8mq-pinfunc.h 
>> b/arch/arm/dts/imx8mq-pinfunc.h
>> index b94b02080a..b51e4faea5 100644
>> --- a/arch/arm/dts/imx8mq-pinfunc.h
>> +++ b/arch/arm/dts/imx8mq-pinfunc.h
>> @@ -7,6 +7,7 @@
>>  #ifndef __DTS_IMX8MQ_PINFUNC_H
>>  #define __DTS_IMX8MQ_PINFUNC_H
>> 
>> +#define IMX_PAD_SION       0x40000000
> 
> We want to keep this file in sync with Linux.
> 
> If you need to pass IMX_PAD_SION in your board file, please use a
> different header file.
> 

I added this because I wanted to use it in the SPL. I can put it in the 
header file for my board but I think it would be better in an imx8m 
header file. If not the pinfunc header is there another imx8m header you 
could suggest ?

> Also, can't you just set the sion bit via devicetree? The last time we
> discussed this issue, there seemed to be a DT problem.
> 

I can set the sion bit via the DT but I'm not using the DT n the SPL so 
it won't help much.

Thanks
Angus

> Please let us know.

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

* Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
  2022-01-30 13:09   ` Angus Ainslie
@ 2022-01-30 13:12     ` Fabio Estevam
  2022-02-01 19:05       ` Angus Ainslie
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2022-01-30 13:12 UTC (permalink / raw)
  To: Angus Ainslie
  Cc: NXP i.MX U-Boot Team, Stefano Babic, U-Boot-Denx, kernel, Tom Rini

Hi Angus,

On Sun, Jan 30, 2022 at 10:10 AM Angus Ainslie <angus@akkea.ca> wrote:

> I added this because I wanted to use it in the SPL. I can put it in the
> header file for my board but I think it would be better in an imx8m
> header file. If not the pinfunc header is there another imx8m header you
> could suggest ?

What about arch/arm/include/asm/mach-imx/sys_proto.h ?

> I can set the sion bit via the DT but I'm not using the DT n the SPL so
> it won't help much.

Ok, understood.

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

* Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
  2022-01-30 13:12     ` Fabio Estevam
@ 2022-02-01 19:05       ` Angus Ainslie
  2022-02-01 19:17         ` Fabio Estevam
  0 siblings, 1 reply; 6+ messages in thread
From: Angus Ainslie @ 2022-02-01 19:05 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: NXP i.MX U-Boot Team, Stefano Babic, U-Boot-Denx, kernel, Tom Rini

On 2022-01-30 05:12, Fabio Estevam wrote:
> Hi Angus,
> 
> On Sun, Jan 30, 2022 at 10:10 AM Angus Ainslie <angus@akkea.ca> wrote:
> 
>> I added this because I wanted to use it in the SPL. I can put it in 
>> the
>> header file for my board but I think it would be better in an imx8m
>> header file. If not the pinfunc header is there another imx8m header 
>> you
>> could suggest ?
> 
> What about arch/arm/include/asm/mach-imx/sys_proto.h ?
> 

So it turns out it's already defined here

drivers/pinctrl/nxp/pinctrl-imx.h

Could that definition be moved here ?

arch/arm/include/asm/mach-imx/iomux-v3.h

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

* Re: [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit
  2022-02-01 19:05       ` Angus Ainslie
@ 2022-02-01 19:17         ` Fabio Estevam
  0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2022-02-01 19:17 UTC (permalink / raw)
  To: Angus Ainslie
  Cc: NXP i.MX U-Boot Team, Stefano Babic, U-Boot-Denx, kernel, Tom Rini

On Tue, Feb 1, 2022 at 4:05 PM Angus Ainslie <angus@akkea.ca> wrote:

> So it turns out it's already defined here
>
> drivers/pinctrl/nxp/pinctrl-imx.h
>
> Could that definition be moved here ?
>
> arch/arm/include/asm/mach-imx/iomux-v3.h

Yes, that would work too.

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

end of thread, other threads:[~2022-02-01 19:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28 16:21 [PATCH] arm: dts: imx8mq-pinfunc: add a define for the SION bit Angus Ainslie
2022-01-29 18:58 ` Fabio Estevam
2022-01-30 13:09   ` Angus Ainslie
2022-01-30 13:12     ` Fabio Estevam
2022-02-01 19:05       ` Angus Ainslie
2022-02-01 19:17         ` Fabio Estevam

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.