From patchwork Sun Sep 3 00:38:16 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: 9935911 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 DB801601D7 for ; Sun, 3 Sep 2017 00:39:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA41C28676 for ; Sun, 3 Sep 2017 00:39:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF54C28695; Sun, 3 Sep 2017 00:39:22 +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 CFBDE28698 for ; Sun, 3 Sep 2017 00:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752841AbdICAio (ORCPT ); Sat, 2 Sep 2017 20:38:44 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:33801 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752707AbdICAim (ORCPT ); Sat, 2 Sep 2017 20:38:42 -0400 Received: by mail-it0-f66.google.com with SMTP id k189so1548435itk.1; Sat, 02 Sep 2017 17:38:42 -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=788EX6wRtOIn8ul3K6QZRXM7464w4yKxfbxPUmEtSyQ=; b=GivTxaxCqvBb/R5t6lAHZTb/+Acl5uiRxQdaLdlaTiRZ4BjjsWgZrWRVapq6arlh1o pOR2DNpVrHAigFNb5eVxZdFwPr2Gd6RnwZpcnQO/yB0XjLs2veY3s/1P3A2CtOhhXvMY wuEBobR0wIcOmTUF2L/+tw8nZqb6RLmVvZxcTil9LlP4OE+T99OjX+zM8btUWK6OuRl8 BZ5aJKk+9ohdnMIMRBuWwXv/iIZaFAcdUVlOaV2QKKy93xpyma9YhaBohWZTtHWZshvo RuYSSgre/Z9qqP4LO5wVnWbL1ouzQWh2KrgLaeDYi+pCsT8US++A/x2uMZOuTQbAg1We szyQ== 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=788EX6wRtOIn8ul3K6QZRXM7464w4yKxfbxPUmEtSyQ=; b=fp8lXf0TQncZe2EOgy3pgM2B6lLDZ3haJV1hTOIyzJjEyA4VkISaxo3s+kw2+3vkA7 JrV/0q8wwrsw7OF5H8qiD4qLxQ0Jgih8VNOy5OQNut2TvflJzVGTibqEPd9Xgt4/e1i+ 6cOCx0HKCd9swJiFrU8Jx/6a9RaKj4ahR1ONfTuyw5ARpGU6nifVg7hqbwyHHT84K4Rp +Yg/BvZOWR9OAjfwkXGAK7JOCsxI1vqSoj+omheAAaSXcgNzKCTktpDx3RKVOdmiCB4j ZkWpUwiL+BbaT6YX6ylXyym7CjMNVejABQMafFg5vYkqyqgfo90IWU553PfXhYJuRuDn mBnA== X-Gm-Message-State: AHPjjUj3bSuzO3sPooM9ZVb5yiH30SOBklQNK/H32n6qX+gNHyV9B/Ng LlVzzgPsKXL7zBqj X-Google-Smtp-Source: ADKCNb73J6h1x/YM8gL6jbn4b0YzIisZWpDAIQ1BhzgQRkXrJlsXQ6+OTG7H8AEo34OdbNlvNtmHQQ== X-Received: by 10.36.62.68 with SMTP id s65mr2239869its.39.1504399121762; Sat, 02 Sep 2017 17:38:41 -0700 (PDT) Received: from exodus.hsd1.il.comcast.net ([2601:247:c080:b23:38e6:1741:d4a3:983]) by smtp.gmail.com with ESMTPSA id 140sm1795674itx.33.2017.09.02.17.38.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Sep 2017 17:38:41 -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 2/2] ARM: dts: omap3-evm: Add OMAP3530 specific device tree processor data Date: Sat, 2 Sep 2017 19:38:16 -0500 Message-Id: <20170903003816.5536-3-woods.technical@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170903003816.5536-1-woods.technical@gmail.com> References: <20170903003816.5536-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. --- 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>; }; };