1
0

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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 5734c6669fba7ddb5ef491ccff7159d15dba0b59 Mon Sep 17 00:00:00 2001
  2. From: Bernhard Frauendienst <kernel@nospam.obeliks.de>
  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 <kernel@nospam.obeliks.de>
  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. --- /dev/null
  12. +++ b/Documentation/devicetree/bindings/mtd/mtd-concat.txt
  13. @@ -0,0 +1,36 @@
  14. +Virtual MTD concat device
  15. +
  16. +Requires properties:
  17. +- devices: list of phandles to mtd nodes that should be concatenated
  18. +
  19. +Example:
  20. +
  21. +&spi {
  22. + flash0: flash@0 {
  23. + ...
  24. + };
  25. + flash1: flash@1 {
  26. + ...
  27. + };
  28. +};
  29. +
  30. +flash {
  31. + compatible = "mtd-concat";
  32. +
  33. + devices = <&flash0 &flash1>;
  34. +
  35. + partitions {
  36. + compatible = "fixed-partitions";
  37. +
  38. + partition@0 {
  39. + label = "boot";
  40. + reg = <0x0000000 0x0040000>;
  41. + read-only;
  42. + };
  43. +
  44. + partition@40000 {
  45. + label = "firmware";
  46. + reg = <0x0040000 0x1fc0000>;
  47. + };
  48. + }
  49. +}