pinctrl-palmas.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. Palmas Pincontrol bindings
  2. The pins of Palmas device can be set on different option and provides
  3. the configuration for Pull UP/DOWN, open drain etc.
  4. Required properties:
  5. - compatible: It must be one of following:
  6. - "ti,palmas-pinctrl" for Palma series of the pincontrol.
  7. - "ti,tps65913-pinctrl" for Palma series device TPS65913.
  8. - "ti,tps80036-pinctrl" for Palma series device TPS80036.
  9. Please refer to pinctrl-bindings.txt in this directory for details of the
  10. common pinctrl bindings used by client devices, including the meaning of the
  11. phrase "pin configuration node".
  12. Palmas's pin configuration nodes act as a container for an arbitrary number of
  13. subnodes. Each of these subnodes represents some desired configuration for a
  14. list of pins. This configuration can include the mux function to select on
  15. those pin(s), and various pin configuration parameters, such as pull-up,
  16. open drain.
  17. The name of each subnode is not important; all subnodes should be enumerated
  18. and processed purely based on their content.
  19. Each subnode only affects those parameters that are explicitly listed. In
  20. other words, a subnode that lists a mux function but no pin configuration
  21. parameters implies no information about any pin configuration parameters.
  22. Similarly, a pin subnode that describes a pullup parameter implies no
  23. information about e.g. the mux function.
  24. Optional properties:
  25. - ti,palmas-enable-dvfs1: Enable DVFS1. Configure pins for DVFS1 mode.
  26. Selection primary or secondary function associated to I2C2_SCL_SCE,
  27. I2C2_SDA_SDO pin/pad for DVFS1 interface
  28. - ti,palmas-enable-dvfs2: Enable DVFS2. Configure pins for DVFS2 mode.
  29. Selection primary or secondary function associated to GPADC_START
  30. and SYSEN2 pin/pad for DVFS2 interface
  31. - ti,palmas-override-powerhold: This is applicable for PMICs for which
  32. GPIO7 is configured in POWERHOLD mode which has higher priority
  33. over DEV_ON bit and keeps the PMIC supplies on even after the DEV_ON
  34. bit is turned off. This property enables driver to over ride the
  35. POWERHOLD value to GPIO7 so as to turn off the PMIC in power off
  36. scenarios. So for GPIO7 if ti,palmas-override-powerhold is set
  37. then the GPIO_7 field should never be muxed to anything else.
  38. It should be set to POWERHOLD by default and only in case of
  39. power off scenarios the driver will over ride the mux value.
  40. This binding uses the following generic properties as defined in
  41. pinctrl-bindings.txt:
  42. Required: pins
  43. Options: function, bias-disable, bias-pull-up, bias-pull-down,
  44. drive-open-drain.
  45. Note that many of these properties are only valid for certain specific pins.
  46. See the Palmas device datasheet for complete details regarding which pins
  47. support which functionality.
  48. Valid values for pin names are:
  49. gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, gpio8, gpio9,
  50. gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, vac, powergood,
  51. nreswarm, pwrdown, gpadc_start, reset_in, nsleep, enable1, enable2,
  52. int.
  53. Valid value of function names are:
  54. gpio, led, pwm, regen, sysen, clk32kgaudio, id, vbus_det, chrg_det,
  55. vac, vacok, powergood, usb_psel, msecure, pwrhold, int, nreswarm,
  56. simrsto, simrsti, low_vbat, wireless_chrg1, rcm, pwrdown, gpadc_start,
  57. reset_in, nsleep, enable.
  58. There are 4 special functions: opt0, opt1, opt2 and opt3. If any of these
  59. functions is selected then directly pins register will be written with 0, 1, 2
  60. or 3 respectively if it is valid for that pins or list of pins.
  61. Example:
  62. palmas: tps65913 {
  63. ....
  64. pinctrl {
  65. compatible = "ti,tps65913-pinctrl";
  66. ti,palmas-enable-dvfs1;
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&palmas_pins_state>;
  69. palmas_pins_state: pinmux {
  70. gpio0 {
  71. pins = "gpio0";
  72. function = "id";
  73. bias-pull-up;
  74. };
  75. vac {
  76. pins = "vac";
  77. function = "vacok";
  78. bias-pull-down;
  79. };
  80. gpio5 {
  81. pins = "gpio5";
  82. function = "opt0";
  83. drive-open-drain = <1>;
  84. };
  85. };
  86. };
  87. ....
  88. };