c05273261d1f0979f6526a4b5dad1ea9d7b4338e
[buildroot.git] /
1 From 4ec28d4e1040b94c66e97aa77071c9ef3478f022 Mon Sep 17 00:00:00 2001
2 From: Chakra Divi <chakra@openedev.com>
3 Date: Thu, 6 Jul 2017 18:22:35 +0530
4 Subject: [PATCH] ARM: dts: nanopi-m1-plus : add dts to linux 4.11.5
5
6 This patch is used to add nanopi-m1-plus dts
7 file in linux source code helps to add nanopi-m1-plus
8 board support in buildroot and is part of the linux
9 main-line ; refer to the below link for info
10 [https://patchwork.kernel.org/patch/9755033]
11
12 Signed-off-by: Chakra Divi <chakra@openedev.com>
13 ---
14 arch/arm/boot/dts/Makefile | 1 +
15 arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 64 +++++++++++++++++++++++++
16 2 files changed, 65 insertions(+)
17 create mode 100644 arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
18
19 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
20 index 0118084..928e5d3 100644
21 --- a/arch/arm/boot/dts/Makefile
22 +++ b/arch/arm/boot/dts/Makefile
23 @@ -867,6 +867,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \
24 sun8i-h3-bananapi-m2-plus.dtb \
25 sun8i-h3-beelink-x2.dtb \
26 sun8i-h3-nanopi-m1.dtb \
27 + sun8i-h3-nanopi-m1-plus.dtb \
28 sun8i-h3-nanopi-neo.dtb \
29 sun8i-h3-orangepi-2.dtb \
30 sun8i-h3-orangepi-lite.dtb \
31 diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
32 new file mode 100644
33 index 0000000..8ddd1b2
34 --- /dev/null
35 +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts
36 @@ -0,0 +1,64 @@
37 +/*
38 + * Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
39 + *
40 + * This file is dual-licensed: you can use it either under the terms
41 + * of the GPL or the X11 license, at your option. Note that this dual
42 + * licensing only applies to this file, and not this project as a
43 + * whole.
44 + *
45 + * a) This file is free software; you can redistribute it and/or
46 + * modify it under the terms of the GNU General Public License as
47 + * published by the Free Software Foundation; either version 2 of the
48 + * License, or (at your option) any later version.
49 + *
50 + * This file is distributed in the hope that it will be useful,
51 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
52 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
53 + * GNU General Public License for more details.
54 + *
55 + * Or, alternatively,
56 + *
57 + * b) Permission is hereby granted, free of charge, to any person
58 + * obtaining a copy of this software and associated documentation
59 + * files (the "Software"), to deal in the Software without
60 + * restriction, including without limitation the rights to use,
61 + * copy, modify, merge, publish, distribute, sublicense, and/or
62 + * sell copies of the Software, and to permit persons to whom the
63 + * Software is furnished to do so, subject to the following
64 + * conditions:
65 + *
66 + * The above copyright notice and this permission notice shall be
67 + * included in all copies or substantial portions of the Software.
68 + *
69 + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
70 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
71 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
72 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
73 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
74 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
75 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
76 + * OTHER DEALINGS IN THE SOFTWARE.
77 + */
78 +
79 +#include "sun8i-h3-nanopi.dtsi"
80 +
81 +/ {
82 + model = "FriendlyArm NanoPi M1 Plus";
83 + compatible = "friendlyarm,nanopi-m1-plus", "allwinner,sun8i-h3";
84 +};
85 +
86 +&ehci1 {
87 + status = "okay";
88 +};
89 +
90 +&ehci2 {
91 + status = "okay";
92 +};
93 +
94 +&ohci1 {
95 + status = "okay";
96 +};
97 +
98 +&ohci2 {
99 + status = "okay";
100 +};
101 --
102 1.7.9.5
103