Skip to content

Commit 60d0426

Browse files
wensmripard
authored andcommitted
arm64: dts: allwinner: h5: Add Libre Computer ALL-H5-CC H5 board
The Libre Computer ALL-H5-CC board is an upgraded version of the ALL-H3-CC. Changes include: - Gigabit Ethernet via external RTL8211E Ethernet PHY - 16 MiB SPI NOR flash memory - PoE tap header - Line out jack removed Only H5 variant test samples were made available, and the vendor is not certain whether other SoC variants would be made or not. Furthermore the board is a minor upgrade compared to the ALL-H3-CC. Thus the device tree simply includes the one for the ALL-H3-CC, and adds the changes on top. Signed-off-by: Chen-Yu Tsai <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 554581b commit 60d0426

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

Documentation/devicetree/bindings/arm/sunxi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,11 @@ properties:
347347
- const: libretech,all-h3-it-h5
348348
- const: allwinner,sun50i-h5
349349

350+
- description: Libre Computer Board ALL-H5-CC H5
351+
items:
352+
- const: libretech,all-h5-cc-h5
353+
- const: allwinner,sun50i-h5
354+
350355
- description: Lichee Pi One
351356
items:
352357
- const: licheepi,licheepi-one

arch/arm64/boot/dts/allwinner/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-bananapi-m2-plus-v1.2.dtb
1616
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-emlid-neutis-n5-devboard.dtb
1717
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-cc.dtb
1818
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h3-it.dtb
19+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-libretech-all-h5-cc.dtb
1920
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo2.dtb
2021
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-nanopi-neo-plus2.dtb
2122
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
// Copyright (C) 2020 Chen-Yu Tsai <[email protected]>
3+
4+
#include "sun50i-h5-libretech-all-h3-cc.dts"
5+
6+
/ {
7+
model = "Libre Computer Board ALL-H5-CC H5";
8+
compatible = "libretech,all-h5-cc-h5", "allwinner,sun50i-h5";
9+
10+
aliases {
11+
spi0 = &spi0;
12+
};
13+
14+
reg_gmac_3v3: gmac-3v3 {
15+
compatible = "regulator-fixed";
16+
regulator-name = "gmac-3v3";
17+
regulator-min-microvolt = <3300000>;
18+
regulator-max-microvolt = <3300000>;
19+
startup-delay-us = <5000>;
20+
enable-active-high;
21+
gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
22+
vin-supply = <&reg_vcc5v0>;
23+
};
24+
};
25+
26+
&codec {
27+
/* No line out; only onboard microphone */
28+
allwinner,audio-routing =
29+
"MIC1", "Mic",
30+
"Mic", "MBIAS";
31+
};
32+
33+
/* This board has external PHY */
34+
&emac {
35+
pinctrl-names = "default";
36+
pinctrl-0 = <&emac_rgmii_pins>;
37+
phy-supply = <&reg_gmac_3v3>;
38+
phy-handle = <&ext_rgmii_phy>;
39+
phy-mode = "rgmii";
40+
/delete-property/ allwinner,leds-active-low;
41+
status = "okay";
42+
};
43+
44+
&external_mdio {
45+
ext_rgmii_phy: ethernet-phy@1 {
46+
compatible = "ethernet-phy-ieee802.3-c22";
47+
reg = <1>;
48+
};
49+
};
50+
51+
&spi0 {
52+
status = "okay";
53+
54+
flash@0 {
55+
#address-cells = <1>;
56+
#size-cells = <1>;
57+
compatible = "jedec,spi-nor";
58+
reg = <0>;
59+
spi-max-frequency = <50000000>;
60+
};
61+
};

0 commit comments

Comments
 (0)