Message ID | 5ce9482e53587d9250ecaa07d0908b987081b4e9.1695155379.git.gokhan.celik@analog.com |
---|---|
State | Not Applicable |
Headers | show |
Series | Add ADI MAX77503 regulator driver and bindings | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | warning | total: 1 errors, 0 warnings, 53 lines checked |
robh/patch-applied | success | |
robh/dtbs-check | warning | build log |
robh/dt-meta-schema | success |
On Tue, Sep 19, 2023 at 11:45:22PM +0300, Gokhan Celik wrote: > +required: > + - compatible > + - reg > + - regulator-min-microvolt > + - regulator-max-microvolt There should not normally be a requirement to specify voltage constraints, it should be valid for the system to not permit any configuration of the voltage at runtime and just use whatever state it was left with when the kernel was started (eg, hardware or bootloader default).
On Tue, Sep 19, 2023 at 11:45:22PM +0300, Gokhan Celik wrote: > Add ADI MAX77503 buck converter devicetree document. > > Signed-off-by: Gokhan Celik <gokhan.celik@analog.com> Other than Mark's comment, this seems fine to me. W/ that to his satisfaction, Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Thanks, Conor. > --- > .../regulator/adi,max77503-regulator.yaml | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml > > diff --git a/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml b/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml > new file mode 100644 > index 000000000000..128e04ae3f4d > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (c) 2023 Analog Devices, Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/regulator/adi,max77503-regulator.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Analog Devices MAX77503 Buck Converter > + > +maintainers: > + - Gokhan Celik <Gokhan.Celik@analog.com> > + > +description: | > + The Analog Devices MAX77503 is a single channel 14V input, 1.5A > + high-efficiency buck converter. This converter has 94% efficiency > + for 2-Cell/3-Cell battery applications. > + > +allOf: > + - $ref: regulator.yaml# > + > +properties: > + compatible: > + enum: > + - adi,max77503 > + > + reg: > + description: I2C address of the device > + items: > + - enum: [0x1e, 0x24, 0x37] > + > +required: > + - compatible > + - reg > + - regulator-min-microvolt > + - regulator-max-microvolt > + > +unevaluatedProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + regulator@1e { > + compatible = "adi,max77503"; > + reg = <0x1e>; > + > + regulator-min-microvolt = <800000>; > + regulator-max-microvolt = <5000000>; > + }; > + }; > + > -- > 2.34.1 >
diff --git a/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml b/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml new file mode 100644 index 000000000000..128e04ae3f4d --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright (c) 2023 Analog Devices, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/adi,max77503-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices MAX77503 Buck Converter + +maintainers: + - Gokhan Celik <Gokhan.Celik@analog.com> + +description: | + The Analog Devices MAX77503 is a single channel 14V input, 1.5A + high-efficiency buck converter. This converter has 94% efficiency + for 2-Cell/3-Cell battery applications. + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + enum: + - adi,max77503 + + reg: + description: I2C address of the device + items: + - enum: [0x1e, 0x24, 0x37] + +required: + - compatible + - reg + - regulator-min-microvolt + - regulator-max-microvolt + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@1e { + compatible = "adi,max77503"; + reg = <0x1e>; + + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <5000000>; + }; + }; +
Add ADI MAX77503 buck converter devicetree document. Signed-off-by: Gokhan Celik <gokhan.celik@analog.com> --- .../regulator/adi,max77503-regulator.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/adi,max77503-regulator.yaml