meson,pinctrl.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. == Amlogic Meson pinmux controller ==
  2. Required properties for the root node:
  3. - compatible: one of "amlogic,meson8-cbus-pinctrl"
  4. "amlogic,meson8b-cbus-pinctrl"
  5. "amlogic,meson8m2-cbus-pinctrl"
  6. "amlogic,meson8-aobus-pinctrl"
  7. "amlogic,meson8b-aobus-pinctrl"
  8. "amlogic,meson8m2-aobus-pinctrl"
  9. "amlogic,meson-gxbb-periphs-pinctrl"
  10. "amlogic,meson-gxbb-aobus-pinctrl"
  11. - reg: address and size of registers controlling irq functionality
  12. === GPIO sub-nodes ===
  13. The GPIO bank for the controller is represented as a sub-node and it acts as a
  14. GPIO controller.
  15. Required properties for sub-nodes are:
  16. - reg: should contain address and size for mux, pull-enable, pull and
  17. gpio register sets
  18. - reg-names: an array of strings describing the "reg" entries. Must
  19. contain "mux", "pull" and "gpio". "pull-enable" is optional and
  20. when it is missing the "pull" registers are used instead
  21. - gpio-controller: identifies the node as a gpio controller
  22. - #gpio-cells: must be 2
  23. === Other sub-nodes ===
  24. Child nodes without the "gpio-controller" represent some desired
  25. configuration for a pin or a group. Those nodes can be pinmux nodes or
  26. configuration nodes.
  27. Required properties for pinmux nodes are:
  28. - groups: a list of pinmux groups. The list of all available groups
  29. depends on the SoC and can be found in driver sources.
  30. - function: the name of a function to activate for the specified set
  31. of groups. The list of all available functions depends on the SoC
  32. and can be found in driver sources.
  33. Required properties for configuration nodes:
  34. - pins: a list of pin names
  35. Configuration nodes support the generic properties "bias-disable",
  36. "bias-pull-up" and "bias-pull-down", described in file
  37. pinctrl-bindings.txt
  38. === Example ===
  39. pinctrl: pinctrl@c1109880 {
  40. compatible = "amlogic,meson8-cbus-pinctrl";
  41. reg = <0xc1109880 0x10>;
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. ranges;
  45. gpio: banks@c11080b0 {
  46. reg = <0xc11080b0 0x28>,
  47. <0xc11080e8 0x18>,
  48. <0xc1108120 0x18>,
  49. <0xc1108030 0x30>;
  50. reg-names = "mux", "pull", "pull-enable", "gpio";
  51. gpio-controller;
  52. #gpio-cells = <2>;
  53. };
  54. nand {
  55. mux {
  56. groups = "nand_io", "nand_io_ce0", "nand_io_ce1",
  57. "nand_io_rb0", "nand_ale", "nand_cle",
  58. "nand_wen_clk", "nand_ren_clk", "nand_dqs",
  59. "nand_ce2", "nand_ce3";
  60. function = "nand";
  61. };
  62. };
  63. };