From patchwork Sat Jan 25 16:43:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 23696 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 206D220300 for ; Sat, 25 Jan 2014 16:46:43 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf10358733pbb.9 for ; Sat, 25 Jan 2014 08:46:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=jrYXUfjuqXZalwWpK/HmlAEAvPoezgkPebL66TlGwlc=; b=PsVFNqGY9CX8QHmB8ddQmQ8oD3jzmJnuBoNTWNDEz8MP5jM9HwbKRa55h5To5iXv4d of8fNLrCPgeikBujYUTFdCWD64pqZS7cV2SwcpWYiEne09w9w6g0O+n+qlImwBKs1HYS 8osyVc9iOhh7WU1v5isSsQYUAp9KC69dUDXbWuRatjov6ihZV30CzGjP8Vh58VmSEln9 JV2KI1LJUIN2dLWdrIMALQPnlreGUI/2epA1t37E1Ku5jrVAQ5Zm8/V2vk6yihQysdmG +gPmhGXjSCR5haUv3mkYRWNpaSmmG1OQ/t6fm4rqtoJaBo0ZISfLf9Mt79OBCVAZYUK1 odRA== X-Gm-Message-State: ALoCoQmkrEbheoBxRR/aR3vu/Q+BcjUQN54xqX/4Jc6CR2wXJFGiOwYuJuHw+94J0LbwC2hZtkDZ X-Received: by 10.66.136.166 with SMTP id qb6mr588329pab.44.1390668402372; Sat, 25 Jan 2014 08:46:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.138 with SMTP id k10ls993365qge.66.gmail; Sat, 25 Jan 2014 08:46:42 -0800 (PST) X-Received: by 10.58.37.232 with SMTP id b8mr10875382vek.27.1390668402215; Sat, 25 Jan 2014 08:46:42 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id wg4si2725762vcb.113.2014.01.25.08.46.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jan 2014 08:46:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so2529912vcb.35 for ; Sat, 25 Jan 2014 08:46:42 -0800 (PST) X-Received: by 10.58.86.230 with SMTP id s6mr10799402vez.16.1390668402112; Sat, 25 Jan 2014 08:46:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp22076vcz; Sat, 25 Jan 2014 08:46:41 -0800 (PST) X-Received: by 10.68.189.198 with SMTP id gk6mr20851257pbc.146.1390668401069; Sat, 25 Jan 2014 08:46:41 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zk9si5267935pac.144.2014.01.25.08.46.40; Sat, 25 Jan 2014 08:46:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752141AbaAYQqk (ORCPT + 9 others); Sat, 25 Jan 2014 11:46:40 -0500 Received: from am1ehsobe006.messaging.microsoft.com ([213.199.154.209]:59269 "EHLO am1outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752112AbaAYQqj (ORCPT ); Sat, 25 Jan 2014 11:46:39 -0500 Received: from mail27-am1-R.bigfish.com (10.3.201.228) by AM1EHSOBE022.bigfish.com (10.3.207.144) with Microsoft SMTP Server id 14.1.225.22; Sat, 25 Jan 2014 16:46:38 +0000 Received: from mail27-am1 (localhost [127.0.0.1]) by mail27-am1-R.bigfish.com (Postfix) with ESMTP id 19423602E8; Sat, 25 Jan 2014 16:46:38 +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: 7 X-BigFish: VS7(zzb922lc8kzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275dh1de097hz2dh87h2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h1151h1155h) X-FB-DOMAIN-IP-MATCH: fail Received: from mail27-am1 (localhost.localdomain [127.0.0.1]) by mail27-am1 (MessageSwitch) id 1390668395782340_3727; Sat, 25 Jan 2014 16:46:35 +0000 (UTC) Received: from AM1EHSMHS002.bigfish.com (unknown [10.3.201.243]) by mail27-am1.bigfish.com (Postfix) with ESMTP id B979D802A1; Sat, 25 Jan 2014 16:46:35 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by AM1EHSMHS002.bigfish.com (10.3.207.102) with Microsoft SMTP Server (TLS) id 14.16.227.3; Sat, 25 Jan 2014 16:46:35 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.3.158.2; Sat, 25 Jan 2014 16:46:33 +0000 Received: from S2101-09.ap.freescale.net ([10.192.185.238]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s0PGk7uO013196; Sat, 25 Jan 2014 09:46:30 -0700 From: Shawn Guo To: Rob Herring , CC: , Russell King - ARM Linux , , , Shawn Guo Subject: [PATCH 5/9] ARM: dts: imx50: remove the use of pingrp macros Date: Sun, 26 Jan 2014 00:43:07 +0800 Message-ID: <1390668191-20289-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1390668191-20289-1-git-send-email-shawn.guo@linaro.org> References: <1390668191-20289-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% Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: shawn.guo@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , We created the pingrp macros in imx50-pingrp.h for purpose of less LOC when same pin group is used by multiple boards. However, DT maintainers take it as an abuse of DTC macro support. So let's get rid of it to make the pins used by given device more intuitive. Signed-off-by: Shawn Guo --- arch/arm/boot/dts/imx50-evk.dts | 28 +++++++- arch/arm/boot/dts/imx50-pingrp.h | 146 -------------------------------------- arch/arm/boot/dts/imx50.dtsi | 2 +- 3 files changed, 26 insertions(+), 150 deletions(-) delete mode 100644 arch/arm/boot/dts/imx50-pingrp.h diff --git a/arch/arm/boot/dts/imx50-evk.dts b/arch/arm/boot/dts/imx50-evk.dts index a859264..1b22512 100644 --- a/arch/arm/boot/dts/imx50-evk.dts +++ b/arch/arm/boot/dts/imx50-evk.dts @@ -61,15 +61,37 @@ &iomuxc { imx50-evk { pinctrl_cspi: cspigrp { - fsl,pins = ; + fsl,pins = < + MX50_PAD_CSPI_SCLK__CSPI_SCLK 0x00 + MX50_PAD_CSPI_MISO__CSPI_MISO 0x00 + MX50_PAD_CSPI_MOSI__CSPI_MOSI 0x00 + MX50_PAD_CSPI_SS0__GPIO4_11 0xc4 + MX50_PAD_ECSPI1_MOSI__CSPI_SS1 0xf4 + >; }; pinctrl_fec: fecgrp { - fsl,pins = ; + fsl,pins = < + MX50_PAD_SSI_RXFS__FEC_MDC 0x80 + MX50_PAD_SSI_RXC__FEC_MDIO 0x80 + MX50_PAD_DISP_D0__FEC_TX_CLK 0x80 + MX50_PAD_DISP_D1__FEC_RX_ERR 0x80 + MX50_PAD_DISP_D2__FEC_RX_DV 0x80 + MX50_PAD_DISP_D3__FEC_RDATA_1 0x80 + MX50_PAD_DISP_D4__FEC_RDATA_0 0x80 + MX50_PAD_DISP_D5__FEC_TX_EN 0x80 + MX50_PAD_DISP_D6__FEC_TDATA_1 0x80 + MX50_PAD_DISP_D7__FEC_TDATA_0 0x80 + >; }; pinctrl_uart1: uart1grp { - fsl,pins = ; + fsl,pins = < + MX50_PAD_UART1_TXD__UART1_TXD_MUX 0x1e4 + MX50_PAD_UART1_RXD__UART1_RXD_MUX 0x1e4 + MX50_PAD_UART1_RTS__UART1_RTS 0x1e4 + MX50_PAD_UART1_CTS__UART1_CTS 0x1e4 + >; }; }; }; diff --git a/arch/arm/boot/dts/imx50-pingrp.h b/arch/arm/boot/dts/imx50-pingrp.h deleted file mode 100644 index 0f4ce8c..0000000 --- a/arch/arm/boot/dts/imx50-pingrp.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * 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_IMX50_PINGRP_H -#define __DTS_IMX50_PINGRP_H - -#include "imx50-pinfunc.h" - -#define MX50_CSPI_PINGRP1 \ - MX50_PAD_CSPI_SCLK__CSPI_SCLK 0x00 \ - MX50_PAD_CSPI_MISO__CSPI_MISO 0x00 \ - MX50_PAD_CSPI_MOSI__CSPI_MOSI 0x00 \ - MX50_PAD_CSPI_SS0__GPIO4_11 0xc4 \ - MX50_PAD_ECSPI1_MOSI__CSPI_SS1 0xf4 - -#define MX50_ECSPI1_PINGRP1 \ - MX50_PAD_ECSPI1_SCLK__ECSPI1_SCLK 0x00 \ - MX50_PAD_ECSPI1_SS0__ECSPI1_SS0 0x00 \ - MX50_PAD_ECSPI1_MISO__ECSPI1_MISO 0x00 \ - MX50_PAD_ECSPI1_MOSI__ECSPI1_MOSI 0x00 - -#define MX50_ESDHC1_PINGRP1 \ - MX50_PAD_SD1_D0__ESDHC1_DAT0 0x1d4 \ - MX50_PAD_SD1_D1__ESDHC1_DAT1 0x1d4 \ - MX50_PAD_SD1_D2__ESDHC1_DAT2 0x1d4 \ - MX50_PAD_SD1_D3__ESDHC1_DAT3 0x1d4 \ - MX50_PAD_SD1_CMD__ESDHC1_CMD 0x1e4 \ - MX50_PAD_SD1_CLK__ESDHC1_CLK 0xd4 - -#define MX50_ESDHC1_PINGRP2 \ - MX50_PAD_SD1_D0__ESDHC1_DAT0 0x1d4 \ - MX50_PAD_SD1_D1__ESDHC1_DAT1 0x1d4 \ - MX50_PAD_SD1_D2__ESDHC1_DAT2 0x1d4 \ - MX50_PAD_SD1_D3__ESDHC1_DAT3 0x1d4 \ - MX50_PAD_UART3_TXD__ESDHC1_DAT4 0x1d4 \ - MX50_PAD_UART3_RXD__ESDHC1_DAT5 0x1d4 \ - MX50_PAD_UART4_TXD__ESDHC1_DAT6 0x1d4 \ - MX50_PAD_UART4_RXD__ESDHC1_DAT7 0x1d4 \ - MX50_PAD_SD1_CMD__ESDHC1_CMD 0x14 \ - MX50_PAD_SD1_CLK__ESDHC1_CLK 0xd4 - -#define MX50_ESDHC2_PINGRP1 \ - MX50_PAD_SD2_CMD__ESDHC2_CMD 0x1e4 \ - MX50_PAD_SD2_CLK__ESDHC2_CLK 0xd4 \ - MX50_PAD_SD2_D0__ESDHC2_DAT0 0x1d4 \ - MX50_PAD_SD2_D1__ESDHC2_DAT1 0x1d4 \ - MX50_PAD_SD2_D2__ESDHC2_DAT2 0x1d4 \ - MX50_PAD_SD2_D3__ESDHC2_DAT3 0x1d4 \ - MX50_PAD_SD2_D4__ESDHC2_DAT4 0x1d4 \ - MX50_PAD_SD2_D5__ESDHC2_DAT5 0x1d4 \ - MX50_PAD_SD2_D6__ESDHC2_DAT6 0x1d4 \ - MX50_PAD_SD2_D7__ESDHC2_DAT7 0x1d4 - -#define MX50_ESDHC3_PINGRP1 \ - MX50_PAD_SD3_D0__ESDHC3_DAT0 0x1d4 \ - MX50_PAD_SD3_D1__ESDHC3_DAT1 0x1d4 \ - MX50_PAD_SD3_D2__ESDHC3_DAT2 0x1d4 \ - MX50_PAD_SD3_D3__ESDHC3_DAT3 0x1d4 \ - MX50_PAD_SD3_D4__ESDHC3_DAT4 0x1d4 \ - MX50_PAD_SD3_D5__ESDHC3_DAT5 0x1d4 \ - MX50_PAD_SD3_D6__ESDHC3_DAT6 0x1d4 \ - MX50_PAD_SD3_D7__ESDHC3_DAT7 0x1d4 \ - MX50_PAD_SD3_CMD__ESDHC3_CMD 0x1e4 \ - MX50_PAD_SD3_CLK__ESDHC3_CLK 0xd4 - -#define MX50_FEC_PINGRP1 \ - MX50_PAD_SSI_RXFS__FEC_MDC 0x80 \ - MX50_PAD_SSI_RXC__FEC_MDIO 0x80 \ - MX50_PAD_DISP_D0__FEC_TX_CLK 0x80 \ - MX50_PAD_DISP_D1__FEC_RX_ERR 0x80 \ - MX50_PAD_DISP_D2__FEC_RX_DV 0x80 \ - MX50_PAD_DISP_D3__FEC_RDATA_1 0x80 \ - MX50_PAD_DISP_D4__FEC_RDATA_0 0x80 \ - MX50_PAD_DISP_D5__FEC_TX_EN 0x80 \ - MX50_PAD_DISP_D6__FEC_TDATA_1 0x80 \ - MX50_PAD_DISP_D7__FEC_TDATA_0 0x80 - -#define MX50_FEC_PINGRP2 \ - MX50_PAD_I2C3_SCL__FEC_MDC 0x80 \ - MX50_PAD_I2C3_SDA__FEC_MDIO 0x80 \ - MX50_PAD_DISP_D0__FEC_TX_CLK 0x80 \ - MX50_PAD_DISP_D10__FEC_RX_DV 0x80 \ - MX50_PAD_DISP_D11__FEC_RDATA_1 0x80 \ - MX50_PAD_DISP_D12__FEC_RDATA_0 0x80 \ - MX50_PAD_DISP_D13__FEC_TX_EN 0x80 \ - MX50_PAD_DISP_D14__FEC_TDATA_1 0x80 \ - MX50_PAD_DISP_D15__FEC_TDATA_0 0x80 - -#define MX50_I2C1_PINGRP1 \ - MX50_PAD_I2C1_SDA__I2C1_SDA 0x12c \ - MX50_PAD_I2C1_SCL__I2C1_SCL 0x12c - -#define MX50_I2C2_PINGRP1 \ - MX50_PAD_I2C2_SDA__I2C2_SDA 0x12c \ - MX50_PAD_I2C2_SCL__I2C2_SCL 0x12c - -#define MX50_I2C3_PINGRP1 \ - MX50_PAD_I2C3_SDA__I2C3_SDA 0x12c \ - MX50_PAD_I2C3_SCL__I2C3_SCL 0x12c - -#define MX50_OWIRE_PINGRP1 \ - MX50_PAD_OWIRE__OWIRE_LINE 0x84 - -#define MX50_UART1_PINGRP1 \ - MX50_PAD_UART1_TXD__UART1_TXD_MUX 0x1e4 \ - MX50_PAD_UART1_RXD__UART1_RXD_MUX 0x1e4 \ - MX50_PAD_UART1_RTS__UART1_RTS 0x1e4 \ - MX50_PAD_UART1_CTS__UART1_CTS 0x1e4 - -#define MX50_UART2_PINGRP1 \ - MX50_PAD_UART2_TXD__UART2_TXD_MUX 0x1e4 \ - MX50_PAD_UART2_RXD__UART2_RXD_MUX 0x1e4 \ - MX50_PAD_UART2_RTS__UART2_RTS 0x1e4 \ - MX50_PAD_UART2_CTS__UART2_CTS 0x1e4 - -#define MX50_UART2_PINGRP2 \ - MX50_PAD_I2C1_SCL__UART2_TXD_MUX 0x1e4 \ - MX50_PAD_I2C1_SDA__UART2_RXD_MUX 0x1e4 \ - MX50_PAD_I2C2_SDA__UART2_RTS 0x1e4 \ - MX50_PAD_I2C2_SCL__UART2_CTS 0x1e4 - -#define MX50_UART3_PINGRP1 \ - MX50_PAD_UART3_TXD__UART3_TXD_MUX 0x1e4 \ - MX50_PAD_UART3_RXD__UART3_RXD_MUX 0x1e4 \ - MX50_PAD_ECSPI1_SCLK__UART3_RTS 0x1e4 \ - MX50_PAD_ECSPI1_MOSI__UART3_CTS 0x1e4 - -#define MX50_UART4_PINGRP1 \ - MX50_PAD_UART4_TXD__UART4_TXD_MUX 0x1e4 \ - MX50_PAD_UART4_RXD__UART4_RXD_MUX 0x1e4 \ - MX50_PAD_ECSPI1_MISO__UART4_RTS 0x1e4 \ - MX50_PAD_ECSPI1_SS0__UART4_CTS 0x1e4 - -#define MX50_UART5_PINGRP1 \ - MX50_PAD_ECSPI2_MISO__UART5_TXD_MUX 0x1e4 \ - MX50_PAD_ECSPI2_SS0__UART5_RXD_MUX 0x1e4 \ - MX50_PAD_ECSPI2_SCLK__UART5_RTS 0x1e4 \ - MX50_PAD_ECSPI2_MOSI__UART5_CTS 0x1e4 - -#endif /* __DTS_IMX50_PINGRP_H */ diff --git a/arch/arm/boot/dts/imx50.dtsi b/arch/arm/boot/dts/imx50.dtsi index 01c0499..7152472 100644 --- a/arch/arm/boot/dts/imx50.dtsi +++ b/arch/arm/boot/dts/imx50.dtsi @@ -12,7 +12,7 @@ */ #include "skeleton.dtsi" -#include "imx50-pingrp.h" +#include "imx50-pinfunc.h" #include / {