meson-gxm-nexbox-a1.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. /*
  2. * Copyright (c) 2016 BayLibre, SAS.
  3. * Author: Neil Armstrong <narmstrong@baylibre.com>
  4. *
  5. * Copyright (c) 2016 Endless Computers, Inc.
  6. * Author: Carlo Caione <carlo@endlessm.com>
  7. *
  8. * This file is dual-licensed: you can use it either under the terms
  9. * of the GPL or the X11 license, at your option. Note that this dual
  10. * licensing only applies to this file, and not this project as a
  11. * whole.
  12. *
  13. * a) This library is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This library is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * Or, alternatively,
  24. *
  25. * b) Permission is hereby granted, free of charge, to any person
  26. * obtaining a copy of this software and associated documentation
  27. * files (the "Software"), to deal in the Software without
  28. * restriction, including without limitation the rights to use,
  29. * copy, modify, merge, publish, distribute, sublicense, and/or
  30. * sell copies of the Software, and to permit persons to whom the
  31. * Software is furnished to do so, subject to the following
  32. * conditions:
  33. *
  34. * The above copyright notice and this permission notice shall be
  35. * included in all copies or substantial portions of the Software.
  36. *
  37. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  38. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  39. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  40. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  41. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  42. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  43. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  44. * OTHER DEALINGS IN THE SOFTWARE.
  45. */
  46. /dts-v1/;
  47. #include "meson-gxm.dtsi"
  48. / {
  49. compatible = "nexbox,a1", "amlogic,s912", "amlogic,meson-gxm";
  50. model = "NEXBOX A1";
  51. aliases {
  52. serial0 = &uart_AO;
  53. };
  54. chosen {
  55. stdout-path = "serial0:115200n8";
  56. };
  57. memory@0 {
  58. device_type = "memory";
  59. reg = <0x0 0x0 0x0 0x80000000>;
  60. };
  61. vddio_boot: regulator-vddio-boot {
  62. compatible = "regulator-fixed";
  63. regulator-name = "VDDIO_BOOT";
  64. regulator-min-microvolt = <1800000>;
  65. regulator-max-microvolt = <1800000>;
  66. };
  67. vddao_3v3: regulator-vddao-3v3 {
  68. compatible = "regulator-fixed";
  69. regulator-name = "VDDAO_3V3";
  70. regulator-min-microvolt = <3300000>;
  71. regulator-max-microvolt = <3300000>;
  72. };
  73. vcc_3v3: regulator-vcc-3v3 {
  74. compatible = "regulator-fixed";
  75. regulator-name = "VCC_3V3";
  76. regulator-min-microvolt = <3300000>;
  77. regulator-max-microvolt = <3300000>;
  78. };
  79. emmc_pwrseq: emmc-pwrseq {
  80. compatible = "mmc-pwrseq-emmc";
  81. reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
  82. };
  83. cvbs-connector {
  84. compatible = "composite-video-connector";
  85. port {
  86. cvbs_connector_in: endpoint {
  87. remote-endpoint = <&cvbs_vdac_out>;
  88. };
  89. };
  90. };
  91. };
  92. /* This UART is brought out to the DB9 connector */
  93. &uart_AO {
  94. status = "okay";
  95. pinctrl-0 = <&uart_ao_a_pins>;
  96. pinctrl-names = "default";
  97. };
  98. &ir {
  99. status = "okay";
  100. pinctrl-0 = <&remote_input_ao_pins>;
  101. pinctrl-names = "default";
  102. };
  103. /* SD card */
  104. &sd_emmc_b {
  105. status = "okay";
  106. pinctrl-0 = <&sdcard_pins>;
  107. pinctrl-names = "default";
  108. bus-width = <4>;
  109. cap-sd-highspeed;
  110. max-frequency = <100000000>;
  111. disable-wp;
  112. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
  113. cd-inverted;
  114. vmmc-supply = <&vddao_3v3>;
  115. vqmmc-supply = <&vddio_boot>;
  116. };
  117. /* eMMC */
  118. &sd_emmc_c {
  119. status = "okay";
  120. pinctrl-0 = <&emmc_pins>;
  121. pinctrl-names = "default";
  122. bus-width = <8>;
  123. cap-sd-highspeed;
  124. cap-mmc-highspeed;
  125. max-frequency = <200000000>;
  126. non-removable;
  127. disable-wp;
  128. mmc-ddr-1_8v;
  129. mmc-hs200-1_8v;
  130. mmc-pwrseq = <&emmc_pwrseq>;
  131. vmmc-supply = <&vcc_3v3>;
  132. vqmmc-supply = <&vddio_boot>;
  133. };
  134. &ethmac {
  135. status = "okay";
  136. pinctrl-0 = <&eth_pins>;
  137. pinctrl-names = "default";
  138. /* Select external PHY by default */
  139. phy-handle = <&external_phy>;
  140. snps,reset-gpio = <&gpio GPIOZ_14 0>;
  141. snps,reset-delays-us = <0 10000 1000000>;
  142. snps,reset-active-low;
  143. /* External PHY is in RGMII */
  144. phy-mode = "rgmii";
  145. };
  146. &external_mdio {
  147. external_phy: ethernet-phy@0 {
  148. compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
  149. reg = <0>;
  150. max-speed = <1000>;
  151. };
  152. };
  153. &cvbs_vdac_port {
  154. cvbs_vdac_out: endpoint {
  155. remote-endpoint = <&cvbs_connector_in>;
  156. };
  157. };