meson-gxl-s905x-nexbox-a95x.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Andreas Färber
  4. * Copyright (c) 2016 BayLibre, Inc.
  5. * Author: Neil Armstrong <narmstrong@kernel.org>
  6. */
  7. /dts-v1/;
  8. #include "meson-gxl-s905x.dtsi"
  9. / {
  10. compatible = "nexbox,a95x", "amlogic,s905x", "amlogic,meson-gxl";
  11. model = "NEXBOX A95X (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. hdmi-connector {
  77. compatible = "hdmi-connector";
  78. type = "a";
  79. port {
  80. hdmi_connector_in: endpoint {
  81. remote-endpoint = <&hdmi_tx_tmds_out>;
  82. };
  83. };
  84. };
  85. };
  86. &cec_AO {
  87. status = "okay";
  88. pinctrl-0 = <&ao_cec_pins>;
  89. pinctrl-names = "default";
  90. hdmi-phandle = <&hdmi_tx>;
  91. };
  92. &cvbs_vdac_port {
  93. cvbs_vdac_out: endpoint {
  94. remote-endpoint = <&cvbs_connector_in>;
  95. };
  96. };
  97. &ethmac {
  98. status = "okay";
  99. phy-mode = "rmii";
  100. phy-handle = <&internal_phy>;
  101. };
  102. &hdmi_tx {
  103. status = "okay";
  104. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  105. pinctrl-names = "default";
  106. };
  107. &hdmi_tx_tmds_port {
  108. hdmi_tx_tmds_out: endpoint {
  109. remote-endpoint = <&hdmi_connector_in>;
  110. };
  111. };
  112. &ir {
  113. status = "okay";
  114. pinctrl-0 = <&remote_input_ao_pins>;
  115. pinctrl-names = "default";
  116. };
  117. &pwm_ef {
  118. status = "okay";
  119. pinctrl-0 = <&pwm_e_pins>;
  120. pinctrl-names = "default";
  121. clocks = <&clkc CLKID_FCLK_DIV4>;
  122. clock-names = "clkin0";
  123. };
  124. /* Wireless SDIO Module */
  125. &sd_emmc_a {
  126. status = "okay";
  127. pinctrl-0 = <&sdio_pins>;
  128. pinctrl-1 = <&sdio_clk_gate_pins>;
  129. pinctrl-names = "default", "clk-gate";
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. bus-width = <4>;
  133. cap-sd-highspeed;
  134. max-frequency = <100000000>;
  135. non-removable;
  136. disable-wp;
  137. mmc-pwrseq = <&sdio_pwrseq>;
  138. vmmc-supply = <&vddao_3v3>;
  139. vqmmc-supply = <&vddio_boot>;
  140. };
  141. /* SD card */
  142. &sd_emmc_b {
  143. status = "okay";
  144. pinctrl-0 = <&sdcard_pins>;
  145. pinctrl-1 = <&sdcard_clk_gate_pins>;
  146. pinctrl-names = "default", "clk-gate";
  147. bus-width = <4>;
  148. cap-sd-highspeed;
  149. max-frequency = <100000000>;
  150. disable-wp;
  151. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
  152. cd-inverted;
  153. vmmc-supply = <&vddao_3v3>;
  154. vqmmc-supply = <&vddio_card>;
  155. };
  156. /* eMMC */
  157. &sd_emmc_c {
  158. status = "okay";
  159. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  160. pinctrl-1 = <&emmc_clk_gate_pins>;
  161. pinctrl-names = "default", "clk-gate";
  162. bus-width = <8>;
  163. cap-mmc-highspeed;
  164. max-frequency = <200000000>;
  165. non-removable;
  166. disable-wp;
  167. mmc-ddr-1_8v;
  168. mmc-hs200-1_8v;
  169. mmc-pwrseq = <&emmc_pwrseq>;
  170. vmmc-supply = <&vcc_3v3>;
  171. vqmmc-supply = <&vddio_boot>;
  172. };
  173. &uart_AO {
  174. status = "okay";
  175. pinctrl-0 = <&uart_ao_a_pins>;
  176. pinctrl-names = "default";
  177. };
  178. &usb0 {
  179. status = "okay";
  180. };