summaryrefslogtreecommitdiffstats
path: root/dts/src/arm64/allwinner/sun50i-h5-libretech-all-h5-cc.dts
blob: 6e30a564c87f6dc426edf9f60069df4402bdb379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
// Copyright (C) 2020 Chen-Yu Tsai <wens@csie.org>

#include "sun50i-h5-libretech-all-h3-cc.dts"

/ {
	model = "Libre Computer Board ALL-H5-CC H5";
	compatible = "libretech,all-h5-cc-h5", "allwinner,sun50i-h5";

	aliases {
		spi0 = &spi0;
	};

	reg_gmac_3v3: gmac-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "gmac-3v3";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		startup-delay-us = <5000>;
		enable-active-high;
		gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
		vin-supply = <&reg_vcc5v0>;
	};
};

&codec {
	/* No line out; only onboard microphone */
	allwinner,audio-routing =
		"MIC1", "Mic",
		"Mic",  "MBIAS";
};

/* This board has external PHY */
&emac {
	pinctrl-names = "default";
	pinctrl-0 = <&emac_rgmii_pins>;
	phy-supply = <&reg_gmac_3v3>;
	phy-handle = <&ext_rgmii_phy>;
	phy-mode = "rgmii-id";
	/delete-property/ allwinner,leds-active-low;
	status = "okay";
};

&external_mdio {
	ext_rgmii_phy: ethernet-phy@1 {
		compatible = "ethernet-phy-ieee802.3-c22";
		reg = <1>;
	};
};

&spi0  {
	status = "okay";

	flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;
	};
};