From patchwork Wed Aug 31 12:13:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 9307039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 008CC601C0 for ; Wed, 31 Aug 2016 12:14:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E69BB28F0E for ; Wed, 31 Aug 2016 12:14:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAC1628F1D; Wed, 31 Aug 2016 12:14:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80BF328F1B for ; Wed, 31 Aug 2016 12:14:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933798AbcHaMOL (ORCPT ); Wed, 31 Aug 2016 08:14:11 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:36291 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759996AbcHaMOB (ORCPT ); Wed, 31 Aug 2016 08:14:01 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OCR00HQ3WMWXZB0@mailout3.w1.samsung.com>; Wed, 31 Aug 2016 13:13:44 +0100 (BST) X-AuditID: cbfec7f5-f792e6d0000013f5-5b-57c6c9f8fe89 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 18.E6.05109.8F9C6C75; Wed, 31 Aug 2016 13:13:44 +0100 (BST) Received: from AMDC2174.DIGITAL.local ([106.120.53.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OCR000W8WMOWY00@eusync3.samsung.com>; Wed, 31 Aug 2016 13:13:43 +0100 (BST) From: Krzysztof Kozlowski To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Javier Martinez Canillas , Tomasz Figa , Sylwester Nawrocki , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 7/9] ARM: dts: exynos: Use macros for GPIO configuration on exynos5260 Date: Wed, 31 Aug 2016 14:13:31 +0200 Message-id: <1472645613-5362-8-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1472645613-5362-1-git-send-email-k.kozlowski@samsung.com> References: <1472645613-5362-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsVy+t/xq7o/Th4LN5g3ndVi44z1rBbzj5xj tXjzdg2TxesXhhb9j18zW5w/v4HdYtPja6wWl3fNYbOYcX4fk8XS6xeZLFr3HmG3OPymndVi 1a4/jA68HmvmrWH02DnrLrvHplWdbB6bl9R7bOkH8vq2rGL0+LxJLoA9issmJTUnsyy1SN8u gSuj58JX1oJt6RW31zxlbWB8HdTFyMkhIWAiMfXUOTYIW0ziwr31QDYXh5DAUkaJ2R2LmSGc RiaJywuXs4BUsQkYS2xevgSsSkRgBpPE1WXvWEAcZoEvjBKnpjxmAqkSFoiQWPX+C1gHi4Cq xOdH3xi7GDk4eAXcJA7u4odYJydx8thkVhCbU8Bd4u3TpWCtQkAlJ3fdYJnAyLuAkWEVo2hq aXJBcVJ6rpFecWJucWleul5yfu4mRkiQft3BuPSY1SFGAQ5GJR7eA7OOhguxJpYVV+YeYpTg YFYS4S07cSxciDclsbIqtSg/vqg0J7X4EKM0B4uSOO/MXe9DhATSE0tSs1NTC1KLYLJMHJxS DYwK0+7vmhCozrXFr8e9I3NHrY/6f/fzpqwP9DTCP+17OHuP5Boh30c7lKeofXPw57e/ZtJ6 c1Gjs07VWc8//T3OBx38mnJs9XTjWJ5LXyzKmjfx5Z/fyo8uu+ilh7Nx+/GoLmGsnrDRTT1n 5h/fs+FmW5sXGp+ampKRwHNkpUAK96uWj3unPFNiKc5INNRiLipOBACY1ovvTgIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Usage of DTS macros instead of hard-coded numbers makes code easier to read. One does not have to remember which value means pull-up/down or specific driver strength. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5260-pinctrl.dtsi | 184 ++++++++++++++--------------- arch/arm/boot/dts/exynos5260-xyref5260.dts | 6 +- 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/arch/arm/boot/dts/exynos5260-pinctrl.dtsi b/arch/arm/boot/dts/exynos5260-pinctrl.dtsi index efd01b816538..acce33d93a7a 100644 --- a/arch/arm/boot/dts/exynos5260-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5260-pinctrl.dtsi @@ -198,217 +198,217 @@ uart0_data: uart0-data { samsung,pins = "gpa0-0", "gpa0-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; uart0_fctl: uart0-fctl { samsung,pins = "gpa0-2", "gpa0-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; uart1_data: uart1-data { samsung,pins = "gpa1-0", "gpa1-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; uart1_fctl: uart1-fctl { samsung,pins = "gpa1-2", "gpa1-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; uart2_data: uart2-data { samsung,pins = "gpa1-4", "gpa1-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; spi0_bus: spi0-bus { samsung,pins = "gpa2-0", "gpa2-2", "gpa2-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; spi1_bus: spi1-bus { samsung,pins = "gpa2-4", "gpa2-6", "gpa2-7"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; usb3_vbus0_en: usb3-vbus0-en { samsung,pins = "gpa2-4"; - samsung,pin-function = <1>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2s1_bus: i2s1-bus { samsung,pins = "gpb0-0", "gpb0-1", "gpb0-2", "gpb0-3", "gpb0-4"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; pcm1_bus: pcm1-bus { samsung,pins = "gpb0-0", "gpb0-1", "gpb0-2", "gpb0-3", "gpb0-4"; - samsung,pin-function = <3>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; spdif1_bus: spdif1-bus { samsung,pins = "gpb0-0", "gpb0-1", "gpb0-2"; - samsung,pin-function = <4>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; spi2_bus: spi2-bus { samsung,pins = "gpb1-0", "gpb1-2", "gpb1-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c0_hs_bus: i2c0-hs-bus { samsung,pins = "gpb3-0", "gpb3-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c1_hs_bus: i2c1-hs-bus { samsung,pins = "gpb3-2", "gpb3-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c2_hs_bus: i2c2-hs-bus { samsung,pins = "gpb3-4", "gpb3-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c3_hs_bus: i2c3-hs-bus { samsung,pins = "gpb3-6", "gpb3-7"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c4_bus: i2c4-bus { samsung,pins = "gpb4-0", "gpb4-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c5_bus: i2c5-bus { samsung,pins = "gpb4-2", "gpb4-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c6_bus: i2c6-bus { samsung,pins = "gpb4-4", "gpb4-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c7_bus: i2c7-bus { samsung,pins = "gpb4-6", "gpb4-7"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c8_bus: i2c8-bus { samsung,pins = "gpb5-0", "gpb5-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c9_bus: i2c9-bus { samsung,pins = "gpb5-2", "gpb5-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c10_bus: i2c10-bus { samsung,pins = "gpb5-4", "gpb5-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; i2c11_bus: i2c11-bus { samsung,pins = "gpb5-6", "gpb5-7"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_gpio_a: cam-gpio-a { samsung,pins = "gpe0-0", "gpe0-1", "gpe0-2", "gpe0-3", "gpe0-4", "gpe0-5", "gpe0-6", "gpe0-7", "gpe1-0", "gpe1-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_gpio_b: cam-gpio-b { samsung,pins = "gpf0-0", "gpf0-1", "gpf0-2", "gpf0-3", "gpf1-0", "gpf1-1", "gpf1-2", "gpf1-3"; - samsung,pin-function = <3>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_i2c1_bus: cam-i2c1-bus { samsung,pins = "gpf0-2", "gpf0-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_i2c0_bus: cam-i2c0-bus { samsung,pins = "gpf0-0", "gpf0-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_spi0_bus: cam-spi0-bus { samsung,pins = "gpf1-0", "gpf1-1", "gpf1-2", "gpf1-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; cam_spi1_bus: cam-spi1-bus { samsung,pins = "gpf1-4", "gpf1-5", "gpf1-6", "gpf1-7"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <0>; + samsung,pin-drv = ; }; }; @@ -455,114 +455,114 @@ sd0_clk: sd0-clk { samsung,pins = "gpc0-0"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd0_cmd: sd0-cmd { samsung,pins = "gpc0-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd0_bus1: sd0-bus-width1 { samsung,pins = "gpc0-2"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd0_bus4: sd0-bus-width4 { samsung,pins = "gpc0-3", "gpc0-4", "gpc0-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd0_bus8: sd0-bus-width8 { samsung,pins = "gpc3-0", "gpc3-1", "gpc3-2", "gpc3-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd0_rdqs: sd0-rdqs { samsung,pins = "gpc0-6"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd1_clk: sd1-clk { samsung,pins = "gpc1-0"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd1_cmd: sd1-cmd { samsung,pins = "gpc1-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd1_bus1: sd1-bus-width1 { samsung,pins = "gpc1-2"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd1_bus4: sd1-bus-width4 { samsung,pins = "gpc1-3", "gpc1-4", "gpc1-5"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd1_bus8: sd1-bus-width8 { samsung,pins = "gpc4-0", "gpc4-1", "gpc4-2", "gpc4-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd2_clk: sd2-clk { samsung,pins = "gpc2-0"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd2_cmd: sd2-cmd { samsung,pins = "gpc2-1"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd2_cd: sd2-cd { samsung,pins = "gpc2-2"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd2_bus1: sd2-bus-width1 { samsung,pins = "gpc2-3"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; sd2_bus4: sd2-bus-width4 { samsung,pins = "gpc2-4", "gpc2-5", "gpc2-6"; - samsung,pin-function = <2>; + samsung,pin-function = ; samsung,pin-pud = ; - samsung,pin-drv = <3>; + samsung,pin-drv = ; }; }; diff --git a/arch/arm/boot/dts/exynos5260-xyref5260.dts b/arch/arm/boot/dts/exynos5260-xyref5260.dts index 3daef94bee38..b784dfc6a059 100644 --- a/arch/arm/boot/dts/exynos5260-xyref5260.dts +++ b/arch/arm/boot/dts/exynos5260-xyref5260.dts @@ -42,9 +42,9 @@ &pinctrl_0 { hdmi_hpd_irq: hdmi-hpd-irq { samsung,pins = "gpx3-7"; - samsung,pin-function = <0>; - samsung,pin-pud = <1>; - samsung,pin-drv = <0>; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; }; };