From patchwork Tue Sep 12 03:46:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Derald D. Woods" X-Patchwork-Id: 9948349 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 800456024A for ; Tue, 12 Sep 2017 03:48:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75C5A28DE7 for ; Tue, 12 Sep 2017 03:48:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6AC4528DEC; Tue, 12 Sep 2017 03:48:21 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable 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 1E5F428DE7 for ; Tue, 12 Sep 2017 03:48:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751380AbdILDsG (ORCPT ); Mon, 11 Sep 2017 23:48:06 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:37661 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbdILDrX (ORCPT ); Mon, 11 Sep 2017 23:47:23 -0400 Received: by mail-it0-f65.google.com with SMTP id d6so5212811itc.4; Mon, 11 Sep 2017 20:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b1jnrl2DBTaMsfmowqYDuze1XU0JS0VdRyrxW727OPo=; b=poFeznCi6apKqvskTZyiZ6tNOS9ZGb6MJco2mSWXuC2SEpt/NoevQwI1odKDcAfaLU M3Ctfl78/mjNUh1SsN4GVtZWZC48d0vtZDPX1rYW/GTgpTV+QpmZ98KWoxBeGFfxUC5K uuzPptAN2vuut7UVaqmvjH3koOn9Y0eLmfQneeYNXhS7yhUU3B+M6TT+sojg//glM5J8 AYNmnFNRfNjqV2MEIlquga5V4x23p6wgN53cPbM6I4lxo5qtG4xPLDJ5L85IhryL6Ri5 RjihoZPJ7WiBRH6dEndbFJLKtffekNh9NezdYbO5isUYJq7dmwhTLmHnIeH/BhAHWcFG Cggw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b1jnrl2DBTaMsfmowqYDuze1XU0JS0VdRyrxW727OPo=; b=eM7R1/cWmTWkjNjjGOhcc1Lj/ZSvVENW+AiDt6ILA3QNJX9XuVX7lgryEGAuv01PH4 k15xC6qOQSsFfZP7d3ifz5SmNuvsMA06hrqcbbiiclKFjAsc0TrRcgBwhte1qBV4+xhK ydldC4rliTQmeKoq+yvXjhGYzGU2l0QLf+f/2EKbUTx3ktrWglK7Oj4XdpVryksuVmeu tIi7N3g1YP9EFcSHFCEHbrhiRgiKljbFSlvbjBstcQPHgyyRFJcnvRkC6jw64cJRdtY5 oxBgGjAFIigFbn6CTjhcboNMcocpBgC1Q2fna5dRrADVwD+w1XRrZlWecUNFymjxGVoV QX5Q== X-Gm-Message-State: AHPjjUhJmeEUsd8AngDdowuWG9HDfhSAukCny+K/X5cysqjDql8HlgwE 72R77YdPdEe3iZD+bOnFGxA95g== X-Google-Smtp-Source: ADKCNb6IgJW4VYBNKYQFqSO/2kUm1/Jot1l7oG1HYEaMFo36ob+mq9ZdxYyz/+cB0L3OO8PFjHTmLw== X-Received: by 10.36.185.88 with SMTP id k24mr16317252iti.71.1505188042546; Mon, 11 Sep 2017 20:47:22 -0700 (PDT) Received: from exodus.hsd1.il.comcast.net (c-98-193-113-254.hsd1.il.comcast.net. [98.193.113.254]) by smtp.gmail.com with ESMTPSA id m81sm5698468itb.15.2017.09.11.20.47.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Sep 2017 20:47:22 -0700 (PDT) From: "Derald D. Woods" To: linux-omap@vger.kernel.org Cc: tony@atomide.com, linux-kernel@vger.kernel.org, "Derald D. Woods" Subject: [PATCH v2 2/4] ARM: dts: omap3-evm: Add OMAP3530 specific device tree processor data Date: Mon, 11 Sep 2017 22:46:57 -0500 Message-Id: <20170912034659.13184-3-woods.technical@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912034659.13184-1-woods.technical@gmail.com> References: <20170903003816.5536-1-woods.technical@gmail.com> <20170912034659.13184-1-woods.technical@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This commit allows OMAP3530 variants to use common data that is available in 'omap3-evm-processor-common.dtsi'. It adds proper pinmux macros for 'omap3_pmx_core2' on OMAP3430. The Micron NAND chip is also added for the TMDSEVM3530 processor module. Signed-off-by: Derald D. Woods --- arch/arm/boot/dts/omap3-evm.dts | 76 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 72 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/omap3-evm.dts b/arch/arm/boot/dts/omap3-evm.dts index 99b2bfcd1059..21a3b88aef0c 100644 --- a/arch/arm/boot/dts/omap3-evm.dts +++ b/arch/arm/boot/dts/omap3-evm.dts @@ -9,13 +9,81 @@ #include "omap34xx.dtsi" #include "omap3-evm-common.dtsi" +#include "omap3-evm-processor-common.dtsi" / { model = "TI OMAP35XX EVM (TMDSEVM3530)"; - compatible = "ti,omap3-evm", "ti,omap3"; + compatible = "ti,omap3-evm", "ti,omap3430", "ti,omap3"; +}; + +&omap3_pmx_core2 { + pinctrl-names = "default"; + pinctrl-0 = <&hsusb2_2_pins>; + + ehci_phy_pins: pinmux_ehci_phy_pins { + pinctrl-single,pins = < + + /* EHCI PHY reset GPIO etk_d7.gpio_21 */ + OMAP3430_CORE2_IOPAD(0x25ea, PIN_OUTPUT | MUX_MODE4) + + /* EHCI VBUS etk_d8.gpio_22 */ + OMAP3430_CORE2_IOPAD(0x25ec, PIN_OUTPUT | MUX_MODE4) + >; + }; + + /* Used by OHCI and EHCI. OHCI won't work without external phy */ + hsusb2_2_pins: pinmux_hsusb2_2_pins { + pinctrl-single,pins = < + + /* etk_d10.hsusb2_clk */ + OMAP3430_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) + + /* etk_d11.hsusb2_stp */ + OMAP3430_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) + + /* etk_d12.hsusb2_dir */ + OMAP3430_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) + + /* etk_d13.hsusb2_nxt */ + OMAP3430_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) + + /* etk_d14.hsusb2_data0 */ + OMAP3430_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) + + /* etk_d15.hsusb2_data1 */ + OMAP3430_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) + >; + }; +}; + +&gpmc { + nand@0,0 { + compatible = "ti,omap2-nand"; + reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ + interrupt-parent = <&gpmc>; + interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ + <1 IRQ_TYPE_NONE>; /* termcount */ + linux,mtd-name= "micron,mt29f2g16abdhc"; + nand-bus-width = <16>; + gpmc,device-width = <2>; + ti,nand-ecc-opt = "bch8"; + + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <44>; + gpmc,cs-wr-off-ns = <44>; + gpmc,adv-on-ns = <6>; + gpmc,adv-rd-off-ns = <34>; + gpmc,adv-wr-off-ns = <44>; + gpmc,we-off-ns = <40>; + gpmc,oe-off-ns = <54>; + gpmc,access-ns = <64>; + gpmc,rd-cycle-ns = <82>; + gpmc,wr-cycle-ns = <82>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; - memory@80000000 { - device_type = "memory"; - reg = <0x80000000 0x10000000>; /* 256 MB */ + #address-cells = <1>; + #size-cells = <1>; }; };