* [PATCH] ARM: dts: keystone: add AEMIF/NAND device entry
@ 2014-02-24 18:52 Ivan Khoronzhuk
[not found] ` <1393267976-15709-1-git-send-email-ivan.khoronzhuk-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Khoronzhuk @ 2014-02-24 18:52 UTC (permalink / raw)
To: santosh.shilimkar
Cc: mark.rutland, devicetree, grygorii.strashko, linux, pawel.moll,
ijc+devicetree, robh+dt, galak, Ivan Khoronzhuk, linux-arm-kernel
Add AEMIF/NAND device entry.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
---
Based on
git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git
keystone/master
arch/arm/boot/dts/k2hk-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/keystone.dtsi | 13 +++++++++++
2 files changed, 65 insertions(+)
diff --git a/arch/arm/boot/dts/k2hk-evm.dts b/arch/arm/boot/dts/k2hk-evm.dts
index 1d8ea6e..a08581b 100644
--- a/arch/arm/boot/dts/k2hk-evm.dts
+++ b/arch/arm/boot/dts/k2hk-evm.dts
@@ -84,3 +84,55 @@
&usb {
status = "okay";
};
+
+&aemif {
+ cs0 {
+ #address-cells = <2>;
+ #size-cells = <1>;
+ clock-ranges;
+ ranges;
+
+ ti,cs-chipselect = <0>;
+ /* all timings in nanoseconds */
+ ti,cs-min-turnaround-ns = <12>;
+ ti,cs-read-hold-ns = <6>;
+ ti,cs-read-strobe-ns = <23>;
+ ti,cs-read-setup-ns = <9>;
+ ti,cs-write-hold-ns = <8>;
+ ti,cs-write-strobe-ns = <23>;
+ ti,cs-write-setup-ns = <8>;
+
+ nand@0,0 {
+ compatible = "ti,keystone-nand","ti,davinci-nand";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0 0 0x4000000
+ 1 0 0x0000100>;
+
+ ti,davinci-chipselect = <0>;
+ ti,davinci-mask-ale = <0x2000>;
+ ti,davinci-mask-cle = <0x4000>;
+ ti,davinci-mask-chipsel = <0>;
+ nand-ecc-mode = "hw";
+ ti,davinci-ecc-bits = <4>;
+ nand-on-flash-bbt;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x100000>;
+ read-only;
+ };
+
+ partition@100000 {
+ label = "params";
+ reg = <0x100000 0x80000>;
+ read-only;
+ };
+
+ partition@180000 {
+ label = "ubifs";
+ reg = <0x180000 0x7E80000>;
+ };
+ };
+ };
+};
diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
index 4eceb46..af80cb2 100644
--- a/arch/arm/boot/dts/keystone.dtsi
+++ b/arch/arm/boot/dts/keystone.dtsi
@@ -266,5 +266,18 @@
ti,ngpio = <32>;
ti,davinci-gpio-unbanked = <32>;
};
+
+ aemif: aemif@21000A00 {
+ compatible = "ti,keystone-aemif", "ti,davinci-aemif";
+ #address-cells = <2>;
+ #size-cells = <1>;
+ clocks = <&clkaemif>;
+ clock-names = "aemif";
+ clock-ranges;
+
+ reg = <0x21000A00 0x00000100>;
+ ranges = <0 0 0x30000000 0x10000000
+ 1 0 0x21000A00 0x00000100>;
+ };
};
};
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread[parent not found: <1393267976-15709-1-git-send-email-ivan.khoronzhuk-l0cyMroinI0@public.gmane.org>]
* Re: [PATCH] ARM: dts: keystone: add AEMIF/NAND device entry [not found] ` <1393267976-15709-1-git-send-email-ivan.khoronzhuk-l0cyMroinI0@public.gmane.org> @ 2014-02-24 21:10 ` Santosh Shilimkar 0 siblings, 0 replies; 2+ messages in thread From: Santosh Shilimkar @ 2014-02-24 21:10 UTC (permalink / raw) To: Ivan Khoronzhuk Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg, galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, grygorii.strashko-l0cyMroinI0 On Monday 24 February 2014 01:52 PM, Ivan Khoronzhuk wrote: > Add AEMIF/NAND device entry. > > Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk-l0cyMroinI0@public.gmane.org> > --- > Once the driver is in Greg's queue, I will pick this up and defconfig patch. > > arch/arm/boot/dts/k2hk-evm.dts | 52 +++++++++++++++++++++++++++++++++++++++++ > arch/arm/boot/dts/keystone.dtsi | 13 +++++++++++ > 2 files changed, 65 insertions(+) > > diff --git a/arch/arm/boot/dts/k2hk-evm.dts b/arch/arm/boot/dts/k2hk-evm.dts > index 1d8ea6e..a08581b 100644 > --- a/arch/arm/boot/dts/k2hk-evm.dts > +++ b/arch/arm/boot/dts/k2hk-evm.dts > @@ -84,3 +84,55 @@ > &usb { > status = "okay"; > }; > + > +&aemif { > + cs0 { > + #address-cells = <2>; > + #size-cells = <1>; > + clock-ranges; > + ranges; > + > + ti,cs-chipselect = <0>; > + /* all timings in nanoseconds */ > + ti,cs-min-turnaround-ns = <12>; > + ti,cs-read-hold-ns = <6>; > + ti,cs-read-strobe-ns = <23>; > + ti,cs-read-setup-ns = <9>; > + ti,cs-write-hold-ns = <8>; > + ti,cs-write-strobe-ns = <23>; > + ti,cs-write-setup-ns = <8>; > + > + nand@0,0 { > + compatible = "ti,keystone-nand","ti,davinci-nand"; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0 0 0x4000000 > + 1 0 0x0000100>; > + > + ti,davinci-chipselect = <0>; > + ti,davinci-mask-ale = <0x2000>; > + ti,davinci-mask-cle = <0x4000>; > + ti,davinci-mask-chipsel = <0>; > + nand-ecc-mode = "hw"; > + ti,davinci-ecc-bits = <4>; > + nand-on-flash-bbt; > + > + partition@0 { > + label = "u-boot"; > + reg = <0x0 0x100000>; > + read-only; > + }; > + > + partition@100000 { > + label = "params"; > + reg = <0x100000 0x80000>; > + read-only; > + }; > + > + partition@180000 { > + label = "ubifs"; > + reg = <0x180000 0x7E80000>; > + }; > + }; > + }; > +}; > diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi > index 4eceb46..af80cb2 100644 > --- a/arch/arm/boot/dts/keystone.dtsi > +++ b/arch/arm/boot/dts/keystone.dtsi > @@ -266,5 +266,18 @@ > ti,ngpio = <32>; > ti,davinci-gpio-unbanked = <32>; > }; > + > + aemif: aemif@21000A00 { > + compatible = "ti,keystone-aemif", "ti,davinci-aemif"; > + #address-cells = <2>; > + #size-cells = <1>; > + clocks = <&clkaemif>; > + clock-names = "aemif"; > + clock-ranges; > + > + reg = <0x21000A00 0x00000100>; > + ranges = <0 0 0x30000000 0x10000000 > + 1 0 0x21000A00 0x00000100>; > + }; > }; > }; > -- 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-24 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 18:52 [PATCH] ARM: dts: keystone: add AEMIF/NAND device entry Ivan Khoronzhuk
[not found] ` <1393267976-15709-1-git-send-email-ivan.khoronzhuk-l0cyMroinI0@public.gmane.org>
2014-02-24 21:10 ` Santosh Shilimkar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox