rk3399-ficus.dts 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 Collabora Ltd.
  4. * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd.
  5. *
  6. * Schematics available at https://dl.vamrs.com/products/ficus/docs/hw
  7. */
  8. /dts-v1/;
  9. #include "rk3399-rock960.dtsi"
  10. / {
  11. model = "96boards RK3399 Ficus";
  12. compatible = "vamrs,ficus", "rockchip,rk3399";
  13. chosen {
  14. stdout-path = "serial2:1500000n8";
  15. };
  16. clkin_gmac: external-gmac-clock {
  17. compatible = "fixed-clock";
  18. clock-frequency = <125000000>;
  19. clock-output-names = "clkin_gmac";
  20. #clock-cells = <0>;
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. pinctrl-names = "default";
  25. pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
  26. <&user_led3_pin>, <&user_led4_pin>,
  27. <&wlan_led_pin>, <&bt_led_pin>;
  28. user_led1: led-1 {
  29. label = "red:user1";
  30. gpios = <&gpio4 25 0>;
  31. linux,default-trigger = "heartbeat";
  32. };
  33. user_led2: led-2 {
  34. label = "red:user2";
  35. gpios = <&gpio4 26 0>;
  36. linux,default-trigger = "mmc0";
  37. };
  38. user_led3: led-3 {
  39. label = "red:user3";
  40. gpios = <&gpio4 30 0>;
  41. linux,default-trigger = "mmc1";
  42. };
  43. user_led4: led-4 {
  44. label = "red:user4";
  45. gpios = <&gpio1 0 0>;
  46. panic-indicator;
  47. linux,default-trigger = "none";
  48. };
  49. wlan_active_led: led-5 {
  50. label = "red:wlan";
  51. gpios = <&gpio1 1 0>;
  52. linux,default-trigger = "phy0tx";
  53. default-state = "off";
  54. };
  55. bt_active_led: led-6 {
  56. label = "red:bt";
  57. gpios = <&gpio1 4 0>;
  58. linux,default-trigger = "hci0-power";
  59. default-state = "off";
  60. };
  61. };
  62. };
  63. &gmac {
  64. assigned-clocks = <&cru SCLK_RMII_SRC>;
  65. assigned-clock-parents = <&clkin_gmac>;
  66. clock_in_out = "input";
  67. phy-supply = <&vcc3v3_sys>;
  68. phy-mode = "rgmii";
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&rgmii_pins>;
  71. snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
  72. snps,reset-active-low;
  73. snps,reset-delays-us = <0 10000 50000>;
  74. tx_delay = <0x28>;
  75. rx_delay = <0x11>;
  76. status = "okay";
  77. };
  78. &pcie0 {
  79. ep-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
  80. };
  81. &pinctrl {
  82. gmac {
  83. rgmii_sleep_pins: rgmii-sleep-pins {
  84. rockchip,pins =
  85. <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>;
  86. };
  87. };
  88. pcie {
  89. pcie_drv: pcie-drv {
  90. rockchip,pins =
  91. <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  92. };
  93. };
  94. usb2 {
  95. host_vbus_drv: host-vbus-drv {
  96. rockchip,pins =
  97. <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
  98. };
  99. };
  100. leds {
  101. user_led1_pin: user-led1-pin {
  102. rockchip,pins =
  103. <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
  104. };
  105. user_led2_pin: user-led2-pin {
  106. rockchip,pins =
  107. <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
  108. };
  109. user_led3_pin: user-led3-pin {
  110. rockchip,pins =
  111. <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
  112. };
  113. user_led4_pin: user-led4-pin {
  114. rockchip,pins =
  115. <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
  116. };
  117. wlan_led_pin: wlan-led-pin {
  118. rockchip,pins =
  119. <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
  120. };
  121. bt_led_pin: bt-led-pin {
  122. rockchip,pins =
  123. <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
  124. };
  125. };
  126. };
  127. &spi1 {
  128. /* On both Low speed and High speed expansion */
  129. cs-gpios = <0>, <&gpio4 RK_PA6 0>, <&gpio4 RK_PA7 0>;
  130. status = "okay";
  131. };
  132. &usbdrd_dwc3_0 {
  133. dr_mode = "host";
  134. };
  135. &usbdrd_dwc3_1 {
  136. dr_mode = "host";
  137. };
  138. &vcc3v3_pcie {
  139. gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  140. };
  141. &vcc5v0_host {
  142. gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
  143. };