The boottrap is used to read implementation details from the SoC, such as the polarity of LED pins. Add bindings for it as we are going to use it for the LEDs connected to MediaTek built-in 1GE PHYs. Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx> --- .../arm/mediatek/mediatek,boottrap.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,boottrap.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,boottrap.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,boottrap.yaml new file mode 100644 index 000000000000..460e375320a4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,boottrap.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,boottrap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek boottrap + +maintainers: + - Daniel Golle <daniel@xxxxxxxxxxxxxx> + +description: + The boottrap found in some MediaTek SoCs is used to read SoC implementation + details such as LED polarities. + +properties: + $nodename: + const: boottrap + + compatible: + const: mediatek,boottrap + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + boottrap: boottrap@1001f6f0 { + compatible = "mediatek,boottrap"; + reg = <0 0x1001f6f0 0 0x20>; + }; -- 2.40.0