px30-engicam-common.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2020 Engicam srl
  4. * Copyright (c) 2020 Amarula Solutions
  5. * Copyright (c) 2020 Amarula Solutions(India)
  6. */
  7. / {
  8. aliases {
  9. mmc1 = &sdmmc;
  10. mmc2 = &sdio;
  11. };
  12. vcc5v0_sys: vcc5v0-sys {
  13. compatible = "regulator-fixed";
  14. regulator-name = "vcc5v0_sys"; /* +5V */
  15. regulator-always-on;
  16. regulator-boot-on;
  17. regulator-min-microvolt = <5000000>;
  18. regulator-max-microvolt = <5000000>;
  19. };
  20. sdio_pwrseq: sdio-pwrseq {
  21. compatible = "mmc-pwrseq-simple";
  22. clocks = <&xin32k>;
  23. clock-names = "ext_clock";
  24. post-power-on-delay-ms = <80>;
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&wifi_enable_h>;
  27. };
  28. vcc3v3_btreg: vcc3v3-btreg {
  29. compatible = "regulator-gpio";
  30. enable-active-high;
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&bt_enable_h>;
  33. regulator-name = "btreg-gpio-supply";
  34. regulator-min-microvolt = <3300000>;
  35. regulator-max-microvolt = <3300000>;
  36. regulator-always-on;
  37. states = <3300000 0x0>;
  38. };
  39. vcc3v3_rf_aux_mod: vcc3v3-rf-aux-mod {
  40. compatible = "regulator-fixed";
  41. regulator-name = "vcc3v3_rf_aux_mod";
  42. regulator-min-microvolt = <3300000>;
  43. regulator-max-microvolt = <3300000>;
  44. regulator-always-on;
  45. regulator-boot-on;
  46. vin-supply = <&vcc5v0_sys>;
  47. };
  48. xin32k: xin32k {
  49. compatible = "fixed-clock";
  50. #clock-cells = <0>;
  51. clock-frequency = <32768>;
  52. clock-output-names = "xin32k";
  53. };
  54. };
  55. &sdio {
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. bus-width = <4>;
  59. clock-frequency = <50000000>;
  60. cap-sdio-irq;
  61. cap-sd-highspeed;
  62. keep-power-in-suspend;
  63. mmc-pwrseq = <&sdio_pwrseq>;
  64. non-removable;
  65. sd-uhs-sdr104;
  66. status = "okay";
  67. brcmf: wifi@1 {
  68. compatible = "brcm,bcm4329-fmac";
  69. reg = <1>;
  70. };
  71. };
  72. &gmac {
  73. clock_in_out = "output";
  74. phy-supply = <&vcc_3v3>; /* +3V3_SOM */
  75. snps,reset-active-low;
  76. snps,reset-delays-us = <0 50000 50000>;
  77. snps,reset-gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
  78. status = "okay";
  79. };
  80. &pwm0 {
  81. status = "okay";
  82. };
  83. &sdmmc {
  84. cap-sd-highspeed;
  85. card-detect-delay = <800>;
  86. vmmc-supply = <&vcc_3v3>; /* +3V3_SOM */
  87. vqmmc-supply = <&vcc_3v3>;
  88. status = "okay";
  89. };
  90. &u2phy {
  91. status = "okay";
  92. u2phy_host: host-port {
  93. status = "okay";
  94. };
  95. u2phy_otg: otg-port {
  96. status = "okay";
  97. };
  98. };
  99. &uart2 {
  100. pinctrl-0 = <&uart2m1_xfer>;
  101. status = "okay";
  102. };
  103. &usb20_otg {
  104. status = "okay";
  105. };
  106. &usb_host0_ehci {
  107. status = "okay";
  108. };
  109. &usb_host0_ohci {
  110. status = "okay";
  111. };