From patchwork Tue Sep 12 23:48:22 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: 9950305 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 2213960325 for ; Tue, 12 Sep 2017 23:49:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E5B028E2A for ; Tue, 12 Sep 2017 23:49:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1362328E5E; Tue, 12 Sep 2017 23:49:12 +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 BA44628E2A for ; Tue, 12 Sep 2017 23:49:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751682AbdILXss (ORCPT ); Tue, 12 Sep 2017 19:48:48 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:37763 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbdILXsm (ORCPT ); Tue, 12 Sep 2017 19:48:42 -0400 Received: by mail-it0-f68.google.com with SMTP id d6so6589368itc.4; Tue, 12 Sep 2017 16:48: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=QAO3+vsvesAzDbdSokc3gSPL6nO6x3R6p+LNIXfBB1c=; b=U/tZO9qoiO3x9hHMs2CWr0hSgyEPQqynmuKW2rAgGTN9j81HH1QrPbOPKW3FRE+9Rq 4c2vbnrMjyxLqjoRWbYBmaMGDeQQTSBIlkoigFNUHyGjoCVI2B5/jagiu7K4y3McL/BD zUWBtf7jpfm7bJeibe6TJetjIqbjw6L/g0JYJo7RDae4xX3PtxZPAopCxHl6kykolpOF vK8qfHgDctgobQITS99WRV/dI2XpLvl0XaMQu9SuVTX25AE6I+OHoSXfhVUV1WqEvY9Y wII0RVGojZaLd93XseeWjpOtVBQFTBZWkSYmjcoNfZt5LrfUvh4UtqH8sR8X3DuaDy3f 8wNw== 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=QAO3+vsvesAzDbdSokc3gSPL6nO6x3R6p+LNIXfBB1c=; b=hW4hH8xlPpo7eOxWe0mRIZGqnbXnJlKfwozgd2z6AsULAyuhWqP2jb/oo3GFlJA91Y OLWaUnE92adYAG+/Lm49+526+5+IqcUllEuzpFVsOWl7DVTuVotHclGHCdfhjUdcvAyC 0rEYmX+ncu8Jt4VGHxyc56ip/CqZyjAVCmmpXaAVsbURRVxIgVFKDWj7wJs862q2mstP cL4TCxkLPKnmsStWkSTMJ3YSuM2YhaZd6+X3U7lMbhd5u+Vc3qyCZukYiTQxEOnFQAR7 CciKqol9dO+YRXg3xp8k/Sk41y+NiN6xVUQlxPRv94Vztd4phcpUCjLTLpVyUJNawr1S lcTQ== X-Gm-Message-State: AHPjjUgbiMdLpsH+pr7a+zQ2e3PTMzJ2vP4qQhLIqrxSratPi9xtwagZ ivsd+TOFdCORriueZZkxbKPsmQ== X-Google-Smtp-Source: AOwi7QDjVIt4x1bwYqSeuyATboyoL+CJTq7c9NoPrIz1CNXQ1CEnn/Gms+2Vl0deVtm3Tknjo98ZqA== X-Received: by 10.36.122.70 with SMTP id a67mr1987004itc.99.1505260121985; Tue, 12 Sep 2017 16:48:41 -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 u66sm6445698iod.32.2017.09.12.16.48.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Sep 2017 16:48: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 v3 2/4] ARM: dts: omap3-evm: Add OMAP3530 specific device tree processor data Date: Tue, 12 Sep 2017 18:48:22 -0500 Message-Id: <20170912234824.6706-3-woods.technical@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170912234824.6706-1-woods.technical@gmail.com> References: <20170912034659.13184-1-woods.technical@gmail.com> <20170912234824.6706-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>; }; };