nxp,lpc3220-gpio.yaml 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/gpio/nxp,lpc3220-gpio.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: NXP LPC3220 SoC GPIO controller
  7. maintainers:
  8. - Animesh Agarwal <animeshagarwal28@gmail.com>
  9. properties:
  10. compatible:
  11. const: nxp,lpc3220-gpio
  12. reg:
  13. maxItems: 1
  14. gpio-controller: true
  15. '#gpio-cells':
  16. const: 3
  17. description: |
  18. 1) bank:
  19. 0: GPIO P0
  20. 1: GPIO P1
  21. 2: GPIO P2
  22. 3: GPIO P3
  23. 4: GPI P3
  24. 5: GPO P3
  25. 2) pin number
  26. 3) flags:
  27. - bit 0 specifies polarity (0 for normal, 1 for inverted)
  28. required:
  29. - compatible
  30. - reg
  31. - gpio-controller
  32. - '#gpio-cells'
  33. additionalProperties: false
  34. examples:
  35. - |
  36. gpio@40028000 {
  37. compatible = "nxp,lpc3220-gpio";
  38. reg = <0x40028000 0x1000>;
  39. gpio-controller;
  40. #gpio-cells = <3>; /* bank, pin, flags */
  41. };