1c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c66ec88fSEmmanuel Vadot// Copyright (C) 2020 Chen-Yu Tsai <wens@csie.org> 3c66ec88fSEmmanuel Vadot 4c66ec88fSEmmanuel Vadot#include "sun50i-h5-libretech-all-h3-cc.dts" 5c66ec88fSEmmanuel Vadot 6c66ec88fSEmmanuel Vadot/ { 7c66ec88fSEmmanuel Vadot model = "Libre Computer Board ALL-H5-CC H5"; 8c66ec88fSEmmanuel Vadot compatible = "libretech,all-h5-cc-h5", "allwinner,sun50i-h5"; 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadot aliases { 11c66ec88fSEmmanuel Vadot spi0 = &spi0; 12c66ec88fSEmmanuel Vadot }; 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot reg_gmac_3v3: gmac-3v3 { 15c66ec88fSEmmanuel Vadot compatible = "regulator-fixed"; 16c66ec88fSEmmanuel Vadot regulator-name = "gmac-3v3"; 17c66ec88fSEmmanuel Vadot regulator-min-microvolt = <3300000>; 18c66ec88fSEmmanuel Vadot regulator-max-microvolt = <3300000>; 19c66ec88fSEmmanuel Vadot startup-delay-us = <5000>; 20c66ec88fSEmmanuel Vadot enable-active-high; 21c66ec88fSEmmanuel Vadot gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; 22c66ec88fSEmmanuel Vadot vin-supply = <®_vcc5v0>; 23c66ec88fSEmmanuel Vadot }; 24c66ec88fSEmmanuel Vadot}; 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot&codec { 27c66ec88fSEmmanuel Vadot /* No line out; only onboard microphone */ 28c66ec88fSEmmanuel Vadot allwinner,audio-routing = 29c66ec88fSEmmanuel Vadot "MIC1", "Mic", 30c66ec88fSEmmanuel Vadot "Mic", "MBIAS"; 31c66ec88fSEmmanuel Vadot}; 32c66ec88fSEmmanuel Vadot 33c66ec88fSEmmanuel Vadot/* This board has external PHY */ 34c66ec88fSEmmanuel Vadot&emac { 35c66ec88fSEmmanuel Vadot pinctrl-names = "default"; 36c66ec88fSEmmanuel Vadot pinctrl-0 = <&emac_rgmii_pins>; 37c66ec88fSEmmanuel Vadot phy-supply = <®_gmac_3v3>; 38c66ec88fSEmmanuel Vadot phy-handle = <&ext_rgmii_phy>; 39*6be33864SEmmanuel Vadot phy-mode = "rgmii-id"; 40c66ec88fSEmmanuel Vadot /delete-property/ allwinner,leds-active-low; 41c66ec88fSEmmanuel Vadot status = "okay"; 42c66ec88fSEmmanuel Vadot}; 43c66ec88fSEmmanuel Vadot 44c66ec88fSEmmanuel Vadot&external_mdio { 45c66ec88fSEmmanuel Vadot ext_rgmii_phy: ethernet-phy@1 { 46c66ec88fSEmmanuel Vadot compatible = "ethernet-phy-ieee802.3-c22"; 47c66ec88fSEmmanuel Vadot reg = <1>; 48c66ec88fSEmmanuel Vadot }; 49c66ec88fSEmmanuel Vadot}; 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot&spi0 { 52c66ec88fSEmmanuel Vadot status = "okay"; 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel Vadot flash@0 { 55c66ec88fSEmmanuel Vadot #address-cells = <1>; 56c66ec88fSEmmanuel Vadot #size-cells = <1>; 57c66ec88fSEmmanuel Vadot compatible = "jedec,spi-nor"; 58c66ec88fSEmmanuel Vadot reg = <0>; 59c66ec88fSEmmanuel Vadot spi-max-frequency = <50000000>; 60c66ec88fSEmmanuel Vadot }; 61c66ec88fSEmmanuel Vadot}; 62