stih410-b2260.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*
  2. * Copyright (C) 2016 STMicroelectronics (R&D) Limited.
  3. * Author: Patrice Chotard <patrice.chotard@st.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. /dts-v1/;
  10. #include "stih410.dtsi"
  11. #include <dt-bindings/gpio/gpio.h>
  12. / {
  13. model = "STiH410 B2260";
  14. compatible = "st,stih410-b2260", "st,stih410";
  15. chosen {
  16. bootargs = "console=ttyAS1,115200 clk_ignore_unused";
  17. linux,stdout-path = &uart1;
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x40000000 0x40000000>;
  22. };
  23. aliases {
  24. ttyAS1 = &uart1;
  25. ethernet0 = &ethernet0;
  26. };
  27. soc {
  28. leds {
  29. compatible = "gpio-leds";
  30. user_green_1 {
  31. label = "User_green_1";
  32. gpios = <&pio1 3 GPIO_ACTIVE_LOW>;
  33. linux,default-trigger = "heartbeat";
  34. default-state = "off";
  35. };
  36. user_green_2 {
  37. label = "User_green_2";
  38. gpios = <&pio4 1 GPIO_ACTIVE_LOW>;
  39. default-state = "off";
  40. };
  41. user_green_3 {
  42. label = "User_green_3";
  43. gpios = <&pio2 1 GPIO_ACTIVE_LOW>;
  44. default-state = "off";
  45. };
  46. user_green_4 {
  47. label = "User_green_4";
  48. gpios = <&pio2 5 GPIO_ACTIVE_LOW>;
  49. default-state = "off";
  50. };
  51. };
  52. /* Low speed expansion connector */
  53. uart0: serial@9830000 {
  54. label = "LS-UART0";
  55. pinctrl-names = "default", "no-hw-flowctrl";
  56. pinctrl-0 = <&pinctrl_serial0_hw_flowctrl>;
  57. pinctrl-1 = <&pinctrl_serial0>;
  58. rts-gpios = <&pio17 3 GPIO_ACTIVE_LOW>;
  59. uart-has-rtscts;
  60. status = "okay";
  61. };
  62. /* Low speed expansion connector */
  63. uart1: serial@9831000 {
  64. label = "LS-UART1";
  65. status = "okay";
  66. };
  67. /* Low speed expansion connector */
  68. spi0: spi@9844000 {
  69. label = "LS-SPI0";
  70. cs-gpios = <&pio30 3 0>;
  71. status = "okay";
  72. };
  73. /* Low speed expansion connector */
  74. i2c0: i2c@9840000 {
  75. label = "LS-I2C0";
  76. status = "okay";
  77. };
  78. /* Low speed expansion connector */
  79. i2c1: i2c@9841000 {
  80. label = "LS-I2C1";
  81. status = "okay";
  82. };
  83. /* high speed expansion connector */
  84. i2c2: i2c@9842000 {
  85. label = "HS-I2C2";
  86. pinctrl-0 = <&pinctrl_i2c2_alt2_1>;
  87. status = "okay";
  88. };
  89. /* high speed expansion connector */
  90. i2c3: i2c@9843000 {
  91. label = "HS-I2C3";
  92. pinctrl-0 = <&pinctrl_i2c3_alt3_0>;
  93. status = "okay";
  94. };
  95. mmc0: sdhci@09060000 {
  96. pinctrl-0 = <&pinctrl_sd0>;
  97. bus-width = <4>;
  98. status = "okay";
  99. };
  100. /* high speed expansion connector */
  101. mmc1: sdhci@09080000 {
  102. status = "okay";
  103. };
  104. pwm0: pwm@9810000 {
  105. status = "okay";
  106. };
  107. pwm1: pwm@9510000 {
  108. status = "okay";
  109. };
  110. usb2_picophy1: phy2 {
  111. status = "okay";
  112. };
  113. usb2_picophy2: phy3 {
  114. status = "okay";
  115. };
  116. ohci0: usb@9a03c00 {
  117. status = "okay";
  118. };
  119. ehci0: usb@9a03e00 {
  120. status = "okay";
  121. };
  122. ohci1: usb@9a83c00 {
  123. status = "okay";
  124. };
  125. ehci1: usb@9a83e00 {
  126. status = "okay";
  127. };
  128. st_dwc3: dwc3@8f94000 {
  129. status = "okay";
  130. };
  131. ethernet0: dwmac@9630000 {
  132. phy-mode = "rgmii";
  133. pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>;
  134. snps,phy-bus-name = "stmmac";
  135. snps,phy-bus-id = <0>;
  136. snps,phy-addr = <0>;
  137. snps,reset-gpio = <&pio0 7 0>;
  138. snps,reset-active-low;
  139. snps,reset-delays-us = <0 10000 1000000>;
  140. status = "okay";
  141. };
  142. sti_uni_player0: sti-uni-player@8d80000 {
  143. status = "okay";
  144. };
  145. /* SSC11 to HDMI */
  146. hdmiddc: i2c@9541000 {
  147. /* HDMI V1.3a supports Standard mode only */
  148. clock-frequency = <100000>;
  149. st,i2c-min-scl-pulse-width-us = <0>;
  150. st,i2c-min-sda-pulse-width-us = <5>;
  151. status = "okay";
  152. };
  153. sound {
  154. compatible = "simple-audio-card";
  155. simple-audio-card,name = "STI-B2260";
  156. status = "okay";
  157. simple-audio-card,dai-link@0 {
  158. /* DAC */
  159. format = "i2s";
  160. mclk-fs = <128>;
  161. cpu {
  162. sound-dai = <&sti_uni_player0>;
  163. };
  164. codec {
  165. sound-dai = <&sti_hdmi>;
  166. };
  167. };
  168. };
  169. miphy28lp_phy: miphy28lp@9b22000 {
  170. phy_port1: port@9b2a000 {
  171. st,osc-force-ext;
  172. };
  173. };
  174. sata1: sata@9b28000 {
  175. status = "okay";
  176. };
  177. };
  178. };