sunxi: add support for 4.1
[openwrt.git] / target / linux / sunxi / patches-4.1 / 126-4-dt-sun4i-add-nfc-to-a10.patch
1 From 9cc66234a20c6ba1611233a122f04f3b175ad2d3 Mon Sep 17 00:00:00 2001
2 From: Boris BREZILLON <boris.brezillon@free-electrons.com>
3 Date: Mon, 28 Jul 2014 14:01:22 +0200
4 Subject: [PATCH] ARM: dts: sun7i: Add NFC node to Allwinner A20 SoC
5
6 Add NAND Flash controller node definition to the A20 SoC.
7
8 Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
9 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
10 ---
11  arch/arm/boot/dts/sun7i-a20.dtsi | 11 +++++++++++
12  1 file changed, 11 insertions(+)
13
14 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
15 index 6ec86c9..092adc6 100644
16 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
17 +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
18 @@ -641,6 +641,17 @@
19                         #dma-cells = <2>;
20                 };
21  
22 +               nfc: nand@01c03000 {
23 +                       compatible = "allwinner,sun4i-a10-nand";
24 +                       reg = <0x01c03000 0x1000>;
25 +                       interrupts = <0 37 4>;
26 +                       clocks = <&ahb_gates 13>, <&nand_clk>;
27 +                       clock-names = "ahb", "mod";
28 +                       #address-cells = <1>;
29 +                       #size-cells = <0>;
30 +                       status = "disabled";
31 +               };
32 +
33                 spi0: spi@01c05000 {
34                         compatible = "allwinner,sun4i-a10-spi";
35                         reg = <0x01c05000 0x1000>;