Merge tag 'drm-msm-fixes-2018-04-25' of git://people.freedesktop.org/~robclark/linux...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / armada-385-linksys-rango.dts
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3  * Device Tree file for the Linksys WRT3200ACM (Rango)
4  *
5  * Copyright (C) 2016 Imre Kaloz <kaloz@openwrt.org>
6  */
7
8 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include "armada-385-linksys.dtsi"
12
13 / {
14         model = "Linksys WRT3200ACM";
15         compatible = "linksys,rango", "linksys,armada385", "marvell,armada385",
16                      "marvell,armada380";
17 };
18
19 &expander0 {
20         wan_amber@0 {
21                 label = "rango:amber:wan";
22                 reg = <0x0>;
23         };
24
25         wan_white@1 {
26                 label = "rango:white:wan";
27                 reg = <0x1>;
28         };
29
30         usb2@5 {
31                 label = "rango:white:usb2";
32                 reg = <0x5>;
33         };
34
35         usb3_1@6 {
36                 label = "rango:white:usb3_1";
37                 reg = <0x6>;
38         };
39
40         usb3_2@7 {
41                 label = "rango:white:usb3_2";
42                 reg = <0x7>;
43         };
44
45         wps_white@8 {
46                 label = "rango:white:wps";
47                 reg = <0x8>;
48         };
49
50         wps_amber@9 {
51                 label = "rango:amber:wps";
52                 reg = <0x9>;
53         };
54 };
55
56 &gpio_leds {
57         power {
58                 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
59                 label = "rango:white:power";
60         };
61
62         sata {
63                 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
64                 label = "rango:white:sata";
65         };
66
67         wlan_2g {
68                 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
69                 label = "rango:white:wlan_2g";
70         };
71
72         wlan_5g {
73                 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
74                 label = "rango:white:wlan_5g";
75         };
76 };
77
78 &gpio_leds_pins {
79         marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
80 };
81
82 &nand {
83         /* AMD/Spansion S34ML02G2 256MiB, OEM Layout */
84
85         partition@0 {
86                 label = "u-boot";
87                 reg = <0x0000000 0x200000>;  /* 2MiB */
88                 read-only;
89         };
90
91         partition@200000 {
92                 label = "u_env";
93                 reg = <0x200000 0x20000>;    /* 128KiB */
94         };
95
96         partition@220000 {
97                 label = "s_env";
98                 reg = <0x220000 0x40000>;    /* 256KiB */
99         };
100
101         partition@7e0000 {
102                 label = "devinfo";
103                 reg = <0x7e0000 0x40000>;   /* 256KiB */
104                 read-only;
105         };
106
107         partition@820000 {
108                 label = "sysdiag";
109                 reg = <0x820000 0x1e0000>;   /* 1920KiB */
110                 read-only;
111         };
112
113         /* kernel1 overlaps with rootfs1 by design */
114         partition@a00000 {
115                 label = "kernel1";
116                 reg = <0xa00000 0x5000000>;  /* 80MiB */
117         };
118
119         partition@1000000 {
120                 label = "rootfs1";
121                 reg = <0x1000000 0x4a00000>;  /* 74MiB */
122         };
123
124         /* kernel2 overlaps with rootfs2 by design */
125         partition@5a00000 {
126                 label = "kernel2";
127                 reg = <0x5a00000 0x5000000>; /* 80MiB */
128         };
129
130         partition@6000000 {
131                 label = "rootfs2";
132                 reg = <0x6000000 0x4a00000>; /* 74MiB */
133         };
134
135         /*
136          * 86MiB, last MiB is for the BBT, not writable
137          */
138         partition@aa00000 {
139                 label = "syscfg";
140                 reg = <0xaa00000 0x5600000>;
141         };
142
143         /*
144          * Unused area between "s_env" and "devinfo".
145          * Moved here because otherwise the renumbered
146          * partitions would break the bootloader
147          * supplied bootargs
148          */
149         partition@180000 {
150                 label = "unused_area";
151                 reg = <0x260000 0x5c0000>;   /* 5.75MiB */
152         };
153 };
154
155 &sdhci {
156         pinctrl-names = "default";
157         pinctrl-0 = <&sdhci_pins>;
158         no-1-8-v;
159         non-removable;
160         wp-inverted;
161         bus-width = <8>;
162         status = "okay";
163 };
164
165 &usb3_1_vbus {
166         gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
167 };
168
169 &usb3_1_vbus_pins {
170         marvell,pins = "mpp44";
171 };