oxnas: enable pcie_phy on boards utilizing PCIe
[oweals/openwrt.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
12 / {
13         model = "Cloud Engines PogoPlug Pro";
14
15         compatible = "cloudengines,pogoplugpro", "oxsemi,ox820";
16
17         chosen {
18                 bootargs = "earlyprintk console=ttyS0,115200";
19                 stdout-path = "serial0:115200n8";
20         };
21
22         memory {
23                 /* 128Mbytes DDR */
24                 reg = <0x60000000 0x8000000>;
25         };
26
27         aliases {
28                 serial0 = &uart0;
29                 gpio0 = &gpio0;
30                 gpio1 = &gpio1;
31                 led-boot = &led_status;
32                 led-failsafe = &led_warn;
33                 led-running = &led_act;
34                 led-upgrade = &led_warn;
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 led_status: blue {
41                         label = "pogoplug:blue";
42                         gpios = <&gpio0 2 0>;
43                         default-state = "keep";
44                 };
45
46                 led_warn: orange {
47                         label = "pogoplug:orange";
48                         gpios = <&gpio1 16 1>;
49                         default-state = "keep";
50                 };
51
52                 led_act: green {
53                         label = "pogoplug:green";
54                         gpios = <&gpio1 17 1>;
55                         default-state = "keep";
56                 };
57         };
58 };
59
60 &uart0 {
61         status = "okay";
62
63         pinctrl-names = "default";
64         pinctrl-0 = <&pinctrl_uart0>;
65 };
66
67 &nandc {
68         status = "okay";
69
70         pinctrl-names = "default";
71         pinctrl-0 = <&pinctrl_nand>;
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 = "stage1";
82                         reg = <0x00000000 0x00040000>;
83                         read-only;
84                 };
85
86                 partition@40000 {
87                         label = "u-boot";
88                         reg = <0x00040000 0x00380000>;
89                         read-only;
90                 };
91
92                 partition@3c0000 {
93                         label = "u-boot-env";
94                         reg = <0x003c0000 0x00080000>;
95                 };
96
97                 partition@440000 {
98                         label = "kernel";
99                         reg = <0x00440000 0x009c0000>;
100                 };
101
102                 partition@e00000 {
103                         label = "ubi";
104                         reg = <0x00e00000 0x07200000>;
105                 };
106         };
107 };
108
109 &ehci {
110         status = "okay";
111 };
112
113 &etha {
114         status = "okay";
115
116         pinctrl-names = "default";
117         pinctrl-0 = <&pinctrl_etha_mdio>;
118 };
119
120 &pcie_phy {
121         status = "okay";
122 };
123
124 &pcie0 {
125         status = "okay";
126 };