imx8mm-emcon-avari.dtsi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // SPDX-License-Identifier: (GPL-2.0 or MIT)
  2. //
  3. // Copyright (C) 2021 emtrion GmbH
  4. // Author: Frank Erdrich <[email protected]>
  5. //
  6. / {
  7. aliases {
  8. boardid = &boardID;
  9. mmc0 = &usdhc1;
  10. mmc1 = &usdhc2;
  11. };
  12. chosen {
  13. stdout-path = &uart1;
  14. };
  15. reg_wall_5p0: regulator-wall5p0 {
  16. compatible = "regulator-fixed";
  17. regulator-name = "Main-Supply";
  18. regulator-min-microvolt = <5000000>;
  19. regulator-max-microvolt = <5000000>;
  20. regulator-always-on;
  21. regulator-boot-on;
  22. };
  23. reg_base3p3: regulator-base3p3 {
  24. compatible = "regulator-fixed";
  25. vin-supply = <&reg_wall_5p0>;
  26. regulator-name = "3V3-avari";
  27. regulator-min-microvolt = <3300000>;
  28. regulator-max-microvolt = <3300000>;
  29. regulator-always-on;
  30. regulator-boot-on;
  31. };
  32. reg_base1p5: regulator-base1p5 {
  33. compatible = "regulator-fixed";
  34. vin-supply = <&reg_base3p3>;
  35. regulator-name = "1V5-avari";
  36. regulator-min-microvolt = <1500000>;
  37. regulator-max-microvolt = <1500000>;
  38. regulator-always-on;
  39. regulator-boot-on;
  40. };
  41. reg_usb_otg: regulator-otgvbus {
  42. compatible = "regulator-fixed";
  43. vin-supply = <&reg_wall_5p0>;
  44. regulator-name = "OTG_VBUS";
  45. regulator-min-microvolt = <5000000>;
  46. regulator-max-microvolt = <5000000>;
  47. gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
  48. regulator-always-on;
  49. };
  50. clk_codec: clock-codec {
  51. compatible = "fixed-clock";
  52. #clock-cells = <0>;
  53. clock-frequency = <12000000>;
  54. };
  55. sound {
  56. compatible = "simple-audio-card";
  57. simple-audio-card,name = "SGTL5000-Card";
  58. simple-audio-card,format = "i2s";
  59. simple-audio-card,bitclock-master = <&codec_dai>;
  60. simple-audio-card,frame-master = <&codec_dai>;
  61. simple-audio-card,widgets = "Headphone", "Headphone Jack";
  62. simple-audio-card,routing = "Headphone Jack", "HP_OUT";
  63. cpu_dai: simple-audio-card,cpu {
  64. sound-dai = <&sai2>;
  65. };
  66. codec_dai: simple-audio-card,codec {
  67. sound-dai = <&sgtl5000>;
  68. };
  69. };
  70. };
  71. &ecspi1 {
  72. status = "okay";
  73. };
  74. &i2c2 {
  75. status = "okay";
  76. };
  77. &i2c1 {
  78. clock-frequency = <100000>;
  79. status = "okay";
  80. sgtl5000: audio-codec@a {
  81. compatible = "fsl,sgtl5000";
  82. reg = <0x0a>;
  83. #sound-dai-cells = <0>;
  84. clocks = <&clk_codec>;
  85. VDDA-supply = <&reg_base3p3>;
  86. VDDIO-supply = <&reg_base3p3>;
  87. };
  88. boardID: gpio@3a {
  89. compatible = "nxp,pca8574";
  90. reg = <0x3a>;
  91. gpio-controller;
  92. #gpio-cells = <1>;
  93. };
  94. };
  95. &sai2 {
  96. status = "okay";
  97. };
  98. &uart2 {
  99. uart-has-rtscts;
  100. status = "okay";
  101. };
  102. &uart3 {
  103. status = "okay";
  104. };
  105. &uart4 {
  106. status = "okay";
  107. };
  108. &usbotg1 {
  109. status = "okay";
  110. };
  111. &usbotg2 {
  112. dr_mode = "host";
  113. status = "disabled";
  114. };
  115. &usdhc2 {
  116. status = "okay";
  117. };