From patchwork Sat Jan 25 16:43:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 23700 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9385C20300 for ; Sat, 25 Jan 2014 16:46:57 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf10331563pbc.8 for ; Sat, 25 Jan 2014 08:46:56 -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=th1Mctwk4rxxmNu4EFg/QVGvl+V/tyr3rHkZrCALu5Y=; b=ij1zeMweSO0n0GVW3Q1QIkry/3bKUqlXxBVHWsbFAQTHvLl0oENarpeT8UWyO1Uoqa mIK/XOPKlND03Oio3OhlpTuFI7yeHrkuCeUvRR0R0MfR/3mvDiD6YxNh0SgK9dFQGvus 0akzXYJVdSgOaC0ycNXlHO1R5Oh6K8CVYm+rwXye15KcDLNn89/reYzTph7++cMY+nH9 pLPtaVMPf6VSwW9GFGl9f2Mu5vb3xXEQ7jpDh/EurXlQmPZeMCTLD2JkPNY41gOhJXkX DHCme5X2u+gNDm646yZQmKVpeVSqe6AJWQ+/F9AvnEhrtZ4rsxk5v5ZS6rHDzWPk2L0a qKYA== X-Gm-Message-State: ALoCoQnCrwTL0XTd6BLJ5+UwraqPbsddenKPmdd5Cqp6gU+EYSZ5tle1UwpXF5bKfzLcm8r01KPa X-Received: by 10.66.163.67 with SMTP id yg3mr636234pab.45.1390668416865; Sat, 25 Jan 2014 08:46:56 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls1014265qgd.52.gmail; Sat, 25 Jan 2014 08:46:56 -0800 (PST) X-Received: by 10.58.161.78 with SMTP id xq14mr39746veb.51.1390668416706; Sat, 25 Jan 2014 08:46:56 -0800 (PST) Received: from mail-vb0-f41.google.com (mail-vb0-f41.google.com [209.85.212.41]) by mx.google.com with ESMTPS id yv5si2728658veb.102.2014.01.25.08.46.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 25 Jan 2014 08:46:56 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.41 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.41; Received: by mail-vb0-f41.google.com with SMTP id g10so2549693vbg.28 for ; Sat, 25 Jan 2014 08:46:56 -0800 (PST) X-Received: by 10.221.54.65 with SMTP id vt1mr42106vcb.46.1390668416614; Sat, 25 Jan 2014 08:46:56 -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 u4csp22092vcz; Sat, 25 Jan 2014 08:46:56 -0800 (PST) X-Received: by 10.68.108.194 with SMTP id hm2mr20996386pbb.22.1390668415643; Sat, 25 Jan 2014 08:46:55 -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.54; Sat, 25 Jan 2014 08:46:54 -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 S1752296AbaAYQqy (ORCPT + 9 others); Sat, 25 Jan 2014 11:46:54 -0500 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:57874 "EHLO tx2outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752275AbaAYQqx (ORCPT ); Sat, 25 Jan 2014 11:46:53 -0500 Received: from mail239-tx2-R.bigfish.com (10.9.14.243) by TX2EHSOBE006.bigfish.com (10.9.40.26) with Microsoft SMTP Server id 14.1.225.22; Sat, 25 Jan 2014 16:46:52 +0000 Received: from mail239-tx2 (localhost [127.0.0.1]) by mail239-tx2-R.bigfish.com (Postfix) with ESMTP id E3D1A400F9; Sat, 25 Jan 2014 16:46:52 +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(zze0eaha1fflb922lc8kzz1f42h2148h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h2189h1d1ah1d2ah21bch1fc6hzz1de098h8275dh1de097hz2dh87h2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e23h1fe8h1ff5h2218h2216h226dh22d0h24afh2327h2336h2438h2461h2487h24d7h1151h1155h) X-FB-DOMAIN-IP-MATCH: fail Received: from mail239-tx2 (localhost.localdomain [127.0.0.1]) by mail239-tx2 (MessageSwitch) id 1390668410756406_8676; Sat, 25 Jan 2014 16:46:50 +0000 (UTC) Received: from TX2EHSMHS035.bigfish.com (unknown [10.9.14.225]) by mail239-tx2.bigfish.com (Postfix) with ESMTP id ACA532A007B; Sat, 25 Jan 2014 16:46:50 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS035.bigfish.com (10.9.99.135) with Microsoft SMTP Server (TLS) id 14.16.227.3; Sat, 25 Jan 2014 16:46:46 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.3.158.2; Sat, 25 Jan 2014 16:46:46 +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 s0PGk7uS013196; Sat, 25 Jan 2014 09:46:43 -0700 From: Shawn Guo To: Rob Herring , CC: , Russell King - ARM Linux , , , Shawn Guo Subject: [PATCH 9/9] ARM: dts: vf610: remove the use of pingrp macros Date: Sun, 26 Jan 2014 00:43:11 +0800 Message-ID: <1390668191-20289-10-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.212.41 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 vf610-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/vf610-cosmic.dts | 17 ++++- arch/arm/boot/dts/vf610-pingrp.h | 127 ------------------------------------ arch/arm/boot/dts/vf610-twr.dts | 42 ++++++++++-- arch/arm/boot/dts/vf610.dtsi | 2 +- 4 files changed, 53 insertions(+), 135 deletions(-) delete mode 100644 arch/arm/boot/dts/vf610-pingrp.h diff --git a/arch/arm/boot/dts/vf610-cosmic.dts b/arch/arm/boot/dts/vf610-cosmic.dts index 432960a..3fd1b74 100644 --- a/arch/arm/boot/dts/vf610-cosmic.dts +++ b/arch/arm/boot/dts/vf610-cosmic.dts @@ -43,11 +43,24 @@ &iomuxc { vf610-cosmic { pinctrl_fec1: fec1grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2 + VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 + VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 + VF610_PAD_PTC12__ENET_RMII_RXD1 0x30d1 + VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 + VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 + VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 + VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 + VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 + >; }; pinctrl_uart1: uart1grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTB4__UART1_TX 0x21a2 + VF610_PAD_PTB5__UART1_RX 0x21a1 + >; }; }; }; diff --git a/arch/arm/boot/dts/vf610-pingrp.h b/arch/arm/boot/dts/vf610-pingrp.h deleted file mode 100644 index 0858f4f..0000000 --- a/arch/arm/boot/dts/vf610-pingrp.h +++ /dev/null @@ -1,127 +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_VF610_PINGRP_H -#define __DTS_VF610_PINGRP_H - -#include "vf610-pinfunc.h" - -#define VF610_DCU0_PINGRP1 \ - VF610_PAD_PTB8__GPIO_30 0x42 \ - VF610_PAD_PTE0__DCU0_HSYNC 0x42 \ - VF610_PAD_PTE1__DCU0_VSYNC 0x42 \ - VF610_PAD_PTE2__DCU0_PCLK 0x42 \ - VF610_PAD_PTE4__DCU0_DE 0x42 \ - VF610_PAD_PTE5__DCU0_R0 0x42 \ - VF610_PAD_PTE6__DCU0_R1 0x42 \ - VF610_PAD_PTE7__DCU0_R2 0x42 \ - VF610_PAD_PTE8__DCU0_R3 0x42 \ - VF610_PAD_PTE9__DCU0_R4 0x42 \ - VF610_PAD_PTE10__DCU0_R5 0x42 \ - VF610_PAD_PTE11__DCU0_R6 0x42 \ - VF610_PAD_PTE12__DCU0_R7 0x42 \ - VF610_PAD_PTE13__DCU0_G0 0x42 \ - VF610_PAD_PTE14__DCU0_G1 0x42 \ - VF610_PAD_PTE15__DCU0_G2 0x42 \ - VF610_PAD_PTE16__DCU0_G3 0x42 \ - VF610_PAD_PTE17__DCU0_G4 0x42 \ - VF610_PAD_PTE18__DCU0_G5 0x42 \ - VF610_PAD_PTE19__DCU0_G6 0x42 \ - VF610_PAD_PTE20__DCU0_G7 0x42 \ - VF610_PAD_PTE21__DCU0_B0 0x42 \ - VF610_PAD_PTE22__DCU0_B1 0x42 \ - VF610_PAD_PTE23__DCU0_B2 0x42 \ - VF610_PAD_PTE24__DCU0_B3 0x42 \ - VF610_PAD_PTE25__DCU0_B4 0x42 \ - VF610_PAD_PTE26__DCU0_B5 0x42 \ - VF610_PAD_PTE27__DCU0_B6 0x42 \ - VF610_PAD_PTE28__DCU0_B7 0x42 - -#define VF610_DSPI0_PINGRP1 \ - VF610_PAD_PTB19__DSPI0_CS0 0x1182 \ - VF610_PAD_PTB20__DSPI0_SIN 0x1181 \ - VF610_PAD_PTB21__DSPI0_SOUT 0x1182 \ - VF610_PAD_PTB22__DSPI0_SCK 0x1182 - -#define VF610_ESDHC1_PINGRP1 \ - VF610_PAD_PTA24__ESDHC1_CLK 0x31ef \ - VF610_PAD_PTA25__ESDHC1_CMD 0x31ef \ - VF610_PAD_PTA26__ESDHC1_DAT0 0x31ef \ - VF610_PAD_PTA27__ESDHC1_DAT1 0x31ef \ - VF610_PAD_PTA28__ESDHC1_DATA2 0x31ef \ - VF610_PAD_PTA29__ESDHC1_DAT3 0x31ef \ - VF610_PAD_PTA7__GPIO_134 0x219d - -#define VF610_FEC0_PINGRP1 \ - VF610_PAD_PTA6__RMII_CLKIN 0x30d1 \ - VF610_PAD_PTC0__ENET_RMII0_MDC 0x30d3 \ - VF610_PAD_PTC1__ENET_RMII0_MDIO 0x30d1 \ - VF610_PAD_PTC2__ENET_RMII0_CRS 0x30d1 \ - VF610_PAD_PTC3__ENET_RMII0_RXD1 0x30d1 \ - VF610_PAD_PTC4__ENET_RMII0_RXD0 0x30d1 \ - VF610_PAD_PTC5__ENET_RMII0_RXER 0x30d1 \ - VF610_PAD_PTC6__ENET_RMII0_TXD1 0x30d2 \ - VF610_PAD_PTC7__ENET_RMII0_TXD0 0x30d2 \ - VF610_PAD_PTC8__ENET_RMII0_TXEN 0x30d2 - -#define VF610_FEC1_PINGRP1 \ - VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2 \ - VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 \ - VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 \ - VF610_PAD_PTC12__ENET_RMII_RXD1 0x30d1 \ - VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 \ - VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 \ - VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 \ - VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 \ - VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 \ - -#define VF610_I2C0_PINGRP1 \ - VF610_PAD_PTB14__I2C0_SCL 0x30d3 \ - VF610_PAD_PTB15__I2C0_SDA 0x30d3 \ - -#define VF610_PWM0_PINGRP1 \ - VF610_PAD_PTB0__FTM0_CH0 0x1582 \ - VF610_PAD_PTB1__FTM0_CH1 0x1582 \ - VF610_PAD_PTB2__FTM0_CH2 0x1582 \ - VF610_PAD_PTB3__FTM0_CH3 0x1582 \ - VF610_PAD_PTB6__FTM0_CH6 0x1582 \ - VF610_PAD_PTB7__FTM0_CH7 0x1582 - -#define VF610_QSPI0_PINGRP1 \ - VF610_PAD_PTD0__QSPI0_A_QSCK 0x307b \ - VF610_PAD_PTD1__QSPI0_A_CS0 0x307f \ - VF610_PAD_PTD2__QSPI0_A_DATA3 0x3073 \ - VF610_PAD_PTD3__QSPI0_A_DATA2 0x3073 \ - VF610_PAD_PTD4__QSPI0_A_DATA1 0x3073 \ - VF610_PAD_PTD5__QSPI0_A_DATA0 0x307b \ - VF610_PAD_PTD7__QSPI0_B_QSCK 0x307b \ - VF610_PAD_PTD8__QSPI0_B_CS0 0x307f \ - VF610_PAD_PTD9__QSPI0_B_DATA3 0x3073 \ - VF610_PAD_PTD10__QSPI0_B_DATA2 0x3073 \ - VF610_PAD_PTD11__QSPI0_B_DATA1 0x3073 \ - VF610_PAD_PTD12__QSPI0_B_DATA0 0x307b - -#define VF610_SAI2_PINGRP1 \ - VF610_PAD_PTA16__SAI2_TX_BCLK 0x02ed \ - VF610_PAD_PTA18__SAI2_TX_DATA 0x02ee \ - VF610_PAD_PTA19__SAI2_TX_SYNC 0x02ed \ - VF610_PAD_PTA21__SAI2_RX_BCLK 0x02ed \ - VF610_PAD_PTA22__SAI2_RX_DATA 0x02ed \ - VF610_PAD_PTA23__SAI2_RX_SYNC 0x02ed \ - VF610_PAD_PTB18__EXT_AUDIO_MCLK 0x02ed - -#define VF610_UART1_PINGRP1 \ - VF610_PAD_PTB4__UART1_TX 0x21a2 \ - VF610_PAD_PTB5__UART1_RX 0x21a1 - -#define VF610_USBVBUS_PINGRP1 \ - VF610_PAD_PTA24__USB1_VBUS_EN 0x219c \ - VF610_PAD_PTA16__USB0_VBUS_EN 0x219c - -#endif /* __DTS_VF610_PINGRP_H */ diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 80db14e..e3a3805 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-twr.dts @@ -77,23 +77,55 @@ &iomuxc { vf610-twr { pinctrl_dspi0: dspi0grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTB19__DSPI0_CS0 0x1182 + VF610_PAD_PTB20__DSPI0_SIN 0x1181 + VF610_PAD_PTB21__DSPI0_SOUT 0x1182 + VF610_PAD_PTB22__DSPI0_SCK 0x1182 + >; }; pinctrl_fec0: fec0grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTA6__RMII_CLKIN 0x30d1 + VF610_PAD_PTC0__ENET_RMII0_MDC 0x30d3 + VF610_PAD_PTC1__ENET_RMII0_MDIO 0x30d1 + VF610_PAD_PTC2__ENET_RMII0_CRS 0x30d1 + VF610_PAD_PTC3__ENET_RMII0_RXD1 0x30d1 + VF610_PAD_PTC4__ENET_RMII0_RXD0 0x30d1 + VF610_PAD_PTC5__ENET_RMII0_RXER 0x30d1 + VF610_PAD_PTC6__ENET_RMII0_TXD1 0x30d2 + VF610_PAD_PTC7__ENET_RMII0_TXD0 0x30d2 + VF610_PAD_PTC8__ENET_RMII0_TXEN 0x30d2 + >; }; pinctrl_fec1: fec1grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2 + VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 + VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 + VF610_PAD_PTC12__ENET_RMII_RXD1 0x30d1 + VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 + VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 + VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 + VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 + VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 + >; }; pinctrl_i2c0: i2c0grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTB14__I2C0_SCL 0x30d3 + VF610_PAD_PTB15__I2C0_SDA 0x30d3 + >; }; pinctrl_uart1: uart1grp { - fsl,pins = ; + fsl,pins = < + VF610_PAD_PTB4__UART1_TX 0x21a2 + VF610_PAD_PTB5__UART1_RX 0x21a1 + >; }; }; }; diff --git a/arch/arm/boot/dts/vf610.dtsi b/arch/arm/boot/dts/vf610.dtsi index ef8a0ee..183943e 100644 --- a/arch/arm/boot/dts/vf610.dtsi +++ b/arch/arm/boot/dts/vf610.dtsi @@ -8,7 +8,7 @@ */ #include "skeleton.dtsi" -#include "vf610-pingrp.h" +#include "vf610-pinfunc.h" #include / {