rk3328-roc-pc.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. // Copyright (c) 2021 T-Chip Intelligent Technology Co., Ltd
  3. /dts-v1/;
  4. #include <dt-bindings/input/input.h>
  5. #include "rk3328-roc-cc.dts"
  6. / {
  7. model = "Firefly ROC-RK3328-PC";
  8. compatible = "firefly,roc-rk3328-pc", "rockchip,rk3328";
  9. adc-keys {
  10. compatible = "adc-keys";
  11. io-channels = <&saradc 0>;
  12. io-channel-names = "buttons";
  13. keyup-threshold-microvolt = <1750000>;
  14. /* This button is unpopulated out of the factory. */
  15. button-recovery {
  16. label = "Recovery";
  17. linux,code = <KEY_VENDOR>;
  18. press-threshold-microvolt = <10000>;
  19. };
  20. };
  21. ir-receiver {
  22. compatible = "gpio-ir-receiver";
  23. gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
  24. linux,rc-map-name = "rc-khadas";
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&ir_int>;
  27. };
  28. sdio_pwrseq: sdio-pwrseq {
  29. compatible = "mmc-pwrseq-simple";
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&wifi_en>, <&wifi_host_wake>;
  32. reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. &codec {
  36. mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
  37. };
  38. &gpu {
  39. mali-supply = <&vdd_logic>;
  40. };
  41. &pinctrl {
  42. ir {
  43. ir_int: ir-int {
  44. rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
  45. };
  46. };
  47. sdmmcio {
  48. sdio_per_pin: sdio-per-pin {
  49. rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
  50. };
  51. };
  52. wifi {
  53. wifi_en: wifi-en {
  54. rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
  55. };
  56. wifi_host_wake: wifi-host-wake {
  57. rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none_4ma>;
  58. };
  59. bt_rst: bt-rst {
  60. rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  61. };
  62. bt_en: bt-en {
  63. rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
  64. };
  65. };
  66. };
  67. &pmic_int_l {
  68. rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
  69. };
  70. &rk805 {
  71. interrupt-parent = <&gpio0>;
  72. interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
  73. };
  74. &saradc {
  75. vref-supply = <&vcc_18>;
  76. status = "okay";
  77. };
  78. &usb20_host_drv {
  79. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
  80. };
  81. &vcc_host1_5v {
  82. gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
  83. };
  84. &vcc_sdio {
  85. gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&sdio_per_pin>;
  88. };