Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp537925imm; Wed, 25 Jul 2018 01:30:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJWdANd2FDu9AXCs8VBY1Pqr3Dye+lyqPl3feLFrvvMgm0SJDVpcPG8PSvZvKct9A5IXli X-Received: by 2002:a17:902:9a8b:: with SMTP id w11-v6mr20101572plp.333.1532507454134; Wed, 25 Jul 2018 01:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532507454; cv=none; d=google.com; s=arc-20160816; b=fgBC2GfP+n/IovLTn/JH5ZA7Glo7kdaeOCwMzy1mWc4GsLPN2PDEvCUILPxkQO3niq FmL2B28lf5pjEpf/C+CR8tHe2dSjsTlXlE0Fu9tgno27buA6lTM6k8alST6W3RWjk+6X qtruGglk9NyPNbYyxWu+FKE2hzk9X5PbdnZWlpeAPNl80FVn3AoK1kHMb5uSHsRkWfR3 VVoRTNqwGxBS/ER3q5VkCXcoHH3ab7d5U2gipRI8upEycA3AF88cTswuPu+7f+pcTg+9 UC30NAYYUs1d0VTlLipTn9ML0ea929fWDzzS/KJnqd9qXcpPDCNv+mrJZaV55QqPoeCP rOXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=18b1jgfOuKPWDG8M1IkQASX5a+SReQNxOnOgGRvn9Uk=; b=OQYkYNnUpqpNdEHAkKBeJJe0E5Y11YvpXej2+0ZkU5qHDVGxqw1ZqFqD2qDOSWhscE UndTkhB001HmzsPEGTSZJoC5swc286e8tHbk5sTMt9TC8ac6XW9UsmIgFmSPHTM9j+hK mSrwDuDM24NhX8ke4VwODp40q/D3/UDZdxUv1Hxn2M46lDv3hbuVh12u5M3qifp3v5CI uuxhsuYilomShlVUQ9FoxciHbOSCCkAHyjxdycDF999/bEjh4vrbuocdykfoGxTeZlTq 1pDZL01jkHYkgc8RhvoaHtQYagFgLbMWAUVCobDc+tmfmgBuc0kNbyeir2zIecVIeuc1 jrtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Mi2ECgeb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si11640706pgv.641.2018.07.25.01.30.38; Wed, 25 Jul 2018 01:30:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Mi2ECgeb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728753AbeGYJkB (ORCPT + 99 others); Wed, 25 Jul 2018 05:40:01 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.82]:30616 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728222AbeGYJkA (ORCPT ); Wed, 25 Jul 2018 05:40:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1532507360; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=18b1jgfOuKPWDG8M1IkQASX5a+SReQNxOnOgGRvn9Uk=; b=Mi2ECgebTPAXnm3beJvj9givFrusra9svoOeQCD96T9bK6pax0/4xwhjo9CO+SGr/w b2YB0CKa2+IKjWmJn0xWMyqyAYGJqEY0NMlTW7RWhby/y1XSxfmvwWc2/yFPh3zBKLG3 4hWZKEBxn/CGi4TqIDoxCu0CHPT/dal1rx56Le/iyQ2qqYo+LEP5nKp5u61ToroO+O8o HtvVxMClnPhQYZ2EHKvnCLmZNkJiyrupqUo5dc+iyhMWsDNRZXWdYmN9ur5NEYQwXSEY wnu0YS2Rbeughc57zKsknOfALsO2B1ohlDlNf9eazNeueevrgAQITyN8oYNlPJfjVy5d dk/Q== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw87Wiuc1qET/2Lw==" X-RZG-CLASS-ID: mo00 Received: from mbp-13-nikolaus.fritz.box by smtp.strato.de (RZmta 43.13 DYNA|AUTH) with ESMTPSA id 6047f4u6P8TDdeg (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 25 Jul 2018 10:29:13 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 32/32] ARM: dts: omap3-gta04a5one: define GTA04A5 variant with OneNAND From: "H. Nikolaus Schaller" In-Reply-To: <20180725082013.GD7467@lenoch> Date: Wed, 25 Jul 2018 10:29:15 +0200 Cc: Marek Belisko , =?utf-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org Content-Transfer-Encoding: quoted-printable Message-Id: <96C87F41-C36B-4689-A92C-6A00D86538FA@goldelico.com> References: <51523efb93cd30a233d5c41918d5a08b2231647e.1532501910.git.hns@goldelico.com> <20180725082013.GD7467@lenoch> To: Ladislav Michl X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 25.07.2018 um 10:20 schrieb Ladislav Michl : >=20 > On Wed, Jul 25, 2018 at 08:59:04AM +0200, H. Nikolaus Schaller wrote: >> GTA04A5 has been produced with MCP chips either with >> 512MB RAM + 512MB NAND >> 512MB RAM + 1024MB NAND >> 1024MB RAM + 512MB OneNAND >>=20 >> RAM setup is done by U-Boot (MLO/SPL) but OneNAND needs >> a different setup of the GPMC. So we need to derive a >> DTB variant that modifies the gpmc and nand setup. >=20 > Just a suggestion... This way your user needs to know which variant is = dealing > with. It is similar situation as with IGEPv2 with cames with various = setup > either with NAND or OneNAND. Both NAND and OneNAND nodes are present = in DTB > and enabled by U-Boot approriately. So single U-Boot binary and DTB is = enough > to deal with all variants. Well, the standard U-Boot used on this type of devices just loads this = or that .dtb. It does not modify it or enable/disable nodes. So we'd prefer to = have it this way. >=20 > ladis >=20 >> Signed-off-by: H. Nikolaus Schaller >> --- >> arch/arm/boot/dts/omap3-gta04a5one.dts | 114 = +++++++++++++++++++++++++++++++++ >> 1 file changed, 114 insertions(+) >> create mode 100644 arch/arm/boot/dts/omap3-gta04a5one.dts >>=20 >> diff --git a/arch/arm/boot/dts/omap3-gta04a5one.dts = b/arch/arm/boot/dts/omap3-gta04a5one.dts >> new file mode 100644 >> index 000000000000..9b7bbdc344b3 >> --- /dev/null >> +++ b/arch/arm/boot/dts/omap3-gta04a5one.dts >> @@ -0,0 +1,114 @@ >> +/* >> + * Copyright (C) 2014-18 H. Nikolaus Schaller >> + * >> + * This program is free software; you can redistribute it and/or = modify >> + * it under the terms of the GNU General Public License version 2 as >> + * published by the Free Software Foundation. >> + */ >> + >> +#include "omap3-gta04a5.dts" >> + >> +&omap3_pmx_core { >> + model =3D "Goldelico GTA04A5/Letux 2804 with OneNAND"; >> + >> + gpmc_pins: pinmux_gpmc_pins { >> + pinctrl-single,pins =3D < >> + >> + /* address lines */ >> + OMAP3_CORE1_IOPAD(0x207a, PIN_OUTPUT | = MUX_MODE0) /* gpmc_a1.gpmc_a1 */ >> + OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | = MUX_MODE0) /* gpmc_a2.gpmc_a2 */ >> + OMAP3_CORE1_IOPAD(0x207e, PIN_OUTPUT | = MUX_MODE0) /* gpmc_a3.gpmc_a3 */ >> + >> + /* data lines, gpmc_d0..d7 not muxable according = to TRM */ >> + OMAP3_CORE1_IOPAD(0x209e, PIN_INPUT | MUX_MODE0) = /* gpmc_d8.gpmc_d8 */ >> + OMAP3_CORE1_IOPAD(0x20a0, PIN_INPUT | MUX_MODE0) = /* gpmc_d9.gpmc_d9 */ >> + OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE0) = /* gpmc_d10.gpmc_d10 */ >> + OMAP3_CORE1_IOPAD(0x20a4, PIN_INPUT | MUX_MODE0) = /* gpmc_d11.gpmc_d11 */ >> + OMAP3_CORE1_IOPAD(0x20a6, PIN_INPUT | MUX_MODE0) = /* gpmc_d12.gpmc_d12 */ >> + OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT | MUX_MODE0) = /* gpmc_d13.gpmc_d13 */ >> + OMAP3_CORE1_IOPAD(0x20aa, PIN_INPUT | MUX_MODE0) = /* gpmc_d14.gpmc_d14 */ >> + OMAP3_CORE1_IOPAD(0x20ac, PIN_INPUT | MUX_MODE0) = /* gpmc_d15.gpmc_d15 */ >> + >> + /* >> + * gpmc_ncs0, gpmc_nadv_ale, gpmc_noe, gpmc_nwe, = gpmc_wait0 not muxable >> + * according to TRM. OneNAND seems to require = PIN_INPUT on clock. >> + */ >> + OMAP3_CORE1_IOPAD(0x20b0, PIN_OUTPUT | = MUX_MODE0) /* gpmc_ncs1.gpmc_ncs1 */ >> + OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0) = /* gpmc_clk.gpmc_clk */ >> + >; >> + }; >> +}; >> + >> +&gpmc { >> + /* switch inherited setup to OneNAND */ >> + >> + ranges =3D <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND = */ >> + pinctrl-names =3D "default"; >> + pinctrl-0 =3D <&gpmc_pins>; >> + >> + /delete-node/ nand@0,0; >> + >> + onenand@0,0 { >> + >> + #address-cells =3D <1>; >> + #size-cells =3D <1>; >> + compatible =3D "ti,omap2-onenand"; >> + reg =3D <0 0 0x20000>; /* CS0, offset 0, IO size 128K = */ >> + >> + gpmc,sync-read; >> + gpmc,sync-write; >> + gpmc,burst-length =3D <16>; >> + gpmc,burst-read; >> + gpmc,burst-wrap; >> + gpmc,burst-write; >> + gpmc,device-width =3D <2>; >> + gpmc,mux-add-data =3D <2>; >> + gpmc,cs-on-ns =3D <0>; >> + gpmc,cs-rd-off-ns =3D <87>; >> + gpmc,cs-wr-off-ns =3D <87>; >> + gpmc,adv-on-ns =3D <0>; >> + gpmc,adv-rd-off-ns =3D <10>; >> + gpmc,adv-wr-off-ns =3D <10>; >> + gpmc,oe-on-ns =3D <15>; >> + gpmc,oe-off-ns =3D <87>; >> + gpmc,we-on-ns =3D <0>; >> + gpmc,we-off-ns =3D <87>; >> + gpmc,rd-cycle-ns =3D <112>; >> + gpmc,wr-cycle-ns =3D <112>; >> + gpmc,access-ns =3D <81>; >> + gpmc,page-burst-access-ns =3D <15>; >> + gpmc,bus-turnaround-ns =3D <0>; >> + gpmc,cycle2cycle-delay-ns =3D <0>; >> + gpmc,wait-monitoring-ns =3D <0>; >> + gpmc,clk-activation-ns =3D <5>; >> + gpmc,wr-data-mux-bus-ns =3D <30>; >> + gpmc,wr-access-ns =3D <81>; >> + gpmc,sync-clk-ps =3D <15000>; >> + >> + x-loader@0 { >> + label =3D "X-Loader"; >> + reg =3D <0 0x80000>; >> + }; >> + >> + bootloaders@80000 { >> + label =3D "U-Boot"; >> + reg =3D <0x80000 0x1c0000>; >> + }; >> + >> + bootloaders_env@240000 { >> + label =3D "U-Boot Env"; >> + reg =3D <0x240000 0x40000>; >> + }; >> + >> + kernel@280000 { >> + label =3D "Kernel"; >> + reg =3D <0x280000 0x600000>; >> + }; >> + >> + filesystem@880000 { >> + label =3D "File System"; >> + reg =3D <0x880000 0>; /* 0 =3D = MTDPART_SIZ_FULL */ >> + }; >> + >> + }; >> +}; >> --=20 >> 2.12.2 >>=20 >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-omap" = in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html