From patchwork Sat Dec 6 22:32:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Heimpold X-Patchwork-Id: 418422 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AFD4A1400E7 for ; Sun, 7 Dec 2014 09:35:38 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DAF1A28C165; Sat, 6 Dec 2014 23:32:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 73E242805F2 for ; Sat, 6 Dec 2014 23:31:39 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .heimpold. - helo: .mo4-p00-ob.smtp.rzone. - helo-domain: .rzone.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.162]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 6 Dec 2014 23:31:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1417905191; l=2974; s=domk; d=heimpold.de; h=Date:Subject:Cc:To:From; bh=FsSsakkC7mIGaPGDGcYnpS5fw8k=; b=s8RXpuLhM/F9wXKU4Z/uUVLWn603fCm+InF4ZFJHX99Sh9S5dQoXTxGHrzMqTnPNIxA 1MH/3TFEGFX2dC+J3CTE3GN3qbs07uINO/A9mWd0148giwwZtBNQ2qsnNl5d9TG1aRe2G pZFTi9wlnRxJBJKvNR2lHeRciPfnsuxRvj8= X-RZG-AUTH: :O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNys2z+NfqLSUoNNCTudAGGnyHtjxQd77aq3bA2w== X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr (dslb-178-012-069-235.178.012.pools.vodafone-ip.de [178.12.69.235]) by post.strato.de (RZmta 36.2 DYNA|AUTH) with ESMTPA id j02f97qB6MXBB1R; Sat, 6 Dec 2014 23:33:11 +0100 (CET) Received: from kerker.fritz.box (kerker [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id AFF80127279; Sat, 6 Dec 2014 23:33:10 +0100 (CET) From: Michael Heimpold To: wigyori@uid0.hu Date: Sat, 6 Dec 2014 23:32:49 +0100 Message-Id: <1417905173-31494-5-git-send-email-mhei@heimpold.de> X-Mailer: git-send-email 1.7.10.4 Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH v2] mxs: update dts file for Duckbill X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" - fix ethernet reset gpio - fix bus width for micro SD card - make I2C0 available - make SPI0 available - use the padconfig defintions from mxs-pinfunc.h Signed-off-by: Michael Heimpold --- Changelog: - v2: - added padconfig stuff - v1: - initial version .../mxs/files/arch/arm/boot/dts/imx28-duckbill.dts | 47 ++++++++++++++------ 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/target/linux/mxs/files/arch/arm/boot/dts/imx28-duckbill.dts b/target/linux/mxs/files/arch/arm/boot/dts/imx28-duckbill.dts index a5eb3c1..305b4d0 100644 --- a/target/linux/mxs/files/arch/arm/boot/dts/imx28-duckbill.dts +++ b/target/linux/mxs/files/arch/arm/boot/dts/imx28-duckbill.dts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Michael Heimpold + * Copyright (C) 2013-2014 Michael Heimpold * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License @@ -25,13 +25,28 @@ ssp0: ssp@80010000 { compatible = "fsl,imx28-mmc"; pinctrl-names = "default"; - pinctrl-0 = <&mmc0_8bit_pins_a + pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_cd_cfg &mmc0_sck_cfg>; - bus-width = <8>; + bus-width = <4>; vmmc-supply = <®_3p3v>; status = "okay"; }; + ssp2: ssp@80014000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "okay"; + + spidev: spidev@0 { + compatible = "spidev"; + reg = <0>; + spi-max-frequency = <1000000>; + }; + }; + pinctrl@80018000 { pinctrl-names = "default"; pinctrl-0 = <&hog_pins_a>; @@ -39,27 +54,33 @@ hog_pins_a: hog@0 { reg = <0>; fsl,pinmux-ids = < - 0x40d3 /* MX28_PAD_ENET0_RX_CLK__GPIO_4_13, PHY Reset */ + MX28_PAD_SSP0_DATA7__GPIO_2_7 /* PHY Reset */ >; - fsl,drive-strength = <0>; - fsl,voltage = <1>; - fsl,pull-up = <0>; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; }; led_pins_a: led_gpio@0 { reg = <0>; fsl,pinmux-ids = < - 0x3043 /* MX28_PAD_AUART1_RX__GPIO_3_4 */ - 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */ + MX28_PAD_AUART1_RX__GPIO_3_4 + MX28_PAD_AUART1_TX__GPIO_3_5 >; - fsl,drive-strength = <0>; - fsl,voltage = <1>; - fsl,pull-up = <0>; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; }; }; }; apbx@80040000 { + i2c0: i2c@80058000 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + }; + duart: serial@80074000 { pinctrl-names = "default"; pinctrl-0 = <&duart_pins_a>; @@ -82,7 +103,7 @@ pinctrl-names = "default"; pinctrl-0 = <&mac0_pins_a>; phy-supply = <®_3p3v>; - phy-reset-gpios = <&gpio4 13 0>; + phy-reset-gpios = <&gpio2 7 1>; phy-reset-duration = <100>; status = "okay"; };