From: Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> To: tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Nikita Kiryanov <nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>, Benoit Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>, Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>, Pawel Moll <pawel.moll-5wv7dgnIgG8@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 V2 04/14] ARM: dts: am437x: cm-t43: add spi-flash support Date: Tue, 1 Dec 2015 15:54:59 +0200 [thread overview] Message-ID: <1448978109-5614-5-git-send-email-nikita@compulab.co.il> (raw) In-Reply-To: <1448978109-5614-1-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> CM-T43 has an on-board 2MB SPI-flash which stores U-Boot and the U-Boot environment. 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: Benoit Cousson <bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> Cc: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@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> --- Changes in V2: - Removed unnecessary line break after pinmux_spi0_pins section. arch/arm/boot/dts/am437x-cm-t43.dts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 27b748a..27e5948 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -44,6 +44,15 @@ AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ >; }; + + spi0_pins: pinmux_spi0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ + AM4372_IOPAD(0x954, PIN_INPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ + AM4372_IOPAD(0x958, PIN_OUTPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ + AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ + >; + }; }; &i2c0 { @@ -146,6 +155,37 @@ status = "okay"; }; +&spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>; + dmas = <&edma 16 + &edma 17>; + dma-names = "tx0", "rx0"; + + flash: w25q64cvzpig@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + partition@0 { + label = "uboot"; + reg = <0x0 0xc0000>; + }; + + partition@c0000 { + label = "uboot environment"; + reg = <0xc0000 0x40000>; + }; + + partition@100000 { + label = "reserved"; + reg = <0x100000 0x100000>; + }; + }; +}; + &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 V2 04/14] ARM: dts: am437x: cm-t43: add spi-flash support Date: Tue, 1 Dec 2015 15:54:59 +0200 [thread overview] Message-ID: <1448978109-5614-5-git-send-email-nikita@compulab.co.il> (raw) In-Reply-To: <1448978109-5614-1-git-send-email-nikita@compulab.co.il> CM-T43 has an on-board 2MB SPI-flash which stores U-Boot and the U-Boot environment. Add it to the device tree. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Tony Lindgren <tony@atomide.com> Cc: Benoit Cousson <bcousson@baylibre.com> Cc: Rob Herring <robh@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Dmitry Lifshitz <lifshitz@compulab.co.il> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> --- Changes in V2: - Removed unnecessary line break after pinmux_spi0_pins section. arch/arm/boot/dts/am437x-cm-t43.dts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm/boot/dts/am437x-cm-t43.dts b/arch/arm/boot/dts/am437x-cm-t43.dts index 27b748a..27e5948 100644 --- a/arch/arm/boot/dts/am437x-cm-t43.dts +++ b/arch/arm/boot/dts/am437x-cm-t43.dts @@ -44,6 +44,15 @@ AM4372_IOPAD(0x98c, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ >; }; + + spi0_pins: pinmux_spi0_pins { + pinctrl-single,pins = < + AM4372_IOPAD(0x950, PIN_INPUT | MUX_MODE0) /* spi0_sclk.spi0_sclk */ + AM4372_IOPAD(0x954, PIN_INPUT | MUX_MODE0) /* spi0_d0.spi0_d0 */ + AM4372_IOPAD(0x958, PIN_OUTPUT | MUX_MODE0) /* spi0_d1.spi0_d1 */ + AM4372_IOPAD(0x95C, PIN_OUTPUT | MUX_MODE0) /* spi0_cs0.spi0_cs0 */ + >; + }; }; &i2c0 { @@ -146,6 +155,37 @@ status = "okay"; }; +&spi0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&spi0_pins>; + dmas = <&edma 16 + &edma 17>; + dma-names = "tx0", "rx0"; + + flash: w25q64cvzpig at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <20000000>; + partition at 0 { + label = "uboot"; + reg = <0x0 0xc0000>; + }; + + partition at c0000 { + label = "uboot environment"; + reg = <0xc0000 0x40000>; + }; + + partition at 100000 { + label = "reserved"; + reg = <0x100000 0x100000>; + }; + }; +}; + &uart0 { status = "okay"; }; -- 1.9.1
next prev parent reply other threads:[~2015-12-01 13:54 UTC|newest] Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-12-01 13:54 [PATCH V2 00/14] Add support for sbc-t43 Nikita Kiryanov 2015-12-01 13:54 ` Nikita Kiryanov [not found] ` <1448978109-5614-1-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-12-01 13:54 ` [PATCH V2 01/14] ARM: dts: am437x: cm-t43: add basic " Nikita Kiryanov 2015-12-01 13:54 ` Nikita Kiryanov 2015-12-01 13:54 ` [PATCH V2 02/14] ARM: dts: am437x: cm-t43: add support for module eeprom Nikita Kiryanov 2015-12-01 13:54 ` Nikita Kiryanov 2015-12-01 13:54 ` [PATCH V2 03/14] ARM: dts: am437x: cm-t43: add PMIC support Nikita Kiryanov 2015-12-01 13:54 ` Nikita Kiryanov 2015-12-01 13:54 ` Nikita Kiryanov [this message] 2015-12-01 13:54 ` [PATCH V2 04/14] ARM: dts: am437x: cm-t43: add spi-flash support Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 05/14] ARM: dts: am437x: cm-t43: add NAND support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 06/14] ARM: dts: am437x: cm-t43: add dual emac support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 07/14] ARM: dts: am437x: cm-t43: add USB support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 08/14] ARM: dts: am437x: cm-t43: add eMMC support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 09/14] ARM: dts: am437x: cm-t43: add touchscreen support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 10/14] ARM: dts: am437x: cm-t43: add pca9555 support Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 11/14] ARM: dts: am437x: cm-t43: add support for baseboard eeprom Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 12/14] ARM: dts: sb-som: introduce SB-SOM baseboard Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov [not found] ` <1448978109-5614-13-git-send-email-nikita-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2015-12-03 14:24 ` Rob Herring 2015-12-03 14:24 ` Rob Herring 2015-12-03 16:13 ` Tony Lindgren 2015-12-03 16:13 ` Tony Lindgren 2015-12-01 13:55 ` [PATCH V2 13/14] ARM: dts: am437x: cm-t43: add support for mmc1 Nikita Kiryanov 2015-12-01 13:55 ` Nikita Kiryanov 2015-12-01 13:55 ` [PATCH V2 14/14] ARM: dts: am437x: cm-t43: add lcd support Nikita Kiryanov 2015-12-01 13:55 ` 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=1448978109-5614-5-git-send-email-nikita@compulab.co.il \ --to=nikita-utxizqzc01rs1mouv/rt9w@public.gmane.org \ --cc=bcousson-rdvid1DuHRBWk0Htik3J/w@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=mark.rutland-5wv7dgnIgG8@public.gmane.org \ --cc=pawel.moll-5wv7dgnIgG8@public.gmane.org \ --cc=robh-DgEjT+Ai2ygdnm+yROfE0A@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.