From patchwork Mon Nov 4 14:45:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 3136071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0944F9F432 for ; Mon, 4 Nov 2013 14:46:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 23BF8200E5 for ; Mon, 4 Nov 2013 14:46:22 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A2A412053B for ; Mon, 4 Nov 2013 14:46:18 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VdLPa-00016i-ME; Mon, 04 Nov 2013 14:45:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VdLPR-0005aM-Lh; Mon, 04 Nov 2013 14:45:41 +0000 Received: from mail-db9lp0251.outbound.messaging.microsoft.com ([213.199.154.251] helo=db9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VdLPG-0005YK-Ir for linux-arm-kernel@lists.infradead.org; Mon, 04 Nov 2013 14:45:39 +0000 Received: from mail139-db9-R.bigfish.com (10.174.16.229) by DB9EHSOBE025.bigfish.com (10.174.14.88) with Microsoft SMTP Server id 14.1.225.22; Mon, 4 Nov 2013 14:45:08 +0000 Received: from mail139-db9 (localhost [127.0.0.1]) by mail139-db9-R.bigfish.com (Postfix) with ESMTP id 3AF7C4A02F5; Mon, 4 Nov 2013 14:45:08 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 11 X-BigFish: VS11(zza1fflb922lc8kzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275dh1de097hz2dh87h2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e23h1fe8h1ff5h2218h2216h1151h1155h) X-FB-DOMAIN-IP-MATCH: fail Received: from mail139-db9 (localhost.localdomain [127.0.0.1]) by mail139-db9 (MessageSwitch) id 1383576304952339_7842; Mon, 4 Nov 2013 14:45:04 +0000 (UTC) Received: from DB9EHSMHS032.bigfish.com (unknown [10.174.16.254]) by mail139-db9.bigfish.com (Postfix) with ESMTP id E34FF600A3; Mon, 4 Nov 2013 14:45:04 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB9EHSMHS032.bigfish.com (10.174.14.42) with Microsoft SMTP Server (TLS) id 14.16.227.3; Mon, 4 Nov 2013 14:45:04 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.3.158.2; Mon, 4 Nov 2013 14:45:03 +0000 Received: from S2101-09.ap.freescale.net ([10.192.185.207]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id rA4Eit3i020608; Mon, 4 Nov 2013 07:45:02 -0700 From: Shawn Guo To: Subject: [PATCH 3/5] ARM: dts: imx53: make pinctrl nodes board specific Date: Mon, 4 Nov 2013 22:45:31 +0800 Message-ID: <1383576333-19113-4-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1383576333-19113-1-git-send-email-shawn.guo@linaro.org> References: <1383576333-19113-1-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131104_094531_293404_86453F91 X-CRM114-Status: GOOD ( 17.99 ) X-Spam-Score: -1.2 (-) Cc: Shawn Guo X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently, all pinctrl setting nodes are defined in .dtsi, so that boards that share the same pinctrl setting do not have to define it time and time again in .dts. However, along with the devices and use cases being added continuously, the pinctrl setting nodes under iomuxc becomes more than expected. This bloats device tree blob for particular board unnecessarily since only a small subset of those pinctrl setting nodes will be used by the board. It impacts not only the DTB file size but also the run-time device tree lookup efficiency. The patch provides a solution to avoid this device tree bloating problem while still keeping boards share the common pinctrl setting data by using DTC macro support. It creates -pingrp.h and move all those pinctrl setting data into there as macro definitions. The .dts will instead define the pinctrl setting nodes that are necessary for the board by referring to the macros in -pingrp.h, so that only the pinctrl setting data that will be used by the board will get compiled into the DTB for the board. With the changes, the pinctrl setting nodes becomes local to particular board, and it makes no sense to continue numbering the setting for given peripheral. Thus, all the pinctrl phandler name gets updated to have only peripheral name in there. Signed-off-by: Shawn Guo --- arch/arm/boot/dts/imx53-ard.dts | 14 +- arch/arm/boot/dts/imx53-evk.dts | 38 +- arch/arm/boot/dts/imx53-m53evk.dts | 86 ++++- arch/arm/boot/dts/imx53-mba53.dts | 2 +- arch/arm/boot/dts/imx53-pingrp.h | 350 ++++++++++++++++++ arch/arm/boot/dts/imx53-qsb.dts | 51 ++- arch/arm/boot/dts/imx53-smd.dts | 62 +++- arch/arm/boot/dts/imx53-tqma53.dtsi | 107 ++++-- arch/arm/boot/dts/imx53-voipac-bsb.dts | 25 +- arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi | 26 +- arch/arm/boot/dts/imx53.dtsi | 516 +-------------------------- 11 files changed, 668 insertions(+), 609 deletions(-) create mode 100644 arch/arm/boot/dts/imx53-pingrp.h diff --git a/arch/arm/boot/dts/imx53-ard.dts b/arch/arm/boot/dts/imx53-ard.dts index 174f869..6e2e5b4 100644 --- a/arch/arm/boot/dts/imx53-ard.dts +++ b/arch/arm/boot/dts/imx53-ard.dts @@ -99,7 +99,7 @@ &esdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc1_2>; + pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio1 1 0>; wp-gpios = <&gpio1 9 0>; status = "okay"; @@ -109,7 +109,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-ard { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_GPIO_1__GPIO1_1 0x80000000 @@ -148,11 +148,19 @@ MX53_PAD_EIM_CS1__EMI_WEIM_CS_1 0x80000000 >; }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; }; }; &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_2>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx53-evk.dts b/arch/arm/boot/dts/imx53-evk.dts index 801fda7..214ac2e 100644 --- a/arch/arm/boot/dts/imx53-evk.dts +++ b/arch/arm/boot/dts/imx53-evk.dts @@ -34,7 +34,7 @@ &esdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc1_1>; + pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio3 13 0>; wp-gpios = <&gpio3 14 0>; status = "okay"; @@ -42,7 +42,7 @@ &ecspi1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi1_1>; + pinctrl-0 = <&pinctrl_ecspi1>; fsl,spi-num-chipselects = <2>; cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>; status = "okay"; @@ -69,7 +69,7 @@ &esdhc3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc3_1>; + pinctrl-0 = <&pinctrl_esdhc3>; cd-gpios = <&gpio3 11 0>; wp-gpios = <&gpio3 12 0>; status = "okay"; @@ -79,7 +79,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-evk { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_EIM_EB2__GPIO2_30 0x80000000 @@ -92,18 +92,42 @@ MX53_PAD_PATA_DA_1__GPIO7_7 0x80000000 >; }; + + pinctrl_ecspi1: ecspi1grp { + fsl,pins = ; + }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = ; + }; + + pinctrl_esdhc3: esdhc3grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; }; }; &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_1>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2_1>; + pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; pmic: mc13892@08 { @@ -119,7 +143,7 @@ &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay"; diff --git a/arch/arm/boot/dts/imx53-m53evk.dts b/arch/arm/boot/dts/imx53-m53evk.dts index 7d304d0..6df9d4e 100644 --- a/arch/arm/boot/dts/imx53-m53evk.dts +++ b/arch/arm/boot/dts/imx53-m53evk.dts @@ -26,7 +26,7 @@ crtcs = <&ipu 1>; interface-pix-fmt = "bgr666"; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu_disp2_1>; + pinctrl-0 = <&pinctrl_ipu_disp2>; display-timings { 800x480p60 { @@ -102,25 +102,25 @@ &audmux { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_audmux_2>; + pinctrl-0 = <&pinctrl_audmux>; status = "okay"; }; &can1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_can1_3>; + pinctrl-0 = <&pinctrl_can1>; status = "okay"; }; &can2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_can2_1>; + pinctrl-0 = <&pinctrl_can2>; status = "okay"; }; &esdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc1_1>; + pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio1 1 0>; wp-gpios = <&gpio1 9 0>; status = "okay"; @@ -128,14 +128,14 @@ &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; status = "okay"; }; &i2c1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c1_2>; + pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; sgtl5000: codec@0a { @@ -149,7 +149,7 @@ &i2c2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2_2>; + pinctrl-0 = <&pinctrl_i2c2>; clock-frequency = <400000>; status = "okay"; @@ -193,7 +193,7 @@ &i2c3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c3_1>; + pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; }; @@ -201,7 +201,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-m53evk { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000 @@ -218,12 +218,68 @@ MX53_PAD_PATA_DATA9__GPIO2_9 0x80000000 >; }; + + pinctrl_audmux: audmuxgrp { + fsl,pins = ; + }; + + pinctrl_can1: can1grp { + fsl,pins = ; + }; + + pinctrl_can2: can2grp { + fsl,pins = ; + }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = ; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = ; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = ; + }; + + pinctrl_ipu_disp2: ipudisp2grp { + fsl,pins = ; + }; + + pinctrl_nand: nandgrp { + fsl,pins = ; + }; + + pinctrl_pwm1: pwm1grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = ; + }; + + pinctrl_uart3: uart3grp { + fsl,pins = ; + }; }; }; &nfc { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_nand_1>; + pinctrl-0 = <&pinctrl_nand>; nand-bus-width = <8>; nand-ecc-mode = "hw"; status = "okay"; @@ -231,7 +287,7 @@ &pwm1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_pwm1_1>; + pinctrl-0 = <&pinctrl_pwm1>; status = "okay"; }; @@ -242,18 +298,18 @@ &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_2>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; &uart2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart2_1>; + pinctrl-0 = <&pinctrl_uart2>; status = "okay"; }; &uart3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart3_1>; + pinctrl-0 = <&pinctrl_uart3>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts index a630902..ba95b78 100644 --- a/arch/arm/boot/dts/imx53-mba53.dts +++ b/arch/arm/boot/dts/imx53-mba53.dts @@ -148,7 +148,7 @@ &audmux { status = "okay"; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_audmux_1>; + pinctrl-0 = <&pinctrl_audmux>; }; &i2c2 { diff --git a/arch/arm/boot/dts/imx53-pingrp.h b/arch/arm/boot/dts/imx53-pingrp.h new file mode 100644 index 0000000..561bc1b --- /dev/null +++ b/arch/arm/boot/dts/imx53-pingrp.h @@ -0,0 +1,350 @@ +/* + * Copyright (C) 2013 Freescale Semiconductor, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + */ + +#ifndef __DTS_IMX53_PINGRP_H +#define __DTS_IMX53_PINGRP_H + +#define MX53_AUDMUX_PINGRP1 \ + MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 \ + MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 \ + MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 \ + MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 + +#define MX53_AUDMUX_PINGRP2 \ + MX53_PAD_SD2_DATA3__AUDMUX_AUD4_TXC 0x80000000 \ + MX53_PAD_SD2_DATA2__AUDMUX_AUD4_TXD 0x80000000 \ + MX53_PAD_SD2_DATA1__AUDMUX_AUD4_TXFS 0x80000000 \ + MX53_PAD_SD2_DATA0__AUDMUX_AUD4_RXD 0x80000000 + +#define MX53_AUDMUX_PINGRP3 \ + MX53_PAD_CSI0_DAT4__AUDMUX_AUD3_TXC 0x80000000 \ + MX53_PAD_CSI0_DAT5__AUDMUX_AUD3_TXD 0x80000000 \ + MX53_PAD_CSI0_DAT6__AUDMUX_AUD3_TXFS 0x80000000 \ + MX53_PAD_CSI0_DAT7__AUDMUX_AUD3_RXD 0x80000000 + +#define MX53_CAN1_PINGRP1 \ + MX53_PAD_PATA_INTRQ__CAN1_TXCAN 0x80000000 \ + MX53_PAD_PATA_DIOR__CAN1_RXCAN 0x80000000 + +#define MX53_CAN1_PINGRP2 \ + MX53_PAD_KEY_COL2__CAN1_TXCAN 0x80000000 \ + MX53_PAD_KEY_ROW2__CAN1_RXCAN 0x80000000 + +#define MX53_CAN1_PINGRP3 \ + MX53_PAD_GPIO_7__CAN1_TXCAN 0x80000000 \ + MX53_PAD_GPIO_8__CAN1_RXCAN 0x80000000 + +#define MX53_CAN2_PINGRP1 \ + MX53_PAD_KEY_COL4__CAN2_TXCAN 0x80000000 \ + MX53_PAD_KEY_ROW4__CAN2_RXCAN 0x80000000 + + +#define MX53_CSI_PINGRP1 \ + MX53_PAD_CSI0_DATA_EN__IPU_CSI0_DATA_EN 0x1d5 \ + MX53_PAD_CSI0_VSYNC__IPU_CSI0_VSYNC 0x1d5 \ + MX53_PAD_CSI0_MCLK__IPU_CSI0_HSYNC 0x1d5 \ + MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 \ + MX53_PAD_CSI0_DAT19__IPU_CSI0_D_19 0x1d5 \ + MX53_PAD_CSI0_DAT18__IPU_CSI0_D_18 0x1d5 \ + MX53_PAD_CSI0_DAT17__IPU_CSI0_D_17 0x1d5 \ + MX53_PAD_CSI0_DAT16__IPU_CSI0_D_16 0x1d5 \ + MX53_PAD_CSI0_DAT15__IPU_CSI0_D_15 0x1d5 \ + MX53_PAD_CSI0_DAT14__IPU_CSI0_D_14 0x1d5 \ + MX53_PAD_CSI0_DAT13__IPU_CSI0_D_13 0x1d5 \ + MX53_PAD_CSI0_DAT12__IPU_CSI0_D_12 0x1d5 \ + MX53_PAD_CSI0_DAT11__IPU_CSI0_D_11 0x1d5 \ + MX53_PAD_CSI0_DAT10__IPU_CSI0_D_10 0x1d5 \ + MX53_PAD_CSI0_DAT9__IPU_CSI0_D_9 0x1d5 \ + MX53_PAD_CSI0_DAT8__IPU_CSI0_D_8 0x1d5 \ + MX53_PAD_CSI0_DAT7__IPU_CSI0_D_7 0x1d5 \ + MX53_PAD_CSI0_DAT6__IPU_CSI0_D_6 0x1d5 \ + MX53_PAD_CSI0_DAT5__IPU_CSI0_D_5 0x1d5 \ + MX53_PAD_CSI0_DAT4__IPU_CSI0_D_4 0x1d5 \ + MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 + +#define MX53_CSI_PINGRP2 \ + MX53_PAD_CSI0_VSYNC__IPU_CSI0_VSYNC 0x1d5 \ + MX53_PAD_CSI0_MCLK__IPU_CSI0_HSYNC 0x1d5 \ + MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 \ + MX53_PAD_CSI0_DAT19__IPU_CSI0_D_19 0x1d5 \ + MX53_PAD_CSI0_DAT18__IPU_CSI0_D_18 0x1d5 \ + MX53_PAD_CSI0_DAT17__IPU_CSI0_D_17 0x1d5 \ + MX53_PAD_CSI0_DAT16__IPU_CSI0_D_16 0x1d5 \ + MX53_PAD_CSI0_DAT15__IPU_CSI0_D_15 0x1d5 \ + MX53_PAD_CSI0_DAT14__IPU_CSI0_D_14 0x1d5 \ + MX53_PAD_CSI0_DAT13__IPU_CSI0_D_13 0x1d5 \ + MX53_PAD_CSI0_DAT12__IPU_CSI0_D_12 0x1d5 + +#define MX53_CSPI_PINGRP1 \ + MX53_PAD_SD1_DATA0__CSPI_MISO 0x1d5 \ + MX53_PAD_SD1_CMD__CSPI_MOSI 0x1d5 \ + MX53_PAD_SD1_CLK__CSPI_SCLK 0x1d5 + +#define MX53_CSPI_PINGRP2 \ + MX53_PAD_EIM_D22__CSPI_MISO 0x1d5 \ + MX53_PAD_EIM_D28__CSPI_MOSI 0x1d5 \ + MX53_PAD_EIM_D21__CSPI_SCLK 0x1d5 + +#define MX53_ECSPI1_PINGRP1 \ + MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000 \ + MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000 \ + MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000 + +#define MX53_ECSPI1_PINGRP2 \ + MX53_PAD_GPIO_19__ECSPI1_RDY 0x80000000 \ + MX53_PAD_EIM_EB2__ECSPI1_SS0 0x80000000 \ + MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000 \ + MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000 \ + MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000 \ + MX53_PAD_EIM_D19__ECSPI1_SS1 0x80000000 + +#define MX53_ECSPI2_PINGRP1 \ + MX53_PAD_EIM_OE__ECSPI2_MISO 0x80000000 \ + MX53_PAD_EIM_CS1__ECSPI2_MOSI 0x80000000 \ + MX53_PAD_EIM_CS0__ECSPI2_SCLK 0x80000000 + +#define MX53_ESDHC1_PINGRP1 \ + MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5 \ + MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5 \ + MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5 \ + MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5 \ + MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5 \ + MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5 + +#define MX53_ESDHC1_PINGRP2 \ + MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5 \ + MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5 \ + MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5 \ + MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5 \ + MX53_PAD_PATA_DATA8__ESDHC1_DAT4 0x1d5 \ + MX53_PAD_PATA_DATA9__ESDHC1_DAT5 0x1d5 \ + MX53_PAD_PATA_DATA10__ESDHC1_DAT6 0x1d5 \ + MX53_PAD_PATA_DATA11__ESDHC1_DAT7 0x1d5 \ + MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5 \ + MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5 + +#define MX53_ESDHC2_PINGRP1 \ + MX53_PAD_SD2_CMD__ESDHC2_CMD 0x1d5 \ + MX53_PAD_SD2_CLK__ESDHC2_CLK 0x1d5 \ + MX53_PAD_SD2_DATA0__ESDHC2_DAT0 0x1d5 \ + MX53_PAD_SD2_DATA1__ESDHC2_DAT1 0x1d5 \ + MX53_PAD_SD2_DATA2__ESDHC2_DAT2 0x1d5 \ + MX53_PAD_SD2_DATA3__ESDHC2_DAT3 0x1d5 + +#define MX53_ESDHC3_PINGRP1 \ + MX53_PAD_PATA_DATA8__ESDHC3_DAT0 0x1d5 \ + MX53_PAD_PATA_DATA9__ESDHC3_DAT1 0x1d5 \ + MX53_PAD_PATA_DATA10__ESDHC3_DAT2 0x1d5 \ + MX53_PAD_PATA_DATA11__ESDHC3_DAT3 0x1d5 \ + MX53_PAD_PATA_DATA0__ESDHC3_DAT4 0x1d5 \ + MX53_PAD_PATA_DATA1__ESDHC3_DAT5 0x1d5 \ + MX53_PAD_PATA_DATA2__ESDHC3_DAT6 0x1d5 \ + MX53_PAD_PATA_DATA3__ESDHC3_DAT7 0x1d5 \ + MX53_PAD_PATA_RESET_B__ESDHC3_CMD 0x1d5 \ + MX53_PAD_PATA_IORDY__ESDHC3_CLK 0x1d5 + +#define MX53_FEC_PINGRP1 \ + MX53_PAD_FEC_MDC__FEC_MDC 0x80000000 \ + MX53_PAD_FEC_MDIO__FEC_MDIO 0x80000000 \ + MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x80000000 \ + MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x80000000 \ + MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x80000000 \ + MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x80000000 \ + MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x80000000 \ + MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x80000000 \ + MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x80000000 \ + MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x80000000 + +#define MX53_FEC_PINGRP2 \ + MX53_PAD_FEC_MDC__FEC_MDC 0x80000000 \ + MX53_PAD_FEC_MDIO__FEC_MDIO 0x80000000 \ + MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x80000000 \ + MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x80000000 \ + MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x80000000 \ + MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x80000000 \ + MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x80000000 \ + MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x80000000 \ + MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x80000000 \ + MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x80000000 \ + MX53_PAD_KEY_ROW1__FEC_COL 0x80000000 \ + MX53_PAD_KEY_COL3__FEC_CRS 0x80000000 \ + MX53_PAD_KEY_COL2__FEC_RDATA_2 0x80000000 \ + MX53_PAD_KEY_COL0__FEC_RDATA_3 0x80000000 \ + MX53_PAD_KEY_COL1__FEC_RX_CLK 0x80000000 \ + MX53_PAD_KEY_ROW2__FEC_TDATA_2 0x80000000 \ + MX53_PAD_GPIO_19__FEC_TDATA_3 0x80000000 \ + MX53_PAD_KEY_ROW0__FEC_TX_ER 0x80000000 + +#define MX53_I2C1_PINGRP1 \ + MX53_PAD_CSI0_DAT8__I2C1_SDA 0xc0000000 \ + MX53_PAD_CSI0_DAT9__I2C1_SCL 0xc0000000 + +#define MX53_I2C1_PINGRP2 \ + MX53_PAD_EIM_D21__I2C1_SCL 0xc0000000 \ + MX53_PAD_EIM_D28__I2C1_SDA 0xc0000000 + +#define MX53_I2C2_PINGRP1 \ + MX53_PAD_KEY_ROW3__I2C2_SDA 0xc0000000 \ + MX53_PAD_KEY_COL3__I2C2_SCL 0xc0000000 + +#define MX53_I2C2_PINGRP2 \ + MX53_PAD_EIM_D16__I2C2_SDA 0xc0000000 \ + MX53_PAD_EIM_EB2__I2C2_SCL 0xc0000000 + +#define MX53_I2C3_PINGRP1 \ + MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 \ + MX53_PAD_GPIO_5__I2C3_SCL 0xc0000000 + +#define MX53_I2C3_PINGRP2 \ + MX53_PAD_GPIO_3__I2C3_SCL 0xc0000000 \ + MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 + +#define MX53_IPU_DISP0_PINGRP1 \ + MX53_PAD_DI0_DISP_CLK__IPU_DI0_DISP_CLK 0x5 \ + MX53_PAD_DI0_PIN15__IPU_DI0_PIN15 0x5 \ + MX53_PAD_DI0_PIN2__IPU_DI0_PIN2 0x5 \ + MX53_PAD_DI0_PIN3__IPU_DI0_PIN3 0x5 \ + MX53_PAD_DISP0_DAT0__IPU_DISP0_DAT_0 0x5 \ + MX53_PAD_DISP0_DAT1__IPU_DISP0_DAT_1 0x5 \ + MX53_PAD_DISP0_DAT2__IPU_DISP0_DAT_2 0x5 \ + MX53_PAD_DISP0_DAT3__IPU_DISP0_DAT_3 0x5 \ + MX53_PAD_DISP0_DAT4__IPU_DISP0_DAT_4 0x5 \ + MX53_PAD_DISP0_DAT5__IPU_DISP0_DAT_5 0x5 \ + MX53_PAD_DISP0_DAT6__IPU_DISP0_DAT_6 0x5 \ + MX53_PAD_DISP0_DAT7__IPU_DISP0_DAT_7 0x5 \ + MX53_PAD_DISP0_DAT8__IPU_DISP0_DAT_8 0x5 \ + MX53_PAD_DISP0_DAT9__IPU_DISP0_DAT_9 0x5 \ + MX53_PAD_DISP0_DAT10__IPU_DISP0_DAT_10 0x5 \ + MX53_PAD_DISP0_DAT11__IPU_DISP0_DAT_11 0x5 \ + MX53_PAD_DISP0_DAT12__IPU_DISP0_DAT_12 0x5 \ + MX53_PAD_DISP0_DAT13__IPU_DISP0_DAT_13 0x5 \ + MX53_PAD_DISP0_DAT14__IPU_DISP0_DAT_14 0x5 \ + MX53_PAD_DISP0_DAT15__IPU_DISP0_DAT_15 0x5 \ + MX53_PAD_DISP0_DAT16__IPU_DISP0_DAT_16 0x5 \ + MX53_PAD_DISP0_DAT17__IPU_DISP0_DAT_17 0x5 \ + MX53_PAD_DISP0_DAT18__IPU_DISP0_DAT_18 0x5 \ + MX53_PAD_DISP0_DAT19__IPU_DISP0_DAT_19 0x5 \ + MX53_PAD_DISP0_DAT20__IPU_DISP0_DAT_20 0x5 \ + MX53_PAD_DISP0_DAT21__IPU_DISP0_DAT_21 0x5 \ + MX53_PAD_DISP0_DAT22__IPU_DISP0_DAT_22 0x5 \ + MX53_PAD_DISP0_DAT23__IPU_DISP0_DAT_23 0x5 + +#define MX53_IPU_DISP1_PINGRP1 \ + MX53_PAD_EIM_DA9__IPU_DISP1_DAT_0 0x5 \ + MX53_PAD_EIM_DA8__IPU_DISP1_DAT_1 0x5 \ + MX53_PAD_EIM_DA7__IPU_DISP1_DAT_2 0x5 \ + MX53_PAD_EIM_DA6__IPU_DISP1_DAT_3 0x5 \ + MX53_PAD_EIM_DA5__IPU_DISP1_DAT_4 0x5 \ + MX53_PAD_EIM_DA4__IPU_DISP1_DAT_5 0x5 \ + MX53_PAD_EIM_DA3__IPU_DISP1_DAT_6 0x5 \ + MX53_PAD_EIM_DA2__IPU_DISP1_DAT_7 0x5 \ + MX53_PAD_EIM_DA1__IPU_DISP1_DAT_8 0x5 \ + MX53_PAD_EIM_DA0__IPU_DISP1_DAT_9 0x5 \ + MX53_PAD_EIM_EB1__IPU_DISP1_DAT_10 0x5 \ + MX53_PAD_EIM_EB0__IPU_DISP1_DAT_11 0x5 \ + MX53_PAD_EIM_A17__IPU_DISP1_DAT_12 0x5 \ + MX53_PAD_EIM_A18__IPU_DISP1_DAT_13 0x5 \ + MX53_PAD_EIM_A19__IPU_DISP1_DAT_14 0x5 \ + MX53_PAD_EIM_A20__IPU_DISP1_DAT_15 0x5 \ + MX53_PAD_EIM_A21__IPU_DISP1_DAT_16 0x5 \ + MX53_PAD_EIM_A22__IPU_DISP1_DAT_17 0x5 \ + MX53_PAD_EIM_A23__IPU_DISP1_DAT_18 0x5 \ + MX53_PAD_EIM_A24__IPU_DISP1_DAT_19 0x5 \ + MX53_PAD_EIM_D31__IPU_DISP1_DAT_20 0x5 \ + MX53_PAD_EIM_D30__IPU_DISP1_DAT_21 0x5 \ + MX53_PAD_EIM_D26__IPU_DISP1_DAT_22 0x5 \ + MX53_PAD_EIM_D27__IPU_DISP1_DAT_23 0x5 \ + MX53_PAD_EIM_A16__IPU_DI1_DISP_CLK 0x5 \ + MX53_PAD_EIM_DA13__IPU_DI1_D0_CS 0x5 \ + MX53_PAD_EIM_DA14__IPU_DI1_D1_CS 0x5 \ + MX53_PAD_EIM_DA15__IPU_DI1_PIN1 0x5 \ + MX53_PAD_EIM_DA11__IPU_DI1_PIN2 0x5 \ + MX53_PAD_EIM_DA12__IPU_DI1_PIN3 0x5 \ + MX53_PAD_EIM_A25__IPU_DI1_PIN12 0x5 \ + MX53_PAD_EIM_DA10__IPU_DI1_PIN15 0x5 + +#define MX53_IPU_DISP2_PINGRP1 \ + MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0 0x80000000 \ + MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1 0x80000000 \ + MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2 0x80000000 \ + MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000 \ + MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK 0x80000000 \ + MX53_PAD_LVDS1_TX0_P__LDB_LVDS1_TX0 0x80000000 \ + MX53_PAD_LVDS1_TX1_P__LDB_LVDS1_TX1 0x80000000 \ + MX53_PAD_LVDS1_TX2_P__LDB_LVDS1_TX2 0x80000000 \ + MX53_PAD_LVDS1_TX3_P__LDB_LVDS1_TX3 0x80000000 \ + MX53_PAD_LVDS1_CLK_P__LDB_LVDS1_CLK 0x80000000 + +#define MX53_NAND_PINGRP1 \ + MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B 0x4 \ + MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B 0x4 \ + MX53_PAD_NANDF_CLE__EMI_NANDF_CLE 0x4 \ + MX53_PAD_NANDF_ALE__EMI_NANDF_ALE 0x4 \ + MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B 0xe0 \ + MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0 0xe0 \ + MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0 0x4 \ + MX53_PAD_PATA_DATA0__EMI_NANDF_D_0 0xa4 \ + MX53_PAD_PATA_DATA1__EMI_NANDF_D_1 0xa4 \ + MX53_PAD_PATA_DATA2__EMI_NANDF_D_2 0xa4 \ + MX53_PAD_PATA_DATA3__EMI_NANDF_D_3 0xa4 \ + MX53_PAD_PATA_DATA4__EMI_NANDF_D_4 0xa4 \ + MX53_PAD_PATA_DATA5__EMI_NANDF_D_5 0xa4 \ + MX53_PAD_PATA_DATA6__EMI_NANDF_D_6 0xa4 \ + MX53_PAD_PATA_DATA7__EMI_NANDF_D_7 0xa4 + +#define MX53_OWIRE_PINGRP1 \ + MX53_PAD_GPIO_18__OWIRE_LINE 0x80000000 + +#define MX53_PWM1_PINGRP1 \ + MX53_PAD_DISP0_DAT8__PWM1_PWMO 0x5 + +#define MX53_PWM2_PINGRP1 \ + MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000 + +#define MX53_UART1_PINGRP1 \ + MX53_PAD_CSI0_DAT10__UART1_TXD_MUX 0x1e4 \ + MX53_PAD_CSI0_DAT11__UART1_RXD_MUX 0x1e4 + +#define MX53_UART1_PINGRP2 \ + MX53_PAD_PATA_DIOW__UART1_TXD_MUX 0x1e4 \ + MX53_PAD_PATA_DMACK__UART1_RXD_MUX 0x1e4 + +#define MX53_UART1_PINGRP3 \ + MX53_PAD_PATA_RESET_B__UART1_CTS 0x1c5 \ + MX53_PAD_PATA_IORDY__UART1_RTS 0x1c5 + +#define MX53_UART2_PINGRP1 \ + MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1e4 \ + MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1e4 + +#define MX53_UART2_PINGRP2 \ + MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1c5 \ + MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1c5 \ + MX53_PAD_PATA_DIOR__UART2_RTS 0x1c5 \ + MX53_PAD_PATA_INTRQ__UART2_CTS 0x1c5 + +#define MX53_UART3_PINGRP1 \ + MX53_PAD_PATA_CS_0__UART3_TXD_MUX 0x1e4 \ + MX53_PAD_PATA_CS_1__UART3_RXD_MUX 0x1e4 \ + MX53_PAD_PATA_DA_1__UART3_CTS 0x1e4 \ + MX53_PAD_PATA_DA_2__UART3_RTS 0x1e4 + +#define MX53_UART3_PINGRP2 \ + MX53_PAD_PATA_CS_0__UART3_TXD_MUX 0x1e4 \ + MX53_PAD_PATA_CS_1__UART3_RXD_MUX 0x1e4 + +#define MX53_UART4_PINGRP1 \ + MX53_PAD_KEY_COL0__UART4_TXD_MUX 0x1e4 \ + MX53_PAD_KEY_ROW0__UART4_RXD_MUX 0x1e4 + +#define MX53_UART5_PINGRP1 \ + MX53_PAD_KEY_COL1__UART5_TXD_MUX 0x1e4 \ + MX53_PAD_KEY_ROW1__UART5_RXD_MUX 0x1e4 + +#endif /* __DTS_IMX53_PINGRP_H */ diff --git a/arch/arm/boot/dts/imx53-qsb.dts b/arch/arm/boot/dts/imx53-qsb.dts index 91a5935..6bf149c 100644 --- a/arch/arm/boot/dts/imx53-qsb.dts +++ b/arch/arm/boot/dts/imx53-qsb.dts @@ -26,7 +26,7 @@ crtcs = <&ipu 0>; interface-pix-fmt = "rgb565"; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ipu_disp0_1>; + pinctrl-0 = <&pinctrl_ipu_disp0>; status = "disabled"; display-timings { claawvga { @@ -122,7 +122,7 @@ &esdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc1_1>; + pinctrl-0 = <&pinctrl_esdhc1>; status = "okay"; }; @@ -133,7 +133,7 @@ &esdhc3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc3_1>; + pinctrl-0 = <&pinctrl_esdhc3>; cd-gpios = <&gpio3 11 0>; wp-gpios = <&gpio3 12 0>; bus-width = <8>; @@ -144,7 +144,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-qsb { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000 @@ -164,19 +164,50 @@ MX53_PAD_PATA_DA_1__GPIO7_7 0x80000000 >; }; - }; + pinctrl_audmux: audmuxgrp { + fsl,pins = ; + }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = ; + }; + + pinctrl_esdhc3: esdhc3grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = ; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = ; + }; + + pinctrl_ipu_disp0: ipudisp0grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; + }; }; &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_1>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2_1>; + pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; sgtl5000: codec@0a { @@ -190,7 +221,7 @@ &i2c1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c1_1>; + pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; accelerometer: mma8450@1c { @@ -295,13 +326,13 @@ &audmux { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_audmux_1>; + pinctrl-0 = <&pinctrl_audmux>; status = "okay"; }; &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay"; diff --git a/arch/arm/boot/dts/imx53-smd.dts b/arch/arm/boot/dts/imx53-smd.dts index a9b6e10..e84decf 100644 --- a/arch/arm/boot/dts/imx53-smd.dts +++ b/arch/arm/boot/dts/imx53-smd.dts @@ -40,7 +40,7 @@ &esdhc1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc1_1>; + pinctrl-0 = <&pinctrl_esdhc1>; cd-gpios = <&gpio3 13 0>; wp-gpios = <&gpio4 11 0>; status = "okay"; @@ -48,21 +48,21 @@ &esdhc2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc2_1>; + pinctrl-0 = <&pinctrl_esdhc2>; non-removable; status = "okay"; }; &uart3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart3_1>; + pinctrl-0 = <&pinctrl_uart3>; fsl,uart-has-rtscts; status = "okay"; }; &ecspi1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi1_1>; + pinctrl-0 = <&pinctrl_ecspi1>; fsl,spi-num-chipselects = <2>; cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>; status = "okay"; @@ -95,7 +95,7 @@ &esdhc3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc3_1>; + pinctrl-0 = <&pinctrl_esdhc3>; non-removable; status = "okay"; }; @@ -104,7 +104,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-smd { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_PATA_DATA14__GPIO2_14 0x80000000 @@ -116,24 +116,64 @@ MX53_PAD_PATA_DA_0__GPIO7_6 0x80000000 >; }; + + pinctrl_ecspi1: ecspi1grp { + fsl,pins = ; + }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = ; + }; + + pinctrl_esdhc2: esdhc2grp { + fsl,pins = ; + }; + + pinctrl_esdhc3: esdhc3grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = ; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = ; + }; + + pinctrl_uart3: uart3grp { + fsl,pins = ; + }; }; }; &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_1>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; &uart2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart2_1>; + pinctrl-0 = <&pinctrl_uart2>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2_1>; + pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; codec: sgtl5000@0a { @@ -154,7 +194,7 @@ &i2c1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c1_1>; + pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; accelerometer: mma8450@1c { @@ -175,7 +215,7 @@ &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; phy-reset-gpios = <&gpio7 6 0>; status = "okay"; diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index abd72af..96052c7 100644 --- a/arch/arm/boot/dts/imx53-tqma53.dtsi +++ b/arch/arm/boot/dts/imx53-tqma53.dtsi @@ -35,8 +35,8 @@ &esdhc2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc2_1>, - <&pinctrl_tqma53_esdhc2_2>; + pinctrl-0 = <&pinctrl_esdhc2>, + <&pinctrl_esdhc2_cdwp>; vmmc-supply = <®_3p3v>; wp-gpios = <&gpio1 2 0>; cd-gpios = <&gpio1 4 0>; @@ -45,13 +45,13 @@ &uart3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart3_2>; + pinctrl-0 = <&pinctrl_uart3>; status = "disabled"; }; &ecspi1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi1_1>; + pinctrl-0 = <&pinctrl_ecspi1>; fsl,spi-num-chipselects = <4>; cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>, <&gpio3 24 0>, <&gpio3 25 0>; @@ -60,7 +60,7 @@ &esdhc3 { /* EMMC */ pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc3_1>; + pinctrl-0 = <&pinctrl_esdhc3>; vmmc-supply = <®_3p3v>; non-removable; bus-width = <8>; @@ -71,27 +71,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - esdhc2_2 { - pinctrl_tqma53_esdhc2_2: esdhc2-tqma53-grp2 { - fsl,pins = < - MX53_PAD_GPIO_4__GPIO1_4 0x80000000 /* SD2_CD */ - MX53_PAD_GPIO_2__GPIO1_2 0x80000000 /* SD2_WP */ - >; - }; - }; - - i2s { - pinctrl_i2s_1: i2s-grp1 { - fsl,pins = < - MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 /* I2S_SCLK */ - MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 /* I2S_DOUT */ - MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 /* I2S_LRCLK */ - MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 /* I2S_DIN */ - >; - }; - }; - - hog { + imx53-tqma53 { pinctrl_hog: hoggrp { fsl,pins = < MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000 /* SSI_MCLK */ @@ -107,43 +87,102 @@ MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000 /* LCD_CONTRAST */ >; }; + + pinctrl_audmux: audmuxgrp { + fsl,pins = ; + }; + + pinctrl_can1: can1grp { + fsl,pins = ; + }; + + pinctrl_can2: can2grp { + fsl,pins = ; + }; + + pinctrl_cspi: cspigrp { + fsl,pins = ; + }; + + pinctrl_ecspi1: ecspi1grp { + fsl,pins = ; + }; + + pinctrl_esdhc2: esdhc2grp { + fsl,pins = ; + }; + + pinctrl_esdhc2_cdwp: esdhc2cdwp { + fsl,pins = < + MX53_PAD_GPIO_4__GPIO1_4 0x80000000 /* SD2_CD */ + MX53_PAD_GPIO_2__GPIO1_2 0x80000000 /* SD2_WP */ + >; + }; + + pinctrl_esdhc3: esdhc3grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = ; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = ; + }; + + pinctrl_uart3: uart3grp { + fsl,ps = ; + }; }; }; &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_2>; + pinctrl-0 = <&pinctrl_uart1>; fsl,uart-has-rtscts; status = "disabled"; }; &uart2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart2_1>; + pinctrl-0 = <&pinctrl_uart2>; status = "disabled"; }; &can1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_can1_2>; + pinctrl-0 = <&pinctrl_can1>; status = "disabled"; }; &can2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_can2_1>; + pinctrl-0 = <&pinctrl_can2>; status = "disabled"; }; &i2c3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c3_1>; + pinctrl-0 = <&pinctrl_i2c3>; status = "disabled"; }; &cspi { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_cspi_1>; + pinctrl-0 = <&pinctrl_cspi>; fsl,spi-num-chipselects = <3>; cs-gpios = <&gpio1 18 0>, <&gpio1 19 0>, <&gpio1 21 0>; @@ -152,7 +191,7 @@ &i2c2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2_1>; + pinctrl-0 = <&pinctrl_i2c2>; status = "okay"; pmic: mc34708@8 { @@ -177,7 +216,7 @@ &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx53-voipac-bsb.dts b/arch/arm/boot/dts/imx53-voipac-bsb.dts index 5c88c0e..61244cf 100644 --- a/arch/arm/boot/dts/imx53-voipac-bsb.dts +++ b/arch/arm/boot/dts/imx53-voipac-bsb.dts @@ -48,7 +48,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-voipac { pinctrl_hog: hoggrp { fsl,pins = < /* SD2_CD */ @@ -64,10 +64,8 @@ MX53_PAD_EIM_EB3__GPIO2_31 0x80000000 >; }; - }; - /* Keyboard controller */ - kpp { + /* Keyboard controller */ pinctrl_kpp_1: kppgrp-1 { fsl,pins = < MX53_PAD_GPIO_9__KPP_COL_6 0xe8 @@ -75,7 +73,6 @@ MX53_PAD_KEY_COL2__KPP_COL_2 0xe8 MX53_PAD_KEY_COL3__KPP_COL_3 0xe8 MX53_PAD_KEY_COL4__KPP_COL_4 0xe8 - MX53_PAD_GPIO_2__KPP_ROW_6 0xe0 MX53_PAD_GPIO_5__KPP_ROW_7 0xe0 MX53_PAD_KEY_ROW2__KPP_ROW_2 0xe0 @@ -83,18 +80,30 @@ MX53_PAD_KEY_ROW4__KPP_ROW_4 0xe0 >; }; + + pinctrl_audmux: audmuxgrp { + fsl,pins = ; + }; + + pinctrl_esdhc2: esdhc2grp { + fsl,pins = ; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = ; + }; }; }; &audmux { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_audmux_1>; /* SSI1 */ + pinctrl-0 = <&pinctrl_audmux>; /* SSI1 */ status = "okay"; }; &esdhc2 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_esdhc2_1>; + pinctrl-0 = <&pinctrl_esdhc2>; cd-gpios = <&gpio3 25 0>; wp-gpios = <&gpio2 19 0>; vmmc-supply = <®_3p3v>; @@ -103,7 +112,7 @@ &i2c3 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c3_2>; + pinctrl-0 = <&pinctrl_i2c3>; status = "okay"; sgtl5000: codec@0a { diff --git a/arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi b/arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi index a7d03ad..68d4404 100644 --- a/arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi +++ b/arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi @@ -42,7 +42,7 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; - hog { + imx53-voipac { pinctrl_hog: hoggrp { fsl,pins = < /* Make DA9053 regulator functional */ @@ -53,12 +53,28 @@ MX53_PAD_GPIO_12__GPIO4_2 0x80000000 >; }; + + pinctrl_ecspi1: ecspi1grp { + fsl,pins = ; + }; + + pinctrl_fec: fecgrp { + fsl,pins = ; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = ; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = ; + }; }; }; &ecspi1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ecspi1_1>; + pinctrl-0 = <&pinctrl_ecspi1>; fsl,spi-num-chipselects = <4>; cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>, <&gpio2 16 0>, <&gpio2 17 0>; status = "okay"; @@ -66,7 +82,7 @@ &fec { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_fec_1>; + pinctrl-0 = <&pinctrl_fec>; phy-mode = "rmii"; phy-reset-gpios = <&gpio4 2 0>; status = "okay"; @@ -74,7 +90,7 @@ &i2c1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c1_2>; + pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; pmic: dialog@48 { @@ -188,6 +204,6 @@ &uart1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_uart1_2>; + pinctrl-0 = <&pinctrl_uart1>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi index 362eca0..cffdda2 100644 --- a/arch/arm/boot/dts/imx53.dtsi +++ b/arch/arm/boot/dts/imx53.dtsi @@ -12,6 +12,7 @@ #include "skeleton.dtsi" #include "imx53-pinfunc.h" +#include "imx53-pingrp.h" / { aliases { @@ -315,521 +316,6 @@ iomuxc: iomuxc@53fa8000 { compatible = "fsl,imx53-iomuxc"; reg = <0x53fa8000 0x4000>; - - audmux { - pinctrl_audmux_1: audmuxgrp-1 { - fsl,pins = < - MX53_PAD_KEY_COL0__AUDMUX_AUD5_TXC 0x80000000 - MX53_PAD_KEY_ROW0__AUDMUX_AUD5_TXD 0x80000000 - MX53_PAD_KEY_COL1__AUDMUX_AUD5_TXFS 0x80000000 - MX53_PAD_KEY_ROW1__AUDMUX_AUD5_RXD 0x80000000 - >; - }; - - pinctrl_audmux_2: audmuxgrp-2 { - fsl,pins = < - MX53_PAD_SD2_DATA3__AUDMUX_AUD4_TXC 0x80000000 - MX53_PAD_SD2_DATA2__AUDMUX_AUD4_TXD 0x80000000 - MX53_PAD_SD2_DATA1__AUDMUX_AUD4_TXFS 0x80000000 - MX53_PAD_SD2_DATA0__AUDMUX_AUD4_RXD 0x80000000 - >; - }; - - pinctrl_audmux_3: audmuxgrp-3 { - fsl,pins = < - MX53_PAD_CSI0_DAT4__AUDMUX_AUD3_TXC 0x80000000 - MX53_PAD_CSI0_DAT5__AUDMUX_AUD3_TXD 0x80000000 - MX53_PAD_CSI0_DAT6__AUDMUX_AUD3_TXFS 0x80000000 - MX53_PAD_CSI0_DAT7__AUDMUX_AUD3_RXD 0x80000000 - >; - }; - }; - - fec { - pinctrl_fec_1: fecgrp-1 { - fsl,pins = < - MX53_PAD_FEC_MDC__FEC_MDC 0x80000000 - MX53_PAD_FEC_MDIO__FEC_MDIO 0x80000000 - MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x80000000 - MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x80000000 - MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x80000000 - MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x80000000 - MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x80000000 - MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x80000000 - MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x80000000 - MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x80000000 - >; - }; - - pinctrl_fec_2: fecgrp-2 { - fsl,pins = < - MX53_PAD_FEC_MDC__FEC_MDC 0x80000000 - MX53_PAD_FEC_MDIO__FEC_MDIO 0x80000000 - MX53_PAD_FEC_REF_CLK__FEC_TX_CLK 0x80000000 - MX53_PAD_FEC_RX_ER__FEC_RX_ER 0x80000000 - MX53_PAD_FEC_CRS_DV__FEC_RX_DV 0x80000000 - MX53_PAD_FEC_RXD1__FEC_RDATA_1 0x80000000 - MX53_PAD_FEC_RXD0__FEC_RDATA_0 0x80000000 - MX53_PAD_FEC_TX_EN__FEC_TX_EN 0x80000000 - MX53_PAD_FEC_TXD1__FEC_TDATA_1 0x80000000 - MX53_PAD_FEC_TXD0__FEC_TDATA_0 0x80000000 - MX53_PAD_KEY_ROW1__FEC_COL 0x80000000 - MX53_PAD_KEY_COL3__FEC_CRS 0x80000000 - MX53_PAD_KEY_COL2__FEC_RDATA_2 0x80000000 - MX53_PAD_KEY_COL0__FEC_RDATA_3 0x80000000 - MX53_PAD_KEY_COL1__FEC_RX_CLK 0x80000000 - MX53_PAD_KEY_ROW2__FEC_TDATA_2 0x80000000 - MX53_PAD_GPIO_19__FEC_TDATA_3 0x80000000 - MX53_PAD_KEY_ROW0__FEC_TX_ER 0x80000000 - >; - }; - }; - - csi { - pinctrl_csi_1: csigrp-1 { - fsl,pins = < - MX53_PAD_CSI0_DATA_EN__IPU_CSI0_DATA_EN 0x1d5 - MX53_PAD_CSI0_VSYNC__IPU_CSI0_VSYNC 0x1d5 - MX53_PAD_CSI0_MCLK__IPU_CSI0_HSYNC 0x1d5 - MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 - MX53_PAD_CSI0_DAT19__IPU_CSI0_D_19 0x1d5 - MX53_PAD_CSI0_DAT18__IPU_CSI0_D_18 0x1d5 - MX53_PAD_CSI0_DAT17__IPU_CSI0_D_17 0x1d5 - MX53_PAD_CSI0_DAT16__IPU_CSI0_D_16 0x1d5 - MX53_PAD_CSI0_DAT15__IPU_CSI0_D_15 0x1d5 - MX53_PAD_CSI0_DAT14__IPU_CSI0_D_14 0x1d5 - MX53_PAD_CSI0_DAT13__IPU_CSI0_D_13 0x1d5 - MX53_PAD_CSI0_DAT12__IPU_CSI0_D_12 0x1d5 - MX53_PAD_CSI0_DAT11__IPU_CSI0_D_11 0x1d5 - MX53_PAD_CSI0_DAT10__IPU_CSI0_D_10 0x1d5 - MX53_PAD_CSI0_DAT9__IPU_CSI0_D_9 0x1d5 - MX53_PAD_CSI0_DAT8__IPU_CSI0_D_8 0x1d5 - MX53_PAD_CSI0_DAT7__IPU_CSI0_D_7 0x1d5 - MX53_PAD_CSI0_DAT6__IPU_CSI0_D_6 0x1d5 - MX53_PAD_CSI0_DAT5__IPU_CSI0_D_5 0x1d5 - MX53_PAD_CSI0_DAT4__IPU_CSI0_D_4 0x1d5 - MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 - >; - }; - - pinctrl_csi_2: csigrp-2 { - fsl,pins = < - MX53_PAD_CSI0_VSYNC__IPU_CSI0_VSYNC 0x1d5 - MX53_PAD_CSI0_MCLK__IPU_CSI0_HSYNC 0x1d5 - MX53_PAD_CSI0_PIXCLK__IPU_CSI0_PIXCLK 0x1d5 - MX53_PAD_CSI0_DAT19__IPU_CSI0_D_19 0x1d5 - MX53_PAD_CSI0_DAT18__IPU_CSI0_D_18 0x1d5 - MX53_PAD_CSI0_DAT17__IPU_CSI0_D_17 0x1d5 - MX53_PAD_CSI0_DAT16__IPU_CSI0_D_16 0x1d5 - MX53_PAD_CSI0_DAT15__IPU_CSI0_D_15 0x1d5 - MX53_PAD_CSI0_DAT14__IPU_CSI0_D_14 0x1d5 - MX53_PAD_CSI0_DAT13__IPU_CSI0_D_13 0x1d5 - MX53_PAD_CSI0_DAT12__IPU_CSI0_D_12 0x1d5 - >; - }; - }; - - cspi { - pinctrl_cspi_1: cspigrp-1 { - fsl,pins = < - MX53_PAD_SD1_DATA0__CSPI_MISO 0x1d5 - MX53_PAD_SD1_CMD__CSPI_MOSI 0x1d5 - MX53_PAD_SD1_CLK__CSPI_SCLK 0x1d5 - >; - }; - - pinctrl_cspi_2: cspigrp-2 { - fsl,pins = < - MX53_PAD_EIM_D22__CSPI_MISO 0x1d5 - MX53_PAD_EIM_D28__CSPI_MOSI 0x1d5 - MX53_PAD_EIM_D21__CSPI_SCLK 0x1d5 - >; - }; - }; - - ecspi1 { - pinctrl_ecspi1_1: ecspi1grp-1 { - fsl,pins = < - MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000 - MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000 - MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000 - >; - }; - - pinctrl_ecspi1_2: ecspi1grp-2 { - fsl,pins = < - MX53_PAD_GPIO_19__ECSPI1_RDY 0x80000000 - MX53_PAD_EIM_EB2__ECSPI1_SS0 0x80000000 - MX53_PAD_EIM_D16__ECSPI1_SCLK 0x80000000 - MX53_PAD_EIM_D17__ECSPI1_MISO 0x80000000 - MX53_PAD_EIM_D18__ECSPI1_MOSI 0x80000000 - MX53_PAD_EIM_D19__ECSPI1_SS1 0x80000000 - >; - }; - }; - - ecspi2 { - pinctrl_ecspi2_1: ecspi2grp-1 { - fsl,pins = < - MX53_PAD_EIM_OE__ECSPI2_MISO 0x80000000 - MX53_PAD_EIM_CS1__ECSPI2_MOSI 0x80000000 - MX53_PAD_EIM_CS0__ECSPI2_SCLK 0x80000000 - >; - }; - }; - - esdhc1 { - pinctrl_esdhc1_1: esdhc1grp-1 { - fsl,pins = < - MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5 - MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5 - MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5 - MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5 - MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5 - MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5 - >; - }; - - pinctrl_esdhc1_2: esdhc1grp-2 { - fsl,pins = < - MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5 - MX53_PAD_SD1_DATA1__ESDHC1_DAT1 0x1d5 - MX53_PAD_SD1_DATA2__ESDHC1_DAT2 0x1d5 - MX53_PAD_SD1_DATA3__ESDHC1_DAT3 0x1d5 - MX53_PAD_PATA_DATA8__ESDHC1_DAT4 0x1d5 - MX53_PAD_PATA_DATA9__ESDHC1_DAT5 0x1d5 - MX53_PAD_PATA_DATA10__ESDHC1_DAT6 0x1d5 - MX53_PAD_PATA_DATA11__ESDHC1_DAT7 0x1d5 - MX53_PAD_SD1_CMD__ESDHC1_CMD 0x1d5 - MX53_PAD_SD1_CLK__ESDHC1_CLK 0x1d5 - >; - }; - }; - - esdhc2 { - pinctrl_esdhc2_1: esdhc2grp-1 { - fsl,pins = < - MX53_PAD_SD2_CMD__ESDHC2_CMD 0x1d5 - MX53_PAD_SD2_CLK__ESDHC2_CLK 0x1d5 - MX53_PAD_SD2_DATA0__ESDHC2_DAT0 0x1d5 - MX53_PAD_SD2_DATA1__ESDHC2_DAT1 0x1d5 - MX53_PAD_SD2_DATA2__ESDHC2_DAT2 0x1d5 - MX53_PAD_SD2_DATA3__ESDHC2_DAT3 0x1d5 - >; - }; - }; - - esdhc3 { - pinctrl_esdhc3_1: esdhc3grp-1 { - fsl,pins = < - MX53_PAD_PATA_DATA8__ESDHC3_DAT0 0x1d5 - MX53_PAD_PATA_DATA9__ESDHC3_DAT1 0x1d5 - MX53_PAD_PATA_DATA10__ESDHC3_DAT2 0x1d5 - MX53_PAD_PATA_DATA11__ESDHC3_DAT3 0x1d5 - MX53_PAD_PATA_DATA0__ESDHC3_DAT4 0x1d5 - MX53_PAD_PATA_DATA1__ESDHC3_DAT5 0x1d5 - MX53_PAD_PATA_DATA2__ESDHC3_DAT6 0x1d5 - MX53_PAD_PATA_DATA3__ESDHC3_DAT7 0x1d5 - MX53_PAD_PATA_RESET_B__ESDHC3_CMD 0x1d5 - MX53_PAD_PATA_IORDY__ESDHC3_CLK 0x1d5 - >; - }; - }; - - can1 { - pinctrl_can1_1: can1grp-1 { - fsl,pins = < - MX53_PAD_PATA_INTRQ__CAN1_TXCAN 0x80000000 - MX53_PAD_PATA_DIOR__CAN1_RXCAN 0x80000000 - >; - }; - - pinctrl_can1_2: can1grp-2 { - fsl,pins = < - MX53_PAD_KEY_COL2__CAN1_TXCAN 0x80000000 - MX53_PAD_KEY_ROW2__CAN1_RXCAN 0x80000000 - >; - }; - - pinctrl_can1_3: can1grp-3 { - fsl,pins = < - MX53_PAD_GPIO_7__CAN1_TXCAN 0x80000000 - MX53_PAD_GPIO_8__CAN1_RXCAN 0x80000000 - >; - }; - }; - - can2 { - pinctrl_can2_1: can2grp-1 { - fsl,pins = < - MX53_PAD_KEY_COL4__CAN2_TXCAN 0x80000000 - MX53_PAD_KEY_ROW4__CAN2_RXCAN 0x80000000 - >; - }; - }; - - i2c1 { - pinctrl_i2c1_1: i2c1grp-1 { - fsl,pins = < - MX53_PAD_CSI0_DAT8__I2C1_SDA 0xc0000000 - MX53_PAD_CSI0_DAT9__I2C1_SCL 0xc0000000 - >; - }; - - pinctrl_i2c1_2: i2c1grp-2 { - fsl,pins = < - MX53_PAD_EIM_D21__I2C1_SCL 0xc0000000 - MX53_PAD_EIM_D28__I2C1_SDA 0xc0000000 - >; - }; - }; - - i2c2 { - pinctrl_i2c2_1: i2c2grp-1 { - fsl,pins = < - MX53_PAD_KEY_ROW3__I2C2_SDA 0xc0000000 - MX53_PAD_KEY_COL3__I2C2_SCL 0xc0000000 - >; - }; - - pinctrl_i2c2_2: i2c2grp-2 { - fsl,pins = < - MX53_PAD_EIM_D16__I2C2_SDA 0xc0000000 - MX53_PAD_EIM_EB2__I2C2_SCL 0xc0000000 - >; - }; - }; - - i2c3 { - pinctrl_i2c3_1: i2c3grp-1 { - fsl,pins = < - MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 - MX53_PAD_GPIO_5__I2C3_SCL 0xc0000000 - >; - }; - - pinctrl_i2c3_2: i2c3grp-2 { - fsl,pins = < - MX53_PAD_GPIO_3__I2C3_SCL 0xc0000000 - MX53_PAD_GPIO_6__I2C3_SDA 0xc0000000 - >; - }; - }; - - ipu_disp0 { - pinctrl_ipu_disp0_1: ipudisp0grp-1 { - fsl,pins = < - MX53_PAD_DI0_DISP_CLK__IPU_DI0_DISP_CLK 0x5 - MX53_PAD_DI0_PIN15__IPU_DI0_PIN15 0x5 - MX53_PAD_DI0_PIN2__IPU_DI0_PIN2 0x5 - MX53_PAD_DI0_PIN3__IPU_DI0_PIN3 0x5 - MX53_PAD_DISP0_DAT0__IPU_DISP0_DAT_0 0x5 - MX53_PAD_DISP0_DAT1__IPU_DISP0_DAT_1 0x5 - MX53_PAD_DISP0_DAT2__IPU_DISP0_DAT_2 0x5 - MX53_PAD_DISP0_DAT3__IPU_DISP0_DAT_3 0x5 - MX53_PAD_DISP0_DAT4__IPU_DISP0_DAT_4 0x5 - MX53_PAD_DISP0_DAT5__IPU_DISP0_DAT_5 0x5 - MX53_PAD_DISP0_DAT6__IPU_DISP0_DAT_6 0x5 - MX53_PAD_DISP0_DAT7__IPU_DISP0_DAT_7 0x5 - MX53_PAD_DISP0_DAT8__IPU_DISP0_DAT_8 0x5 - MX53_PAD_DISP0_DAT9__IPU_DISP0_DAT_9 0x5 - MX53_PAD_DISP0_DAT10__IPU_DISP0_DAT_10 0x5 - MX53_PAD_DISP0_DAT11__IPU_DISP0_DAT_11 0x5 - MX53_PAD_DISP0_DAT12__IPU_DISP0_DAT_12 0x5 - MX53_PAD_DISP0_DAT13__IPU_DISP0_DAT_13 0x5 - MX53_PAD_DISP0_DAT14__IPU_DISP0_DAT_14 0x5 - MX53_PAD_DISP0_DAT15__IPU_DISP0_DAT_15 0x5 - MX53_PAD_DISP0_DAT16__IPU_DISP0_DAT_16 0x5 - MX53_PAD_DISP0_DAT17__IPU_DISP0_DAT_17 0x5 - MX53_PAD_DISP0_DAT18__IPU_DISP0_DAT_18 0x5 - MX53_PAD_DISP0_DAT19__IPU_DISP0_DAT_19 0x5 - MX53_PAD_DISP0_DAT20__IPU_DISP0_DAT_20 0x5 - MX53_PAD_DISP0_DAT21__IPU_DISP0_DAT_21 0x5 - MX53_PAD_DISP0_DAT22__IPU_DISP0_DAT_22 0x5 - MX53_PAD_DISP0_DAT23__IPU_DISP0_DAT_23 0x5 - >; - }; - }; - - ipu_disp1 { - pinctrl_ipu_disp1_1: ipudisp1grp-1 { - fsl,pins = < - MX53_PAD_EIM_DA9__IPU_DISP1_DAT_0 0x5 - MX53_PAD_EIM_DA8__IPU_DISP1_DAT_1 0x5 - MX53_PAD_EIM_DA7__IPU_DISP1_DAT_2 0x5 - MX53_PAD_EIM_DA6__IPU_DISP1_DAT_3 0x5 - MX53_PAD_EIM_DA5__IPU_DISP1_DAT_4 0x5 - MX53_PAD_EIM_DA4__IPU_DISP1_DAT_5 0x5 - MX53_PAD_EIM_DA3__IPU_DISP1_DAT_6 0x5 - MX53_PAD_EIM_DA2__IPU_DISP1_DAT_7 0x5 - MX53_PAD_EIM_DA1__IPU_DISP1_DAT_8 0x5 - MX53_PAD_EIM_DA0__IPU_DISP1_DAT_9 0x5 - MX53_PAD_EIM_EB1__IPU_DISP1_DAT_10 0x5 - MX53_PAD_EIM_EB0__IPU_DISP1_DAT_11 0x5 - MX53_PAD_EIM_A17__IPU_DISP1_DAT_12 0x5 - MX53_PAD_EIM_A18__IPU_DISP1_DAT_13 0x5 - MX53_PAD_EIM_A19__IPU_DISP1_DAT_14 0x5 - MX53_PAD_EIM_A20__IPU_DISP1_DAT_15 0x5 - MX53_PAD_EIM_A21__IPU_DISP1_DAT_16 0x5 - MX53_PAD_EIM_A22__IPU_DISP1_DAT_17 0x5 - MX53_PAD_EIM_A23__IPU_DISP1_DAT_18 0x5 - MX53_PAD_EIM_A24__IPU_DISP1_DAT_19 0x5 - MX53_PAD_EIM_D31__IPU_DISP1_DAT_20 0x5 - MX53_PAD_EIM_D30__IPU_DISP1_DAT_21 0x5 - MX53_PAD_EIM_D26__IPU_DISP1_DAT_22 0x5 - MX53_PAD_EIM_D27__IPU_DISP1_DAT_23 0x5 - MX53_PAD_EIM_A16__IPU_DI1_DISP_CLK 0x5 - MX53_PAD_EIM_DA13__IPU_DI1_D0_CS 0x5 - MX53_PAD_EIM_DA14__IPU_DI1_D1_CS 0x5 - MX53_PAD_EIM_DA15__IPU_DI1_PIN1 0x5 - MX53_PAD_EIM_DA11__IPU_DI1_PIN2 0x5 - MX53_PAD_EIM_DA12__IPU_DI1_PIN3 0x5 - MX53_PAD_EIM_A25__IPU_DI1_PIN12 0x5 - MX53_PAD_EIM_DA10__IPU_DI1_PIN15 0x5 - >; - }; - }; - - ipu_disp2 { - pinctrl_ipu_disp2_1: ipudisp2grp-1 { - fsl,pins = < - MX53_PAD_LVDS0_TX0_P__LDB_LVDS0_TX0 0x80000000 - MX53_PAD_LVDS0_TX1_P__LDB_LVDS0_TX1 0x80000000 - MX53_PAD_LVDS0_TX2_P__LDB_LVDS0_TX2 0x80000000 - MX53_PAD_LVDS0_TX3_P__LDB_LVDS0_TX3 0x80000000 - MX53_PAD_LVDS0_CLK_P__LDB_LVDS0_CLK 0x80000000 - MX53_PAD_LVDS1_TX0_P__LDB_LVDS1_TX0 0x80000000 - MX53_PAD_LVDS1_TX1_P__LDB_LVDS1_TX1 0x80000000 - MX53_PAD_LVDS1_TX2_P__LDB_LVDS1_TX2 0x80000000 - MX53_PAD_LVDS1_TX3_P__LDB_LVDS1_TX3 0x80000000 - MX53_PAD_LVDS1_CLK_P__LDB_LVDS1_CLK 0x80000000 - >; - }; - }; - - nand { - pinctrl_nand_1: nandgrp-1 { - fsl,pins = < - MX53_PAD_NANDF_WE_B__EMI_NANDF_WE_B 0x4 - MX53_PAD_NANDF_RE_B__EMI_NANDF_RE_B 0x4 - MX53_PAD_NANDF_CLE__EMI_NANDF_CLE 0x4 - MX53_PAD_NANDF_ALE__EMI_NANDF_ALE 0x4 - MX53_PAD_NANDF_WP_B__EMI_NANDF_WP_B 0xe0 - MX53_PAD_NANDF_RB0__EMI_NANDF_RB_0 0xe0 - MX53_PAD_NANDF_CS0__EMI_NANDF_CS_0 0x4 - MX53_PAD_PATA_DATA0__EMI_NANDF_D_0 0xa4 - MX53_PAD_PATA_DATA1__EMI_NANDF_D_1 0xa4 - MX53_PAD_PATA_DATA2__EMI_NANDF_D_2 0xa4 - MX53_PAD_PATA_DATA3__EMI_NANDF_D_3 0xa4 - MX53_PAD_PATA_DATA4__EMI_NANDF_D_4 0xa4 - MX53_PAD_PATA_DATA5__EMI_NANDF_D_5 0xa4 - MX53_PAD_PATA_DATA6__EMI_NANDF_D_6 0xa4 - MX53_PAD_PATA_DATA7__EMI_NANDF_D_7 0xa4 - >; - }; - }; - - owire { - pinctrl_owire_1: owiregrp-1 { - fsl,pins = < - MX53_PAD_GPIO_18__OWIRE_LINE 0x80000000 - >; - }; - }; - - pwm1 { - pinctrl_pwm1_1: pwm1grp-1 { - fsl,pins = < - MX53_PAD_DISP0_DAT8__PWM1_PWMO 0x5 - >; - }; - }; - - pwm2 { - pinctrl_pwm2_1: pwm2grp-1 { - fsl,pins = < - MX53_PAD_GPIO_1__PWM2_PWMO 0x80000000 - >; - }; - }; - - uart1 { - pinctrl_uart1_1: uart1grp-1 { - fsl,pins = < - MX53_PAD_CSI0_DAT10__UART1_TXD_MUX 0x1e4 - MX53_PAD_CSI0_DAT11__UART1_RXD_MUX 0x1e4 - >; - }; - - pinctrl_uart1_2: uart1grp-2 { - fsl,pins = < - MX53_PAD_PATA_DIOW__UART1_TXD_MUX 0x1e4 - MX53_PAD_PATA_DMACK__UART1_RXD_MUX 0x1e4 - >; - }; - - pinctrl_uart1_3: uart1grp-3 { - fsl,pins = < - MX53_PAD_PATA_RESET_B__UART1_CTS 0x1c5 - MX53_PAD_PATA_IORDY__UART1_RTS 0x1c5 - >; - }; - }; - - uart2 { - pinctrl_uart2_1: uart2grp-1 { - fsl,pins = < - MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1e4 - MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1e4 - >; - }; - - pinctrl_uart2_2: uart2grp-2 { - fsl,pins = < - MX53_PAD_PATA_BUFFER_EN__UART2_RXD_MUX 0x1c5 - MX53_PAD_PATA_DMARQ__UART2_TXD_MUX 0x1c5 - MX53_PAD_PATA_DIOR__UART2_RTS 0x1c5 - MX53_PAD_PATA_INTRQ__UART2_CTS 0x1c5 - >; - }; - }; - - uart3 { - pinctrl_uart3_1: uart3grp-1 { - fsl,pins = < - MX53_PAD_PATA_CS_0__UART3_TXD_MUX 0x1e4 - MX53_PAD_PATA_CS_1__UART3_RXD_MUX 0x1e4 - MX53_PAD_PATA_DA_1__UART3_CTS 0x1e4 - MX53_PAD_PATA_DA_2__UART3_RTS 0x1e4 - >; - }; - - pinctrl_uart3_2: uart3grp-2 { - fsl,pins = < - MX53_PAD_PATA_CS_0__UART3_TXD_MUX 0x1e4 - MX53_PAD_PATA_CS_1__UART3_RXD_MUX 0x1e4 - >; - }; - - }; - - uart4 { - pinctrl_uart4_1: uart4grp-1 { - fsl,pins = < - MX53_PAD_KEY_COL0__UART4_TXD_MUX 0x1e4 - MX53_PAD_KEY_ROW0__UART4_RXD_MUX 0x1e4 - >; - }; - }; - - uart5 { - pinctrl_uart5_1: uart5grp-1 { - fsl,pins = < - MX53_PAD_KEY_COL1__UART5_TXD_MUX 0x1e4 - MX53_PAD_KEY_ROW1__UART5_RXD_MUX 0x1e4 - >; - }; - }; }; gpr: iomuxc-gpr@53fa8000 {