Rob Herring (Arm)
1eb9fabd52
dt-bindings: mtd: Ensure partition node properties are documented
...
Partition nodes without a compatible have no restrictions on additional
properties. Fix this by ensuring 'unevaluatedProperties' is set when
there's no compatible property. If there is a compatible property, then
there should be a specific schema for it which will enforce
'unevaluatedProperties'.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com >
Signed-off-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
2026-01-22 15:08:08 +01:00
Rob Herring (Arm)
95af1e641b
dt-bindings: mtd: partitions: Drop partitions.yaml
...
The partitions.yaml schema is an unusual structure in that it includes
all possible partition types, and it disables the normal matching by
compatible strings. As partitions.yaml has nothing to match on, it is
only applied when explicitly referenced. The use of "oneOf" also results
in misleading warnings which are difficult to understand. Drop
partitions.yaml and rely on the standard compatible matching instead.
The "mmc-card" case previously allowed any partition type, but now only
allows "fixed-partitions". There aren't any users and the original
intent appeared to be only for "fixed-partitions".
Acked-by: Ulf Hansson <ulf.hansson@linaro.org > # For MMC
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com >
Signed-off-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
2026-01-22 15:08:08 +01:00
Krzysztof Kozlowski
49e9d01f66
dt-bindings: Use full path to other schemas
...
When referencing other schema, it is preferred to use an absolute path
(/schemas/....), which allows also an seamless move of particular schema
out of Linux kernel to dtschema.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/r/20240505084618.135705-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org >
2024-05-08 14:13:46 -05:00
Zhenhua Huang
8d55a90b2b
dt-bindings: mtd: avoid automatically select from mtd.yaml
...
The mtd binding is always $ref'ed by other bindings, default selector
should be from other binding files which ref'ed it. Now, "$nodename" in
mtd.yaml turns into a "select" automatically such that a few binding check
issues reported because it conflicts with sram devices(eg, qcom,imem.yaml,
rules in folder sram/*)
To avoid the automatically created "select" in mtd.yaml, adding:
select: false
Suggested-by: Bjorn Andersson <quic_bjorande@quicinc.com >
Fixes: 7bdc671822 ("dt-bindings: mtd: physmap: Reuse the generic definitions")
Signed-off-by: Zhenhua Huang <quic_zhenhuah@quicinc.com >
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/linux-mtd/1704885705-7486-1-git-send-email-quic_zhenhuah@quicinc.com
2024-02-05 14:22:39 +01:00
Rafał Miłecki
c5330723d5
dt-bindings: nvmem: move deprecated cells binding to its own file
...
Support for old NVMEM fixed cells was deprecated in favour of
"fixed-layout". It's still part of the nvmem.yaml though and may be
unknowingly used by new bindings added without much of analyze.
To make it more difficult to accidentally support old syntax move its
binding to separated file with "deprecated" in its name.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl >
Acked-by: Neil Armstrong <neil.armstrong@linaro.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Acked-by: Heiko Stuebner <heiko@sntech.de >
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org >
Link: https://lore.kernel.org/r/20231020105545.216052-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-10-21 19:19:06 +02:00
Miquel Raynal
da787688a5
dt-bindings: mtd: Accept nand related node names
...
There is no addition there, but the mtd.yaml file is so generic, it can
be referenced by a wide variety of devices, including nand ones which
already define the node name to "nand@<cs>". Right now it does not lead
to any failure but when we will constrain more the schema, this will
become a problem because we want the mtd-wide properties like label or
partitions to be available for the callers.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-2-miquel.raynal@bootlin.com
2023-06-22 23:03:21 +02:00
Rob Herring
e62fc18213
dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas
...
Just as unevaluatedProperties or additionalProperties are required at
the top level of schemas, they should (and will) also be required for
child node schemas. That ensures only documented properties are
present.
Add unevaluatedProperties or additionalProperties as appropriate, and
then add any missing properties flagged by the addition.
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com >
Acked-by: Guenter Roeck <linux@roeck-us.net >
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Acked-by: Mark Brown <broonie@kernel.org >
Acked-by: Lee Jones <lee@kernel.org >
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20230124230228.372305-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
2023-04-05 15:38:38 -05:00
Miquel Raynal
d963af0b23
dt-bindings: mtd: Drop object types when referencing other files
...
Setting an object type is redundant when a reference is made, so drop
these useless lines.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-17-miquel.raynal@bootlin.com
2022-11-17 21:59:31 +01:00
Miquel Raynal
d85cebfbc6
dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true
...
In most cases we try to avoid it but in some cases this is
needed. Clarify why by adding a small comment.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-16-miquel.raynal@bootlin.com
2022-11-17 21:59:30 +01:00
Miquel Raynal
991088a637
dt-bindings: mtd: partitions: Constrain the list of parsers
...
Parser compatibles cannot be used anywhere, and the list is limited. In
order to constrain this list, enumerate them all under the top
"partitions" subnode. New parsers will have to add their own compatible
here as well.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-12-miquel.raynal@bootlin.com
2022-11-17 21:59:22 +01:00
Miquel Raynal
7bdc671822
dt-bindings: mtd: physmap: Reuse the generic definitions
...
The memory mapped MTD devices also share a lot with all the other MTD
devices, so let's share the properties by referencing mtd.yaml. We can
then drop mentioning the properties, to the cost of mentioning the
possible "sram" node name prefix.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-11-miquel.raynal@bootlin.com
2022-11-17 21:59:20 +01:00
Miquel Raynal
5d96ea42eb
dt-bindings: mtd: Clarify all partition subnodes
...
Over time the various ways to define MTD partitions has evolved. Most of
the controllers support several different bindings. Let's define all
possible choices in one file and mark the legacy ones deprecated. This
way, we can just reference this file and avoid dupplicating these
definitions.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-2-miquel.raynal@bootlin.com
2022-11-17 21:59:05 +01:00
Andrew Lunn
dd3cb467eb
dt-bindings: Remove 'Device Tree Bindings' from end of title:
...
As indicated in
link: https://lore.kernel.org/all/20220822204945.GA808626-robh@kernel.org/
DT schema files should not have 'Device Tree Binding' as part of there
title: line. Remove this in most .yaml files, so hopefully preventing
developers copying it into new .yaml files, and being asked to remove
it.
Signed-off-by: Andrew Lunn <andrew@lunn.ch >
Link: https://lore.kernel.org/r/20220825020427.3460650-1-andrew@lunn.ch
Signed-off-by: Rob Herring <robh@kernel.org >
2022-08-25 14:06:57 -05:00
Michael Walle
74ae3663b1
dt-bindings: mtd: add OTP bindings
...
Flash devices can have one-time-programmable regions. Add a nvmem
binding so they can be used as a nvmem provider.
Signed-off-by: Michael Walle <michael@walle.cc >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/linux-mtd/20210424110608.15748-4-michael@walle.cc
2021-05-10 12:42:51 +02:00
Michael Walle
e6aed6717c
dt-bindings: mtd: add YAML schema for the generic MTD bindings
...
Convert MTD's common.txt to mtd.yaml.
Signed-off-by: Michael Walle <michael@walle.cc >
Reviewed-by: Rob Herring <robh@kernel.org >
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com >
Link: https://lore.kernel.org/linux-mtd/20210424110608.15748-3-michael@walle.cc
2021-05-10 12:42:49 +02:00