ARM: dts: sun8i: add NAND controller node for A23/A33
Subsystems (2)
PATCH 1/1 ARM: dts: sun8i: add NAND controller node for A23/A33
A23/A33 has a NAND controller which can now be used properly.
Add a device node for it.
The DMA function cannot work because of changed DMA IP block, so it's temporarily removed in the device node. However, with PIO mode it can still work.
Tested on an Aoson M751s tablet with Boris Brezillon's "mtd: nand: allow vendor specific detection/initialization" patchset, which is needed for the large-block MLC chip to be recognized correctly.
( http://lists.infradead.org/pipermail/linux-mtd/2016-June/068198.html )
--- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +21 -0
@@ -239,6 +239,14 @@ "mmc2_sample"; }; + nand_clk: clk at 01c20080 { + #clock-cells = <0>; + compatible = "allwinner,sun4i-a10-mod0-clk"; + reg = <0x01c20080 0x4>; + clocks = <&osc24M>, <&pll6 1>; + clock-output-names = "nand"; + }; + usb_clk: clk at 01c200cc { #clock-cells = <1>; #reset-cells = <1>;
@@ -322,6 +330,19 @@ #size-cells = <0>; }; + nfc: nand at 01c03000 { + compatible = "allwinner,sun4i-a10-nand"; + reg = <0x01c03000 0x1000>; + interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ahb1_gates 13>, <&nand_clk>; + clock-names = "ahb", "mod"; + resets = <&ahb1_rst 13>; + reset-names = "ahb"; + status = "disabled"; + #address-cells = <1>; + #size-cells = <0>; + }; + ehci0: usb at 01c1a000 { compatible = "allwinner,sun8i-a23-ehci", "generic-ehci"; reg = <0x01c1a000 0x100>;
Signature · 1 line
2.9.3
Hi,
Quoted 7 lines · Icenowy Zheng
A23/A33 has a NAND controller which can now be used properly.
Add a device node for it.
The DMA function cannot work because of changed DMA IP block, so it's temporarily removed in the device node. However, with PIO mode it can still work.
What is preventing the NAND driver to work with DMA with the sun6i driver?
Thanks,
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160824/01124f92/attachment.sig>
PATCH 1/1 ARM: dts: sun8i: add NAND controller node for A23/A33
Hi Maxime,
24.08.2016, 14:02, "Maxime Ripard" <[email protected]>:
Quoted 5 lines
Hi,
Quoted 2 lines · Icenowy Zheng
?A23/A33 has a NAND controller which can now be used properly.
Quoted 7 lines
Quoted 5 lines
?Add a device node for it.
?The DMA function cannot work because of changed DMA IP block, so it's ?temporarily removed in the device node. However, with PIO mode it can still ?work.
What is preventing the NAND driver to work with DMA with the sun6i driver?
It seems that under sun6i we should use dedicated rx and tx DMAs, but not a "rxtx" DMA.
Quoted 8 lines
Thanks,
Maxime--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Hi,
Quoted 10 lines · Icenowy Zheng
Hi Maxime,
24.08.2016, 14:02, "Maxime Ripard" <[email protected]>:
Quoted 7 lines
Hi,
Quoted 4 lines · Icenowy Zheng
?A23/A33 has a NAND controller which can now be used properly.
?Add a device node for it.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
?The DMA function cannot work because of changed DMA IP block, so it's ?temporarily removed in the device node. However, with PIO mode it can still ?work.
What is preventing the NAND driver to work with DMA with the sun6i driver?
It seems that under sun6i we should use dedicated rx and tx DMAs, but not a "rxtx" DMA.
Ah, I see. I just applied your patch, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160825/b3581fd4/attachment.sig>