OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | From 74942cd5dfe4ac4fd982fe58118bc69346a2bd18 Mon Sep 17 00:00:00 2001 |
2 | From: Icenowy Zheng <icenowy@aosc.io> |
||
3 | Date: Sun, 12 Nov 2017 20:41:29 +0800 |
||
4 | Subject: [PATCH] ARM: dts: sun8i: add support for Orange Pi R1 |
||
5 | |||
6 | Orange Pi R1 is a board design based on Orange Pi Zero, with XR819 Wi-Fi |
||
7 | chip replaced by RTL8189ETV Wi-Fi module and the USB Type-A jack |
||
8 | replaced by an onboard USB RTL8152B USB-Ethernet adapter. |
||
9 | |||
10 | Add support for it. |
||
11 | |||
12 | Signed-off-by: Icenowy Zheng <icenowy@aosc.io> |
||
13 | Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> |
||
14 | --- |
||
15 | arch/arm/boot/dts/Makefile | 1 + |
||
16 | arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts | 73 +++++++++++++++++++++++++ |
||
17 | 2 files changed, 74 insertions(+) |
||
18 | create mode 100644 arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts |
||
19 | |||
20 | --- a/arch/arm/boot/dts/Makefile |
||
21 | +++ b/arch/arm/boot/dts/Makefile |
||
22 | @@ -916,6 +916,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ |
||
23 | sun8i-a83t-allwinner-h8homlet-v2.dtb \ |
||
24 | sun8i-a83t-bananapi-m3.dtb \ |
||
25 | sun8i-a83t-cubietruck-plus.dtb \ |
||
26 | + sun8i-h2-plus-orangepi-r1.dtb \ |
||
27 | sun8i-h2-plus-orangepi-zero.dtb \ |
||
28 | sun8i-h3-bananapi-m2-plus.dtb \ |
||
29 | sun8i-h3-beelink-x2.dtb \ |
||
30 | --- /dev/null |
||
31 | +++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dts |
||
32 | @@ -0,0 +1,73 @@ |
||
33 | +/* |
||
34 | + * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.xyz> |
||
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 as |
||
43 | + * published by the Free Software Foundation; either version 2 of the |
||
44 | + * License, or (at your option) any later version. |
||
45 | + * |
||
46 | + * This file is distributed in the hope that it will be useful, |
||
47 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
48 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
49 | + * GNU General Public License for more details. |
||
50 | + * |
||
51 | + * Or, alternatively, |
||
52 | + * |
||
53 | + * b) Permission is hereby granted, free of charge, to any person |
||
54 | + * obtaining a copy of this software and associated documentation |
||
55 | + * files (the "Software"), to deal in the Software without |
||
56 | + * restriction, including without limitation the rights to use, |
||
57 | + * copy, modify, merge, publish, distribute, sublicense, and/or |
||
58 | + * sell copies of the Software, and to permit persons to whom the |
||
59 | + * Software is furnished to do so, subject to the following |
||
60 | + * conditions: |
||
61 | + * |
||
62 | + * The above copyright notice and this permission notice shall be |
||
63 | + * included in all copies or substantial portions of the Software. |
||
64 | + * |
||
65 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||
66 | + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
||
67 | + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||
68 | + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
||
69 | + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
||
70 | + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
||
71 | + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
||
72 | + * OTHER DEALINGS IN THE SOFTWARE. |
||
73 | + */ |
||
74 | + |
||
75 | +/* Orange Pi R1 is based on Orange Pi Zero design */ |
||
76 | +#include "sun8i-h2-plus-orangepi-zero.dts" |
||
77 | + |
||
78 | +/ { |
||
79 | + model = "Xunlong Orange Pi R1"; |
||
80 | + compatible = "xunlong,orangepi-r1", "allwinner,sun8i-h2-plus"; |
||
81 | + |
||
82 | + /delete-node/ reg_vcc_wifi; |
||
83 | + |
||
84 | + aliases { |
||
85 | + ethernet1 = &rtl8189etv; |
||
86 | + }; |
||
87 | +}; |
||
88 | + |
||
89 | +&ohci1 { |
||
90 | + /* |
||
91 | + * RTL8152B USB-Ethernet adapter is connected to USB1, |
||
92 | + * and it's a USB 2.0 device. So the OHCI1 controller |
||
93 | + * can be left disabled. |
||
94 | + */ |
||
95 | + status = "disabled"; |
||
96 | +}; |
||
97 | + |
||
98 | +&mmc1 { |
||
99 | + vmmc-supply = <®_vcc3v3>; |
||
100 | + vqmmc-supply = <®_vcc3v3>; |
||
101 | + |
||
102 | + rtl8189etv: sdio_wifi@1 { |
||
103 | + reg = <1>; |
||
104 | + }; |
||
105 | +}; |