fsl,espi.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/spi/fsl,espi.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Freescale eSPI (Enhanced Serial Peripheral Interface) controller
  7. maintainers:
  8. - J. Neuschäfer <j.ne@posteo.net>
  9. properties:
  10. compatible:
  11. const: fsl,mpc8536-espi
  12. reg:
  13. maxItems: 1
  14. interrupts:
  15. maxItems: 1
  16. fsl,espi-num-chipselects:
  17. $ref: /schemas/types.yaml#/definitions/uint32
  18. enum: [ 1, 4 ]
  19. description: The number of the chipselect signals.
  20. fsl,csbef:
  21. $ref: /schemas/types.yaml#/definitions/uint32
  22. minimum: 0
  23. maximum: 15
  24. description: Chip select assertion time in bits before frame starts
  25. fsl,csaft:
  26. $ref: /schemas/types.yaml#/definitions/uint32
  27. minimum: 0
  28. maximum: 15
  29. description: Chip select negation time in bits after frame ends
  30. required:
  31. - compatible
  32. - reg
  33. - interrupts
  34. - fsl,espi-num-chipselects
  35. allOf:
  36. - $ref: spi-controller.yaml#
  37. unevaluatedProperties: false
  38. examples:
  39. - |
  40. #include <dt-bindings/interrupt-controller/irq.h>
  41. spi@110000 {
  42. compatible = "fsl,mpc8536-espi";
  43. reg = <0x110000 0x1000>;
  44. #address-cells = <1>;
  45. #size-cells = <0>;
  46. interrupts = <53 IRQ_TYPE_EDGE_FALLING>;
  47. fsl,espi-num-chipselects = <4>;
  48. fsl,csbef = <1>;
  49. fsl,csaft = <1>;
  50. };
  51. ...