sun8i-h3-mapleboard-mp130.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2017 Centrum Embedded Systems, Jia-Bin Huang <[email protected]>
  4. * Copyright (C) 2018 Jonathan McDowell <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "sun8i-h3.dtsi"
  8. #include "sunxi-common-regulators.dtsi"
  9. #include <dt-bindings/gpio/gpio.h>
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "MapleBoard MP130";
  13. compatible = "mapleboard,mp130", "allwinner,sun8i-h3";
  14. aliases {
  15. ethernet0 = &emac;
  16. serial0 = &uart0;
  17. };
  18. chosen {
  19. stdout-path = "serial0:115200n8";
  20. };
  21. leds {
  22. compatible = "gpio-leds";
  23. pwr_led {
  24. label = "mp130:orange:pwr";
  25. gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
  26. default-state = "on";
  27. };
  28. status_led {
  29. label = "mp130:orange:status";
  30. gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
  31. };
  32. };
  33. gpio-keys {
  34. compatible = "gpio-keys";
  35. key-power {
  36. label = "power";
  37. linux,code = <KEY_POWER>;
  38. gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */
  39. };
  40. key-user {
  41. label = "user";
  42. linux,code = <BTN_0>;
  43. gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>;
  44. };
  45. };
  46. };
  47. &codec {
  48. allwinner,audio-routing =
  49. "Line Out", "LINEOUT",
  50. "LINEIN", "Line In";
  51. status = "okay";
  52. };
  53. &ehci1 {
  54. status = "okay";
  55. };
  56. &ehci2 {
  57. status = "okay";
  58. };
  59. &ehci3 {
  60. status = "okay";
  61. };
  62. &emac {
  63. phy-handle = <&int_mii_phy>;
  64. phy-mode = "mii";
  65. allwinner,leds-active-low;
  66. status = "okay";
  67. };
  68. &ir {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&r_ir_rx_pin>;
  71. status = "okay";
  72. };
  73. &mmc0 {
  74. vmmc-supply = <&reg_vcc3v3>;
  75. bus-width = <4>;
  76. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  77. status = "okay";
  78. };
  79. &mmc2 {
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&mmc2_8bit_pins>;
  82. vmmc-supply = <&reg_vcc3v3>;
  83. bus-width = <8>;
  84. non-removable;
  85. cap-mmc-hw-reset;
  86. status = "okay";
  87. };
  88. &ohci1 {
  89. status = "okay";
  90. };
  91. &ohci2 {
  92. status = "okay";
  93. };
  94. &ohci3 {
  95. status = "okay";
  96. };
  97. &uart0 {
  98. pinctrl-names = "default";
  99. pinctrl-0 = <&uart0_pa_pins>;
  100. status = "okay";
  101. };
  102. &uart1 {
  103. pinctrl-names = "default";
  104. pinctrl-0 = <&uart1_pins>;
  105. status = "disabled";
  106. };
  107. &uart2 {
  108. pinctrl-names = "default";
  109. pinctrl-0 = <&uart2_pins>;
  110. status = "disabled";
  111. };
  112. &uart3 {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&uart3_pins>;
  115. status = "disabled";
  116. };
  117. &usb_otg {
  118. dr_mode = "peripheral";
  119. status = "okay";
  120. };
  121. &usbphy {
  122. /* USB VBUS is always on */
  123. status = "okay";
  124. };