am57xx-sbc-am57x.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Support for CompuLab SBC-AM57x single board computer
  4. *
  5. * Copyright (C) 2015 CompuLab Ltd. - http://www.compulab.co.il/
  6. * Author: Dmitry Lifshitz <[email protected]>
  7. */
  8. #include "am57xx-cl-som-am57x.dts"
  9. #include "compulab-sb-som.dtsi"
  10. / {
  11. model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x";
  12. compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
  13. aliases {
  14. display0 = &lcd0;
  15. display1 = &hdmi;
  16. };
  17. };
  18. &dra7_pmx_core {
  19. uart3_pins_default: uart3_pins_default {
  20. pinctrl-single,pins = <
  21. DRA7XX_CORE_IOPAD(0x3648, PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */
  22. DRA7XX_CORE_IOPAD(0x364c, PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
  23. >;
  24. };
  25. mmc1_pins_default: mmc1_pins_default {
  26. pinctrl-single,pins = <
  27. DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */
  28. DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */
  29. DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */
  30. DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */
  31. DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */
  32. DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */
  33. DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1_sdcd.gpio6_27 */
  34. DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT | MUX_MODE14) /* mmc1_sdwp.gpio6_28 */
  35. >;
  36. };
  37. usb1_pins: pinmux_usb1_pins {
  38. pinctrl-single,pins = <
  39. DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
  40. >;
  41. };
  42. i2c5_pins_default: i2c5_pins_default {
  43. pinctrl-single,pins = <
  44. DRA7XX_CORE_IOPAD(0x36b4, PIN_INPUT| MUX_MODE10) /* mcasp1_axr0.i2c5_sda */
  45. DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10) /* mcasp1_axr1.i2c5_scl */
  46. >;
  47. };
  48. lcd_pins_default: lcd_pins_default {
  49. pinctrl-single,pins = <
  50. DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14) /* vin2a_vsync0.gpio4_0 */
  51. >;
  52. };
  53. hdmi_pins: pinmux_hdmi_pins {
  54. pinctrl-single,pins = <
  55. DRA7XX_CORE_IOPAD(0x3808, PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */
  56. DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */
  57. >;
  58. };
  59. hdmi_conn_pins: pinmux_hdmi_conn_pins {
  60. pinctrl-single,pins = <
  61. DRA7XX_CORE_IOPAD(0x37b8, PIN_INPUT | MUX_MODE14) /* spi1_cs2.gpio7_12 */
  62. >;
  63. };
  64. };
  65. &uart3 {
  66. status = "okay";
  67. interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  68. <&dra7_pmx_core 0x3f8>;
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&uart3_pins_default>;
  71. };
  72. &mmc1 {
  73. status = "okay";
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&mmc1_pins_default>;
  76. vmmc-supply = <&ldo1_reg>;
  77. bus-width = <4>;
  78. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
  79. wp-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
  80. };
  81. &usb1 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&usb1_pins>;
  84. };
  85. &i2c5 {
  86. status = "okay";
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&i2c5_pins_default>;
  89. clock-frequency = <400000>;
  90. eeprom_base: atmel@54 {
  91. compatible = "atmel,24c08";
  92. reg = <0x54>;
  93. pagesize = <16>;
  94. };
  95. pca9555: pca9555@20 {
  96. compatible = "nxp,pca9555";
  97. reg = <0x20>;
  98. gpio-controller;
  99. #gpio-cells = <2>;
  100. };
  101. };
  102. &dss {
  103. status = "okay";
  104. vdda_video-supply = <&ldoln_reg>;
  105. port {
  106. dpi_lcd_out: endpoint {
  107. remote-endpoint = <&lcd_in>;
  108. data-lines = <24>;
  109. };
  110. };
  111. };
  112. &lcd0 {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&lcd_pins_default>;
  115. enable-gpios = <&pca9555 14 GPIO_ACTIVE_HIGH
  116. &gpio4 0 GPIO_ACTIVE_HIGH>;
  117. port {
  118. lcd_in: endpoint {
  119. remote-endpoint = <&dpi_lcd_out>;
  120. data-lines = <24>;
  121. };
  122. };
  123. };
  124. &hdmi {
  125. status = "okay";
  126. vdda-supply = <&ldo4_reg>;
  127. pinctrl-names = "default";
  128. pinctrl-0 = <&hdmi_pins>;
  129. port {
  130. hdmi_out: endpoint {
  131. remote-endpoint = <&hdmi_connector_in>;
  132. lanes = <1 0 3 2 5 4 7 6>;
  133. };
  134. };
  135. };
  136. &hdmi_conn {
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&hdmi_conn_pins>;
  139. hpd-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>;
  140. port {
  141. hdmi_connector_in: endpoint {
  142. remote-endpoint = <&hdmi_out>;
  143. };
  144. };
  145. };