Rob Herring
de6fbef10c
regulator: dt-bindings: Add missing (unevaluated|additional)Properties on child nodes
...
In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20220823145649.3118479-7-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-08-23 17:34:08 +01:00
Krzysztof Kozlowski
a498db69dc
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 >
2022-04-25 14:00:46 +01:00
Krzysztof Kozlowski
4181278305
regulator: dt-bindings: richtek,rt4801: minor comments adjustments
...
Correct grammar in 'enable-gpios' description and remove useless comment
about regulator nodes, because these are obvious from patternProperties.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20220401153711.1057853-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-04-04 08:48:29 +01:00
Mark Brown
ab6019d7fe
regulator: rt4801: Specify additionalProperties: false
...
Reported-by: Rob Herring <robh@kernel.org >
Signed-off-by: Mark Brown <broonie@kernel.org >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20200825101250.9485-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-08-25 21:05:39 +01:00
ChiYuan Huang
6f4ac2844b
regulator: rt4801: Fix the dt-binding document for dtc check.
...
Fix the dt-binding document for dtc check.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com >
Link: https://lore.kernel.org/r/1597461262-25878-3-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-08-18 17:18:37 +01:00
ChiYuan Huang
fd6b928db8
regulator: rt4801: Add DT binding documentation
...
Add a devicetree binding documentation for the rt4801 regulator driver.
Signed-off-by: ChiYuan Huang <cy_huang@richtek.com >
Link: https://lore.kernel.org/r/1597461262-25878-2-git-send-email-u0084500@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-08-18 17:18:36 +01:00