All of lore.kernel.org
 help / color / mirror / Atom feed
* imx6 - pincontrol - iomux configuration in device tree
@ 2014-10-08 15:19 ansaris
  2014-10-08 18:58 ` Sven Ebenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: ansaris @ 2014-10-08 15:19 UTC (permalink / raw)
  To: meta-freescale

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

Hi,


We are using imx6Q sabresd platform for our development with Linux 
3.10.17_1.0.0-GA BSP.

In device tree, the UART1 IOMUX configuration is done in 
"arch/arm/boot/dts/imx6qdl.dtsi" file as mentioned below.

uart1 {
pinctrl_uart1_1: uart1grp-1 {
fsl,pins = <
MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
>;
};
};


We would like to know, in which file the IOMUX configuration will be called?
We have gone through the "linux-imx/drivers/tty/serial/imx.c" file. But 
we couldn't find the below function for IOMUX configuration

"devm_pinctrl_get_select_default"


In addition, the flexcan IOMUX configuration is called  in 
"drivers/net/can/flexcan.c" file as mentioned below (from the probe 
function call)

	pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
	if (IS_ERR(pinctrl))
	return PTR_ERR(pinctrl);


Please suggest us for better understanding.


Thank You,
Regards,
Ansari


[-- Attachment #2: Type: text/html, Size: 4562 bytes --]

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

* Re: imx6 - pincontrol - iomux configuration in device tree
  2014-10-08 15:19 imx6 - pincontrol - iomux configuration in device tree ansaris
@ 2014-10-08 18:58 ` Sven Ebenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Ebenfeld @ 2014-10-08 18:58 UTC (permalink / raw)
  To: meta-freescale, ansaris

Hi,

As far as I know, this is done by the pinctrl-driver.
The uart-driver should init the pinctrl for this particular device
during it's probe or init function.

Regards,
Sven

Am 08.10.2014 17:19, schrieb ansaris:
> Hi,
> 
> 
> We are using imx6Q sabresd platform for our development with Linux
> 3.10.17_1.0.0-GA BSP.
> 
> In device tree, the UART1 IOMUX configuration is done in
> "arch/arm/boot/dts/imx6qdl.dtsi" file as mentioned below.
> 
> uart1 {
> pinctrl_uart1_1: uart1grp-1 {
> fsl,pins = <
> MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
> MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
>> ;
> };
> };
> 
> 
> We would like to know, in which file the IOMUX configuration will be
> called?
> We have gone through the "linux-imx/drivers/tty/serial/imx.c" file. But
> we couldn't find the below function for IOMUX configuration
> 
> "devm_pinctrl_get_select_default"
> 
> 
> In addition, the flexcan IOMUX configuration is called  in
> "drivers/net/can/flexcan.c" file as mentioned below (from the probe
> function call)
> 
>     pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
>     if (IS_ERR(pinctrl))
>     return PTR_ERR(pinctrl);
> 
> 
> Please suggest us for better understanding.
> 
> 
> Thank You,
> Regards,
> Ansari
> 
> 
> 
> 


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

end of thread, other threads:[~2014-10-08 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 15:19 imx6 - pincontrol - iomux configuration in device tree ansaris
2014-10-08 18:58 ` Sven Ebenfeld

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.