Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: regulator: Convert stm32 booster bindings to json-schema

Convert the STM32 regulator booster binding to DT schema format using json-schema

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com>
CC: Fabrice Gasnier <fabrice.gasnier@st.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20191122104536.20283-1-benjamin.gaignard@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Benjamin Gaignard and committed by
Mark Brown
681700c3 b8a039d3

+46 -18
-18
Documentation/devicetree/bindings/regulator/st,stm32-booster.txt
··· 1 - STM32 BOOSTER - Booster for ADC analog input switches 2 - 3 - Some STM32 devices embed a 3.3V booster supplied by Vdda, that can be used 4 - to supply ADC analog input switches. 5 - 6 - Required properties: 7 - - compatible: Should be one of: 8 - "st,stm32h7-booster" 9 - "st,stm32mp1-booster" 10 - - st,syscfg: Phandle to system configuration controller. 11 - - vdda-supply: Phandle to the vdda input analog voltage. 12 - 13 - Example: 14 - booster: regulator-booster { 15 - compatible = "st,stm32mp1-booster"; 16 - st,syscfg = <&syscfg>; 17 - vdda-supply = <&vdda>; 18 - };
+46
Documentation/devicetree/bindings/regulator/st,stm32-booster.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/regulator/st,stm32-booster.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STM32 booster for ADC analog input switches bindings 8 + 9 + maintainers: 10 + - Fabrice Gasnier <fabrice.gasnier@st.com> 11 + 12 + description: | 13 + Some STM32 devices embed a 3.3V booster supplied by Vdda, that can be used 14 + to supply ADC analog input switches. 15 + 16 + allOf: 17 + - $ref: "regulator.yaml#" 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - st,stm32h7-booster 23 + - st,stm32mp1-booster 24 + 25 + st,syscfg: 26 + allOf: 27 + - $ref: "/schemas/types.yaml#/definitions/phandle-array" 28 + description: phandle to system configuration controller. 29 + 30 + vdda-supply: 31 + description: phandle to the vdda input analog voltage. 32 + 33 + required: 34 + - compatible 35 + - st,syscfg 36 + - vdda-supply 37 + 38 + examples: 39 + - | 40 + regulator-booster { 41 + compatible = "st,stm32mp1-booster"; 42 + st,syscfg = <&syscfg>; 43 + vdda-supply = <&vdda>; 44 + }; 45 + 46 + ...