oxnas,pinctrl.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. * Oxford Semiconductor OXNAS SoC Family Pin Controller
  2. Please refer to pinctrl-bindings.txt, ../gpio/gpio.txt, and
  3. ../interrupt-controller/interrupts.txt for generic information regarding
  4. pin controller, GPIO, and interrupt bindings.
  5. OXNAS 'pin configuration node' is a node of a group of pins which can be
  6. used for a specific device or function. This node represents configurations of
  7. pins, optional function, and optional mux related configuration.
  8. Required properties for pin controller node:
  9. - compatible: "oxsemi,ox810se-pinctrl"
  10. - oxsemi,sys-ctrl: a phandle to the system controller syscon node
  11. Required properties for pin configuration sub-nodes:
  12. - pins: List of pins to which the configuration applies.
  13. Optional properties for pin configuration sub-nodes:
  14. ----------------------------------------------------
  15. - function: Mux function for the specified pins.
  16. - bias-pull-up: Enable weak pull-up.
  17. Example:
  18. pinctrl: pinctrl {
  19. compatible = "oxsemi,ox810se-pinctrl";
  20. /* Regmap for sys registers */
  21. oxsemi,sys-ctrl = <&sys>;
  22. pinctrl_uart2: pinctrl_uart2 {
  23. uart2a {
  24. pins = "gpio31";
  25. function = "fct3";
  26. };
  27. uart2b {
  28. pins = "gpio32";
  29. function = "fct3";
  30. };
  31. };
  32. };
  33. uart2: serial@900000 {
  34. compatible = "ns16550a";
  35. reg = <0x900000 0x100000>;
  36. clocks = <&sysclk>;
  37. interrupts = <29>;
  38. reg-shift = <0>;
  39. fifo-size = <16>;
  40. reg-io-width = <1>;
  41. current-speed = <115200>;
  42. no-loopback-test;
  43. status = "disabled";
  44. resets = <&reset 22>;
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pinctrl_uart2>;
  47. };