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

dt-bindings: mfd: brcm,bcm59056: Convert to YAML

Convert devicetree bindings for the Broadcom BCM59056 PMU MFD from
TXT to YAML format. This patch does not change any functionality;
the bindings remain the same.

The bindings have been split into two parts: the MFD binding and
a separate binding for the regulator node, to simplify the addition
of other models later (which have different regulators).

Signed-off-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Reviewed-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Link: https://lore.kernel.org/r/20250515-bcm59054-v9-1-14ba0ea2ea5b@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Artur Weber and committed by
Lee Jones
9d56594f 0af2f6be

+105 -39
-39
Documentation/devicetree/bindings/mfd/brcm,bcm59056.txt
··· 1 - ------------------------------- 2 - BCM590xx Power Management Units 3 - ------------------------------- 4 - 5 - Required properties: 6 - - compatible: "brcm,bcm59056" 7 - - reg: I2C slave address 8 - - interrupts: interrupt for the PMU. Generic interrupt client node bindings 9 - are described in interrupt-controller/interrupts.txt 10 - 11 - ------------------ 12 - Voltage Regulators 13 - ------------------ 14 - 15 - Optional child nodes: 16 - - regulators: container node for regulators following the generic 17 - regulator binding in regulator/regulator.txt 18 - 19 - The valid regulator node names for BCM59056 are: 20 - rfldo, camldo1, camldo2, simldo1, simldo2, sdldo, sdxldo, 21 - mmcldo1, mmcldo2, audldo, micldo, usbldo, vibldo, 22 - csr, iosr1, iosr2, msr, sdsr1, sdsr2, vsr, 23 - gpldo1, gpldo2, gpldo3, gpldo4, gpldo5, gpldo6, 24 - vbus 25 - 26 - Example: 27 - pmu: bcm59056@8 { 28 - compatible = "brcm,bcm59056"; 29 - reg = <0x08>; 30 - interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>; 31 - regulators { 32 - rfldo_reg: rfldo { 33 - regulator-min-microvolt = <1200000>; 34 - regulator-max-microvolt = <3300000>; 35 - }; 36 - 37 - ... 38 - }; 39 - };
+54
Documentation/devicetree/bindings/mfd/brcm,bcm59056.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/brcm,bcm59056.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM590xx Power Management Units 8 + 9 + maintainers: 10 + - Artur Weber <aweber.kernel@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: brcm,bcm59056 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + regulators: 23 + type: object 24 + $ref: /schemas/regulator/brcm,bcm59056.yaml# 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - interrupts 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + #include <dt-bindings/interrupt-controller/arm-gic.h> 36 + #include <dt-bindings/interrupt-controller/irq.h> 37 + 38 + i2c { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + pmic@8 { 43 + compatible = "brcm,bcm59056"; 44 + reg = <0x08>; 45 + interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>; 46 + 47 + regulators { 48 + rfldo { 49 + regulator-min-microvolt = <1200000>; 50 + regulator-max-microvolt = <3300000>; 51 + }; 52 + }; 53 + }; 54 + };
+51
Documentation/devicetree/bindings/regulator/brcm,bcm59056.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/brcm,bcm59056.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom BCM59056 Power Management Unit regulators 8 + 9 + description: | 10 + This is a part of device tree bindings for the BCM59056 power 11 + management unit. 12 + 13 + See Documentation/devicetree/bindings/mfd/brcm,bcm59056.yaml for 14 + additional information and example. 15 + 16 + maintainers: 17 + - Artur Weber <aweber.kernel@gmail.com> 18 + 19 + patternProperties: 20 + "^(cam|sim|mmc)ldo[1-2]$": 21 + type: object 22 + $ref: /schemas/regulator/regulator.yaml# 23 + unevaluatedProperties: false 24 + 25 + "^(rf|sd|sdx|aud|mic|usb|vib)ldo$": 26 + type: object 27 + $ref: /schemas/regulator/regulator.yaml# 28 + unevaluatedProperties: false 29 + 30 + "^(c|m|v)sr$": 31 + type: object 32 + $ref: /schemas/regulator/regulator.yaml# 33 + unevaluatedProperties: false 34 + 35 + "^(io|sd)sr[1-2]$": 36 + type: object 37 + $ref: /schemas/regulator/regulator.yaml# 38 + unevaluatedProperties: false 39 + 40 + "^gpldo[1-6]$": 41 + type: object 42 + $ref: /schemas/regulator/regulator.yaml# 43 + unevaluatedProperties: false 44 + 45 + properties: 46 + vbus: 47 + type: object 48 + $ref: /schemas/regulator/regulator.yaml# 49 + unevaluatedProperties: false 50 + 51 + additionalProperties: false