On 03/03/2022 13:00, Georgi Vlaev wrote: > Convert the TPS62360 regulator binding to DT schema format > using json-schema. > > Signed-off-by: Georgi Vlaev <g-vlaev@xxxxxx> > --- > .../bindings/regulator/ti,tps62360.yaml | 99 +++++++++++++++++++ > .../bindings/regulator/tps62360-regulator.txt | 44 --------- > 2 files changed, 99 insertions(+), 44 deletions(-) > create mode 100644 Documentation/devicetree/bindings/regulator/ti,tps62360.yaml > delete mode 100644 Documentation/devicetree/bindings/regulator/tps62360-regulator.txt > > diff --git a/Documentation/devicetree/bindings/regulator/ti,tps62360.yaml b/Documentation/devicetree/bindings/regulator/ti,tps62360.yaml > new file mode 100644 > index 000000000000..73674ef4d903 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/ti,tps62360.yaml > @@ -0,0 +1,99 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/ti,tps62360.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments TPS6236x Voltage Regulators > + > +maintainers: > + - Laxman Dewangan <ldewangan@xxxxxxxxxx> > + > +description: | > + The TPS6236x are a family of step down dc-dc converter with > + an input voltage range of 2.5V to 5.5V. The devices provide > + up to 3A peak load current, and an output voltage range of > + 0.77V to 1.4V (TPS62360/62) and 0.5V to 1.77V (TPS62361B/63). > + > + Datasheet is available at: > + https://www.ti.com/lit/gpn/tps62360 > + > +allOf: > + - $ref: "regulator.yaml#" > + > +properties: > + compatible: > + enum: > + - ti,tps62360 > + - ti,tps62361 > + - ti,tps62362 > + - ti,tps62363 > + > + reg: > + maxItems: 1 > + > + ti,vsel0-gpio: > + description: | > + GPIO for controlling VSEL0 line. If this property > + is missing, then assume that there is no GPIO for > + VSEL0 control. > + maxItems: 1 > + > + ti,vsel1-gpio: > + description: | > + GPIO for controlling VSEL1 line. If this property > + is missing, then assume that there is no GPIO for > + VSEL1 control. > + maxItems: 1 > + > + ti,enable-vout-discharge: > + description: Enable output discharge. > + type: boolean > + > + ti,enable-pull-down: > + description: Enable pull down. > + type: boolean > + > + ti,vsel0-state-high: > + description: | > + Initial state of VSEL0 input is high. If this property > + is missing, then assume the state as low. > + type: boolean > + > + ti,vsel1-state-high: > + description: | > + Initial state of VSEL1 input is high. If this property > + is missing, then assume the state as low. > + type: boolean > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + regulator@60 { > + compatible = "ti,tps62361"; In-consisting indentation. Use 4 spaces for entire DT example. Rest looks good. Best regards, Krzysztof