nvmem-cells.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mtd/partitions/nvmem-cells.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Nvmem cells
  7. description: |
  8. Any partition containing the compatible "nvmem-cells" will register as a
  9. nvmem provider.
  10. Each direct subnodes represents a nvmem cell following the nvmem binding.
  11. Nvmem binding to declare nvmem-cells can be found in:
  12. Documentation/devicetree/bindings/nvmem/nvmem.yaml
  13. maintainers:
  14. - Ansuel Smith <ansuelsmth@gmail.com>
  15. allOf:
  16. - $ref: /schemas/mtd/partitions/partition.yaml#
  17. - $ref: /schemas/nvmem/nvmem.yaml#
  18. - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml#
  19. properties:
  20. compatible:
  21. const: nvmem-cells
  22. required:
  23. - compatible
  24. unevaluatedProperties: false
  25. examples:
  26. - |
  27. partitions {
  28. compatible = "fixed-partitions";
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. /* ... */
  32. };
  33. art: art@1200000 {
  34. compatible = "nvmem-cells";
  35. reg = <0x1200000 0x0140000>;
  36. label = "art";
  37. read-only;
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. macaddr_gmac1: macaddr_gmac1@0 {
  41. reg = <0x0 0x6>;
  42. };
  43. macaddr_gmac2: macaddr_gmac2@6 {
  44. reg = <0x6 0x6>;
  45. };
  46. pre_cal_24g: pre_cal_24g@1000 {
  47. reg = <0x1000 0x2f20>;
  48. };
  49. pre_cal_5g: pre_cal_5g@5000{
  50. reg = <0x5000 0x2f20>;
  51. };
  52. };
  53. - |
  54. partitions {
  55. compatible = "fixed-partitions";
  56. #address-cells = <1>;
  57. #size-cells = <1>;
  58. partition@0 {
  59. label = "bootloader";
  60. reg = <0x000000 0x100000>;
  61. read-only;
  62. };
  63. firmware@100000 {
  64. compatible = "brcm,trx";
  65. label = "firmware";
  66. reg = <0x100000 0xe00000>;
  67. };
  68. calibration@f00000 {
  69. compatible = "nvmem-cells";
  70. label = "calibration";
  71. reg = <0xf00000 0x100000>;
  72. #address-cells = <1>;
  73. #size-cells = <1>;
  74. wifi0@0 {
  75. reg = <0x000000 0x080000>;
  76. };
  77. wifi1@80000 {
  78. reg = <0x080000 0x080000>;
  79. };
  80. };
  81. };