sun50i-h5-libretech-all-h5-cc.dts 1.2 KB

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