1f34652141d5126c1ff35f269e2dee97c543c3b3
[openwrt/openwrt.git] / target / linux / mediatek / patches-5.10 / 350-dt-bindings-mtd-brcm-trx-Add-brcm-trx-magic.patch
1 From a4d82940ff85a7e307953dfa715f65d5ab487e10 Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Sun, 18 Apr 2021 23:46:14 +0200
4 Subject: dt-bindings: mtd: brcm,trx: Add brcm,trx-magic
5
6 This adds the description of an additional property which allows to
7 specify a custom partition parser magic to detect a trx partition.
8 Buffalo has multiple device which are using the trx format, but with
9 different magic values.
10
11 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
12 Acked-by: Rob Herring <robh@kernel.org>
13 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
14 Link: https://lore.kernel.org/linux-mtd/20210418214616.239574-2-hauke@hauke-m.de
15 ---
16 .../devicetree/bindings/mtd/partitions/brcm,trx.txt | 5 +++++
17 1 file changed, 5 insertions(+)
18
19 --- a/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.txt
20 +++ b/Documentation/devicetree/bindings/mtd/partitions/brcm,trx.txt
21 @@ -28,6 +28,11 @@ detected by a software parsing TRX heade
22 Required properties:
23 - compatible : (required) must be "brcm,trx"
24
25 +Optional properties:
26 +
27 +- brcm,trx-magic: TRX magic, if it is different from the default magic
28 + 0x30524448 as a u32.
29 +
30 Example:
31
32 flash@0 {