vexpress-sysreg.yaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/arm/vexpress-sysreg.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: ARM Versatile Express system registers
  7. maintainers:
  8. - Andre Przywara <andre.przywara@arm.com>
  9. description:
  10. This is a system control registers block, providing multiple low level
  11. platform functions like board detection and identification, software
  12. interrupt generation, MMC and NOR Flash control, etc.
  13. properties:
  14. compatible:
  15. const: arm,vexpress-sysreg
  16. reg:
  17. maxItems: 1
  18. "#address-cells":
  19. const: 1
  20. "#size-cells":
  21. const: 1
  22. ranges: true
  23. gpio-controller:
  24. deprecated: true
  25. "#gpio-cells":
  26. deprecated: true
  27. const: 2
  28. additionalProperties: false
  29. patternProperties:
  30. '^gpio@[0-9a-f]+$':
  31. type: object
  32. additionalProperties: false
  33. description:
  34. GPIO children
  35. properties:
  36. compatible:
  37. enum:
  38. - arm,vexpress-sysreg,sys_led
  39. - arm,vexpress-sysreg,sys_mci
  40. - arm,vexpress-sysreg,sys_flash
  41. gpio-controller: true
  42. "#gpio-cells":
  43. const: 2
  44. description: |
  45. The first cell is the function number:
  46. for sys_led : 0..7 = LED 0..7
  47. for sys_mci : 0 = MMC CARDIN, 1 = MMC WPROT
  48. for sys_flash : 0 = NOR FLASH WPn
  49. The second cell can take standard GPIO flags.
  50. reg:
  51. maxItems: 1
  52. required:
  53. - compatible
  54. - reg
  55. - gpio-controller
  56. - "#gpio-cells"
  57. required:
  58. - compatible
  59. - reg
  60. examples:
  61. - |
  62. sysreg@0 {
  63. compatible = "arm,vexpress-sysreg";
  64. reg = <0x00000 0x1000>;
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. ranges = <0 0 0x1000>;
  68. v2m_led_gpios: gpio@8 {
  69. compatible = "arm,vexpress-sysreg,sys_led";
  70. reg = <0x008 4>;
  71. gpio-controller;
  72. #gpio-cells = <2>;
  73. };
  74. };
  75. ...