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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 325A6E0077F; Wed, 8 Oct 2014 11:59:01 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (sven.ebenfeld[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.217.180 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B9132E006DB for ; Wed, 8 Oct 2014 11:58:55 -0700 (PDT) Received: by mail-lb0-f180.google.com with SMTP id n15so1643027lbi.39 for ; Wed, 08 Oct 2014 11:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=XHXfmzZY67wPXcpkVXMkW/r60nkSTnvRVpBGyXPnmiQ=; b=si5gFgThfD1gICX71MBXCPYOfhl5uOaidfDxj4KPDHCftrFCVexoNchOXAK0hmlNLG oaGvUkjuZlT+3BausYP7wEcRg7X5rJIKfee+3u1flG/V6Vg/JUKVAUAAJSstaO7oTnZd 7MMvwu8YUBXi7mQQovF9TDy0ahVtXn8QT6xfRicLUtEiKsHaHiNtP63pCk8dqtgaXJA/ g90NnGfGgSkTysBvHoqHVxbOSaJ+i8mKaFQuHSgj7Ujt10TefV5WBNI9Xwi7nbECoBej YEB0LEHofYxGOzruW64TmqMu2XVq96VPHnvqV4k0GOfIz8Ax6EE7aSDUcxjUi+lwUEYP UTYQ== X-Received: by 10.152.27.40 with SMTP id q8mr4508365lag.92.1412794734820; Wed, 08 Oct 2014 11:58:54 -0700 (PDT) Received: from [192.168.50.179] (ip-84-119-116-50.unity-media.net. [84.119.116.50]) by mx.google.com with ESMTPSA id t6sm282459lag.27.2014.10.08.11.58.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Oct 2014 11:58:54 -0700 (PDT) Message-ID: <5435896C.9000103@gmail.com> Date: Wed, 08 Oct 2014 20:58:52 +0200 From: Sven Ebenfeld User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org, ansaris@iwavesystems.com References: <5435560E.9060700@iwavesystems.com> In-Reply-To: <5435560E.9060700@iwavesystems.com> Subject: Re: 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 18:59:01 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > > > >