regulator: dt-bindings: richtek,rt4801: use existing ena_gpiod feature
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 25 Apr 2022 07:24:54 +0000 (09:24 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Apr 2022 13:00:46 +0000 (14:00 +0100)
commita498db69dc6d7511d76a4f04ec19c5e378db1c3b
tree05a19a01433e38560092da49aad40a6d9c02d505
parent062920d2464715ef5cbba52a8573ba12cc882b8f
regulator: dt-bindings: richtek,rt4801: use existing ena_gpiod feature

The binding and driver duplicated regulator core feature of controlling
regulators with GPIOs (of_parse_cb + ena_gpiod) and created its own
enable-gpios property with multiple GPIOs.

This is a less preferred way, because enable-gpios should enable only one
element, not multiple. It also duplicates existing solution.

Deprecate the original 'enable-gpios' and add per-regulator property.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220425072455.27356-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/regulator/richtek,rt4801-regulator.yaml