meson-gxl-s905x-libretech-cc.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 BayLibre, SAS.
  4. * Author: Neil Armstrong <narmstrong@baylibre.com>
  5. * Author: Jerome Brunet <jbrunet@baylibre.com>
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/input/input.h>
  9. #include "meson-gxl-s905x.dtsi"
  10. / {
  11. compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
  12. model = "Libre Technology CC";
  13. aliases {
  14. serial0 = &uart_AO;
  15. };
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. };
  19. cvbs-connector {
  20. compatible = "composite-video-connector";
  21. port {
  22. cvbs_connector_in: endpoint {
  23. remote-endpoint = <&cvbs_vdac_out>;
  24. };
  25. };
  26. };
  27. emmc_pwrseq: emmc-pwrseq {
  28. compatible = "mmc-pwrseq-emmc";
  29. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  30. };
  31. hdmi-connector {
  32. compatible = "hdmi-connector";
  33. type = "a";
  34. port {
  35. hdmi_connector_in: endpoint {
  36. remote-endpoint = <&hdmi_tx_tmds_out>;
  37. };
  38. };
  39. };
  40. leds {
  41. compatible = "gpio-leds";
  42. system {
  43. label = "librecomputer:system-status";
  44. gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  45. default-state = "on";
  46. panic-indicator;
  47. };
  48. blue {
  49. label = "librecomputer:blue";
  50. gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
  51. linux,default-trigger = "heartbeat";
  52. };
  53. };
  54. memory@0 {
  55. device_type = "memory";
  56. reg = <0x0 0x0 0x0 0x80000000>;
  57. };
  58. vcc_3v3: regulator-vcc_3v3 {
  59. compatible = "regulator-fixed";
  60. regulator-name = "VCC_3V3";
  61. regulator-min-microvolt = <3300000>;
  62. regulator-max-microvolt = <3300000>;
  63. };
  64. vcc_card: regulator-vcc-card {
  65. compatible = "regulator-gpio";
  66. regulator-name = "VCC_CARD";
  67. regulator-min-microvolt = <1800000>;
  68. regulator-max-microvolt = <3300000>;
  69. gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>;
  70. gpios-states = <0>;
  71. states = <3300000 0>,
  72. <1800000 1>;
  73. };
  74. vddio_boot: regulator-vddio_boot {
  75. compatible = "regulator-fixed";
  76. regulator-name = "VDDIO_BOOT";
  77. regulator-min-microvolt = <3300000>;
  78. regulator-max-microvolt = <3300000>;
  79. };
  80. };
  81. &cvbs_vdac_port {
  82. cvbs_vdac_out: endpoint {
  83. remote-endpoint = <&cvbs_connector_in>;
  84. };
  85. };
  86. &ethmac {
  87. status = "okay";
  88. };
  89. &ir {
  90. status = "okay";
  91. pinctrl-0 = <&remote_input_ao_pins>;
  92. pinctrl-names = "default";
  93. };
  94. &hdmi_tx {
  95. status = "okay";
  96. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  97. pinctrl-names = "default";
  98. };
  99. &hdmi_tx_tmds_port {
  100. hdmi_tx_tmds_out: endpoint {
  101. remote-endpoint = <&hdmi_connector_in>;
  102. };
  103. };
  104. /* SD card */
  105. &sd_emmc_b {
  106. status = "okay";
  107. pinctrl-0 = <&sdcard_pins>;
  108. pinctrl-names = "default";
  109. bus-width = <4>;
  110. cap-sd-highspeed;
  111. max-frequency = <100000000>;
  112. disable-wp;
  113. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
  114. cd-inverted;
  115. vmmc-supply = <&vcc_3v3>;
  116. vqmmc-supply = <&vcc_card>;
  117. };
  118. /* eMMC */
  119. &sd_emmc_c {
  120. status = "okay";
  121. pinctrl-0 = <&emmc_pins>;
  122. pinctrl-names = "default";
  123. bus-width = <8>;
  124. cap-mmc-highspeed;
  125. max-frequency = <50000000>;
  126. non-removable;
  127. disable-wp;
  128. mmc-pwrseq = <&emmc_pwrseq>;
  129. vmmc-supply = <&vcc_3v3>;
  130. vqmmc-supply = <&vddio_boot>;
  131. };
  132. &uart_AO {
  133. status = "okay";
  134. pinctrl-0 = <&uart_ao_a_pins>;
  135. pinctrl-names = "default";
  136. };