rk3399-rock960.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 Linaro Ltd.
  4. */
  5. /dts-v1/;
  6. #include "rk3399-rock960.dtsi"
  7. / {
  8. model = "96boards Rock960";
  9. compatible = "vamrs,rock960", "rockchip,rk3399";
  10. chosen {
  11. stdout-path = "serial2:1500000n8";
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>,
  17. <&user_led3_pin>, <&user_led4_pin>,
  18. <&wlan_led_pin>, <&bt_led_pin>;
  19. user_led1: led-1 {
  20. label = "green:user1";
  21. gpios = <&gpio4 RK_PC2 0>;
  22. linux,default-trigger = "heartbeat";
  23. };
  24. user_led2: led-2 {
  25. label = "green:user2";
  26. gpios = <&gpio4 RK_PC6 0>;
  27. linux,default-trigger = "mmc0";
  28. };
  29. user_led3: led-3 {
  30. label = "green:user3";
  31. gpios = <&gpio4 RK_PD0 0>;
  32. linux,default-trigger = "mmc1";
  33. };
  34. user_led4: led-4 {
  35. label = "green:user4";
  36. gpios = <&gpio4 RK_PD4 0>;
  37. panic-indicator;
  38. linux,default-trigger = "none";
  39. };
  40. wlan_active_led: led-5 {
  41. label = "yellow:wlan";
  42. gpios = <&gpio4 RK_PD5 0>;
  43. linux,default-trigger = "phy0tx";
  44. default-state = "off";
  45. };
  46. bt_active_led: led-6 {
  47. label = "blue:bt";
  48. gpios = <&gpio4 RK_PD6 0>;
  49. linux,default-trigger = "hci0-power";
  50. default-state = "off";
  51. };
  52. };
  53. };
  54. &cpu_alert0 {
  55. temperature = <65000>;
  56. };
  57. &cpu_thermal {
  58. sustainable-power = <1550>;
  59. cooling-maps {
  60. map0 {
  61. trip = <&cpu_alert1>;
  62. };
  63. };
  64. };
  65. &pcie0 {
  66. ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>;
  67. };
  68. &pinctrl {
  69. leds {
  70. user_led1_pin: user-led1-pin {
  71. rockchip,pins =
  72. <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
  73. };
  74. user_led2_pin: user-led2-pin {
  75. rockchip,pins =
  76. <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
  77. };
  78. user_led3_pin: user-led3-pin {
  79. rockchip,pins =
  80. <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  81. };
  82. user_led4_pin: user-led4-pin {
  83. rockchip,pins =
  84. <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
  85. };
  86. wlan_led_pin: wlan-led-pin {
  87. rockchip,pins =
  88. <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
  89. };
  90. bt_led_pin: bt-led-pin {
  91. rockchip,pins =
  92. <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
  93. };
  94. };
  95. pcie {
  96. pcie_drv: pcie-drv {
  97. rockchip,pins =
  98. <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
  99. };
  100. };
  101. usb2 {
  102. host_vbus_drv: host-vbus-drv {
  103. rockchip,pins =
  104. <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
  105. };
  106. };
  107. };
  108. &spi0 {
  109. /* On Low speed expansion (LS-SPI0) */
  110. status = "okay";
  111. };
  112. &spi4 {
  113. /* On High speed expansion (HS-SPI1) */
  114. status = "okay";
  115. };
  116. &usbdrd_dwc3_0 {
  117. dr_mode = "otg";
  118. };
  119. &usbdrd_dwc3_1 {
  120. dr_mode = "host";
  121. };
  122. &vcc3v3_pcie {
  123. gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>;
  124. };
  125. &vcc5v0_host {
  126. gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>;
  127. };