oxnas: backport upstream NAND driver
[openwrt/.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-pogoplug-v3.dts
1 /*
2  * Copyright (C) 2014 Daniel Golle <daniel@makrotopia.org>
3  * Copyright (C) 2013 Ma Haijun <mahaijuns@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  */
9
10 /dts-v1/;
11 #include "ox820.dtsi"
12
13 / {
14         model = "Pogoplug V3";
15
16         chosen {
17                 bootargs = "console=ttyS0,115200n8 earlyprintk=serial";
18         };
19
20         uart@44200000 {
21                 status = "okay";
22         };
23
24         sata@45900000 {
25                 status = "okay";
26         };
27
28         ethernet@40400000 {
29                 status = "okay";
30         };
31
32         ehci@40200100 {
33                 status = "okay";
34         };
35
36         pinctrl {
37                 leds {
38                         pinctrl_leds: leds-0 {
39                                 plxtech,pins =
40                                         <0 2 0 0        /* MF_A2 */
41                                          1 16 0 0       /* MF_B16 */
42                                          1 17 0 0>;     /* MF_B17 */
43                         };
44                 };
45         };
46
47         leds {
48                 compatible = "gpio-leds";
49                 pinctrl-names = "default";
50                 pinctrl-0 = <&pinctrl_leds>;
51
52                 blue {
53                         label = "pogoplug:blue:internal";
54                         gpios = <&GPIOA 2 0>;
55                 };
56
57                 orange {
58                         label = "pogoplug:orange:usr";
59                         gpios = <&GPIOB 16 1>;
60                 };
61
62                 green {
63                         label = "pogoplug:green:usr";
64                         gpios = <&GPIOB 17 1>;
65                 };
66         };
67
68 };
69
70 &nandc {
71         status = "okay";
72
73         nand@0 {
74                 reg = <0>;
75                 #address-cells = <1>;
76                 #size-cells = <1>;
77                 nand-ecc-mode = "soft";
78                 nand-ecc-algo = "hamming";
79
80                 partition@0 {
81                         label = "boot";
82                         reg = <0x00000000 0x00e00000>;
83                         /*read-only;*/
84                 };
85
86                 partition@e00000 {
87                         label = "ubi";
88                         reg = <0x00e00000 0x07200000>;
89                 };
90         };
91 };