pinctrl-palmas.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. This binding uses the following generic properties as defined in
  32. pinctrl-bindings.txt:
  33. Required: pins
  34. Options: function, bias-disable, bias-pull-up, bias-pull-down,
  35. bias-pin-default, drive-open-drain.
  36. Note that many of these properties are only valid for certain specific pins.
  37. See the Palmas device datasheet for complete details regarding which pins
  38. support which functionality.
  39. Valid values for pin names are:
  40. gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, gpio8, gpio9,
  41. gpio10, gpio11, gpio12, gpio13, gpio14, gpio15, vac, powergood,
  42. nreswarm, pwrdown, gpadc_start, reset_in, nsleep, enable1, enable2,
  43. int.
  44. Valid value of function names are:
  45. gpio, led, pwm, regen, sysen, clk32kgaudio, id, vbus_det, chrg_det,
  46. vac, vacok, powergood, usb_psel, msecure, pwrhold, int, nreswarm,
  47. simrsto, simrsti, low_vbat, wireless_chrg1, rcm, pwrdown, gpadc_start,
  48. reset_in, nsleep, enable.
  49. There are 4 special functions: opt0, opt1, opt2 and opt3. If any of these
  50. functions is selected then directly pins register will be written with 0, 1, 2
  51. or 3 respectively if it is valid for that pins or list of pins.
  52. Example:
  53. palmas: tps65913 {
  54. ....
  55. pinctrl {
  56. compatible = "ti,tps65913-pinctrl";
  57. ti,palmas-enable-dvfs1;
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&palmas_pins_state>;
  60. palmas_pins_state: pinmux {
  61. gpio0 {
  62. pins = "gpio0";
  63. function = "id";
  64. bias-pull-up;
  65. };
  66. vac {
  67. pins = "vac";
  68. function = "vacok";
  69. bias-pull-down;
  70. };
  71. gpio5 {
  72. pins = "gpio5";
  73. function = "opt0";
  74. drive-open-drain = <1>;
  75. };
  76. };
  77. };
  78. ....
  79. };