diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-16 19:17:33 -0400 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-03-20 06:43:41 -0400 |
commit | a7affb13b271a3e451efe15e911c0c0ab2db4859 (patch) | |
tree | 0c888866db65770aaa3b640367c695a8277478d6 | |
parent | c235edcb34651023c9eb1c5c4a7cdcaf7250d02c (diff) |
arm64: allwinner: H5: Add Xunlong Orange Pi Zero Plus
The Xunlong Orange Pi Zero Plus is single board computer.
- H5 Quad-core 64-bit Cortex-A53
- 512MB DDR3
- microSD slot
- Debug TTL UART
- 1000M/100M/10M Ethernet RJ45
- Realtek RTL8189FTV
- Spi flash (2MB)
- One USB 2.0 HOST, One USB 2.0 OTG
This is based on a patch from armbian:
https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/sunxi-add-orangepi-zero-plus.patch
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
-rw-r--r-- | arch/arm64/boot/dts/allwinner/Makefile | 1 | ||||
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | 143 |
2 files changed, 144 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index f505227b0250..915604e46e88 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile | |||
@@ -7,6 +7,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-pine64-plus.dtb sun50i-a64-pine64.dtb | |||
7 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb | 7 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-a64-sopine-baseboard.dtb |
8 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb | 8 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb |
9 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb | 9 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb |
10 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb | ||
10 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb | 11 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb |
11 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb | 12 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb |
12 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb | 13 | dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb |
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts new file mode 100644 index 000000000000..1238de25a969 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus.dts | |||
@@ -0,0 +1,143 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2016 ARM Ltd. | ||
3 | * Copyright (C) 2018 Hauke Mehrtens <hauke@hauke-m.de> | ||
4 | * | ||
5 | * SPDX-License-Identifier: (GPL-2.0+ OR X11) | ||
6 | */ | ||
7 | |||
8 | /dts-v1/; | ||
9 | #include "sun50i-h5.dtsi" | ||
10 | |||
11 | #include <dt-bindings/gpio/gpio.h> | ||
12 | #include <dt-bindings/input/input.h> | ||
13 | #include <dt-bindings/pinctrl/sun4i-a10.h> | ||
14 | |||
15 | / { | ||
16 | model = "Xunlong Orange Pi Zero Plus"; | ||
17 | compatible = "xunlong,orangepi-zero-plus", "allwinner,sun50i-h5"; | ||
18 | |||
19 | reg_vcc3v3: vcc3v3 { | ||
20 | compatible = "regulator-fixed"; | ||
21 | regulator-name = "vcc3v3"; | ||
22 | regulator-min-microvolt = <3300000>; | ||
23 | regulator-max-microvolt = <3300000>; | ||
24 | }; | ||
25 | |||
26 | aliases { | ||
27 | ethernet0 = &emac; | ||
28 | ethernet1 = &rtl8189ftv; | ||
29 | serial0 = &uart0; | ||
30 | }; | ||
31 | |||
32 | chosen { | ||
33 | stdout-path = "serial0:115200n8"; | ||
34 | }; | ||
35 | |||
36 | leds { | ||
37 | compatible = "gpio-leds"; | ||
38 | |||
39 | pwr { | ||
40 | label = "orangepi:green:pwr"; | ||
41 | gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */ | ||
42 | default-state = "on"; | ||
43 | }; | ||
44 | |||
45 | status { | ||
46 | label = "orangepi:red:status"; | ||
47 | gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */ | ||
48 | }; | ||
49 | }; | ||
50 | |||
51 | reg_gmac_3v3: gmac-3v3 { | ||
52 | compatible = "regulator-fixed"; | ||
53 | regulator-name = "gmac-3v3"; | ||
54 | regulator-min-microvolt = <3300000>; | ||
55 | regulator-max-microvolt = <3300000>; | ||
56 | startup-delay-us = <100000>; | ||
57 | enable-active-high; | ||
58 | gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ | ||
59 | }; | ||
60 | }; | ||
61 | |||
62 | &ehci0 { | ||
63 | status = "okay"; | ||
64 | }; | ||
65 | |||
66 | &ehci1 { | ||
67 | status = "okay"; | ||
68 | }; | ||
69 | |||
70 | &emac { | ||
71 | pinctrl-names = "default"; | ||
72 | pinctrl-0 = <&emac_rgmii_pins>; | ||
73 | phy-supply = <®_gmac_3v3>; | ||
74 | phy-handle = <&ext_rgmii_phy>; | ||
75 | phy-mode = "rgmii"; | ||
76 | status = "okay"; | ||
77 | }; | ||
78 | |||
79 | &external_mdio { | ||
80 | ext_rgmii_phy: ethernet-phy@1 { | ||
81 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
82 | reg = <1>; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | &mmc0 { | ||
87 | vmmc-supply = <®_vcc3v3>; | ||
88 | bus-width = <4>; | ||
89 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ | ||
90 | status = "okay"; | ||
91 | }; | ||
92 | |||
93 | &mmc1 { | ||
94 | vmmc-supply = <®_vcc3v3>; | ||
95 | bus-width = <4>; | ||
96 | non-removable; | ||
97 | status = "okay"; | ||
98 | |||
99 | /* | ||
100 | * Explicitly define the sdio device, so that we can add an ethernet | ||
101 | * alias for it (which e.g. makes u-boot set a mac-address). | ||
102 | */ | ||
103 | rtl8189ftv: sdio_wifi@1 { | ||
104 | reg = <1>; | ||
105 | }; | ||
106 | }; | ||
107 | |||
108 | &spi0 { | ||
109 | status = "okay"; | ||
110 | |||
111 | flash@0 { | ||
112 | #address-cells = <1>; | ||
113 | #size-cells = <1>; | ||
114 | compatible = "mxicy,mx25l1606e", "winbond,w25q128"; | ||
115 | reg = <0>; | ||
116 | spi-max-frequency = <40000000>; | ||
117 | }; | ||
118 | }; | ||
119 | |||
120 | &ohci0 { | ||
121 | status = "okay"; | ||
122 | }; | ||
123 | |||
124 | &ohci1 { | ||
125 | status = "okay"; | ||
126 | }; | ||
127 | |||
128 | &uart0 { | ||
129 | pinctrl-names = "default"; | ||
130 | pinctrl-0 = <&uart0_pins_a>; | ||
131 | status = "okay"; | ||
132 | }; | ||
133 | |||
134 | &usb_otg { | ||
135 | dr_mode = "peripheral"; | ||
136 | status = "okay"; | ||
137 | }; | ||
138 | |||
139 | &usbphy { | ||
140 | /* USB Type-A ports' VBUS is always on */ | ||
141 | usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */ | ||
142 | status = "okay"; | ||
143 | }; | ||