nxp,lpc1850-scu.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. NXP LPC18xx/43xx SCU pin controller Device Tree Bindings
  2. --------------------------------------------------------
  3. Required properties:
  4. - compatible : Should be "nxp,lpc1850-scu"
  5. - reg : Address and length of the register set for the device
  6. - clocks : Clock specifier (see clock bindings for details)
  7. The lpc1850-scu driver uses the generic pin multiplexing and generic pin
  8. configuration documented in pinctrl-bindings.txt.
  9. The following generic nodes are supported:
  10. - function
  11. - pins
  12. - bias-disable
  13. - bias-pull-up
  14. - bias-pull-down
  15. - drive-strength
  16. - input-enable
  17. - input-disable
  18. - input-schmitt-enable
  19. - input-schmitt-disable
  20. - slew-rate
  21. NXP specific properties:
  22. - nxp,gpio-pin-interrupt : Assign pin to gpio pin interrupt controller
  23. irq number 0 to 7. See example below.
  24. Not all pins support all properties so either refer to the NXP 1850/4350
  25. user manual or the pin table in the pinctrl-lpc18xx driver for supported
  26. pin properties.
  27. Example:
  28. pinctrl: pinctrl@40086000 {
  29. compatible = "nxp,lpc1850-scu";
  30. reg = <0x40086000 0x1000>;
  31. clocks = <&ccu1 CLK_CPU_SCU>;
  32. i2c0_pins: i2c0-pins {
  33. i2c0_pins_cfg {
  34. pins = "i2c0_scl", "i2c0_sda";
  35. function = "i2c0";
  36. input-enable;
  37. };
  38. };
  39. uart0_pins: uart0-pins {
  40. uart0_rx_cfg {
  41. pins = "pf_11";
  42. function = "uart0";
  43. bias-disable;
  44. input-enable;
  45. };
  46. uart0_tx_cfg {
  47. pins = "pf_10";
  48. function = "uart0";
  49. bias-disable;
  50. };
  51. };
  52. gpio_joystick_pins: gpio-joystick-pins {
  53. gpio_joystick_1_cfg {
  54. pins = "p9_0";
  55. function = "gpio";
  56. nxp,gpio-pin-interrupt = <0>;
  57. input-enable;
  58. bias-disable;
  59. };
  60. };
  61. };