* Denali NAND driver on SocKit
@ 2015-11-30 18:31 Pavel Machek
2015-11-30 19:35 ` Dinh Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2015-11-30 18:31 UTC (permalink / raw)
To: dinguyen, wsa, kernel list, jg1.han, artem.bityutskiy,
sachin.kamat, David.Woodhouse, dinguyen, sr
Cc: marex
Hi!
I'm trying to get NAND to work on socdk board... but it looks like
neccessary device tree bindings are not there. And when I do add them,
they don't seem to work.
Does it work for you? Is there patch I should apply?
Thanks,
Pavel
diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
index bd2937f..ec61b29 100644
--- a/arch/arm/boot/dts/socfpga.dtsi
+++ b/arch/arm/boot/dts/socfpga.dtsi
@@ -582,6 +582,46 @@
status = "disabled";
};
+ nand: nand@ff900000 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "denali,denali-nand-dt";
+ reg = <0xff900000 0x100000>, <0xffb80000 0x10000>;
+ reg-names = "nand_data", "denali_reg";
+ interrupts = <0 144 4>;
+ dma-mask = <0xffffffff>;
+ clocks = <&nand_clk>;
+ have-hw-ecc-fixup;
+ status = "disabled";
+
+ partition@nand-boot {
+ /* 8MB for raw data. */
+ label = "NAND Flash Boot Area 8MB";
+ reg = <0x0 0x800000>;
+ };
+ partition@nand-rootfs {
+ /* 128MB jffs2 root filesystem. */
+ label = "NAND Flash jffs2 Root Filesystem 128MB";
+ reg = <0x800000 0x8000000>;
+ };
+ partition@nand-128 {
+ label = "NAND Flash 128 MB";
+ reg = <0x8800000 0x8000000>;
+ };
+ partition@nand-64 {
+ label = "NAND Flash 64 MB";
+ reg = <0x10800000 0x4000000>;
+ };
+ partition@nand-32 {
+ label = "NAND Flash 32 MB";
+ reg = <0x14800000 0x2000000>;
+ };
+ partition@nand-16 {
+ label = "NAND Flash 16 MB";
+ reg = <0x16800000 0x1000000>;
+ };
+ };
+
gpio0: gpio@ff708000 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
index d4d0a28..b56c8f9 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
@@ -89,3 +89,7 @@
&usb1 {
status = "okay";
};
+
+&nand {
+ status = "okay";
+};
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: Denali NAND driver on SocKit
2015-11-30 18:31 Denali NAND driver on SocKit Pavel Machek
@ 2015-11-30 19:35 ` Dinh Nguyen
2015-12-04 16:55 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2015-11-30 19:35 UTC (permalink / raw)
To: Pavel Machek, wsa, kernel list, jg1.han, artem.bityutskiy,
sachin.kamat, David.Woodhouse, dinguyen, sr
Cc: marex, Graham Moore
CC: Graham Moore
Graham should know more about this.
Dinh
On 11/30/2015 12:31 PM, Pavel Machek wrote:
> Hi!
>
> I'm trying to get NAND to work on socdk board... but it looks like
> neccessary device tree bindings are not there. And when I do add them,
> they don't seem to work.
>
> Does it work for you? Is there patch I should apply?
>
> Thanks,
> Pavel
>
>
> diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi
> index bd2937f..ec61b29 100644
> --- a/arch/arm/boot/dts/socfpga.dtsi
> +++ b/arch/arm/boot/dts/socfpga.dtsi
> @@ -582,6 +582,46 @@
> status = "disabled";
> };
>
> + nand: nand@ff900000 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "denali,denali-nand-dt";
> + reg = <0xff900000 0x100000>, <0xffb80000 0x10000>;
> + reg-names = "nand_data", "denali_reg";
> + interrupts = <0 144 4>;
> + dma-mask = <0xffffffff>;
> + clocks = <&nand_clk>;
> + have-hw-ecc-fixup;
> + status = "disabled";
> +
> + partition@nand-boot {
> + /* 8MB for raw data. */
> + label = "NAND Flash Boot Area 8MB";
> + reg = <0x0 0x800000>;
> + };
> + partition@nand-rootfs {
> + /* 128MB jffs2 root filesystem. */
> + label = "NAND Flash jffs2 Root Filesystem 128MB";
> + reg = <0x800000 0x8000000>;
> + };
> + partition@nand-128 {
> + label = "NAND Flash 128 MB";
> + reg = <0x8800000 0x8000000>;
> + };
> + partition@nand-64 {
> + label = "NAND Flash 64 MB";
> + reg = <0x10800000 0x4000000>;
> + };
> + partition@nand-32 {
> + label = "NAND Flash 32 MB";
> + reg = <0x14800000 0x2000000>;
> + };
> + partition@nand-16 {
> + label = "NAND Flash 16 MB";
> + reg = <0x16800000 0x1000000>;
> + };
> + };
> +
> gpio0: gpio@ff708000 {
> #address-cells = <1>;
> #size-cells = <0>;
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> index d4d0a28..b56c8f9 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
> @@ -89,3 +89,7 @@
> &usb1 {
> status = "okay";
> };
> +
> +&nand {
> + status = "okay";
> +};
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Denali NAND driver on SocKit
2015-11-30 19:35 ` Dinh Nguyen
@ 2015-12-04 16:55 ` Pavel Machek
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2015-12-04 16:55 UTC (permalink / raw)
To: Dinh Nguyen
Cc: wsa, kernel list, jg1.han, artem.bityutskiy, sachin.kamat,
David.Woodhouse, dinguyen, sr, marex, Graham Moore
Hi!
> CC: Graham Moore
>
> Graham should know more about this.
Ok, I know what went wrong. I got confused. It seems there is no nand
connected to denali on sockit board.
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-04 16:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 18:31 Denali NAND driver on SocKit Pavel Machek
2015-11-30 19:35 ` Dinh Nguyen
2015-12-04 16:55 ` Pavel Machek
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.