04cf4e31f92b1cbdda2b8b098608fb1b5a2b5e2c
[openwrt/staging/blocktrron.git] / target / linux / oxnas / files / arch / arm / boot / dts / ox820-cloudengines-pogoplugpro.dts
1 /*
2 * cloudengines-pogoplug-series-3.dtsi - Device tree file for Cloud Engines PogoPlug Series 3
3 *
4 * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
5 *
6 * Licensed under GPLv2 or later
7 */
8
9 /dts-v1/;
10 #include "ox820.dtsi"
11 #include <dt-bindings/gpio/gpio.h>
12
13 / {
14 model = "Cloud Engines PogoPlug Pro";
15
16 compatible = "cloudengines,pogoplugpro", "oxsemi,ox820";
17
18 chosen {
19 bootargs = "earlyprintk console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 memory {
24 /* 128Mbytes DDR */
25 reg = <0x60000000 0x8000000>;
26 };
27
28 aliases {
29 serial0 = &uart0;
30 gpio0 = &gpio0;
31 gpio1 = &gpio1;
32 led-boot = &led_status;
33 led-failsafe = &led_warn;
34 led-running = &led_act;
35 led-upgrade = &led_warn;
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 led_status: blue {
42 label = "pogoplug:blue";
43 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
44 default-state = "keep";
45 };
46
47 led_warn: orange {
48 label = "pogoplug:orange";
49 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
50 default-state = "keep";
51 };
52
53 led_act: green {
54 label = "pogoplug:green";
55 gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
56 default-state = "keep";
57 };
58 };
59 };
60
61 &uart0 {
62 status = "okay";
63
64 pinctrl-names = "default";
65 pinctrl-0 = <&pinctrl_uart0>;
66 };
67
68 &nandc {
69 status = "okay";
70
71 pinctrl-names = "default";
72 pinctrl-0 = <&pinctrl_nand>;
73
74 nand@0 {
75 reg = <0>;
76 #address-cells = <1>;
77 #size-cells = <1>;
78 nand-ecc-mode = "soft";
79 nand-ecc-algo = "hamming";
80
81 partition@0 {
82 label = "stage1";
83 reg = <0x00000000 0x00040000>;
84 read-only;
85 };
86
87 partition@40000 {
88 label = "u-boot";
89 reg = <0x00040000 0x00380000>;
90 read-only;
91 };
92
93 partition@3c0000 {
94 label = "u-boot-env";
95 reg = <0x003c0000 0x00080000>;
96 };
97
98 partition@440000 {
99 label = "kernel";
100 reg = <0x00440000 0x009c0000>;
101 };
102
103 partition@e00000 {
104 label = "ubi";
105 reg = <0x00e00000 0x07200000>;
106 };
107 };
108 };
109
110 &ehci {
111 status = "okay";
112 };
113
114 &etha {
115 status = "okay";
116
117 pinctrl-names = "default";
118 pinctrl-0 = <&pinctrl_etha_mdio>;
119 };
120
121 &sata {
122 status = "okay";
123 };
124
125 &pcie_phy {
126 status = "okay";
127 };
128
129 &pcie0 {
130 status = "okay";
131 };