props.yaml 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # SPDX-License-Identifier: BSD-3-Clause
  2. description: Device.props test
  3. compatible: "props"
  4. properties:
  5. nonexistent-boolean:
  6. type: boolean
  7. existent-boolean:
  8. type: boolean
  9. int:
  10. type: int
  11. const: 1
  12. array:
  13. type: array
  14. uint8-array:
  15. type: uint8-array
  16. string:
  17. type: string
  18. const: "foo"
  19. string-array:
  20. type: string-array
  21. phandle-ref:
  22. type: phandle
  23. phandle-refs:
  24. type: phandles
  25. phandle-array-foos:
  26. type: phandle-array
  27. phandle-array-foo-names:
  28. type: string-array
  29. # There's some slight special-casing for GPIOs in that 'foo-gpios = ...'
  30. # gets resolved to #gpio-cells rather than #foo-gpio-cells, so test that
  31. # too
  32. foo-gpios:
  33. type: phandle-array
  34. path:
  35. type: path