kernel: update 4.1 to 4.1.5
[openwrt/staging/yousong.git] / target / linux / sunxi / patches-4.1 / 127-1-dt-sun5i-enable-nand-on-a13-olinuxino.patch
1 From f84e215756932c495bc92c50d40d8cd6773822bb Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 26 May 2015 21:06:22 +0200
4 Subject: [PATCH] ARM: dts: sun5i: Enable NAND on A13 OLinuxIno board
5
6 Add a node describing the NAND controller and partitions.
7
8 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
9 ---
10 arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 59 +++++++++++++++++++++++++++++++
11 1 file changed, 59 insertions(+)
12
13 --- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
14 +++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
15 @@ -201,3 +201,62 @@
16 status = "okay";
17 };
18 };
19 +&nfc {
20 + pinctrl-names = "default";
21 + pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>;
22 + status = "okay";
23 +
24 + nand@0 {
25 + #address-cells = <2>;
26 + #size-cells = <2>;
27 + reg = <0>;
28 + allwinner,rb = <0>;
29 +
30 + nand-ecc-mode = "hw";
31 + nand-rnd-mode = "hw";
32 + nand-ecc-strength = <40>;
33 + nand-ecc-step-size = <1024>;
34 + nand-on-flash-bbt;
35 +
36 + boot0@0 {
37 + label = "boot0";
38 + reg = /bits/ 64 <0x0 0x200000>;
39 + nand-ecc-mode = "hw_syndrome";
40 + nand-rnd-mode = "hw";
41 + nand-randomizer-seeds = /bits/ 16 <0x4a80>;
42 + };
43 +
44 + boot0-rescue@200000 {
45 + label = "boot0-rescue";
46 + reg = /bits/ 64 <0x200000 0x200000>;
47 + nand-ecc-mode = "hw_syndrome";
48 + nand-rnd-mode = "hw";
49 + nand-randomizer-seeds = /bits/ 16 <0x4a80>;
50 + };
51 +
52 + main@200000 {
53 + label = "main";
54 + reg = /bits/ 64 <0x400000 0xffc00000>;
55 + nand-ecc-mode = "hw";
56 + nand-rnd-mode = "hw";
57 + nand-randomizer-seeds = /bits/ 16 <
58 + 0x2b75 0x0bd0 0x5ca3 0x62d1 0x1c93 0x07e9 0x2162 0x3a72
59 + 0x0d67 0x67f9 0x1be7 0x077d 0x032f 0x0dac 0x2716 0x2436
60 + 0x7922 0x1510 0x3860 0x5287 0x480f 0x4252 0x1789 0x5a2d
61 + 0x2a49 0x5e10 0x437f 0x4b4e 0x2f45 0x216e 0x5cb7 0x7130
62 + 0x2a3f 0x60e4 0x4dc9 0x0ef0 0x0f52 0x1bb9 0x6211 0x7a56
63 + 0x226d 0x4ea7 0x6f36 0x3692 0x38bf 0x0c62 0x05eb 0x4c55
64 + 0x60f4 0x728c 0x3b6f 0x2037 0x7f69 0x0936 0x651a 0x4ceb
65 + 0x6218 0x79f3 0x383f 0x18d9 0x4f05 0x5c82 0x2912 0x6f17
66 + 0x6856 0x5938 0x1007 0x61ab 0x3e7f 0x57c2 0x542f 0x4f62
67 + 0x7454 0x2eac 0x7739 0x42d4 0x2f90 0x435a 0x2e52 0x2064
68 + 0x637c 0x66ad 0x2c90 0x0bad 0x759c 0x0029 0x0986 0x7126
69 + 0x1ca7 0x1605 0x386a 0x27f5 0x1380 0x6d75 0x24c3 0x0f8e
70 + 0x2b7a 0x1418 0x1fd1 0x7dc1 0x2d8e 0x43af 0x2267 0x7da3
71 + 0x4e3d 0x1338 0x50db 0x454d 0x764d 0x40a3 0x42e6 0x262b
72 + 0x2d2e 0x1aea 0x2e17 0x173d 0x3a6e 0x71bf 0x25f9 0x0a5d
73 + 0x7c57 0x0fbe 0x46ce 0x4939 0x6b17 0x37bb 0x3e91 0x76db>;
74 + };
75 + };
76 +};
77 +