hihope-rev4.dtsi 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree Source for the HiHope RZ/G2H Rev.4.0 and
  4. * HiHope RZ/G2[MN] Rev.3.0/4.0 main board common parts
  5. *
  6. * Copyright (C) 2020 Renesas Electronics Corp.
  7. */
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include "hihope-common.dtsi"
  10. / {
  11. audio_clkout: audio-clkout {
  12. /*
  13. * This is same as <&rcar_sound 0>
  14. * but needed to avoid cs2000/rcar_sound probe dead-lock
  15. */
  16. compatible = "fixed-clock";
  17. #clock-cells = <0>;
  18. clock-frequency = <12288000>;
  19. };
  20. wlan_en_reg: regulator-wlan_en {
  21. compatible = "regulator-fixed";
  22. regulator-name = "wlan-en-regulator";
  23. regulator-min-microvolt = <1800000>;
  24. regulator-max-microvolt = <1800000>;
  25. startup-delay-us = <70000>;
  26. gpio = <&gpio4 6 GPIO_ACTIVE_HIGH>;
  27. enable-active-high;
  28. };
  29. x1801_clk: x1801-clock {
  30. compatible = "fixed-clock";
  31. #clock-cells = <0>;
  32. clock-frequency = <24576000>;
  33. };
  34. };
  35. &hscif0 {
  36. bluetooth {
  37. compatible = "ti,wl1837-st";
  38. enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
  39. };
  40. };
  41. &i2c2 {
  42. pinctrl-0 = <&i2c2_pins>;
  43. pinctrl-names = "default";
  44. status = "okay";
  45. cs2000: clk_multiplier@4f {
  46. #clock-cells = <0>;
  47. compatible = "cirrus,cs2000-cp";
  48. reg = <0x4f>;
  49. clocks = <&audio_clkout>, <&x1801_clk>;
  50. clock-names = "clk_in", "ref_clk";
  51. assigned-clocks = <&cs2000>;
  52. assigned-clock-rates = <24576000>; /* 1/1 divide */
  53. };
  54. };
  55. &pfc {
  56. i2c2_pins: i2c2 {
  57. groups = "i2c2_a";
  58. function = "i2c2";
  59. };
  60. sound_clk_pins: sound_clk {
  61. groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clkout_a";
  62. function = "audio_clk";
  63. };
  64. sound_pins: sound {
  65. groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
  66. function = "ssi";
  67. };
  68. };
  69. &rcar_sound {
  70. pinctrl-0 = <&sound_pins>, <&sound_clk_pins>;
  71. pinctrl-names = "default";
  72. status = "okay";
  73. /* Single DAI */
  74. #sound-dai-cells = <0>;
  75. /* audio_clkout0/1/2/3 */
  76. #clock-cells = <1>;
  77. clock-frequency = <12288000 11289600>;
  78. /*
  79. * Update <audio_clk_b> to <cs2000>
  80. * Switch SW2404 should be at position 1 so that clock from
  81. * CS2000 is connected to AUDIO_CLKB_A
  82. */
  83. clocks = <&cpg CPG_MOD 1005>,
  84. <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>,
  85. <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>,
  86. <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>,
  87. <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>,
  88. <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>,
  89. <&cpg CPG_MOD 1022>, <&cpg CPG_MOD 1023>,
  90. <&cpg CPG_MOD 1024>, <&cpg CPG_MOD 1025>,
  91. <&cpg CPG_MOD 1026>, <&cpg CPG_MOD 1027>,
  92. <&cpg CPG_MOD 1028>, <&cpg CPG_MOD 1029>,
  93. <&cpg CPG_MOD 1030>, <&cpg CPG_MOD 1031>,
  94. <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
  95. <&cpg CPG_MOD 1020>, <&cpg CPG_MOD 1021>,
  96. <&cpg CPG_MOD 1019>, <&cpg CPG_MOD 1018>,
  97. <&audio_clk_a>, <&cs2000>,
  98. <&audio_clk_c>,
  99. <&cpg CPG_CORE CPG_AUDIO_CLK_I>;
  100. rsnd_port: port {
  101. rsnd_endpoint: endpoint {
  102. remote-endpoint = <&dw_hdmi0_snd_in>;
  103. dai-format = "i2s";
  104. bitclock-master = <&rsnd_endpoint>;
  105. frame-master = <&rsnd_endpoint>;
  106. playback = <&ssi2>;
  107. };
  108. };
  109. };