496-dt-bindings-add-bindings-for-mtd-concat-devices.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 5734c6669fba7ddb5ef491ccff7159d15dba0b59 Mon Sep 17 00:00:00 2001
  2. From: Bernhard Frauendienst <[email protected]>
  3. Date: Wed, 5 Sep 2018 01:32:51 +0200
  4. Subject: [PATCH 496/497] dt-bindings: add bindings for mtd-concat devices
  5. Document virtual mtd-concat device bindings.
  6. Signed-off-by: Bernhard Frauendienst <[email protected]>
  7. ---
  8. .../devicetree/bindings/mtd/mtd-concat.txt | 36 +++++++++++++++++++
  9. 1 file changed, 36 insertions(+)
  10. create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.txt
  11. diff --git a/Documentation/devicetree/bindings/mtd/mtd-concat.txt b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
  12. new file mode 100644
  13. index 000000000000..2daf3157b163
  14. --- /dev/null
  15. +++ b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
  16. @@ -0,0 +1,36 @@
  17. +Virtual MTD concat device
  18. +
  19. +Requires properties:
  20. +- devices: list of phandles to mtd nodes that should be concatenated
  21. +
  22. +Example:
  23. +
  24. +&spi {
  25. + flash0: flash@0 {
  26. + ...
  27. + };
  28. + flash1: flash@1 {
  29. + ...
  30. + };
  31. +};
  32. +
  33. +flash {
  34. + compatible = "mtd-concat";
  35. +
  36. + devices = <&flash0 &flash1>;
  37. +
  38. + partitions {
  39. + compatible = "fixed-partitions";
  40. +
  41. + partition@0 {
  42. + label = "boot";
  43. + reg = <0x0000000 0x0040000>;
  44. + read-only;
  45. + };
  46. +
  47. + partition@40000 {
  48. + label = "firmware";
  49. + reg = <0x0040000 0x1fc0000>;
  50. + };
  51. + }
  52. +}
  53. --
  54. 2.18.0