regulator: max77857: Add ADI MAX77857/59/MAX77831 Regulator bindings
Add ADI MAX77857/59 and MAX77831 Regulator device tree document. Signed-off-by: Okan Sahin <okan.sahin@analog.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230717050736.10075-2-okan.sahin@analog.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
af71cccade
commit
6d5373e98b
@ -0,0 +1,86 @@
|
||||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
||||
# Copyright 2022 Analog Devices Inc.
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/regulator/adi,max77857.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Analog Devices MAX77857 Buck-Boost Converter
|
||||
|
||||
maintainers:
|
||||
- Ibrahim Tilki <Ibrahim.Tilki@analog.com>
|
||||
- Okan Sahin <Okan.Sahin@analog.com>
|
||||
|
||||
description: Analog Devices MAX77857 Buck-Boost Converter
|
||||
|
||||
properties:
|
||||
compatible:
|
||||
enum:
|
||||
- adi,max77831
|
||||
- adi,max77857
|
||||
- adi,max77859
|
||||
- adi,max77859a
|
||||
|
||||
reg:
|
||||
description: I2C address of the device
|
||||
items:
|
||||
- enum: [0x66, 0x67, 0x6E, 0x6F]
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
adi,switch-frequency-hz:
|
||||
description: Switching frequency of the Buck-Boost converter in Hz.
|
||||
items:
|
||||
- enum: [1200000, 1500000, 1800000, 2100000]
|
||||
|
||||
adi,rtop-ohms:
|
||||
description: Top feedback resistor value in ohms for external feedback.
|
||||
minimum: 150000
|
||||
maximum: 330000
|
||||
|
||||
adi,rbot-ohms:
|
||||
description: Bottom feedback resistor value in ohms for external feedback.
|
||||
|
||||
dependencies:
|
||||
adi,rtop-ohms: [ 'adi,rbot-ohms' ]
|
||||
adi,rbot-ohms: [ 'adi,rtop-ohms' ]
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
allOf:
|
||||
- $ref: regulator.yaml#
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- adi,max77831
|
||||
|
||||
then:
|
||||
properties:
|
||||
adi,switch-frequency-hz:
|
||||
items:
|
||||
enum: [1200000, 1500000, 1800000]
|
||||
|
||||
unevaluatedProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
regulator@66 {
|
||||
reg = <0x66>;
|
||||
compatible = "adi,max77857";
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
|
||||
|
||||
adi,rtop-ohms = <312000>;
|
||||
adi,rbot-ohms = <12000>;
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user