meson-gxl-s905x-hwacom-amazetv.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2017 Carlo Caione
  4. * Copyright (c) 2016 BayLibre, Inc.
  5. * Author: Neil Armstrong <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "meson-gxl-s905x.dtsi"
  9. / {
  10. compatible = "hwacom,amazetv", "amlogic,s905x", "amlogic,meson-gxl";
  11. model = "Hwacom AmazeTV (S905X)";
  12. aliases {
  13. serial0 = &uart_AO;
  14. ethernet0 = &ethmac;
  15. };
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. };
  19. memory@0 {
  20. device_type = "memory";
  21. reg = <0x0 0x0 0x0 0x80000000>;
  22. };
  23. vddio_card: gpio-regulator {
  24. compatible = "regulator-gpio";
  25. regulator-name = "VDDIO_CARD";
  26. regulator-min-microvolt = <1800000>;
  27. regulator-max-microvolt = <3300000>;
  28. gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
  29. gpios-states = <1>;
  30. /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
  31. states = <1800000 0>,
  32. <3300000 1>;
  33. };
  34. vddio_boot: regulator-vddio_boot {
  35. compatible = "regulator-fixed";
  36. regulator-name = "VDDIO_BOOT";
  37. regulator-min-microvolt = <1800000>;
  38. regulator-max-microvolt = <1800000>;
  39. };
  40. vddao_3v3: regulator-vddao_3v3 {
  41. compatible = "regulator-fixed";
  42. regulator-name = "VDDAO_3V3";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. };
  46. vcc_3v3: regulator-vcc_3v3 {
  47. compatible = "regulator-fixed";
  48. regulator-name = "VCC_3V3";
  49. regulator-min-microvolt = <3300000>;
  50. regulator-max-microvolt = <3300000>;
  51. };
  52. emmc_pwrseq: emmc-pwrseq {
  53. compatible = "mmc-pwrseq-emmc";
  54. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  55. };
  56. wifi32k: wifi32k {
  57. compatible = "pwm-clock";
  58. #clock-cells = <0>;
  59. clock-frequency = <32768>;
  60. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  61. };
  62. sdio_pwrseq: sdio-pwrseq {
  63. compatible = "mmc-pwrseq-simple";
  64. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  65. clocks = <&wifi32k>;
  66. clock-names = "ext_clock";
  67. };
  68. cvbs-connector {
  69. compatible = "composite-video-connector";
  70. port {
  71. cvbs_connector_in: endpoint {
  72. remote-endpoint = <&cvbs_vdac_out>;
  73. };
  74. };
  75. };
  76. };
  77. &cvbs_vdac_port {
  78. cvbs_vdac_out: endpoint {
  79. remote-endpoint = <&cvbs_connector_in>;
  80. };
  81. };
  82. &ethmac {
  83. status = "okay";
  84. phy-mode = "rmii";
  85. phy-handle = <&internal_phy>;
  86. };
  87. &ir {
  88. status = "okay";
  89. pinctrl-0 = <&remote_input_ao_pins>;
  90. pinctrl-names = "default";
  91. };
  92. &pwm_ef {
  93. status = "okay";
  94. pinctrl-0 = <&pwm_e_pins>;
  95. pinctrl-names = "default";
  96. clocks = <&clkc CLKID_FCLK_DIV4>;
  97. clock-names = "clkin0";
  98. };
  99. /* SD card */
  100. &sd_emmc_b {
  101. status = "okay";
  102. pinctrl-0 = <&sdcard_pins>;
  103. pinctrl-1 = <&sdcard_clk_gate_pins>;
  104. pinctrl-names = "default", "clk-gate";
  105. bus-width = <4>;
  106. cap-sd-highspeed;
  107. max-frequency = <100000000>;
  108. disable-wp;
  109. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
  110. vmmc-supply = <&vddao_3v3>;
  111. vqmmc-supply = <&vddio_card>;
  112. };
  113. /* eMMC */
  114. &sd_emmc_c {
  115. status = "okay";
  116. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  117. pinctrl-1 = <&emmc_clk_gate_pins>;
  118. pinctrl-names = "default", "clk-gate";
  119. bus-width = <8>;
  120. cap-mmc-highspeed;
  121. max-frequency = <100000000>;
  122. non-removable;
  123. disable-wp;
  124. mmc-ddr-1_8v;
  125. mmc-hs200-1_8v;
  126. mmc-pwrseq = <&emmc_pwrseq>;
  127. vmmc-supply = <&vcc_3v3>;
  128. vqmmc-supply = <&vddio_boot>;
  129. };
  130. &uart_AO {
  131. status = "okay";
  132. pinctrl-0 = <&uart_ao_a_pins>;
  133. pinctrl-names = "default";
  134. };