rk3399-ficus.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. };
  23. &gmac {
  24. assigned-clocks = <&cru SCLK_RMII_SRC>;
  25. assigned-clock-parents = <&clkin_gmac>;
  26. clock_in_out = "input";
  27. phy-supply = <&vcc3v3_sys>;
  28. phy-mode = "rgmii";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&rgmii_pins>;
  31. snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
  32. snps,reset-active-low;
  33. snps,reset-delays-us = <0 10000 50000>;
  34. tx_delay = <0x28>;
  35. rx_delay = <0x11>;
  36. status = "okay";
  37. };
  38. &pcie0 {
  39. ep-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
  40. };
  41. &pinctrl {
  42. gmac {
  43. rgmii_sleep_pins: rgmii-sleep-pins {
  44. rockchip,pins =
  45. <3 15 RK_FUNC_GPIO &pcfg_output_low>;
  46. };
  47. };
  48. pcie {
  49. pcie_drv: pcie-drv {
  50. rockchip,pins =
  51. <1 24 RK_FUNC_GPIO &pcfg_pull_none>;
  52. };
  53. };
  54. usb2 {
  55. host_vbus_drv: host-vbus-drv {
  56. rockchip,pins =
  57. <4 27 RK_FUNC_GPIO &pcfg_pull_none>;
  58. };
  59. };
  60. };
  61. &usbdrd_dwc3_0 {
  62. dr_mode = "host";
  63. };
  64. &usbdrd_dwc3_1 {
  65. dr_mode = "host";
  66. };
  67. &vcc3v3_pcie {
  68. gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  69. };
  70. &vcc5v0_host {
  71. gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
  72. };