meson-gxbb-wetek.dtsi 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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: Kevin Hilman <khilman@kernel.org>
  6. */
  7. #include "meson-gxbb.dtsi"
  8. / {
  9. aliases {
  10. serial0 = &uart_AO;
  11. ethernet0 = &ethmac;
  12. };
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. memory@0 {
  17. device_type = "memory";
  18. reg = <0x0 0x0 0x0 0x40000000>;
  19. };
  20. leds {
  21. compatible = "gpio-leds";
  22. system {
  23. label = "wetek-play:system-status";
  24. gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
  25. default-state = "on";
  26. panic-indicator;
  27. };
  28. };
  29. usb_pwr: regulator-usb-pwrs {
  30. compatible = "regulator-fixed";
  31. regulator-name = "USB_PWR";
  32. regulator-min-microvolt = <5000000>;
  33. regulator-max-microvolt = <5000000>;
  34. gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  35. enable-active-high;
  36. };
  37. vddio_boot: regulator-vddio_boot {
  38. compatible = "regulator-fixed";
  39. regulator-name = "VDDIO_BOOT";
  40. regulator-min-microvolt = <1800000>;
  41. regulator-max-microvolt = <1800000>;
  42. };
  43. vddao_3v3: regulator-vddao_3v3 {
  44. compatible = "regulator-fixed";
  45. regulator-name = "VDDAO_3V3";
  46. regulator-min-microvolt = <3300000>;
  47. regulator-max-microvolt = <3300000>;
  48. };
  49. vcc_3v3: regulator-vcc_3v3 {
  50. compatible = "regulator-fixed";
  51. regulator-name = "VCC_3V3";
  52. regulator-min-microvolt = <3300000>;
  53. regulator-max-microvolt = <3300000>;
  54. };
  55. emmc_pwrseq: emmc-pwrseq {
  56. compatible = "mmc-pwrseq-emmc";
  57. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  58. };
  59. wifi32k: wifi32k {
  60. compatible = "pwm-clock";
  61. #clock-cells = <0>;
  62. clock-frequency = <32768>;
  63. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  64. };
  65. sdio_pwrseq: sdio-pwrseq {
  66. compatible = "mmc-pwrseq-simple";
  67. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  68. clocks = <&wifi32k>;
  69. clock-names = "ext_clock";
  70. };
  71. cvbs-connector {
  72. compatible = "composite-video-connector";
  73. port {
  74. cvbs_connector_in: endpoint {
  75. remote-endpoint = <&cvbs_vdac_out>;
  76. };
  77. };
  78. };
  79. hdmi-connector {
  80. compatible = "hdmi-connector";
  81. type = "a";
  82. port {
  83. hdmi_connector_in: endpoint {
  84. remote-endpoint = <&hdmi_tx_tmds_out>;
  85. };
  86. };
  87. };
  88. };
  89. &cec_AO {
  90. status = "okay";
  91. pinctrl-0 = <&ao_cec_pins>;
  92. pinctrl-names = "default";
  93. hdmi-phandle = <&hdmi_tx>;
  94. };
  95. &cvbs_vdac_port {
  96. cvbs_vdac_out: endpoint {
  97. remote-endpoint = <&cvbs_connector_in>;
  98. };
  99. };
  100. &ethmac {
  101. status = "okay";
  102. pinctrl-0 = <&eth_rgmii_pins>;
  103. pinctrl-names = "default";
  104. phy-handle = <&eth_phy0>;
  105. phy-mode = "rgmii";
  106. amlogic,tx-delay-ns = <2>;
  107. snps,reset-gpio = <&gpio GPIOZ_14 0>;
  108. snps,reset-delays-us = <0 10000 1000000>;
  109. snps,reset-active-low;
  110. mdio {
  111. compatible = "snps,dwmac-mdio";
  112. #address-cells = <1>;
  113. #size-cells = <0>;
  114. eth_phy0: ethernet-phy@0 {
  115. /* Realtek RTL8211F (0x001cc916) */
  116. reg = <0>;
  117. eee-broken-1000t;
  118. };
  119. };
  120. };
  121. &hdmi_tx {
  122. status = "okay";
  123. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  124. pinctrl-names = "default";
  125. };
  126. &hdmi_tx_tmds_port {
  127. hdmi_tx_tmds_out: endpoint {
  128. remote-endpoint = <&hdmi_connector_in>;
  129. };
  130. };
  131. &ir {
  132. status = "okay";
  133. pinctrl-0 = <&remote_input_ao_pins>;
  134. pinctrl-names = "default";
  135. };
  136. &pwm_ef {
  137. status = "okay";
  138. pinctrl-0 = <&pwm_e_pins>;
  139. pinctrl-names = "default";
  140. clocks = <&clkc CLKID_FCLK_DIV4>;
  141. clock-names = "clkin0";
  142. };
  143. /* Wireless SDIO Module */
  144. &sd_emmc_a {
  145. status = "okay";
  146. pinctrl-0 = <&sdio_pins>;
  147. pinctrl-1 = <&sdio_clk_gate_pins>;
  148. pinctrl-names = "default", "clk-gate";
  149. #address-cells = <1>;
  150. #size-cells = <0>;
  151. bus-width = <4>;
  152. cap-sd-highspeed;
  153. max-frequency = <100000000>;
  154. non-removable;
  155. disable-wp;
  156. mmc-pwrseq = <&sdio_pwrseq>;
  157. vmmc-supply = <&vddao_3v3>;
  158. vqmmc-supply = <&vddio_boot>;
  159. brcmf: wifi@1 {
  160. reg = <1>;
  161. compatible = "brcm,bcm4329-fmac";
  162. };
  163. };
  164. /* SD card */
  165. &sd_emmc_b {
  166. status = "okay";
  167. pinctrl-0 = <&sdcard_pins>;
  168. pinctrl-1 = <&sdcard_clk_gate_pins>;
  169. pinctrl-names = "default", "clk-gate";
  170. bus-width = <4>;
  171. cap-sd-highspeed;
  172. max-frequency = <100000000>;
  173. disable-wp;
  174. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
  175. cd-inverted;
  176. vmmc-supply = <&vddao_3v3>;
  177. vqmmc-supply = <&vcc_3v3>;
  178. };
  179. /* eMMC */
  180. &sd_emmc_c {
  181. status = "okay";
  182. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  183. pinctrl-1 = <&emmc_clk_gate_pins>;
  184. pinctrl-names = "default", "clk-gate";
  185. bus-width = <8>;
  186. cap-mmc-highspeed;
  187. max-frequency = <200000000>;
  188. non-removable;
  189. disable-wp;
  190. mmc-ddr-1_8v;
  191. mmc-hs200-1_8v;
  192. mmc-pwrseq = <&emmc_pwrseq>;
  193. vmmc-supply = <&vcc_3v3>;
  194. vqmmc-supply = <&vddio_boot>;
  195. };
  196. /* This UART is brought out to the DB9 connector */
  197. &uart_AO {
  198. status = "okay";
  199. pinctrl-0 = <&uart_ao_a_pins>;
  200. pinctrl-names = "default";
  201. };
  202. &usb0_phy {
  203. status = "okay";
  204. phy-supply = <&usb_pwr>;
  205. };
  206. &usb0 {
  207. status = "okay";
  208. };