meson8b-mxq.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. // SPDX-License-Identifier: GPL-2.0 OR MIT
  2. /*
  3. * Copyright 2015 Endless Mobile, Inc.
  4. * Author: Carlo Caione <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include "meson8b.dtsi"
  9. / {
  10. model = "TRONFY MXQ S805";
  11. compatible = "tronfy,mxq", "amlogic,meson8b";
  12. aliases {
  13. serial0 = &uart_AO;
  14. };
  15. chosen {
  16. stdout-path = "serial0:115200n8";
  17. };
  18. memory {
  19. device_type = "memory";
  20. reg = <0x40000000 0x40000000>;
  21. };
  22. vcck: regulator-vcck {
  23. compatible = "pwm-regulator";
  24. regulator-name = "VCCK";
  25. regulator-min-microvolt = <860000>;
  26. regulator-max-microvolt = <1140000>;
  27. pwm-supply = <&vcc_5v>;
  28. pwms = <&pwm_cd 0 1148 0>;
  29. pwm-dutycycle-range = <100 0>;
  30. regulator-boot-on;
  31. regulator-always-on;
  32. };
  33. vcc_1v8: regulator-vcc1v8 {
  34. compatible = "regulator-fixed";
  35. regulator-name = "VCC1V8";
  36. regulator-min-microvolt = <1800000>;
  37. regulator-max-microvolt = <1800000>;
  38. vin-supply = <&vcc_3v3>;
  39. };
  40. vcc_3v3: regulator-vcc3v3 {
  41. compatible = "regulator-fixed";
  42. regulator-name = "VCC3V3";
  43. regulator-min-microvolt = <3300000>;
  44. regulator-max-microvolt = <3300000>;
  45. vin-supply = <&vcc_5v>;
  46. };
  47. vcc_5v: regulator-vcc5v {
  48. compatible = "regulator-fixed";
  49. regulator-name = "VCC5V";
  50. regulator-min-microvolt = <5000000>;
  51. regulator-max-microvolt = <5000000>;
  52. regulator-boot-on;
  53. regulator-always-on;
  54. };
  55. vddee: regulator-vddee {
  56. compatible = "pwm-regulator";
  57. regulator-name = "VDDEE";
  58. regulator-min-microvolt = <860000>;
  59. regulator-max-microvolt = <1140000>;
  60. pwm-supply = <&vcc_5v>;
  61. pwms = <&pwm_cd 1 1148 0>;
  62. pwm-dutycycle-range = <100 0>;
  63. regulator-boot-on;
  64. regulator-always-on;
  65. };
  66. };
  67. &cpu0 {
  68. cpu-supply = <&vcck>;
  69. };
  70. &ethmac {
  71. status = "okay";
  72. pinctrl-0 = <&eth_rmii_pins>;
  73. pinctrl-names = "default";
  74. phy-handle = <&eth_phy0>;
  75. phy-mode = "rmii";
  76. mdio {
  77. compatible = "snps,dwmac-mdio";
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. eth_phy0: ethernet-phy@0 {
  81. /* IC Plus IP101A/G (0x02430c54) */
  82. reg = <0>;
  83. reset-assert-us = <10000>;
  84. reset-deassert-us = <10000>;
  85. reset-gpios = <&gpio GPIOH_4 GPIO_ACTIVE_LOW>;
  86. icplus,select-interrupt;
  87. interrupt-parent = <&gpio_intc>;
  88. /* GPIOH_3 */
  89. interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
  90. };
  91. };
  92. };
  93. &mali {
  94. mali-supply = <&vddee>;
  95. };
  96. &saradc {
  97. status = "okay";
  98. vref-supply = <&vcc_1v8>;
  99. };
  100. &sdio {
  101. status = "okay";
  102. pinctrl-0 = <&sd_b_pins>;
  103. pinctrl-names = "default";
  104. /* SD card */
  105. sd_card_slot: slot@1 {
  106. compatible = "mmc-slot";
  107. reg = <1>;
  108. status = "okay";
  109. bus-width = <4>;
  110. no-sdio;
  111. cap-mmc-highspeed;
  112. cap-sd-highspeed;
  113. disable-wp;
  114. cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
  115. vmmc-supply = <&vcc_3v3>;
  116. };
  117. };
  118. &pwm_cd {
  119. status = "okay";
  120. pinctrl-0 = <&pwm_c1_pins>, <&pwm_d_pins>;
  121. pinctrl-names = "default";
  122. clocks = <&xtal>, <&xtal>;
  123. clock-names = "clkin0", "clkin1";
  124. };
  125. &uart_AO {
  126. status = "okay";
  127. pinctrl-0 = <&uart_ao_a_pins>;
  128. pinctrl-names = "default";
  129. };
  130. &usb0 {
  131. status = "okay";
  132. };
  133. &usb0_phy {
  134. status = "okay";
  135. };
  136. &usb1 {
  137. status = "okay";
  138. };
  139. &usb1_phy {
  140. status = "okay";
  141. };