pinctrl-sirf.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. CSR SiRFprimaII pinmux controller
  2. Required properties:
  3. - compatible : "sirf,prima2-pinctrl"
  4. - reg : Address range of the pinctrl registers
  5. - interrupts : Interrupts used by every GPIO group
  6. - gpio-controller : Indicates this device is a GPIO controller
  7. - interrupt-controller : Marks the device node as an interrupt controller
  8. Optional properties:
  9. - sirf,pullups : if n-th bit of m-th bank is set, set a pullup on GPIO-n of bank m
  10. - sirf,pulldowns : if n-th bit of m-th bank is set, set a pulldown on GPIO-n of bank m
  11. Please refer to pinctrl-bindings.txt in this directory for details of the common
  12. pinctrl bindings used by client devices.
  13. SiRFprimaII's pinmux nodes act as a container for an arbitrary number of subnodes.
  14. Each of these subnodes represents some desired configuration for a group of pins.
  15. Required subnode-properties:
  16. - sirf,pins : An array of strings. Each string contains the name of a group.
  17. - sirf,function: A string containing the name of the function to mux to the
  18. group.
  19. Valid values for group and function names can be found from looking at the
  20. group and function arrays in driver files:
  21. drivers/pinctrl/pinctrl-sirf.c
  22. For example, pinctrl might have subnodes like the following:
  23. uart2_pins_a: uart2@0 {
  24. uart {
  25. sirf,pins = "uart2grp";
  26. sirf,function = "uart2";
  27. };
  28. };
  29. uart2_noflow_pins_a: uart2@1 {
  30. uart {
  31. sirf,pins = "uart2_nostreamctrlgrp";
  32. sirf,function = "uart2_nostreamctrl";
  33. };
  34. };
  35. For a specific board, if it wants to use uart2 without hardware flow control,
  36. it can add the following to its board-specific .dts file.
  37. uart2: uart@0xb0070000 {
  38. pinctrl-names = "default";
  39. pinctrl-0 = <&uart2_noflow_pins_a>;
  40. }