mbox series

[v2,0/3] mtd: parsers: trx: Add support for Buffalo WSR-2533DHP2

Message ID 20210418214616.239574-1-hauke@hauke-m.de
Headers show
Series mtd: parsers: trx: Add support for Buffalo WSR-2533DHP2 | expand

Message

Hauke Mehrtens April 18, 2021, 9:46 p.m. UTC
The Buffalo WSR-2533DHP2 uses a Mediatek MT7622 SoC, with the TRX 
partition format with a special magic. Buffalo probably ported the code 
from their older Broadcom based devices.

Changes since:
v1:
 - Split dt-bindings into own patch
 - Rename trx-magic to brcm,trx-magic
 - Do not check np for NULL
 - inline parser_trx_get_magic()
 - Add depends for ARCH_MEDIATEK

Hauke Mehrtens (3):
  dt-bindings: mtd: brcm,trx: Add brcm,trx-magic
  mtd: parsers: trx: Allow to specify brcm,trx-magic in DT
  mtd: parsers: trx: Allow to use TRX parser on Mediatek SoCs

 .../devicetree/bindings/mtd/partitions/brcm,trx.txt      | 5 +++++
 drivers/mtd/parsers/Kconfig                              | 2 +-
 drivers/mtd/parsers/parser_trx.c                         | 9 ++++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

Comments

Rob Herring April 20, 2021, 6:56 p.m. UTC | #1
On Sun, 18 Apr 2021 23:46:14 +0200, Hauke Mehrtens wrote:
> This adds the description of an additional property which allows to

> specify a custom partition parser magic to detect a trx partition.

> Buffalo has multiple device which are using the trx format, but with

> different magic values.

> 

> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

> ---

>  .../devicetree/bindings/mtd/partitions/brcm,trx.txt          | 5 +++++

>  1 file changed, 5 insertions(+)

> 


Acked-by: Rob Herring <robh@kernel.org>