From patchwork Wed Sep 20 13:34:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 142433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4192033vqi; Wed, 20 Sep 2023 07:43:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFy/owdzyNbcRXMVmOHbem4ebx7WPsJnxlyHYQfcuet0Mu+1M7QG3frc5tpuY9U06nlPr1O X-Received: by 2002:a17:903:230e:b0:1c1:e258:7447 with SMTP id d14-20020a170903230e00b001c1e2587447mr3242463plh.22.1695220990329; Wed, 20 Sep 2023 07:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695220990; cv=none; d=google.com; s=arc-20160816; b=fQL4AjPO32BdPbSWxd1RGxqm7Hf8tKgGAaQ46yW+WcMlSvOS/AqIrcDD5ywnhDULqR QS+ReHv0ie7/sKSUEctfY2Ve5deRLe4t2M2etToixon3S0mFzitlSe3ujpMuTXqyZJEB Yqhz8mzMx3ZHZCT5DO6v99jsgxXcNcd7m/+LgEz07YLQHybIegHdoPSCw4anhPxff3Yc YgYTxQJ7L9dxvUC6ndtOOZoY13F2Y91zGd837oIhHHU3BloPPh4QaRIu/DDW2CjyDPzK iM6lnr5q+zwdr/vszw/AhPhNQTzURW36zCkI+/JEOFm6dT0eLk3TLk9fLG/dpdHCEuvT uCYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ADLMr3clb9U+AqTpqSUYNJ42J+DWiJUXSKx717eTcaE=; fh=8mO8oFiXwarBgDEk8R64/emw88yQzltdGOwB8zEk1eg=; b=NWAeD9v8DusrfLrrW1UnK+y7uDUO7Ui4v5Z//rYKAHlxmiJK0kIk66enavTWxfbK+/ tm6qieNtVfkZMWm1ZI08P1nUbeKdEnfQsYjzI//YZ/RUIWNOfUEUDeYAgb1Bt6+t8TPP JRoO34qIqc9zsKm0yPByGfLacqqQYPSEnaJT9z4cRetYo5wPy2aO9WILZP//tWo3x3Se +hqv4/slhwcuoM5BpFVRr0ih4QYMafxkeipV52cabi6QO6jepIxfqhpetjj3ffkwdaSJ Gxh6EBa1Sf2SE4KBcHCesGjKu3EAaGJv0iFvAjlhw1a3ruz1hXYsSlwQqznGSf2Z4u7F xCvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lA/25alJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u6-20020a170903124600b001bbc7b6492fsi12284177plh.8.2023.09.20.07.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lA/25alJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 578DE80966C2; Wed, 20 Sep 2023 06:35:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235952AbjITNfI (ORCPT + 26 others); Wed, 20 Sep 2023 09:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234686AbjITNfF (ORCPT ); Wed, 20 Sep 2023 09:35:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCE1D9E for ; Wed, 20 Sep 2023 06:34:59 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DB99C433CD; Wed, 20 Sep 2023 13:34:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695216899; bh=chV3GRCWr5Lml55DQwoEGOZDvAsEUjg7gojzo9cDXBk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lA/25alJIqhzZtBEaJdB5MCje9dmmQga3PK2pwJKeKqZMBztBfXD2qWZpyoQCZ5PN J7uRAtAeF4/rRv3QYmJIe++z0Ba+CYkiDR064Gv4TmEuSz4isu3Bgu/3wbpnwctpS8 ETvYvReFG0d0G06040t7pc9z4hCslnHvhI2YwSTnp3L0tPTmdKiTSJsjTW/WxzYofm JnWKS9OIPnem5+fT3INP676YVAarIqbfSCIiJAKYTTaGDPjicUsG96kWowbPPSoOxM Pm7IMr6MXqZWbq1uJ4HTKf7NFBqa7QKiB1g+KoAFxZ5+fULulw5kDUnnzwnvuHyAJZ 1meIt8EqDMwhg== From: Roger Quadros To: nm@ti.com Cc: vigneshr@ti.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH 1/2] arm64: dts: ti: Enable support for overlays for relevant boards Date: Wed, 20 Sep 2023 16:34:49 +0300 Message-Id: <20230920133450.54226-2-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230920133450.54226-1-rogerq@kernel.org> References: <20230920133450.54226-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:35:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777567958557518863 X-GMAIL-MSGID: 1777568044894616824 Enable __symbols__ in board DT files for which we expect overlays to be supported. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index e7b8e2e7f083..06d6f264f292 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -72,8 +72,16 @@ dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb # Enable support for device-tree overlays +DTC_FLAGS_k3-am625-beagleplay += -@ DTC_FLAGS_k3-am625-sk += -@ DTC_FLAGS_k3-am62-lp-sk += -@ +DTC_FLAGS_k3-am62a7-sk += -@ +DTC_FLAGS_k3-am642-evm += -@ +DTC_FLAGS_k3-am654-base-board += -@ DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ +DTC_FLAGS_k3-am68-sk-base-board += -@ +DTC_FLAGS_k3-am69-sk += -@ DTC_FLAGS_k3-j721e-common-proc-board += -@ +DTC_FLAGS_k3-j721e-sk += -@ DTC_FLAGS_k3-j721s2-common-proc-board += -@ +DTC_FLAGS_k3-j784s4-evm += -@ From patchwork Wed Sep 20 13:34:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 142413 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp4152185vqi; Wed, 20 Sep 2023 06:47:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWbmkcMVHgi+x4T9OkUbcdpYaot8pkrZhEMY46643i5YKMj0lqtGVKyXCc2tjSQUhWLUSw X-Received: by 2002:a05:6a20:9192:b0:14d:6309:fc96 with SMTP id v18-20020a056a20919200b0014d6309fc96mr2520743pzd.4.1695217621417; Wed, 20 Sep 2023 06:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695217621; cv=none; d=google.com; s=arc-20160816; b=nnjmKa5Fm0hhT0OrgFmwL3LnQaJLZ3cdjxPrzuSggVpy4BzyMAUfBLAQuvLIn+wKR9 deKZiivLCubUGlTN4dppX357bt9kN++Gcngeki7I7ATnuzcPLAAP9aKC7PjUTfHdAyLU L3mv90HEaQ/NdygBoveHRyJV5iU2DmmFYXCECXU9sd4mLQRtsf0S4/k9BlMFEdBzZLYj mN2nWi3hDYQAhIQ0hsCNCNppScWYNTWVREyBP5KLAlyBl3QyAnI4k4cOn6U+PRlutn8y UNKdOfLj/hmPiga86C4HFSKOBehfIKn8+X+ZeGnGybeSszIMKoopMn4y2Zu0kPkq5c2w tlEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yPOjc3tCsg9ivlS4+syMJlstjbW22qd6b1ShKFlMlDQ=; fh=8mO8oFiXwarBgDEk8R64/emw88yQzltdGOwB8zEk1eg=; b=rajz5dQHAKN3go+4NMCCbTImJO06jI2PsIg3fpe58JftLeAevxM8JL21mEKc6gplab NhwqoMziID9X/hnQOIRAYWqVUHGdLctdyCR4uYOKHWeFL7WGYm5LjZOk5NCaL4VNG981 PU/ymow0/2z222Up7761tISMpQEBkBAr8UewPUQOYbPBy4bOIH+Riovi/Uj8Zv5dpENs 8kKBqfYRy+cOiMlZ2KjcpCY3NpaAfCyi6fDEmo3dQwk7l/FGA0GaAfaMw76bQrc9h2El Mcy+svKKQ7PPTE+ds/N9yyYFgi3qb35G5RAAY7rVkIsIIYkzkVb9lZSN0fsNn5ZUVGjQ 2Olw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJTRCO1Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d7-20020a056a0024c700b00690bc199287si3966847pfv.393.2023.09.20.06.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 06:47:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sJTRCO1Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 18F9A801CFE8; Wed, 20 Sep 2023 06:35:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235976AbjITNfN (ORCPT + 26 others); Wed, 20 Sep 2023 09:35:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbjITNfJ (ORCPT ); Wed, 20 Sep 2023 09:35:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C341CAD for ; Wed, 20 Sep 2023 06:35:02 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02E64C433CB; Wed, 20 Sep 2023 13:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695216902; bh=/364EGkj/gVc2ft7ZNM/DWNXL54VH7RWzR+gTvJjc14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sJTRCO1YJ0e5PNbBEWWiuLjN/4qGG8ilGc8jUvn9oqUqckPoHDMDSbuDnxIpI7EuT 0nsLPRf/7pzlf0nIlsW9C0DHJa/U/1ATRq+1yGEOtOQDr9FufW8tyXRVnstehg3UYH jTef+HMaIx/h3wDWDrRl5HTVYIAB8+FHwb8IQfnGdi1DAaLtUpeWA1suriRbNhdLjE olukeBKdvoi6pwTYvELhRwPYnsEBX4Hmupg/XtcxZUhFnNH0OKEoHAQvrlHh74aU+6 6Z6qBcp9U0X+lxQh1b1H/D1gg3LGklceSDcvuqgVBvmbnlFqmn+B1RQeJusu3ebwcD nDZfOfsxBfLgg== From: Roger Quadros To: nm@ti.com Cc: vigneshr@ti.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Roger Quadros Subject: [PATCH 2/2] arm64: dts: ti: am642-evm: Add overlay for NAND expansion card Date: Wed, 20 Sep 2023 16:34:50 +0300 Message-Id: <20230920133450.54226-3-rogerq@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230920133450.54226-1-rogerq@kernel.org> References: <20230920133450.54226-1-rogerq@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:35:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777564512563433711 X-GMAIL-MSGID: 1777564512563433711 The NAND expansion card plugs in over the HSE (High Speed Expansion) connector. Add support for it. Signed-off-by: Roger Quadros --- arch/arm64/boot/dts/ti/Makefile | 1 + arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso | 140 ++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 06d6f264f292..ece74085a6be 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -29,6 +29,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am642-evm-nand.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso b/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso new file mode 100644 index 000000000000..12593836eaab --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am642-evm-nand.dtso @@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT overlay for HSE NAND expansion card on AM642 EVM + * + * Copyright (C) 2021-2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; +#include +#include +#include "k3-pinctrl.h" + +&main_pmx0 { + gpmc0_pins_default: gpmc0-pins-default { + pinctrl-single,pins = < + AM64X_IOPAD(0x0094, PIN_INPUT, 7) /* (T19) GPMC0_BE1n.GPIO0_36 */ + + AM64X_IOPAD(0x003c, PIN_INPUT, 0) /* (T20) GPMC0_AD0 */ + AM64X_IOPAD(0x0040, PIN_INPUT, 0) /* (U21) GPMC0_AD1 */ + AM64X_IOPAD(0x0064, PIN_INPUT, 0) /* (R16) GPMC0_AD10 */ + AM64X_IOPAD(0x0068, PIN_INPUT, 0) /* (W20) GPMC0_AD11 */ + AM64X_IOPAD(0x006c, PIN_INPUT, 0) /* (W21) GPMC0_AD12 */ + AM64X_IOPAD(0x0070, PIN_INPUT, 0) /* (V18) GPMC0_AD13 */ + AM64X_IOPAD(0x0074, PIN_INPUT, 0) /* (Y21) GPMC0_AD14 */ + AM64X_IOPAD(0x0078, PIN_INPUT, 0) /* (Y20) GPMC0_AD15 */ + AM64X_IOPAD(0x0044, PIN_INPUT, 0) /* (T18) GPMC0_AD2 */ + AM64X_IOPAD(0x0048, PIN_INPUT, 0) /* (U20) GPMC0_AD3 */ + AM64X_IOPAD(0x004c, PIN_INPUT, 0) /* (U18) GPMC0_AD4 */ + AM64X_IOPAD(0x0050, PIN_INPUT, 0) /* (U19) GPMC0_AD5 */ + AM64X_IOPAD(0x0054, PIN_INPUT, 0) /* (V20) GPMC0_AD6 */ + AM64X_IOPAD(0x0058, PIN_INPUT, 0) /* (V21) GPMC0_AD7 */ + AM64X_IOPAD(0x005c, PIN_INPUT, 0) /* (V19) GPMC0_AD8 */ + AM64X_IOPAD(0x0060, PIN_INPUT, 0) /* (T17) GPMC0_AD9 */ + AM64X_IOPAD(0x0098, PIN_INPUT_PULLUP, 0) /* (W19) GPMC0_WAIT0 */ + AM64X_IOPAD(0x009c, PIN_INPUT_PULLUP, 0) /* (Y18) GPMC0_WAIT1 */ + AM64X_IOPAD(0x00a8, PIN_OUTPUT_PULLUP, 0) /* (R19) GPMC0_CSn0 */ + AM64X_IOPAD(0x00ac, PIN_OUTPUT_PULLUP, 0) /* (R20) GPMC0_CSn1 */ + AM64X_IOPAD(0x00b0, PIN_OUTPUT_PULLUP, 0) /* (P19) GPMC0_CSn2 */ + AM64X_IOPAD(0x00b4, PIN_OUTPUT_PULLUP, 0) /* (R21) GPMC0_CSn3 */ + AM64X_IOPAD(0x007c, PIN_OUTPUT, 0) /* (R17) GPMC0_CLK */ + AM64X_IOPAD(0x0084, PIN_OUTPUT, 0) /* (P16) GPMC0_ADVn_ALE */ + AM64X_IOPAD(0x0088, PIN_OUTPUT, 0) /* (R18) GPMC0_OEn_REn */ + AM64X_IOPAD(0x008c, PIN_OUTPUT, 0) /* (T21) GPMC0_WEn */ + AM64X_IOPAD(0x0090, PIN_OUTPUT, 0) /* (P17) GPMC0_BE0n_CLE */ + AM64X_IOPAD(0x00a0, PIN_OUTPUT_PULLUP, 0) /* (N16) GPMC0_WPn */ + AM64X_IOPAD(0x00a4, PIN_OUTPUT, 0) /* (N17) GPMC0_DIR */ + >; + }; +}; + +&main_gpio0 { + gpio0-36 { + gpio-hog; + gpios = <36 0>; + input; + line-name = "GPMC0_MUX_DIR"; + }; +}; + +&elm0 { + status = "okay"; +}; + +&gpmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&gpmc0_pins_default>; + ranges = <0 0 0x00 0x51000000 0x01000000>; /* CS0 space. Min partition = 16MB */ + #address-cells = <2>; + #size-cells = <1>; + + nand@0,0 { + compatible = "ti,am64-nand"; + reg = <0 0 64>; /* device IO registers */ + interrupt-parent = <&gpmc0>; + interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ + <1 IRQ_TYPE_NONE>; /* termcount */ + rb-gpios = <&gpmc0 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */ + ti,nand-xfer-type = "prefetch-polled"; + ti,nand-ecc-opt = "bch8"; /* BCH8: Bootrom limitation */ + ti,elm-id = <&elm0>; + nand-bus-width = <8>; + gpmc,device-width = <1>; + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <40>; + gpmc,cs-wr-off-ns = <40>; + gpmc,adv-on-ns = <0>; + gpmc,adv-rd-off-ns = <25>; + gpmc,adv-wr-off-ns = <25>; + gpmc,we-on-ns = <0>; + gpmc,we-off-ns = <20>; + gpmc,oe-on-ns = <3>; + gpmc,oe-off-ns = <30>; + gpmc,access-ns = <30>; + gpmc,rd-cycle-ns = <40>; + gpmc,wr-cycle-ns = <40>; + gpmc,bus-turnaround-ns = <0>; + gpmc,cycle2cycle-delay-ns = <0>; + gpmc,clk-activation-ns = <0>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "NAND.tiboot3"; + reg = <0x00000000 0x00200000>; /* 2M */ + }; + partition@200000 { + label = "NAND.tispl"; + reg = <0x00200000 0x00200000>; /* 2M */ + }; + partition@400000 { + label = "NAND.tiboot3.backup"; /* 2M */ + reg = <0x00400000 0x00200000>; /* BootROM looks at 4M */ + }; + partition@600000 { + label = "NAND.u-boot"; + reg = <0x00600000 0x00400000>; /* 4M */ + }; + partition@a00000 { + label = "NAND.u-boot-env"; + reg = <0x00a00000 0x00040000>; /* 256K */ + }; + partition@a40000 { + label = "NAND.u-boot-env.backup"; + reg = <0x00a40000 0x00040000>; /* 256K */ + }; + partition@a80000 { + label = "NAND.file-system"; + reg = <0x00a80000 0x3f580000>; + }; + }; + }; +};