402-v5.12-0002-dt-bindings-mtd-add-binding-for-BCM4908-partitions.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. From 6e9dff6fe3fbc452f16566e4a7e293b0decefdba Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  3. Date: Thu, 11 Feb 2021 23:04:26 +0100
  4. Subject: [PATCH] dt-bindings: mtd: add binding for BCM4908 partitions
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. BCM4908 uses fixed partitions layout but function of some partitions may
  9. vary. Some devices use multiple firmware partitions and those partitions
  10. should be marked to let system discover their purpose.
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Signed-off-by: Richard Weinberger <[email protected]>
  13. ---
  14. .../partitions/brcm,bcm4908-partitions.yaml | 70 +++++++++++++++++++
  15. 1 file changed, 70 insertions(+)
  16. create mode 100644 Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
  17. --- /dev/null
  18. +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml
  19. @@ -0,0 +1,70 @@
  20. +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  21. +%YAML 1.2
  22. +---
  23. +$id: http://devicetree.org/schemas/mtd/partitions/brcm,bcm4908-partitions.yaml#
  24. +$schema: http://devicetree.org/meta-schemas/core.yaml#
  25. +
  26. +title: Broadcom BCM4908 partitioning
  27. +
  28. +description: |
  29. + Broadcom BCM4908 CFE bootloader supports two firmware partitions. One is used
  30. + for regular booting, the other is treated as fallback.
  31. +
  32. + This binding allows defining all fixed partitions and marking those containing
  33. + firmware. System can use that information e.g. for booting or flashing
  34. + purposes.
  35. +
  36. +maintainers:
  37. + - Rafał Miłecki <[email protected]>
  38. +
  39. +properties:
  40. + compatible:
  41. + const: brcm,bcm4908-partitions
  42. +
  43. + "#address-cells":
  44. + enum: [ 1, 2 ]
  45. +
  46. + "#size-cells":
  47. + enum: [ 1, 2 ]
  48. +
  49. +patternProperties:
  50. + "^partition@[0-9a-f]+$":
  51. + $ref: "partition.yaml#"
  52. + properties:
  53. + compatible:
  54. + const: brcm,bcm4908-firmware
  55. + unevaluatedProperties: false
  56. +
  57. +required:
  58. + - "#address-cells"
  59. + - "#size-cells"
  60. +
  61. +additionalProperties: false
  62. +
  63. +examples:
  64. + - |
  65. + partitions {
  66. + compatible = "brcm,bcm4908-partitions";
  67. + #address-cells = <1>;
  68. + #size-cells = <1>;
  69. +
  70. + partition@0 {
  71. + label = "cferom";
  72. + reg = <0x0 0x100000>;
  73. + };
  74. +
  75. + partition@100000 {
  76. + compatible = "brcm,bcm4908-firmware";
  77. + reg = <0x100000 0xf00000>;
  78. + };
  79. +
  80. + partition@1000000 {
  81. + compatible = "brcm,bcm4908-firmware";
  82. + reg = <0x1000000 0xf00000>;
  83. + };
  84. +
  85. + partition@1f00000 {
  86. + label = "calibration";
  87. + reg = <0x1f00000 0x100000>;
  88. + };
  89. + };