linux/Documentation/devicetree/bindings/w1/w1-gpio.yaml
Rob Herring 71a9aa162d dt-bindings: w1-gpio: Drop redundant 'maxItems'
Drop another redundant maxItems that snuck into w1-gpio binding.

If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.

Fixes: dd2c898bc2 ("dt-bindings: w1: Convert 1-Wire GPIO binding to a schema")
Cc: Daniel Mack <zonque@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
2021-10-04 13:11:22 -05:00

44 lines
800 B
YAML

# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/w1/w1-gpio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Bitbanged GPIO 1-Wire Bus Device Tree Bindings
maintainers:
- Daniel Mack <zonque@gmail.com>
properties:
compatible:
const: w1-gpio
gpios:
minItems: 1
items:
- description: Data I/O pin
- description: Enable pin for an external pull-up resistor
linux,open-drain:
type: boolean
description: >
If specified, the data pin is considered in open-drain mode.
required:
- compatible
- gpios
additionalProperties:
type: object
examples:
- |
#include <dt-bindings/gpio/gpio.h>
onewire {
compatible = "w1-gpio";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
};
...