rockchip-io-domain.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Rockchip SRAM for IO Voltage Domains:
  2. -------------------------------------
  3. IO domain voltages on some Rockchip SoCs are variable but need to be
  4. kept in sync between the regulators and the SoC using a special
  5. register.
  6. A specific example using rk3288:
  7. - If the regulator hooked up to a pin like SDMMC0_VDD is 3.3V then
  8. bit 7 of GRF_IO_VSEL needs to be 0. If the regulator hooked up to
  9. that same pin is 1.8V then bit 7 of GRF_IO_VSEL needs to be 1.
  10. Said another way, this driver simply handles keeping bits in the SoC's
  11. general register file (GRF) in sync with the actual value of a voltage
  12. hooked up to the pins.
  13. Note that this driver specifically doesn't include:
  14. - any logic for deciding what voltage we should set regulators to
  15. - any logic for deciding whether regulators (or internal SoC blocks)
  16. should have power or not have power
  17. If there were some other software that had the smarts of making
  18. decisions about regulators, it would work in conjunction with this
  19. driver. When that other software adjusted a regulator's voltage then
  20. this driver would handle telling the SoC about it. A good example is
  21. vqmmc for SD. In that case the dw_mmc driver simply is told about a
  22. regulator. It changes the regulator between 3.3V and 1.8V at the
  23. right time. This driver notices the change and makes sure that the
  24. SoC is on the same page.
  25. Required properties:
  26. - compatible: should be one of:
  27. - "rockchip,rk3188-io-voltage-domain" for rk3188
  28. - "rockchip,rk3288-io-voltage-domain" for rk3288
  29. - "rockchip,rk3368-io-voltage-domain" for rk3368
  30. - "rockchip,rk3368-pmu-io-voltage-domain" for rk3368 pmu-domains
  31. - "rockchip,rk3399-io-voltage-domain" for rk3399
  32. - "rockchip,rk3399-pmu-io-voltage-domain" for rk3399 pmu-domains
  33. Deprecated properties:
  34. - rockchip,grf: phandle to the syscon managing the "general register files"
  35. Systems should move the io-domains to a sub-node of the grf simple-mfd.
  36. You specify supplies using the standard regulator bindings by including
  37. a phandle the relevant regulator. All specified supplies must be able
  38. to report their voltage. The IO Voltage Domain for any non-specified
  39. supplies will be not be touched.
  40. Possible supplies for rk3188:
  41. - ap0-supply: The supply connected to AP0_VCC.
  42. - ap1-supply: The supply connected to AP1_VCC.
  43. - cif-supply: The supply connected to CIF_VCC.
  44. - flash-supply: The supply connected to FLASH_VCC.
  45. - lcdc0-supply: The supply connected to LCD0_VCC.
  46. - lcdc1-supply: The supply connected to LCD1_VCC.
  47. - vccio0-supply: The supply connected to VCCIO0.
  48. - vccio1-supply: The supply connected to VCCIO1.
  49. Sometimes also labeled VCCIO1 and VCCIO2.
  50. Possible supplies for rk3288:
  51. - audio-supply: The supply connected to APIO4_VDD.
  52. - bb-supply: The supply connected to APIO5_VDD.
  53. - dvp-supply: The supply connected to DVPIO_VDD.
  54. - flash0-supply: The supply connected to FLASH0_VDD. Typically for eMMC
  55. - flash1-supply: The supply connected to FLASH1_VDD. Also known as SDIO1.
  56. - gpio30-supply: The supply connected to APIO1_VDD.
  57. - gpio1830 The supply connected to APIO2_VDD.
  58. - lcdc-supply: The supply connected to LCDC_VDD.
  59. - sdcard-supply: The supply connected to SDMMC0_VDD.
  60. - wifi-supply: The supply connected to APIO3_VDD. Also known as SDIO0.
  61. Possible supplies for rk3368:
  62. - audio-supply: The supply connected to APIO3_VDD.
  63. - dvp-supply: The supply connected to DVPIO_VDD.
  64. - flash0-supply: The supply connected to FLASH0_VDD. Typically for eMMC
  65. - gpio30-supply: The supply connected to APIO1_VDD.
  66. - gpio1830 The supply connected to APIO4_VDD.
  67. - sdcard-supply: The supply connected to SDMMC0_VDD.
  68. - wifi-supply: The supply connected to APIO2_VDD. Also known as SDIO0.
  69. Possible supplies for rk3368 pmu-domains:
  70. - pmu-supply: The supply connected to PMUIO_VDD.
  71. - vop-supply: The supply connected to LCDC_VDD.
  72. Possible supplies for rk3399:
  73. - bt656-supply: The supply connected to APIO2_VDD.
  74. - audio-supply: The supply connected to APIO5_VDD.
  75. - sdmmc-supply: The supply connected to SDMMC0_VDD.
  76. - gpio1830 The supply connected to APIO4_VDD.
  77. Possible supplies for rk3399 pmu-domains:
  78. - pmu1830-supply:The supply connected to PMUIO2_VDD.
  79. Example:
  80. io-domains {
  81. compatible = "rockchip,rk3288-io-voltage-domain";
  82. rockchip,grf = <&grf>;
  83. audio-supply = <&vcc18_codec>;
  84. bb-supply = <&vcc33_io>;
  85. dvp-supply = <&vcc_18>;
  86. flash0-supply = <&vcc18_flashio>;
  87. gpio1830-supply = <&vcc33_io>;
  88. gpio30-supply = <&vcc33_pmuio>;
  89. lcdc-supply = <&vcc33_lcd>;
  90. sdcard-supply = <&vccio_sd>;
  91. wifi-supply = <&vcc18_wl>;
  92. };