rk3368-lion-haikou.dts 2.9 KB

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