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

dt-bindings: mfd: Convert lp873x.txt to json-schema

Convert the lp873x binding to DT schema format. The gpio-controller
and #gpio-cells properties were removed from required because using
the device as a GPIO controller is optional.

Signed-off-by: Nathan Morrisson <nmorrisson@phytec.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240429195830.4027250-1-nmorrisson@phytec.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Nathan Morrisson and committed by
Lee Jones
ecbc0f27 dee5183d

+112 -67
-67
Documentation/devicetree/bindings/mfd/lp873x.txt
··· 1 - TI LP873X PMIC MFD driver 2 - 3 - Required properties: 4 - - compatible: "ti,lp8732", "ti,lp8733" 5 - - reg: I2C slave address. 6 - - gpio-controller: Marks the device node as a GPIO Controller. 7 - - #gpio-cells: Should be two. The first cell is the pin number and 8 - the second cell is used to specify flags. 9 - See ../gpio/gpio.txt for more information. 10 - - xxx-in-supply: Phandle to parent supply node of each regulator 11 - populated under regulators node. xxx can be 12 - buck0, buck1, ldo0 or ldo1. 13 - - regulators: List of child nodes that specify the regulator 14 - initialization data. 15 - Example: 16 - 17 - pmic: lp8733@60 { 18 - compatible = "ti,lp8733"; 19 - reg = <0x60>; 20 - gpio-controller; 21 - #gpio-cells = <2>; 22 - 23 - buck0-in-supply = <&vsys_3v3>; 24 - buck1-in-supply = <&vsys_3v3>; 25 - ldo0-in-supply = <&vsys_3v3>; 26 - ldo1-in-supply = <&vsys_3v3>; 27 - 28 - regulators { 29 - lp8733_buck0: buck0 { 30 - regulator-name = "lp8733-buck0"; 31 - regulator-min-microvolt = <800000>; 32 - regulator-max-microvolt = <1400000>; 33 - regulator-min-microamp = <1500000>; 34 - regulator-max-microamp = <4000000>; 35 - regulator-ramp-delay = <10000>; 36 - regulator-always-on; 37 - regulator-boot-on; 38 - }; 39 - 40 - lp8733_buck1: buck1 { 41 - regulator-name = "lp8733-buck1"; 42 - regulator-min-microvolt = <800000>; 43 - regulator-max-microvolt = <1400000>; 44 - regulator-min-microamp = <1500000>; 45 - regulator-max-microamp = <4000000>; 46 - regulator-ramp-delay = <10000>; 47 - regulator-boot-on; 48 - regulator-always-on; 49 - }; 50 - 51 - lp8733_ldo0: ldo0 { 52 - regulator-name = "lp8733-ldo0"; 53 - regulator-min-microvolt = <800000>; 54 - regulator-max-microvolt = <3000000>; 55 - regulator-boot-on; 56 - regulator-always-on; 57 - }; 58 - 59 - lp8733_ldo1: ldo1 { 60 - regulator-name = "lp8733-ldo1"; 61 - regulator-min-microvolt = <800000>; 62 - regulator-max-microvolt = <3000000>; 63 - regulator-always-on; 64 - regulator-boot-on; 65 - }; 66 - }; 67 - };
+112
Documentation/devicetree/bindings/mfd/ti,lp8732.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/ti,lp8732.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI LP873X Power Management Integrated Circuit 8 + 9 + maintainers: 10 + - J Keerthy <j-keerthy@ti.com> 11 + 12 + description: 13 + PMIC with two high-current buck converters and two linear regulators. 14 + 15 + properties: 16 + compatible: 17 + enum: 18 + - ti,lp8732 19 + - ti,lp8733 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + gpio-controller: true 25 + 26 + '#gpio-cells': 27 + const: 2 28 + 29 + regulators: 30 + description: 31 + List of child nodes that specify the regulator initialization data. 32 + type: object 33 + patternProperties: 34 + "^buck[01]|ldo[01]$": 35 + type: object 36 + $ref: /schemas/regulator/regulator.yaml# 37 + unevaluatedProperties: false 38 + additionalProperties: false 39 + 40 + patternProperties: 41 + '^(buck[01]|ldo[01])-in-supply$': 42 + description: Phandle to parent supply of each regulator populated under regulators node. 43 + 44 + required: 45 + - compatible 46 + - reg 47 + - regulators 48 + - buck0-in-supply 49 + - buck1-in-supply 50 + - ldo0-in-supply 51 + - ldo1-in-supply 52 + 53 + additionalProperties: false 54 + 55 + examples: 56 + - | 57 + i2c { 58 + #address-cells = <1>; 59 + #size-cells = <0>; 60 + 61 + pmic: pmic@60 { 62 + compatible = "ti,lp8733"; 63 + reg = <0x60>; 64 + gpio-controller; 65 + #gpio-cells = <2>; 66 + 67 + buck0-in-supply = <&vsys_3v3>; 68 + buck1-in-supply = <&vsys_3v3>; 69 + ldo0-in-supply = <&vsys_3v3>; 70 + ldo1-in-supply = <&vsys_3v3>; 71 + 72 + regulators { 73 + buck0: buck0 { 74 + regulator-name = "buck0"; 75 + regulator-min-microvolt = <800000>; 76 + regulator-max-microvolt = <1400000>; 77 + regulator-min-microamp = <1500000>; 78 + regulator-max-microamp = <4000000>; 79 + regulator-ramp-delay = <10000>; 80 + regulator-always-on; 81 + regulator-boot-on; 82 + }; 83 + 84 + buck1: buck1 { 85 + regulator-name = "buck1"; 86 + regulator-min-microvolt = <800000>; 87 + regulator-max-microvolt = <1400000>; 88 + regulator-min-microamp = <1500000>; 89 + regulator-max-microamp = <4000000>; 90 + regulator-ramp-delay = <10000>; 91 + regulator-boot-on; 92 + regulator-always-on; 93 + }; 94 + 95 + ldo0: ldo0 { 96 + regulator-name = "ldo0"; 97 + regulator-min-microvolt = <800000>; 98 + regulator-max-microvolt = <3000000>; 99 + regulator-boot-on; 100 + regulator-always-on; 101 + }; 102 + 103 + ldo1: ldo1 { 104 + regulator-name = "ldo1"; 105 + regulator-min-microvolt = <800000>; 106 + regulator-max-microvolt = <3000000>; 107 + regulator-always-on; 108 + regulator-boot-on; 109 + }; 110 + }; 111 + }; 112 + };