hi3798cv200-poplar.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * DTS File for HiSilicon Poplar Development Board
  4. *
  5. * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd.
  6. */
  7. /dts-v1/;
  8. #include <dt-bindings/gpio/gpio.h>
  9. #include "hi3798cv200.dtsi"
  10. #include "poplar-pinctrl.dtsi"
  11. / {
  12. model = "HiSilicon Poplar Development Board";
  13. compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200";
  14. aliases {
  15. serial0 = &uart0;
  16. serial2 = &uart2;
  17. };
  18. chosen {
  19. stdout-path = "serial0:115200n8";
  20. };
  21. memory@0 {
  22. device_type = "memory";
  23. reg = <0x0 0x0 0x0 0x80000000>;
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. user-led0 {
  28. label = "green:user1";
  29. gpios = <&gpio6 3 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "heartbeat";
  31. default-state = "off";
  32. };
  33. user-led1 {
  34. label = "green:user2";
  35. gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
  36. linux,default-trigger = "mmc0";
  37. default-state = "off";
  38. };
  39. user-led2 {
  40. label = "green:user3";
  41. gpios = <&gpio5 2 GPIO_ACTIVE_LOW>;
  42. linux,default-trigger = "mmc1";
  43. default-state = "off";
  44. };
  45. user-led3 {
  46. label = "green:user4";
  47. gpios = <&gpio10 6 GPIO_ACTIVE_LOW>;
  48. linux,default-trigger = "none";
  49. panic-indicator;
  50. default-state = "off";
  51. };
  52. };
  53. reg_pcie: regulator-pcie {
  54. compatible = "regulator-fixed";
  55. regulator-name = "3V3_PCIE0";
  56. regulator-min-microvolt = <3300000>;
  57. regulator-max-microvolt = <3300000>;
  58. gpio = <&gpio6 7 0>;
  59. enable-active-high;
  60. };
  61. };
  62. &ehci {
  63. status = "okay";
  64. };
  65. &emmc {
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&emmc_pins_1 &emmc_pins_2
  68. &emmc_pins_3 &emmc_pins_4>;
  69. fifo-depth = <256>;
  70. clock-frequency = <200000000>;
  71. cap-mmc-highspeed;
  72. mmc-ddr-1_8v;
  73. mmc-hs200-1_8v;
  74. non-removable;
  75. bus-width = <8>;
  76. status = "okay";
  77. };
  78. &gmac1 {
  79. status = "okay";
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. phy-handle = <&eth_phy1>;
  83. phy-mode = "rgmii";
  84. hisilicon,phy-reset-delays-us = <10000 10000 30000>;
  85. eth_phy1: phy@3 {
  86. reg = <3>;
  87. };
  88. };
  89. &gpio1 {
  90. status = "okay";
  91. gpio-line-names = "GPIO-E", "",
  92. "", "",
  93. "", "GPIO-F",
  94. "", "GPIO-J";
  95. };
  96. &gpio2 {
  97. status = "okay";
  98. gpio-line-names = "GPIO-H", "GPIO-I",
  99. "GPIO-L", "GPIO-G",
  100. "GPIO-K", "",
  101. "", "";
  102. };
  103. &gpio3 {
  104. status = "okay";
  105. gpio-line-names = "", "",
  106. "", "",
  107. "GPIO-C", "",
  108. "", "GPIO-B";
  109. };
  110. &gpio4 {
  111. status = "okay";
  112. gpio-line-names = "", "",
  113. "", "",
  114. "", "GPIO-D",
  115. "", "";
  116. };
  117. &gpio5 {
  118. status = "okay";
  119. gpio-line-names = "", "USER-LED-1",
  120. "USER-LED-2", "",
  121. "", "GPIO-A",
  122. "", "";
  123. };
  124. &gpio6 {
  125. status = "okay";
  126. gpio-line-names = "", "",
  127. "", "USER-LED-0",
  128. "", "",
  129. "", "";
  130. };
  131. &gpio10 {
  132. status = "okay";
  133. gpio-line-names = "", "",
  134. "", "",
  135. "", "",
  136. "USER-LED-3", "";
  137. };
  138. &i2c0 {
  139. status = "okay";
  140. label = "LS-I2C0";
  141. };
  142. &i2c2 {
  143. status = "okay";
  144. label = "LS-I2C1";
  145. };
  146. &ir {
  147. linux,rc-map-name = "rc-hisi-poplar";
  148. status = "okay";
  149. };
  150. &ohci {
  151. status = "okay";
  152. };
  153. &pcie {
  154. reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;
  155. vpcie-supply = <&reg_pcie>;
  156. status = "okay";
  157. };
  158. &sd0 {
  159. bus-width = <4>;
  160. cap-sd-highspeed;
  161. status = "okay";
  162. };
  163. &spi0 {
  164. status = "okay";
  165. label = "LS-SPI0";
  166. };
  167. &uart0 {
  168. status = "okay";
  169. };
  170. &uart2 {
  171. status = "okay";
  172. label = "LS-UART0";
  173. };
  174. /* No optional LS-UART1 on Low Speed Expansion Connector. */