From: Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> To: linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>, Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>, Igor Grinberg <grinberg-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>, Dmitry Lifshitz <lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>, Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org> Subject: [PATCH 05/14] ARM: am437x: cm-t43: dts: add NAND support Date: Tue, 24 Nov 2015 15:19:06 +0200 [thread overview] Message-ID: <1448371155-17307-6-git-send-email-nikita@compulab.co.il> (raw) In-Reply-To: <1448371155-17307-1-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> One of the CompuLab cm-t43 configurations comes with on-board NAND flash as primary storage. It is partitioned into kernel, dtb, and rootfs partitions. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> Cc: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> Cc: Igor Grinberg <grinberg-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> Cc: Dmitry Lifshitz <lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org> --- arch/arm/boot/dts/am437x-cm-t43.dts | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 0761383..370e4e8 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -54,6 +54,80 @@ >; }; + nand_flash_x8: nand_flash_x8 { + pinctrl-single,pins = < + AM4372_IOPAD(0x800, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x804, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x808, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x80c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x810, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x814, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x818, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x81c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x898, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x894, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x890, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + >; + }; +}; + +&gpmc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&nand_flash_x8>; + ranges = <0 0 0x08000000 0x1000000>; + nand@0,0 { + reg = <0 0 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>; + + gpmc,wait-pin = <0>; + + #address-cells = <1>; + #size-cells = <1>; + /* MTD partition table */ + partition@0 { + label = "kernel"; + reg = <0x0 0x00980000>; + }; + partition@980000 { + label = "dtb"; + reg = <0x00980000 0x00080000>; + }; + partition@a00000 { + label = "rootfs"; + reg = <0x00a00000 0x0>; + }; + }; }; &i2c0 { @@ -187,6 +261,10 @@ }; }; +&elm { + status = "okay"; +}; + &uart0 { status = "okay"; }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: nikita@compulab.co.il (Nikita Kiryanov) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/14] ARM: am437x: cm-t43: dts: add NAND support Date: Tue, 24 Nov 2015 15:19:06 +0200 [thread overview] Message-ID: <1448371155-17307-6-git-send-email-nikita@compulab.co.il> (raw) In-Reply-To: <1448371155-17307-1-git-send-email-nikita@compulab.co.il> One of the CompuLab cm-t43 configurations comes with on-board NAND flash as primary storage. It is partitioned into kernel, dtb, and rootfs partitions. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Tony Lindgren <tony@atomide.com> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Dmitry Lifshitz <lifshitz@compulab.co.il> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> --- arch/arm/boot/dts/am437x-cm-t43.dts | 78 +++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 0761383..370e4e8 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -54,6 +54,80 @@ >; }; + nand_flash_x8: nand_flash_x8 { + pinctrl-single,pins = < + AM4372_IOPAD(0x800, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x804, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x808, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x80c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x810, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x814, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x818, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x81c, PIN_INPUT | PULL_DISABLE | MUX_MODE0) + AM4372_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x874, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE0) + AM4372_IOPAD(0x898, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x894, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x890, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + AM4372_IOPAD(0x89c, PIN_OUTPUT_PULLDOWN | MUX_MODE0) + >; + }; +}; + +&gpmc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&nand_flash_x8>; + ranges = <0 0 0x08000000 0x1000000>; + nand at 0,0 { + reg = <0 0 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>; + + gpmc,wait-pin = <0>; + + #address-cells = <1>; + #size-cells = <1>; + /* MTD partition table */ + partition at 0 { + label = "kernel"; + reg = <0x0 0x00980000>; + }; + partition at 980000 { + label = "dtb"; + reg = <0x00980000 0x00080000>; + }; + partition at a00000 { + label = "rootfs"; + reg = <0x00a00000 0x0>; + }; + }; }; &i2c0 { @@ -187,6 +261,10 @@ }; }; +&elm { + status = "okay"; +}; + &uart0 { status = "okay"; }; -- 1.9.1
next prev parent reply other threads:[~2015-11-24 13:19 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-11-24 13:19 [PATCH 00/14] Add support for sbc-t43 Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov [not found] ` <1448371155-17307-1-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-11-24 13:19 ` [PATCH 01/14] ARM: am437x: cm-t43: dts: add basic " Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov [not found] ` <1448371155-17307-2-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-11-25 23:03 ` Rob Herring 2015-11-25 23:03 ` Rob Herring 2015-11-30 15:33 ` Nikita Kiryanov 2015-11-30 15:33 ` Nikita Kiryanov 2015-11-30 21:48 ` Tony Lindgren 2015-11-30 21:48 ` Tony Lindgren 2015-11-24 13:19 ` [PATCH 02/14] ARM: am437x: cm-t43: dts: add support for module eeprom Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 03/14] ARM: am437x: cm-t43: dts: add PMIC support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 04/14] ARM: am437x: cm-t43: dts: add spi-flash support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov [this message] 2015-11-24 13:19 ` [PATCH 05/14] ARM: am437x: cm-t43: dts: add NAND support Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 06/14] ARM: am437x: cm-t43: dts: add dual emac support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov [not found] ` <1448371155-17307-7-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-11-26 10:34 ` Mugunthan V N 2015-11-26 10:34 ` Mugunthan V N 2015-11-24 13:19 ` [PATCH 07/14] ARM: am437x: cm-t43: dts: add USB support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 08/14] ARM: am437x: cm-t43: dts: add eMMC support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 09/14] ARM: am437x: cm-t43: dts: add touchscreen support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 10/14] ARM: am437x: cm-t43: dts: add pca9555 support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 11/14] ARM: am437x: cm-t43: dts: add support for baseboard eeprom Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 12/14] ARM: sb-som: dts: introduce SB-SOM baseboard Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov [not found] ` <1448371155-17307-13-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-11-25 22:57 ` Rob Herring 2015-11-25 22:57 ` Rob Herring 2015-11-30 15:32 ` Nikita Kiryanov 2015-11-30 15:32 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 13/14] ARM: am437x: cm-t43: dts: add support for mmc1 Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov 2015-11-24 13:19 ` [PATCH 14/14] ARM: am437x: cm-t43: dts: add lcd support Nikita Kiryanov 2015-11-24 13:19 ` Nikita Kiryanov
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=1448371155-17307-6-git-send-email-nikita@compulab.co.il \ --to=nikita-utxizqzc01rs1mouv/rt9w@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=grinberg-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org \ --cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \ --cc=lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.