meson-gxbb-p20x.dtsi 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. usb_pwr: regulator-usb-pwrs {
  21. compatible = "regulator-fixed";
  22. regulator-name = "USB_PWR";
  23. regulator-min-microvolt = <5000000>;
  24. regulator-max-microvolt = <5000000>;
  25. /* signal name in schematic: USB_PWR_EN */
  26. gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  27. enable-active-high;
  28. };
  29. vddio_card: gpio-regulator {
  30. compatible = "regulator-gpio";
  31. regulator-name = "VDDIO_CARD";
  32. regulator-min-microvolt = <1800000>;
  33. regulator-max-microvolt = <3300000>;
  34. gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
  35. gpios-states = <1>;
  36. /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
  37. states = <1800000 0>,
  38. <3300000 1>;
  39. regulator-settling-time-up-us = <10000>;
  40. regulator-settling-time-down-us = <150000>;
  41. };
  42. vddio_boot: regulator-vddio_boot {
  43. compatible = "regulator-fixed";
  44. regulator-name = "VDDIO_BOOT";
  45. regulator-min-microvolt = <1800000>;
  46. regulator-max-microvolt = <1800000>;
  47. };
  48. vddao_3v3: regulator-vddao_3v3 {
  49. compatible = "regulator-fixed";
  50. regulator-name = "VDDAO_3V3";
  51. regulator-min-microvolt = <3300000>;
  52. regulator-max-microvolt = <3300000>;
  53. };
  54. vcc_3v3: regulator-vcc_3v3 {
  55. compatible = "regulator-fixed";
  56. regulator-name = "VCC_3V3";
  57. regulator-min-microvolt = <3300000>;
  58. regulator-max-microvolt = <3300000>;
  59. };
  60. emmc_pwrseq: emmc-pwrseq {
  61. compatible = "mmc-pwrseq-emmc";
  62. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  63. };
  64. wifi32k: wifi32k {
  65. compatible = "pwm-clock";
  66. #clock-cells = <0>;
  67. clock-frequency = <32768>;
  68. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  69. };
  70. sdio_pwrseq: sdio-pwrseq {
  71. compatible = "mmc-pwrseq-simple";
  72. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  73. clocks = <&wifi32k>;
  74. clock-names = "ext_clock";
  75. };
  76. cvbs_connector: cvbs-connector {
  77. compatible = "composite-video-connector";
  78. port {
  79. cvbs_connector_in: endpoint {
  80. remote-endpoint = <&cvbs_vdac_out>;
  81. };
  82. };
  83. };
  84. hdmi-connector {
  85. compatible = "hdmi-connector";
  86. type = "a";
  87. port {
  88. hdmi_connector_in: endpoint {
  89. remote-endpoint = <&hdmi_tx_tmds_out>;
  90. };
  91. };
  92. };
  93. };
  94. &cec_AO {
  95. status = "okay";
  96. pinctrl-0 = <&ao_cec_pins>;
  97. pinctrl-names = "default";
  98. hdmi-phandle = <&hdmi_tx>;
  99. };
  100. &cvbs_vdac_port {
  101. cvbs_vdac_out: endpoint {
  102. remote-endpoint = <&cvbs_connector_in>;
  103. };
  104. };
  105. &hdmi_tx {
  106. status = "okay";
  107. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  108. pinctrl-names = "default";
  109. };
  110. &hdmi_tx_tmds_port {
  111. hdmi_tx_tmds_out: endpoint {
  112. remote-endpoint = <&hdmi_connector_in>;
  113. };
  114. };
  115. &ir {
  116. status = "okay";
  117. pinctrl-0 = <&remote_input_ao_pins>;
  118. pinctrl-names = "default";
  119. };
  120. &pwm_ef {
  121. status = "okay";
  122. pinctrl-0 = <&pwm_e_pins>;
  123. pinctrl-names = "default";
  124. clocks = <&clkc CLKID_FCLK_DIV4>;
  125. clock-names = "clkin0";
  126. };
  127. /* Wireless SDIO Module */
  128. &sd_emmc_a {
  129. status = "okay";
  130. pinctrl-0 = <&sdio_pins>;
  131. pinctrl-1 = <&sdio_clk_gate_pins>;
  132. pinctrl-names = "default", "clk-gate";
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. bus-width = <4>;
  136. cap-sd-highspeed;
  137. max-frequency = <50000000>;
  138. non-removable;
  139. disable-wp;
  140. /* WiFi firmware requires power to be kept while in suspend */
  141. keep-power-in-suspend;
  142. mmc-pwrseq = <&sdio_pwrseq>;
  143. vmmc-supply = <&vddao_3v3>;
  144. vqmmc-supply = <&vddio_boot>;
  145. brcmf: wifi@1 {
  146. reg = <1>;
  147. compatible = "brcm,bcm4329-fmac";
  148. };
  149. };
  150. /* SD card */
  151. &sd_emmc_b {
  152. status = "okay";
  153. pinctrl-0 = <&sdcard_pins>;
  154. pinctrl-1 = <&sdcard_clk_gate_pins>;
  155. pinctrl-names = "default", "clk-gate";
  156. bus-width = <4>;
  157. cap-sd-highspeed;
  158. sd-uhs-sdr12;
  159. sd-uhs-sdr25;
  160. sd-uhs-sdr50;
  161. max-frequency = <100000000>;
  162. disable-wp;
  163. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
  164. vmmc-supply = <&vddao_3v3>;
  165. vqmmc-supply = <&vddio_card>;
  166. };
  167. /* eMMC */
  168. &sd_emmc_c {
  169. status = "okay";
  170. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  171. pinctrl-1 = <&emmc_clk_gate_pins>;
  172. pinctrl-names = "default", "clk-gate";
  173. bus-width = <8>;
  174. cap-mmc-highspeed;
  175. max-frequency = <200000000>;
  176. non-removable;
  177. disable-wp;
  178. mmc-ddr-1_8v;
  179. mmc-hs200-1_8v;
  180. mmc-pwrseq = <&emmc_pwrseq>;
  181. vmmc-supply = <&vcc_3v3>;
  182. vqmmc-supply = <&vddio_boot>;
  183. };
  184. /* This UART is brought out to the DB9 connector */
  185. &uart_AO {
  186. status = "okay";
  187. pinctrl-0 = <&uart_ao_a_pins>;
  188. pinctrl-names = "default";
  189. };
  190. &usb0_phy {
  191. status = "okay";
  192. phy-supply = <&usb_pwr>;
  193. };
  194. &usb1_phy {
  195. status = "okay";
  196. };
  197. &usb0 {
  198. status = "okay";
  199. };
  200. &usb1 {
  201. status = "okay";
  202. };