meson-gxl-s805x-p241.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 BayLibre, SAS.
  4. * Author: Neil Armstrong <[email protected]>
  5. * Author: Jerome Brunet <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/sound/meson-aiu.h>
  10. #include "meson-gxl-s805x.dtsi"
  11. / {
  12. compatible = "amlogic,p241", "amlogic,s805x", "amlogic,meson-gxl";
  13. model = "Amlogic Meson GXL (S805X) P241 Development Board";
  14. aliases {
  15. serial0 = &uart_AO;
  16. serial1 = &uart_A;
  17. ethernet0 = &ethmac;
  18. };
  19. au2: analog-amplifier {
  20. compatible = "simple-audio-amplifier";
  21. sound-name-prefix = "AU2";
  22. VCC-supply = <&vcc_5v>;
  23. enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>;
  24. };
  25. chosen {
  26. stdout-path = "serial0:115200n8";
  27. };
  28. cvbs-connector {
  29. compatible = "composite-video-connector";
  30. port {
  31. cvbs_connector_in: endpoint {
  32. remote-endpoint = <&cvbs_vdac_out>;
  33. };
  34. };
  35. };
  36. emmc_pwrseq: emmc-pwrseq {
  37. compatible = "mmc-pwrseq-emmc";
  38. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  39. };
  40. hdmi-connector {
  41. compatible = "hdmi-connector";
  42. type = "a";
  43. port {
  44. hdmi_connector_in: endpoint {
  45. remote-endpoint = <&hdmi_tx_tmds_out>;
  46. };
  47. };
  48. };
  49. memory@0 {
  50. device_type = "memory";
  51. reg = <0x0 0x0 0x0 0x20000000>;
  52. };
  53. vddio_boot: regulator-vddio_boot {
  54. compatible = "regulator-fixed";
  55. regulator-name = "VDDIO_BOOT";
  56. regulator-min-microvolt = <1800000>;
  57. regulator-max-microvolt = <1800000>;
  58. };
  59. vddao_3v3: regulator-vddao_3v3 {
  60. compatible = "regulator-fixed";
  61. regulator-name = "VDDAO_3V3";
  62. regulator-min-microvolt = <3300000>;
  63. regulator-max-microvolt = <3300000>;
  64. };
  65. vddio_ao18: regulator-vddio_ao18 {
  66. compatible = "regulator-fixed";
  67. regulator-name = "VDDIO_AO18";
  68. regulator-min-microvolt = <1800000>;
  69. regulator-max-microvolt = <1800000>;
  70. };
  71. vcc_3v3: regulator-vcc_3v3 {
  72. compatible = "regulator-fixed";
  73. regulator-name = "VCC_3V3";
  74. regulator-min-microvolt = <3300000>;
  75. regulator-max-microvolt = <3300000>;
  76. };
  77. vcc_5v: regulator-vcc-5v {
  78. compatible = "regulator-fixed";
  79. regulator-name = "VCC_5V";
  80. regulator-min-microvolt = <5000000>;
  81. regulator-max-microvolt = <5000000>;
  82. };
  83. emmc_pwrseq: emmc-pwrseq {
  84. compatible = "mmc-pwrseq-emmc";
  85. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  86. };
  87. wifi32k: wifi32k {
  88. compatible = "pwm-clock";
  89. #clock-cells = <0>;
  90. clock-frequency = <32768>;
  91. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  92. };
  93. sdio_pwrseq: sdio-pwrseq {
  94. compatible = "mmc-pwrseq-simple";
  95. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  96. clocks = <&wifi32k>;
  97. clock-names = "ext_clock";
  98. };
  99. sound {
  100. compatible = "amlogic,gx-sound-card";
  101. model = "GXL-P241";
  102. audio-aux-devs = <&au2>;
  103. audio-widgets = "Line", "Lineout";
  104. audio-routing = "AU2 INL", "ACODEC LOLN",
  105. "AU2 INR", "ACODEC LORN",
  106. "Lineout", "AU2 OUTL",
  107. "Lineout", "AU2 OUTR";
  108. assigned-clocks = <&clkc CLKID_MPLL0>,
  109. <&clkc CLKID_MPLL1>,
  110. <&clkc CLKID_MPLL2>;
  111. assigned-clock-parents = <0>, <0>, <0>;
  112. assigned-clock-rates = <294912000>,
  113. <270950400>,
  114. <393216000>;
  115. status = "okay";
  116. dai-link-0 {
  117. sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
  118. };
  119. dai-link-1 {
  120. sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
  121. dai-format = "i2s";
  122. mclk-fs = <256>;
  123. codec-0 {
  124. sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
  125. };
  126. codec-1 {
  127. sound-dai = <&aiu AIU_ACODEC CTRL_I2S>;
  128. };
  129. };
  130. dai-link-2 {
  131. sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
  132. codec-0 {
  133. sound-dai = <&hdmi_tx>;
  134. };
  135. };
  136. dai-link-3 {
  137. sound-dai = <&aiu AIU_ACODEC CTRL_OUT>;
  138. codec-0 {
  139. sound-dai = <&acodec>;
  140. };
  141. };
  142. };
  143. };
  144. &acodec {
  145. AVDD-supply = <&vddio_ao18>;
  146. status = "okay";
  147. };
  148. &aiu {
  149. status = "okay";
  150. };
  151. &cec_AO {
  152. status = "okay";
  153. pinctrl-0 = <&ao_cec_pins>;
  154. pinctrl-names = "default";
  155. hdmi-phandle = <&hdmi_tx>;
  156. };
  157. &cvbs_vdac_port {
  158. cvbs_vdac_out: endpoint {
  159. remote-endpoint = <&cvbs_connector_in>;
  160. };
  161. };
  162. &ethmac {
  163. status = "okay";
  164. };
  165. &internal_phy {
  166. pinctrl-0 = <&eth_link_led_pins>, <&eth_act_led_pins>;
  167. pinctrl-names = "default";
  168. };
  169. &ir {
  170. status = "okay";
  171. pinctrl-0 = <&remote_input_ao_pins>;
  172. pinctrl-names = "default";
  173. };
  174. &hdmi_tx {
  175. status = "okay";
  176. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  177. pinctrl-names = "default";
  178. hdmi-supply = <&vcc_5v>;
  179. };
  180. &hdmi_tx_tmds_port {
  181. hdmi_tx_tmds_out: endpoint {
  182. remote-endpoint = <&hdmi_connector_in>;
  183. };
  184. };
  185. &saradc {
  186. status = "okay";
  187. vref-supply = <&vddio_ao18>;
  188. };
  189. /* Wireless SDIO Module */
  190. &sd_emmc_a {
  191. status = "okay";
  192. pinctrl-0 = <&sdio_pins>;
  193. pinctrl-1 = <&sdio_clk_gate_pins>;
  194. pinctrl-names = "default", "clk-gate";
  195. #address-cells = <1>;
  196. #size-cells = <0>;
  197. bus-width = <4>;
  198. cap-sd-highspeed;
  199. max-frequency = <50000000>;
  200. non-removable;
  201. disable-wp;
  202. /* WiFi firmware requires power to be kept while in suspend */
  203. keep-power-in-suspend;
  204. mmc-pwrseq = <&sdio_pwrseq>;
  205. vmmc-supply = <&vddao_3v3>;
  206. vqmmc-supply = <&vddio_boot>;
  207. };
  208. /* eMMC */
  209. &sd_emmc_c {
  210. status = "okay";
  211. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  212. pinctrl-1 = <&emmc_clk_gate_pins>;
  213. pinctrl-names = "default", "clk-gate";
  214. bus-width = <8>;
  215. cap-mmc-highspeed;
  216. max-frequency = <200000000>;
  217. non-removable;
  218. disable-wp;
  219. mmc-ddr-1_8v;
  220. mmc-hs200-1_8v;
  221. mmc-pwrseq = <&emmc_pwrseq>;
  222. vmmc-supply = <&vcc_3v3>;
  223. vqmmc-supply = <&vddio_boot>;
  224. };
  225. &pwm_ef {
  226. status = "okay";
  227. pinctrl-0 = <&pwm_e_pins>;
  228. pinctrl-names = "default";
  229. clocks = <&clkc CLKID_FCLK_DIV4>;
  230. clock-names = "clkin0";
  231. };
  232. /* This is connected to the Bluetooth module: */
  233. &uart_A {
  234. status = "okay";
  235. pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
  236. pinctrl-names = "default";
  237. uart-has-rtscts;
  238. };
  239. &uart_AO {
  240. status = "okay";
  241. pinctrl-0 = <&uart_ao_a_pins>;
  242. pinctrl-names = "default";
  243. };
  244. &usb {
  245. status = "okay";
  246. dr_mode = "host";
  247. };
  248. &usb2_phy0 {
  249. phy-supply = <&vcc_5v>;
  250. };