aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.xyz>2016-08-23 09:55:46 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-08-25 16:54:11 -0400
commitd7b843df13ea3a19580bf5eb109b1fa5a89a338c (patch)
tree5899290d3fcb24679a85f2fccb7ad8bd476818b4
parentf0b631edb8a1f66e6171150d54c1533accb10b04 (diff)
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 ) Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun8i-a23-a33.dtsi21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
index 7e05e09e61c7..6d6509c71009 100644
--- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
@@ -239,6 +239,14 @@
239 "mmc2_sample"; 239 "mmc2_sample";
240 }; 240 };
241 241
242 nand_clk: clk@01c20080 {
243 #clock-cells = <0>;
244 compatible = "allwinner,sun4i-a10-mod0-clk";
245 reg = <0x01c20080 0x4>;
246 clocks = <&osc24M>, <&pll6 1>;
247 clock-output-names = "nand";
248 };
249
242 usb_clk: clk@01c200cc { 250 usb_clk: clk@01c200cc {
243 #clock-cells = <1>; 251 #clock-cells = <1>;
244 #reset-cells = <1>; 252 #reset-cells = <1>;
@@ -322,6 +330,19 @@
322 #size-cells = <0>; 330 #size-cells = <0>;
323 }; 331 };
324 332
333 nfc: nand@01c03000 {
334 compatible = "allwinner,sun4i-a10-nand";
335 reg = <0x01c03000 0x1000>;
336 interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
337 clocks = <&ahb1_gates 13>, <&nand_clk>;
338 clock-names = "ahb", "mod";
339 resets = <&ahb1_rst 13>;
340 reset-names = "ahb";
341 status = "disabled";
342 #address-cells = <1>;
343 #size-cells = <0>;
344 };
345
325 ehci0: usb@01c1a000 { 346 ehci0: usb@01c1a000 {
326 compatible = "allwinner,sun8i-a23-ehci", "generic-ehci"; 347 compatible = "allwinner,sun8i-a23-ehci", "generic-ehci";
327 reg = <0x01c1a000 0x100>; 348 reg = <0x01c1a000 0x100>;