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

dt-bindings: regulator: sprd,sc2731-regulator: convert to YAML

Convert the Spreadtrum SC2731 regulator bindings to DT schema.

Change during conversion:
- switch compatible from sprd,sc27xx-regulator to sprd,sc2731-regulator,
same as the only in-tree user has done back in 2019 [1]

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm64/boot/dts/sprd/sc2731.dtsi?h=v6.9&id=0419a75b1808dda225b17ba1509f195f23c0db88

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/ZobxoobZvA8k3pyi@standask-GA-A55M-S2HP
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Stanislav Jakubek and committed by
Mark Brown
60704710 32d11710

+67 -43
-43
Documentation/devicetree/bindings/regulator/sprd,sc2731-regulator.txt
··· 1 - Spreadtrum SC2731 Voltage regulators 2 - 3 - The SC2731 integrates low-voltage and low quiescent current DCDC/LDO. 4 - 14 LDO and 3 DCDCs are designed for external use. All DCDCs/LDOs have 5 - their own bypass (power-down) control signals. External tantalum or MLCC 6 - ceramic capacitors are recommended to use with these LDOs. 7 - 8 - Required properties: 9 - - compatible: should be "sprd,sc27xx-regulator". 10 - 11 - List of regulators provided by this controller. It is named according to 12 - its regulator type, BUCK_<name> and LDO_<name>. The definition for each 13 - of these nodes is defined using the standard binding for regulators at 14 - Documentation/devicetree/bindings/regulator/regulator.txt. 15 - 16 - The valid names for regulators are: 17 - BUCK: 18 - BUCK_CPU0, BUCK_CPU1, BUCK_RF 19 - LDO: 20 - LDO_CAMA0, LDO_CAMA1, LDO_CAMMOT, LDO_VLDO, LDO_EMMCCORE, LDO_SDCORE, 21 - LDO_SDIO, LDO_WIFIPA, LDO_USB33, LDO_CAMD0, LDO_CAMD1, LDO_CON, 22 - LDO_CAMIO, LDO_SRAM 23 - 24 - Example: 25 - regulators { 26 - compatible = "sprd,sc27xx-regulator"; 27 - 28 - vddarm0: BUCK_CPU0 { 29 - regulator-name = "vddarm0"; 30 - regulator-min-microvolt = <400000>; 31 - regulator-max-microvolt = <1996875>; 32 - regulator-ramp-delay = <25000>; 33 - regulator-always-on; 34 - }; 35 - 36 - vddcama0: LDO_CAMA0 { 37 - regulator-name = "vddcama0"; 38 - regulator-min-microvolt = <1200000>; 39 - regulator-max-microvolt = <3750000>; 40 - regulator-enable-ramp-delay = <100>; 41 - }; 42 - ... 43 - };
+67
Documentation/devicetree/bindings/regulator/sprd,sc2731-regulator.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/sprd,sc2731-regulator.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Spreadtrum SC2731 Power Management IC regulators 8 + 9 + maintainers: 10 + - Orson Zhai <orsonzhai@gmail.com> 11 + - Baolin Wang <baolin.wang7@gmail.com> 12 + - Chunyan Zhang <zhang.lyra@gmail.com> 13 + 14 + description: | 15 + The SC2731 integrates low-voltage and low quiescent current DCDC/LDO. 16 + 14 LDO and 3 DCDCs are designed for external use. All DCDCs/LDOs have 17 + their own bypass (power-down) control signals. It is recommended to use 18 + external tantalum or MLCC ceramic capacitors with these LDOs. 19 + Valid names for the regulators are: 20 + BUCK: 21 + BUCK_CPU0, BUCK_CPU1, BUCK_RF 22 + LDO: 23 + LDO_CAMA0, LDO_CAMA1, LDO_CAMD0, LDO_CAMD1, LDO_CAMIO, LDO_CAMMOT, 24 + LDO_CON, LDO_EMMCCORE, LDO_SDCORE, LDO_SDIO, LDO_SRAM, LDO_USB33, 25 + LDO_VLDO, LDO_WIFIPA 26 + 27 + properties: 28 + compatible: 29 + const: sprd,sc2731-regulator 30 + 31 + patternProperties: 32 + "^BUCK_(CPU[0-1]|RF)$": 33 + type: object 34 + $ref: regulator.yaml# 35 + unevaluatedProperties: false 36 + 37 + "^LDO_(CAM(A0|A1|D0|D1|IO|MOT)|CON|EMMCCORE|SD(CORE|IO)|SRAM|USB33|VLDO|WIFIPA)$": 38 + type: object 39 + $ref: regulator.yaml# 40 + unevaluatedProperties: false 41 + 42 + required: 43 + - compatible 44 + 45 + additionalProperties: false 46 + 47 + examples: 48 + - | 49 + regulators { 50 + compatible = "sprd,sc2731-regulator"; 51 + 52 + BUCK_CPU0 { 53 + regulator-name = "vddarm0"; 54 + regulator-min-microvolt = <400000>; 55 + regulator-max-microvolt = <1996875>; 56 + regulator-ramp-delay = <25000>; 57 + regulator-always-on; 58 + }; 59 + 60 + LDO_CAMA0 { 61 + regulator-name = "vddcama0"; 62 + regulator-min-microvolt = <1200000>; 63 + regulator-max-microvolt = <3750000>; 64 + regulator-enable-ramp-delay = <100>; 65 + }; 66 + }; 67 + ...