Re: [PATCH v1 08/14] dt-bindings: mtd: relax the nvmem compatible string
From: Rob Herring <robh@kernel.org>
Date: 2022-08-31 21:48:16
Also in:
linux-arm-kernel, linux-devicetree, lkml
From: Rob Herring <robh@kernel.org>
Date: 2022-08-31 21:48:16
Also in:
linux-arm-kernel, linux-devicetree, lkml
On Thu, Aug 25, 2022 at 11:44:17PM +0200, Michael Walle wrote:
The "user-otp" and "factory-otp" compatible string just depicts a generic NVMEM device. But an actual device tree node might as well contain a more specific compatible string. Make it possible to add more specific binding elsewere and just match part of the compatibles here. Signed-off-by: Michael Walle <redacted> --- Documentation/devicetree/bindings/mtd/mtd.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
In hindsight it looks like we are mixing 2 different purposes of 'which instance is this' and 'what is this'. 'compatible' is supposed to be the latter. Maybe there's a better way to handle user/factory? There's a similar need with partitions for A/B or factory/update. Rob