stihxxx-b2120.dtsi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014 STMicroelectronics (R&D) Limited.
  4. * Author: Giuseppe Cavallaro <[email protected]>
  5. */
  6. #include <dt-bindings/clock/stih407-clks.h>
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/media/c8sectpfe.h>
  9. / {
  10. leds {
  11. compatible = "gpio-leds";
  12. red {
  13. label = "Front Panel LED";
  14. gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
  15. linux,default-trigger = "heartbeat";
  16. };
  17. green {
  18. gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
  19. default-state = "off";
  20. };
  21. };
  22. sound: sound {
  23. compatible = "simple-audio-card";
  24. simple-audio-card,name = "STI-B2120";
  25. status = "okay";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. simple-audio-card,dai-link@0 {
  29. reg = <0>;
  30. /* HDMI */
  31. format = "i2s";
  32. mclk-fs = <128>;
  33. cpu {
  34. sound-dai = <&sti_uni_player0>;
  35. };
  36. codec {
  37. sound-dai = <&sti_hdmi>;
  38. };
  39. };
  40. simple-audio-card,dai-link@1 {
  41. reg = <1>;
  42. /* DAC */
  43. format = "i2s";
  44. mclk-fs = <256>;
  45. frame-inversion;
  46. cpu {
  47. sound-dai = <&sti_uni_player2>;
  48. };
  49. codec {
  50. sound-dai = <&sti_sasg_codec 1>;
  51. };
  52. };
  53. simple-audio-card,dai-link@2 {
  54. reg = <2>;
  55. /* SPDIF */
  56. format = "left_j";
  57. mclk-fs = <128>;
  58. cpu {
  59. sound-dai = <&sti_uni_player3>;
  60. };
  61. codec {
  62. sound-dai = <&sti_sasg_codec 0>;
  63. };
  64. };
  65. };
  66. miphy28lp_phy: miphy28lp {
  67. phy_port0: port@9b22000 {
  68. st,osc-rdy;
  69. };
  70. phy_port1: port@9b2a000 {
  71. st,osc-force-ext;
  72. };
  73. };
  74. soc {
  75. sbc_serial0: serial@9530000 {
  76. status = "okay";
  77. };
  78. pwm0: pwm@9810000 {
  79. status = "okay";
  80. };
  81. pwm1: pwm@9510000 {
  82. status = "okay";
  83. };
  84. ssc2: i2c@9842000 {
  85. status = "okay";
  86. clock-frequency = <100000>;
  87. st,i2c-min-scl-pulse-width-us = <0>;
  88. st,i2c-min-sda-pulse-width-us = <5>;
  89. };
  90. ssc3: i2c@9843000 {
  91. status = "okay";
  92. clock-frequency = <100000>;
  93. st,i2c-min-scl-pulse-width-us = <0>;
  94. st,i2c-min-sda-pulse-width-us = <5>;
  95. };
  96. i2c@9844000 {
  97. status = "okay";
  98. };
  99. i2c@9845000 {
  100. status = "okay";
  101. };
  102. i2c@9540000 {
  103. status = "okay";
  104. };
  105. mmc0: sdhci@9060000 {
  106. non-removable;
  107. status = "okay";
  108. };
  109. mmc1: sdhci@9080000 {
  110. status = "okay";
  111. };
  112. /* SSC11 to HDMI */
  113. hdmiddc: i2c@9541000 {
  114. status = "okay";
  115. /* HDMI V1.3a supports Standard mode only */
  116. clock-frequency = <100000>;
  117. st,i2c-min-scl-pulse-width-us = <0>;
  118. st,i2c-min-sda-pulse-width-us = <5>;
  119. };
  120. st_dwc3: dwc3@8f94000 {
  121. status = "okay";
  122. };
  123. ethernet0: dwmac@9630000 {
  124. st,tx-retime-src = "clkgen";
  125. status = "okay";
  126. phy-mode = "rgmii";
  127. fixed-link = <0 1 1000 0 0>;
  128. };
  129. demux@8a20000 {
  130. compatible = "st,stih407-c8sectpfe";
  131. status = "okay";
  132. reg = <0x08a20000 0x10000>,
  133. <0x08a00000 0x4000>;
  134. reg-names = "c8sectpfe", "c8sectpfe-ram";
  135. interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>,
  136. <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
  137. interrupt-names = "c8sectpfe-error-irq",
  138. "c8sectpfe-idle-irq";
  139. pinctrl-0 = <&pinctrl_tsin0_serial>;
  140. pinctrl-1 = <&pinctrl_tsin0_parallel>;
  141. pinctrl-2 = <&pinctrl_tsin3_serial>;
  142. pinctrl-3 = <&pinctrl_tsin4_serial_alt3>;
  143. pinctrl-4 = <&pinctrl_tsin5_serial_alt1>;
  144. pinctrl-names = "tsin0-serial",
  145. "tsin0-parallel",
  146. "tsin3-serial",
  147. "tsin4-serial",
  148. "tsin5-serial";
  149. clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>;
  150. clock-names = "c8sectpfe";
  151. /* tsin0 is TSA on NIMA */
  152. tsin0: port {
  153. tsin-num = <0>;
  154. serial-not-parallel;
  155. i2c-bus = <&ssc2>;
  156. reset-gpios = <&pio15 4 GPIO_ACTIVE_LOW>;
  157. dvb-card = <STV0367_TDA18212_NIMA_1>;
  158. };
  159. };
  160. sti_uni_player0: sti-uni-player@8d80000 {
  161. status = "okay";
  162. };
  163. sti_uni_player2: sti-uni-player@8d82000 {
  164. status = "okay";
  165. };
  166. sti_uni_player3: sti-uni-player@8d85000 {
  167. status = "okay";
  168. };
  169. syscfg_core: core-syscfg@92b0000 {
  170. sti_sasg_codec: sti-sasg-codec {
  171. status = "okay";
  172. pinctrl-names = "default";
  173. pinctrl-0 = <&pinctrl_spdif_out>;
  174. };
  175. };
  176. };
  177. };