mvebu: Add basic support for WRT1900AC (v1) and Turris Omnia (pre 2019)
[librecmc/librecmc.git] / target / linux / mvebu / patches-4.14 / 412-ARM-dts-armada388-clearfog-emmc-on-clearfog-base.patch
1 From 8137da20701c776ad3481115305a5e8e410871ba Mon Sep 17 00:00:00 2001
2 From: Russell King <rmk+kernel@armlinux.org.uk>
3 Date: Tue, 29 Nov 2016 10:15:45 +0000
4 Subject: ARM: dts: armada388-clearfog: emmc on clearfog base
5
6 Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
7 ---
8  arch/arm/boot/dts/armada-388-clearfog-base.dts     |  1 +
9  .../dts/armada-38x-solidrun-microsom-emmc.dtsi     | 62 ++++++++++++++++++++++
10  2 files changed, 63 insertions(+)
11  create mode 100644 arch/arm/boot/dts/armada-38x-solidrun-microsom-emmc.dtsi
12
13 --- a/arch/arm/boot/dts/armada-388-clearfog-base.dts
14 +++ b/arch/arm/boot/dts/armada-388-clearfog-base.dts
15 @@ -48,6 +48,7 @@
16  
17  /dts-v1/;
18  #include "armada-388-clearfog.dtsi"
19 +#include "armada-38x-solidrun-microsom-emmc.dtsi"
20  
21  / {
22         model = "SolidRun Clearfog Base A1";
23 --- /dev/null
24 +++ b/arch/arm/boot/dts/armada-38x-solidrun-microsom-emmc.dtsi
25 @@ -0,0 +1,62 @@
26 +/*
27 + * Device Tree file for SolidRun Armada 38x Microsom add-on for eMMC
28 + *
29 + *  Copyright (C) 2015 Russell King
30 + *
31 + * This board is in development; the contents of this file work with
32 + * the A1 rev 2.0 of the board, which does not represent final
33 + * production board.  Things will change, don't expect this file to
34 + * remain compatible info the future.
35 + *
36 + * This file is dual-licensed: you can use it either under the terms
37 + * of the GPL or the X11 license, at your option. Note that this dual
38 + * licensing only applies to this file, and not this project as a
39 + * whole.
40 + *
41 + *  a) This file is free software; you can redistribute it and/or
42 + *     modify it under the terms of the GNU General Public License
43 + *     version 2 as published by the Free Software Foundation.
44 + *
45 + *     This file is distributed in the hope that it will be useful
46 + *     but WITHOUT ANY WARRANTY; without even the implied warranty of
47 + *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48 + *     GNU General Public License for more details.
49 + *
50 + * Or, alternatively
51 + *
52 + *  b) Permission is hereby granted, free of charge, to any person
53 + *     obtaining a copy of this software and associated documentation
54 + *     files (the "Software"), to deal in the Software without
55 + *     restriction, including without limitation the rights to use
56 + *     copy, modify, merge, publish, distribute, sublicense, and/or
57 + *     sell copies of the Software, and to permit persons to whom the
58 + *     Software is furnished to do so, subject to the following
59 + *     conditions:
60 + *
61 + *     The above copyright notice and this permission notice shall be
62 + *     included in all copies or substantial portions of the Software.
63 + *
64 + *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
65 + *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
66 + *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
67 + *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
68 + *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
69 + *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
70 + *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
71 + *     OTHER DEALINGS IN THE SOFTWARE.
72 + */
73 +/ {
74 +       soc {
75 +               internal-regs {
76 +                       sdhci@d8000 {
77 +                               bus-width = <4>;
78 +                               no-1-8-v;
79 +                               non-removable;
80 +                               pinctrl-0 = <&microsom_sdhci_pins>;
81 +                               pinctrl-names = "default";
82 +                               status = "okay";
83 +                               wp-inverted;
84 +                       };
85 +               };
86 +       };
87 +};