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

regulator: dt-bindings: dlg,slg51000: Convert to DT schema

Convert the bindings for Dialog Semiconductor SLG51000 Voltage Regulator
to DT schema.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230727085434.16596-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
cfef69cb d2d54819

+133 -89
+132
Documentation/devicetree/bindings/regulator/dlg,slg51000.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/dlg,slg51000.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Dialog Semiconductor SLG51000 Voltage Regulator 8 + 9 + maintainers: 10 + - Eric Jeong <eric.jeong.opensource@diasemi.com> 11 + - Support Opensource <support.opensource@diasemi.com> 12 + 13 + properties: 14 + compatible: 15 + const: dlg,slg51000 16 + 17 + reg: 18 + maxItems: 1 19 + 20 + interrupts: 21 + maxItems: 1 22 + 23 + dlg,cs-gpios: 24 + maxItems: 1 25 + description: 26 + GPIO for chip select 27 + 28 + vin3-supply: 29 + description: 30 + Input supply for ldo3, required if regulator is enabled 31 + 32 + vin4-supply: 33 + description: 34 + Input supply for ldo4, required if regulator is enabled 35 + 36 + vin5-supply: 37 + description: 38 + Input supply for ldo5, required if regulator is enabled 39 + 40 + vin6-supply: 41 + description: 42 + Input supply for ldo6, required if regulator is enabled 43 + 44 + vin7-supply: 45 + description: 46 + Input supply for ldo7, required if regulator is enabled 47 + 48 + regulators: 49 + type: object 50 + additionalProperties: false 51 + 52 + patternProperties: 53 + "^ldo[1-7]$": 54 + type: object 55 + $ref: /schemas/regulator/regulator.yaml# 56 + unevaluatedProperties: false 57 + 58 + properties: 59 + enable-gpios: 60 + maxItems: 1 61 + 62 + required: 63 + - regulator-name 64 + 65 + required: 66 + - compatible 67 + - reg 68 + - regulators 69 + 70 + additionalProperties: false 71 + 72 + examples: 73 + - | 74 + #include <dt-bindings/gpio/gpio.h> 75 + #include <dt-bindings/interrupt-controller/irq.h> 76 + #include <dt-bindings/regulator/dlg,da9121-regulator.h> 77 + i2c { 78 + #address-cells = <1>; 79 + #size-cells = <0>; 80 + 81 + pmic@75 { 82 + compatible = "dlg,slg51000"; 83 + reg = <0x75>; 84 + dlg,cs-gpios = <&tlmm 69 GPIO_ACTIVE_HIGH>; 85 + vin5-supply = <&vreg_s1f_1p2>; 86 + vin6-supply = <&vreg_s1f_1p2>; 87 + 88 + regulators { 89 + ldo1 { 90 + regulator-name = "slg51000_b_ldo1"; 91 + regulator-min-microvolt = <2400000>; 92 + regulator-max-microvolt = <3300000>; 93 + }; 94 + 95 + ldo2 { 96 + regulator-name = "slg51000_b_ldo2"; 97 + regulator-min-microvolt = <2400000>; 98 + regulator-max-microvolt = <3300000>; 99 + }; 100 + 101 + ldo3 { 102 + regulator-name = "slg51000_b_ldo3"; 103 + regulator-min-microvolt = <1200000>; 104 + regulator-max-microvolt = <3750000>; 105 + }; 106 + 107 + ldo4 { 108 + regulator-name = "slg51000_b_ldo4"; 109 + regulator-min-microvolt = <1200000>; 110 + regulator-max-microvolt = <3750000>; 111 + }; 112 + 113 + ldo5 { 114 + regulator-name = "slg51000_b_ldo5"; 115 + regulator-min-microvolt = <500000>; 116 + regulator-max-microvolt = <1200000>; 117 + }; 118 + 119 + ldo6 { 120 + regulator-name = "slg51000_b_ldo6"; 121 + regulator-min-microvolt = <500000>; 122 + regulator-max-microvolt = <1200000>; 123 + }; 124 + 125 + ldo7 { 126 + regulator-name = "slg51000_b_ldo7"; 127 + regulator-min-microvolt = <1200000>; 128 + regulator-max-microvolt = <3750000>; 129 + }; 130 + }; 131 + }; 132 + };
-88
Documentation/devicetree/bindings/regulator/slg51000.txt
··· 1 - * Dialog Semiconductor SLG51000 Voltage Regulator 2 - 3 - Required properties: 4 - - compatible : Should be "dlg,slg51000" for SLG51000 5 - - reg : Specifies the I2C slave address. 6 - - xxx-supply: Input voltage supply regulator for ldo3 to ldo7. 7 - These entries are required if regulators are enabled for a device. 8 - An absence of these properties can cause the regulator registration to fail. 9 - If some of input supply is powered through battery or always-on supply then 10 - also it is required to have these parameters with proper node handle of always 11 - on power supply. 12 - vin3-supply: Input supply for ldo3 13 - vin4-supply: Input supply for ldo4 14 - vin5-supply: Input supply for ldo5 15 - vin6-supply: Input supply for ldo6 16 - vin7-supply: Input supply for ldo7 17 - 18 - Optional properties: 19 - - interrupt-parent : Specifies the reference to the interrupt controller. 20 - - interrupts : IRQ line information. 21 - - dlg,cs-gpios : Specify a valid GPIO for chip select 22 - 23 - Sub-nodes: 24 - - regulators : This node defines the settings for the regulators. 25 - The content of the sub-node is defined by the standard binding 26 - for regulators; see regulator.txt. 27 - 28 - The SLG51000 regulators are bound using their names listed below: 29 - ldo1 30 - ldo2 31 - ldo3 32 - ldo4 33 - ldo5 34 - ldo6 35 - ldo7 36 - 37 - Optional properties for regulators: 38 - - enable-gpios : Specify a valid GPIO for platform control of the regulator. 39 - 40 - Example: 41 - pmic: slg51000@75 { 42 - compatible = "dlg,slg51000"; 43 - reg = <0x75>; 44 - 45 - regulators { 46 - ldo1 { 47 - regulator-name = "ldo1"; 48 - regulator-min-microvolt = <2400000>; 49 - regulator-max-microvolt = <3300000>; 50 - }; 51 - 52 - ldo2 { 53 - regulator-name = "ldo2"; 54 - regulator-min-microvolt = <2400000>; 55 - regulator-max-microvolt = <3300000>; 56 - }; 57 - 58 - ldo3 { 59 - regulator-name = "ldo3"; 60 - regulator-min-microvolt = <1200000>; 61 - regulator-max-microvolt = <3750000>; 62 - }; 63 - 64 - ldo4 { 65 - regulator-name = "ldo4"; 66 - regulator-min-microvolt = <1200000>; 67 - regulator-max-microvolt = <3750000>; 68 - }; 69 - 70 - ldo5 { 71 - regulator-name = "ldo5"; 72 - regulator-min-microvolt = <500000>; 73 - regulator-max-microvolt = <1200000>; 74 - }; 75 - 76 - ldo6 { 77 - regulator-name = "ldo6"; 78 - regulator-min-microvolt = <500000>; 79 - regulator-max-microvolt = <1200000>; 80 - }; 81 - 82 - ldo7 { 83 - regulator-name = "ldo7"; 84 - regulator-min-microvolt = <1200000>; 85 - regulator-max-microvolt = <3750000>; 86 - }; 87 - }; 88 - };
+1 -1
MAINTAINERS
··· 6010 6010 F: Documentation/devicetree/bindings/mfd/dlg,da90*.yaml 6011 6011 F: Documentation/devicetree/bindings/regulator/da92*.txt 6012 6012 F: Documentation/devicetree/bindings/regulator/dlg,da9*.yaml 6013 - F: Documentation/devicetree/bindings/regulator/slg51000.txt 6013 + F: Documentation/devicetree/bindings/regulator/dlg,slg51000.yaml 6014 6014 F: Documentation/devicetree/bindings/sound/da[79]*.txt 6015 6015 F: Documentation/devicetree/bindings/thermal/da90??-thermal.txt 6016 6016 F: Documentation/devicetree/bindings/watchdog/da90??-wdt.txt