From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 00554E00857; Wed, 8 Oct 2014 08:19:47 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,FROM_12LTRDOM, HTML_MESSAGE autolearn=no version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * 0.1 FROM_12LTRDOM From a 12-letter domain Received: from sip2-98.nexcess.net (iwavesystems.com [207.32.180.10]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 19B78E006DB for ; Wed, 8 Oct 2014 08:19:46 -0700 (PDT) Received: (qmail 1867 invoked by uid 108); 8 Oct 2014 11:19:45 -0400 Received: from unknown (HELO ?192.168.2.104?) (124.124.219.229) by sip2-98.nexcess.net with SMTP; 8 Oct 2014 11:19:45 -0400 Message-ID: <5435560E.9060700@iwavesystems.com> Date: Wed, 08 Oct 2014 20:49:42 +0530 From: ansaris User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org Subject: imx6 - pincontrol - iomux configuration in device tree X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Oct 2014 15:19:48 -0000 Content-Type: multipart/alternative; boundary="------------090908000503060409000200" --------------090908000503060409000200 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------090908000503060409000200 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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

--------------090908000503060409000200--