rz-smarc-common.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. /*
  3. * Device Tree Source for the RZ/{G2L,G2LC,V2L} SMARC EVK common parts
  4. *
  5. * Copyright (C) 2022 Renesas Electronics Corp.
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
  9. /*
  10. * SSI-WM8978
  11. *
  12. * This command is required when Playback/Capture
  13. *
  14. * amixer cset name='Left Input Mixer L2 Switch' on
  15. * amixer cset name='Right Input Mixer R2 Switch' on
  16. * amixer cset name='Headphone Playback Volume' 100
  17. * amixer cset name='PCM Volume' 100%
  18. * amixer cset name='Input PGA Volume' 25
  19. *
  20. */
  21. / {
  22. aliases {
  23. serial0 = &scif0;
  24. i2c0 = &i2c0;
  25. i2c1 = &i2c1;
  26. };
  27. chosen {
  28. stdout-path = "serial0:115200n8";
  29. };
  30. audio_mclock: audio_mclock {
  31. compatible = "fixed-clock";
  32. #clock-cells = <0>;
  33. clock-frequency = <11289600>;
  34. };
  35. snd_rzg2l: sound {
  36. compatible = "simple-audio-card";
  37. simple-audio-card,format = "i2s";
  38. simple-audio-card,bitclock-master = <&cpu_dai>;
  39. simple-audio-card,frame-master = <&cpu_dai>;
  40. simple-audio-card,mclk-fs = <256>;
  41. simple-audio-card,widgets = "Microphone", "Microphone Jack";
  42. simple-audio-card,routing =
  43. "L2", "Mic Bias",
  44. "R2", "Mic Bias",
  45. "Mic Bias", "Microphone Jack";
  46. cpu_dai: simple-audio-card,cpu {
  47. };
  48. codec_dai: simple-audio-card,codec {
  49. clocks = <&audio_mclock>;
  50. sound-dai = <&wm8978>;
  51. };
  52. };
  53. usb0_vbus_otg: regulator-usb0-vbus-otg {
  54. compatible = "regulator-fixed";
  55. regulator-name = "USB0_VBUS_OTG";
  56. regulator-min-microvolt = <5000000>;
  57. regulator-max-microvolt = <5000000>;
  58. };
  59. vccq_sdhi1: regulator-vccq-sdhi1 {
  60. compatible = "regulator-gpio";
  61. regulator-name = "SDHI1 VccQ";
  62. regulator-min-microvolt = <1800000>;
  63. regulator-max-microvolt = <3300000>;
  64. gpios-states = <1>;
  65. states = <3300000 1>, <1800000 0>;
  66. };
  67. };
  68. &audio_clk1{
  69. clock-frequency = <11289600>;
  70. };
  71. &audio_clk2{
  72. clock-frequency = <12288000>;
  73. };
  74. &canfd {
  75. pinctrl-0 = <&can0_pins &can1_pins>;
  76. pinctrl-names = "default";
  77. status = "okay";
  78. channel0 {
  79. status = "okay";
  80. };
  81. channel1 {
  82. status = "okay";
  83. };
  84. };
  85. &ehci0 {
  86. dr_mode = "otg";
  87. status = "okay";
  88. };
  89. &ehci1 {
  90. status = "okay";
  91. };
  92. &hsusb {
  93. dr_mode = "otg";
  94. status = "okay";
  95. };
  96. &i2c0 {
  97. pinctrl-0 = <&i2c0_pins>;
  98. pinctrl-names = "default";
  99. status = "okay";
  100. };
  101. &i2c1 {
  102. pinctrl-0 = <&i2c1_pins>;
  103. pinctrl-names = "default";
  104. status = "okay";
  105. };
  106. &ohci0 {
  107. dr_mode = "otg";
  108. status = "okay";
  109. };
  110. &ohci1 {
  111. status = "okay";
  112. };
  113. &phyrst {
  114. status = "okay";
  115. };
  116. &scif0 {
  117. pinctrl-0 = <&scif0_pins>;
  118. pinctrl-names = "default";
  119. status = "okay";
  120. };
  121. &sdhi1 {
  122. pinctrl-0 = <&sdhi1_pins>;
  123. pinctrl-1 = <&sdhi1_pins_uhs>;
  124. pinctrl-names = "default", "state_uhs";
  125. vmmc-supply = <&reg_3p3v>;
  126. vqmmc-supply = <&vccq_sdhi1>;
  127. bus-width = <4>;
  128. sd-uhs-sdr50;
  129. sd-uhs-sdr104;
  130. status = "okay";
  131. };
  132. &spi1 {
  133. pinctrl-0 = <&spi1_pins>;
  134. pinctrl-names = "default";
  135. status = "okay";
  136. };
  137. &usb2_phy0 {
  138. pinctrl-0 = <&usb0_pins>;
  139. pinctrl-names = "default";
  140. vbus-supply = <&usb0_vbus_otg>;
  141. status = "okay";
  142. };
  143. &usb2_phy1 {
  144. pinctrl-0 = <&usb1_pins>;
  145. pinctrl-names = "default";
  146. status = "okay";
  147. };