meson-gxbb-nexbox-a95x.dts 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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-gxbb.dtsi"
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. compatible = "nexbox,a95x", "amlogic,meson-gxbb";
  13. model = "NEXBOX A95X";
  14. aliases {
  15. serial0 = &uart_AO;
  16. ethernet0 = &ethmac;
  17. };
  18. chosen {
  19. stdout-path = "serial0:115200n8";
  20. };
  21. memory@0 {
  22. device_type = "memory";
  23. reg = <0x0 0x0 0x0 0x40000000>;
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. blue {
  28. label = "a95x:system-status";
  29. gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "heartbeat";
  31. default-state = "off";
  32. };
  33. };
  34. gpio-keys-polled {
  35. compatible = "gpio-keys-polled";
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. poll-interval = <100>;
  39. button@0 {
  40. label = "reset";
  41. linux,code = <KEY_RESTART>;
  42. gpios = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_LOW>;
  43. };
  44. };
  45. usb_pwr: regulator-usb-pwrs {
  46. compatible = "regulator-fixed";
  47. regulator-name = "USB_PWR";
  48. regulator-min-microvolt = <5000000>;
  49. regulator-max-microvolt = <5000000>;
  50. gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
  51. enable-active-high;
  52. };
  53. vddio_card: gpio-regulator {
  54. compatible = "regulator-gpio";
  55. regulator-name = "VDDIO_CARD";
  56. regulator-min-microvolt = <1800000>;
  57. regulator-max-microvolt = <3300000>;
  58. gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
  59. gpios-states = <1>;
  60. /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */
  61. states = <1800000 0
  62. 3300000 1>;
  63. };
  64. vddio_boot: regulator-vddio_boot {
  65. compatible = "regulator-fixed";
  66. regulator-name = "VDDIO_BOOT";
  67. regulator-min-microvolt = <1800000>;
  68. regulator-max-microvolt = <1800000>;
  69. };
  70. vddao_3v3: regulator-vddao_3v3 {
  71. compatible = "regulator-fixed";
  72. regulator-name = "VDDAO_3V3";
  73. regulator-min-microvolt = <3300000>;
  74. regulator-max-microvolt = <3300000>;
  75. };
  76. vcc_3v3: regulator-vcc_3v3 {
  77. compatible = "regulator-fixed";
  78. regulator-name = "VCC_3V3";
  79. regulator-min-microvolt = <3300000>;
  80. regulator-max-microvolt = <3300000>;
  81. };
  82. emmc_pwrseq: emmc-pwrseq {
  83. compatible = "mmc-pwrseq-emmc";
  84. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  85. };
  86. wifi32k: wifi32k {
  87. compatible = "pwm-clock";
  88. #clock-cells = <0>;
  89. clock-frequency = <32768>;
  90. pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
  91. };
  92. sdio_pwrseq: sdio-pwrseq {
  93. compatible = "mmc-pwrseq-simple";
  94. reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
  95. clocks = <&wifi32k>;
  96. clock-names = "ext_clock";
  97. };
  98. cvbs-connector {
  99. compatible = "composite-video-connector";
  100. port {
  101. cvbs_connector_in: endpoint {
  102. remote-endpoint = <&cvbs_vdac_out>;
  103. };
  104. };
  105. };
  106. hdmi-connector {
  107. compatible = "hdmi-connector";
  108. type = "a";
  109. port {
  110. hdmi_connector_in: endpoint {
  111. remote-endpoint = <&hdmi_tx_tmds_out>;
  112. };
  113. };
  114. };
  115. };
  116. &cvbs_vdac_port {
  117. cvbs_vdac_out: endpoint {
  118. remote-endpoint = <&cvbs_connector_in>;
  119. };
  120. };
  121. &cec_AO {
  122. status = "okay";
  123. pinctrl-0 = <&ao_cec_pins>;
  124. pinctrl-names = "default";
  125. hdmi-phandle = <&hdmi_tx>;
  126. };
  127. &ethmac {
  128. status = "okay";
  129. pinctrl-0 = <&eth_rmii_pins>;
  130. pinctrl-names = "default";
  131. phy-handle = <&eth_phy0>;
  132. phy-mode = "rmii";
  133. snps,reset-gpio = <&gpio GPIOZ_14 0>;
  134. snps,reset-delays-us = <0 10000 1000000>;
  135. snps,reset-active-low;
  136. mdio {
  137. compatible = "snps,dwmac-mdio";
  138. #address-cells = <1>;
  139. #size-cells = <0>;
  140. eth_phy0: ethernet-phy@0 {
  141. /* IC Plus IP101GR (0x02430c54) */
  142. reg = <0>;
  143. };
  144. };
  145. };
  146. &hdmi_tx {
  147. status = "okay";
  148. pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
  149. pinctrl-names = "default";
  150. };
  151. &hdmi_tx_tmds_port {
  152. hdmi_tx_tmds_out: endpoint {
  153. remote-endpoint = <&hdmi_connector_in>;
  154. };
  155. };
  156. &ir {
  157. status = "okay";
  158. pinctrl-0 = <&remote_input_ao_pins>;
  159. pinctrl-names = "default";
  160. };
  161. &pwm_ef {
  162. status = "okay";
  163. pinctrl-0 = <&pwm_e_pins>;
  164. pinctrl-names = "default";
  165. clocks = <&clkc CLKID_FCLK_DIV4>;
  166. clock-names = "clkin0";
  167. };
  168. /* Wireless SDIO Module */
  169. &sd_emmc_a {
  170. status = "okay";
  171. pinctrl-0 = <&sdio_pins>;
  172. pinctrl-1 = <&sdio_clk_gate_pins>;
  173. pinctrl-names = "default", "clk-gate";
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. bus-width = <4>;
  177. cap-sd-highspeed;
  178. max-frequency = <100000000>;
  179. non-removable;
  180. disable-wp;
  181. mmc-pwrseq = <&sdio_pwrseq>;
  182. vmmc-supply = <&vddao_3v3>;
  183. vqmmc-supply = <&vddio_boot>;
  184. };
  185. /* SD card */
  186. &sd_emmc_b {
  187. status = "okay";
  188. pinctrl-0 = <&sdcard_pins>;
  189. pinctrl-1 = <&sdcard_clk_gate_pins>;
  190. pinctrl-names = "default", "clk-gate";
  191. bus-width = <4>;
  192. cap-sd-highspeed;
  193. max-frequency = <100000000>;
  194. disable-wp;
  195. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
  196. cd-inverted;
  197. vmmc-supply = <&vddao_3v3>;
  198. vqmmc-supply = <&vddio_card>;
  199. };
  200. /* eMMC */
  201. &sd_emmc_c {
  202. status = "okay";
  203. pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
  204. pinctrl-1 = <&emmc_clk_gate_pins>;
  205. pinctrl-names = "default", "clk-gate";
  206. bus-width = <8>;
  207. cap-mmc-highspeed;
  208. max-frequency = <200000000>;
  209. non-removable;
  210. disable-wp;
  211. mmc-ddr-1_8v;
  212. mmc-hs200-1_8v;
  213. mmc-pwrseq = <&emmc_pwrseq>;
  214. vmmc-supply = <&vcc_3v3>;
  215. vqmmc-supply = <&vddio_boot>;
  216. };
  217. &uart_AO {
  218. status = "okay";
  219. pinctrl-0 = <&uart_ao_a_pins>;
  220. pinctrl-names = "default";
  221. };
  222. &usb0_phy {
  223. status = "okay";
  224. phy-supply = <&usb_pwr>;
  225. };
  226. &usb1_phy {
  227. status = "okay";
  228. };
  229. &usb0 {
  230. status = "okay";
  231. };
  232. &usb1 {
  233. status = "okay";
  234. };