0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 // Copyright (C) 2020 Chen-Yu Tsai <wens@csie.org>
0003
0004 #include "sun50i-h5-libretech-all-h3-cc.dts"
0005
0006 / {
0007 model = "Libre Computer Board ALL-H5-CC H5";
0008 compatible = "libretech,all-h5-cc-h5", "allwinner,sun50i-h5";
0009
0010 aliases {
0011 spi0 = &spi0;
0012 };
0013
0014 reg_gmac_3v3: gmac-3v3 {
0015 compatible = "regulator-fixed";
0016 regulator-name = "gmac-3v3";
0017 regulator-min-microvolt = <3300000>;
0018 regulator-max-microvolt = <3300000>;
0019 startup-delay-us = <5000>;
0020 enable-active-high;
0021 gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
0022 vin-supply = <®_vcc5v0>;
0023 };
0024 };
0025
0026 &codec {
0027 /* No line out; only onboard microphone */
0028 allwinner,audio-routing =
0029 "MIC1", "Mic",
0030 "Mic", "MBIAS";
0031 };
0032
0033 /* This board has external PHY */
0034 &emac {
0035 pinctrl-names = "default";
0036 pinctrl-0 = <&emac_rgmii_pins>;
0037 phy-supply = <®_gmac_3v3>;
0038 phy-handle = <&ext_rgmii_phy>;
0039 phy-mode = "rgmii-id";
0040 /delete-property/ allwinner,leds-active-low;
0041 status = "okay";
0042 };
0043
0044 &external_mdio {
0045 ext_rgmii_phy: ethernet-phy@1 {
0046 compatible = "ethernet-phy-ieee802.3-c22";
0047 reg = <1>;
0048 };
0049 };
0050
0051 &spi0 {
0052 status = "okay";
0053
0054 flash@0 {
0055 #address-cells = <1>;
0056 #size-cells = <1>;
0057 compatible = "jedec,spi-nor";
0058 reg = <0>;
0059 spi-max-frequency = <50000000>;
0060 };
0061 };