mmc-card.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mmc/mmc-card.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: MMC Card / eMMC Generic
  7. maintainers:
  8. - Ulf Hansson <ulf.hansson@linaro.org>
  9. description: |
  10. This documents describes the devicetree bindings for a mmc-host controller
  11. child node describing a mmc-card / an eMMC.
  12. It's possible to define a fixed partition table for an eMMC for the user
  13. partition, the 2 BOOT partition (boot1/2) and the 4 GP (gp1/2/3/4) if supported
  14. by the eMMC.
  15. properties:
  16. compatible:
  17. const: mmc-card
  18. reg:
  19. const: 0
  20. broken-hpi:
  21. $ref: /schemas/types.yaml#/definitions/flag
  22. description:
  23. Use this to indicate that the mmc-card has a broken hpi
  24. implementation, and that hpi should not be used.
  25. patternProperties:
  26. "^partitions(-boot[12]|-gp[14])?$":
  27. type: object
  28. additionalProperties: true
  29. properties:
  30. compatible:
  31. contains:
  32. const: fixed-partitions
  33. required:
  34. - compatible
  35. - reg
  36. additionalProperties: false
  37. examples:
  38. - |
  39. mmc {
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. card@0 {
  43. compatible = "mmc-card";
  44. reg = <0>;
  45. broken-hpi;
  46. partitions {
  47. compatible = "fixed-partitions";
  48. #address-cells = <1>;
  49. #size-cells = <1>;
  50. partition@0 {
  51. label = "kernel"; /* Kernel */
  52. reg = <0x0 0x2000000>; /* 32 MB */
  53. };
  54. partition@2000000 {
  55. label = "rootfs";
  56. reg = <0x2000000 0x40000000>; /* 1GB */
  57. };
  58. };
  59. partitions-boot1 {
  60. compatible = "fixed-partitions";
  61. #address-cells = <1>;
  62. #size-cells = <1>;
  63. partition@0 {
  64. label = "bl";
  65. reg = <0x0 0x2000000>; /* 32MB */
  66. read-only;
  67. };
  68. };
  69. };
  70. };
  71. ...