rk3368-lion-haikou.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
  4. */
  5. /dts-v1/;
  6. #include "rk3368-lion.dtsi"
  7. / {
  8. model = "Theobroma Systems RK3368-uQ7 Baseboard";
  9. compatible = "tsd,rk3368-lion-haikou", "rockchip,rk3368";
  10. aliases {
  11. mmc1 = &sdmmc;
  12. };
  13. chosen {
  14. stdout-path = "serial0:115200n8";
  15. };
  16. i2cmux2 {
  17. i2c@0 {
  18. eeprom: eeprom@50 {
  19. compatible = "atmel,24c01";
  20. pagesize = <8>;
  21. reg = <0x50>;
  22. };
  23. };
  24. };
  25. leds {
  26. pinctrl-0 = <&module_led_pins>, <&sd_card_led_pin>;
  27. sd_card_led: led-3 {
  28. label = "sd_card_led";
  29. gpios = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>;
  30. linux,default-trigger = "mmc0";
  31. };
  32. };
  33. dc_12v: dc-12v {
  34. compatible = "regulator-fixed";
  35. regulator-name = "dc_12v";
  36. regulator-always-on;
  37. regulator-boot-on;
  38. regulator-min-microvolt = <12000000>;
  39. regulator-max-microvolt = <12000000>;
  40. };
  41. vcc3v3_baseboard: vcc3v3-baseboard {
  42. compatible = "regulator-fixed";
  43. regulator-name = "vcc3v3_baseboard";
  44. regulator-always-on;
  45. regulator-boot-on;
  46. regulator-min-microvolt = <3300000>;
  47. regulator-max-microvolt = <3300000>;
  48. vin-supply = <&dc_12v>;
  49. };
  50. vcc5v0_otg: vcc5v0-otg-regulator {
  51. compatible = "regulator-fixed";
  52. enable-active-high;
  53. gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&otg_vbus_drv>;
  56. regulator-name = "vcc5v0_otg";
  57. regulator-always-on;
  58. };
  59. };
  60. &sdmmc {
  61. bus-width = <4>;
  62. cap-mmc-highspeed;
  63. cap-sd-highspeed;
  64. cd-gpios = <&gpio2 RK_PB3 GPIO_ACTIVE_LOW>;
  65. disable-wp;
  66. max-frequency = <25000000>;
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
  69. rockchip,default-sample-phase = <90>;
  70. vmmc-supply = <&vcc3v3_baseboard>;
  71. status = "okay";
  72. };
  73. &spi2 {
  74. cs-gpios = <0>, <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>;
  75. status = "okay";
  76. };
  77. &usb_otg {
  78. dr_mode = "otg";
  79. status = "okay";
  80. };
  81. &uart0 {
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
  84. status = "okay";
  85. };
  86. &uart1 {
  87. /* alternate function of GPIO5/6 */
  88. status = "disabled";
  89. };
  90. &pinctrl {
  91. pinctrl-names = "default";
  92. pinctrl-0 = <&haikou_pin_hog>;
  93. hog {
  94. haikou_pin_hog: haikou-pin-hog {
  95. rockchip,pins =
  96. /* LID_BTN */
  97. <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
  98. /* BATLOW# */
  99. <0 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>,
  100. /* SLP_BTN# */
  101. <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>,
  102. /* BIOS_DISABLE# */
  103. <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
  104. };
  105. };
  106. leds {
  107. sd_card_led_pin: sd-card-led-pin {
  108. rockchip,pins =
  109. <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
  110. };
  111. };
  112. sdmmc {
  113. sdmmc_cd_pin: sdmmc-cd-pin {
  114. rockchip,pins =
  115. <2 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
  116. };
  117. };
  118. usb_otg {
  119. otg_vbus_drv: otg-vbus-drv {
  120. rockchip,pins =
  121. <0 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
  122. };
  123. };
  124. };