Re: [PATCH v2 01/11] dt-bindings: regulator: ti,pbias-regulator: Convert to DT schema
From: Krzysztof Kozlowski
Date: Tue Mar 31 2026 - 04:28:15 EST
On Mon, Mar 30, 2026 at 03:43:58PM +0200, Thomas Richard wrote:
> +$id: http://devicetree.org/schemas/regulator/ti,pbias-regulator.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: PBIAS internal regulator
> +
> +maintainers:
> + - Thomas Richard <thomas.richard@xxxxxxxxxxx>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + PBIAS internal regulator for SD card dual voltage i/o pads on OMAP SoCs.
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - ti,pbias-dra7
> + - ti,pbias-omap2
> + - ti,pbias-omap3
> + - ti,pbias-omap4
> + - ti,pbias-omap5
> + - const: ti,pbias-omap
> +
> + reg:
> + maxItems: 1
> +
> + syscon:
> + description: Phandle of the system control module
> + $ref: /schemas/types.yaml#/definitions/phandle
> +
> +patternProperties:
> + '^pbias_*':
That wasn't in old binding and underscore is not allowed, so this needs
explanation. Old binding mentioned only the names.
> + type: object
> + $ref: regulator.yaml#
> + unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - syscon
> +
> +additionalProperties: false
> +
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ti,pbias-omap2
> + then:
> + patternProperties:
> + '^pbias_*':
> + properties:
> + regulator-name:
> + contains:
> + enum:
> + - pbias_mmc_omap2430
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ti,pbias-omap3
> + then:
> + patternProperties:
> + '^pbias_*':
> + properties:
> + regulator-name:
> + contains:
> + enum:
> + - pbias_mmc_omap2430
> + - pbias_sim_omap3
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ti,pbias-omap4
> + then:
> + patternProperties:
> + '^pbias_*':
> + properties:
> + regulator-name:
> + contains:
> + enum:
> + - pbias_mmc_omap4
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ti,pbias-dra7
> + - ti,pbias-omap5
> + then:
> + patternProperties:
> + '^pbias_*':
> + properties:
> + regulator-name:
> + contains:
> + enum:
> + - pbias_mmc_omap5
> +
> +examples:
> + - |
> + bus {
> + #address-cells = <1>;
> + #size-cells = <1>;
> +
> + pbias_regulator: pbias_regulator@0 {
Drop unused labels
Best regards,
Krzysztof