public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: uri.mashiach@compulab•co.il (Uri Mashiach)
To: linux-arm-kernel@lists•infradead.org
Subject: [PATCH 3/6] ARM: OMAP2+: dts: cm-t335: add support for NAND flash
Date: Wed, 11 Nov 2015 19:32:54 +0200	[thread overview]
Message-ID: <56437BC6.5040704@compulab.co.il> (raw)
In-Reply-To: <1445948100-16446-4-git-send-email-uri.mashiach@compulab.co.il>

Gentle ping

On 27/10/15 14:14, Uri Mashiach wrote:
> From: Ilya Ledvich <ilya@compulab•co.il>
>
> Add pinmux configuration for NAND specific GPMC pins.
> Add description for GPMC controller. Add child node for NAND flash
> including CM-T335 specific partition table to GPMC node.
> Enable error-location module (ELM).
>
> Acked-by: Igor Grinberg <grinberg@compulab•co.il>
> Signed-off-by: Ilya Ledvich <ilya@compulab•co.il>
> Signed-off-by: Uri Mashiach <uri.mashiach@compulab•co.il>
> ---
>   arch/arm/boot/dts/am335x-cm-t335.dts | 106 +++++++++++++++++++++++++++++++++++
>   1 file changed, 106 insertions(+)
>
> diff --git a/arch/arm/boot/dts/am335x-cm-t335.dts b/arch/arm/boot/dts/am335x-cm-t335.dts
> index 39df3d2..9d6117a 100644
> --- a/arch/arm/boot/dts/am335x-cm-t335.dts
> +++ b/arch/arm/boot/dts/am335x-cm-t335.dts
> @@ -61,6 +61,41 @@
>   		>;
>   	};
>
> +	nandflash_pins: pinmux_nandflash_pins {
> +		pinctrl-single,pins = <
> +			/* gpmc_ad0.gpmc_ad0 */
> +			0x0 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad1.gpmc_ad1 */
> +			0x4 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad2.gpmc_ad2 */
> +			0x8 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad3.gpmc_ad3 */
> +			0xc (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad4.gpmc_ad4 */
> +			0x10 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad5.gpmc_ad5 */
> +			0x14 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad6.gpmc_ad6 */
> +			0x18 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_ad7.gpmc_ad7 */
> +			0x1c (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_wait0.gpmc_wait0 */
> +			0x70 (PIN_INPUT_PULLUP | MUX_MODE0)
> +			/* gpmc_wpn.gpio0_30 */
> +			0x74 (PIN_INPUT_PULLUP | MUX_MODE7)
> +			/* gpmc_csn0.gpmc_csn0  */
> +			0x7c (PIN_OUTPUT | MUX_MODE0)
> +			/* gpmc_advn_ale.gpmc_advn_ale */
> +			0x90 (PIN_OUTPUT | MUX_MODE0)
> +			/* gpmc_oen_ren.gpmc_oen_ren */
> +			0x94 (PIN_OUTPUT | MUX_MODE0)
> +			/* gpmc_wen.gpmc_wen */
> +			0x98 (PIN_OUTPUT | MUX_MODE0)
> +			/* gpmc_be0n_cle.gpmc_be0n_cle */
> +			0x9c (PIN_OUTPUT | MUX_MODE0)
> +		>;
> +	};
> +
>   	uart0_pins: pinmux_uart0_pins {
>   		pinctrl-single,pins = <
>   			/* uart0_rxd.uart0_rxd */
> @@ -97,3 +132,74 @@
>   	};
>   };
>
> +&gpmc {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&nandflash_pins>;
> +	ranges = <0 0 0x08000000 0x10000000>;	/* CS0: NAND */
> +	nand at 0,0 {
> +		reg = <0 0 0>; /* CS0, offset 0 */
> +		ti,nand-ecc-opt = "bch8";
> +		ti,elm-id = <&elm>;
> +		nand-bus-width = <8>;
> +		gpmc,device-width = <1>;
> +		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-on-ns = <0>;
> +		gpmc,we-off-ns = <40>;
> +		gpmc,oe-on-ns = <0>;
> +		gpmc,oe-off-ns = <54>;
> +		gpmc,access-ns = <64>;
> +		gpmc,rd-cycle-ns = <82>;
> +		gpmc,wr-cycle-ns = <82>;
> +		gpmc,wait-on-read = "true";
> +		gpmc,wait-on-write = "true";
> +		gpmc,bus-turnaround-ns = <0>;
> +		gpmc,cycle2cycle-delay-ns = <0>;
> +		gpmc,clk-activation-ns = <0>;
> +		gpmc,wait-monitoring-ns = <0>;
> +		gpmc,wr-access-ns = <40>;
> +		gpmc,wr-data-mux-bus-ns = <0>;
> +		/* MTD partition table */
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		partition at 0 {
> +			label = "spl";
> +			reg = <0x00000000 0x00200000>;
> +		};
> +		partition at 1 {
> +			label = "uboot";
> +			reg = <0x00200000 0x00100000>;
> +		};
> +		partition at 2 {
> +			label = "uboot environment";
> +			reg = <0x00300000 0x00100000>;
> +		};
> +		partition at 3 {
> +			label = "dtb";
> +			reg = <0x00400000 0x00100000>;
> +		};
> +		partition at 4 {
> +			label = "splash";
> +			reg = <0x00500000 0x00400000>;
> +		};
> +		partition at 5 {
> +			label = "linux";
> +			reg = <0x00900000 0x00600000>;
> +		};
> +		partition at 6 {
> +			label = "rootfs";
> +			reg = <0x00F00000 0>;
> +		};
> +	};
> +};
> +
> +&elm {
> +	status = "okay";
> +};
> +
>

  reply	other threads:[~2015-11-11 17:32 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 12:14 [PATCH 0/6] ARM: OMAP2+: dts: cm-t335: initial support Uri Mashiach
2015-10-27 12:14 ` [PATCH 1/6] ARM: OMAP2+: dts: cm-t335: add " Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach
2015-11-13 10:19   ` Igor Grinberg
2015-10-27 12:14 ` [PATCH 2/6] ARM: OMAP2+: dts: cm-t335: add basic support for I2C Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach
2015-10-27 12:14 ` [PATCH 3/6] ARM: OMAP2+: dts: cm-t335: add support for NAND flash Uri Mashiach
2015-11-11 17:32   ` Uri Mashiach [this message]
2015-10-27 12:14 ` [PATCH 4/6] ARM: OMAP2+: dts: cm-t335: add support for MMC Uri Mashiach
2015-11-11 17:33   ` Uri Mashiach
2015-10-27 12:14 ` [PATCH 5/6] ARM: OMAP2+: dts: cm-t335: add support for network device Uri Mashiach
2015-10-27 13:14   ` Mugunthan V N
2015-11-11 17:33   ` Uri Mashiach
2015-10-27 12:15 ` [PATCH 6/6] ARM: OMAP2+: dts: cm-t335: add support for PWM backlight Uri Mashiach
2015-11-11 17:33   ` Uri Mashiach
2015-11-11 17:32 ` [PATCH 0/6] ARM: OMAP2+: dts: cm-t335: initial support Uri Mashiach
2015-11-11 17:50   ` Tony Lindgren
2015-11-24 14:02 ` [PATCH v2 " Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 1/6] ARM: OMAP2+: dts: cm-t335: add " Uri Mashiach
2015-11-25 22:44     ` Rob Herring
2015-11-30 19:51     ` Tony Lindgren
2015-12-02 10:44       ` Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 2/6] ARM: OMAP2+: dts: cm-t335: add basic support for I2C Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 3/6] ARM: OMAP2+: dts: cm-t335: add support for NAND flash Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 4/6] ARM: OMAP2+: dts: cm-t335: add support for MMC Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 5/6] ARM: OMAP2+: dts: cm-t335: add support for network device Uri Mashiach
2015-11-24 14:02   ` [PATCH v2 6/6] ARM: OMAP2+: dts: cm-t335: add support for PWM backlight Uri Mashiach
2015-12-13  8:55 ` [PATCH 0/5] ARM: dts: cm-t335: add peripheral support Uri Mashiach
2015-12-13  8:55   ` [PATCH 1/5] ARM: dts: cm-t335: add support for USB0 Uri Mashiach
2015-12-13  8:55   ` [PATCH 2/5] ARM: dts: cm-t335: add support for SBC-T335 Uri Mashiach
2015-12-14  1:25     ` Rob Herring
2015-12-17 18:05       ` Tony Lindgren
2015-12-13  8:55   ` [PATCH 3/5] ARM: dts: cm-t335: add support for I2C GPIO expander Uri Mashiach
2015-12-13  8:55   ` [PATCH 4/5] ARM: dts: cm-t335: add support for DVI/LCD Uri Mashiach
2015-12-13  8:55   ` [PATCH 5/5] ARM: dts: cm-t335: add support for bluetooth Uri Mashiach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56437BC6.5040704@compulab.co.il \
    --to=uri.mashiach@compulab$(echo .)co.il \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox