mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
regulator: dt-bindings: ti,pbias-omap: Convert to DT schema
Convert Texas Instruments PBIAS internal regulator from text to DT schema. Since all in tree DT uses SoC specific compatible along with "ti,pbias-omap" Convert compatible property to require the two-string form. Add child regulator nodes as property as they are fixed and node name is matched by driver. Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260729-ti-pbias-omap-v3-1-20fcc0bdc890@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
0991f3b462
commit
36c3ea8428
|
|
@ -1,32 +0,0 @@
|
|||
PBIAS internal regulator for SD card dual voltage i/o pads on OMAP SoCs.
|
||||
|
||||
Required properties:
|
||||
- compatible:
|
||||
- should be "ti,pbias-dra7" for DRA7
|
||||
- should be "ti,pbias-omap2" for OMAP2
|
||||
- should be "ti,pbias-omap3" for OMAP3
|
||||
- should be "ti,pbias-omap4" for OMAP4
|
||||
- should be "ti,pbias-omap5" for OMAP5
|
||||
- "ti,pbias-omap" is deprecated
|
||||
- reg: pbias register offset from syscon base and size of pbias register.
|
||||
- syscon : phandle of the system control module
|
||||
- regulator-name : should be
|
||||
pbias_mmc_omap2430 for OMAP2430, OMAP3 SoCs
|
||||
pbias_sim_omap3 for OMAP3 SoCs
|
||||
pbias_mmc_omap4 for OMAP4 SoCs
|
||||
pbias_mmc_omap5 for OMAP5 and DRA7 SoC
|
||||
|
||||
Optional properties:
|
||||
- Any optional property defined in bindings/regulator/regulator.txt
|
||||
|
||||
Example:
|
||||
|
||||
pbias_regulator: pbias_regulator {
|
||||
compatible = "ti,pbias-omap";
|
||||
reg = <0 0x4>;
|
||||
syscon = <&omap5_padconf_global>;
|
||||
pbias_mmc_reg: pbias_mmc_omap5 {
|
||||
regulator-name = "pbias_mmc_omap5";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
};
|
||||
137
Documentation/devicetree/bindings/regulator/ti,pbias-omap.yaml
Normal file
137
Documentation/devicetree/bindings/regulator/ti,pbias-omap.yaml
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
||||
%YAML 1.2
|
||||
---
|
||||
$id: http://devicetree.org/schemas/regulator/ti,pbias-omap.yaml#
|
||||
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||
|
||||
title: Texas Instruments PBIAS internal regulator
|
||||
|
||||
maintainers:
|
||||
- Tony Lindgren <tony@atomide.com>
|
||||
|
||||
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:
|
||||
$ref: /schemas/types.yaml#/definitions/phandle
|
||||
description: phandle of the system control module
|
||||
|
||||
pbias_mmc_omap2430:
|
||||
type: object
|
||||
$ref: regulator.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- regulator-name
|
||||
|
||||
pbias_sim_omap3:
|
||||
type: object
|
||||
$ref: regulator.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- regulator-name
|
||||
|
||||
pbias_mmc_omap4:
|
||||
type: object
|
||||
$ref: regulator.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- regulator-name
|
||||
|
||||
pbias_mmc_omap5:
|
||||
type: object
|
||||
$ref: regulator.yaml#
|
||||
unevaluatedProperties: false
|
||||
|
||||
required:
|
||||
- regulator-name
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- syscon
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: ti,pbias-omap2
|
||||
then:
|
||||
required:
|
||||
- pbias_mmc_omap2430
|
||||
properties:
|
||||
pbias_sim_omap3: false
|
||||
pbias_mmc_omap4: false
|
||||
pbias_mmc_omap5: false
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: ti,pbias-omap3
|
||||
then:
|
||||
anyOf:
|
||||
- required:
|
||||
- pbias_mmc_omap2430
|
||||
- required:
|
||||
- pbias_sim_omap3
|
||||
properties:
|
||||
pbias_mmc_omap4: false
|
||||
pbias_mmc_omap5: false
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: ti,pbias-omap4
|
||||
then:
|
||||
required:
|
||||
- pbias_mmc_omap4
|
||||
properties:
|
||||
pbias_mmc_omap2430: false
|
||||
pbias_sim_omap3: false
|
||||
pbias_mmc_omap5: false
|
||||
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- ti,pbias-omap5
|
||||
- ti,pbias-dra7
|
||||
then:
|
||||
required:
|
||||
- pbias_mmc_omap5
|
||||
properties:
|
||||
pbias_mmc_omap2430: false
|
||||
pbias_sim_omap3: false
|
||||
pbias_mmc_omap4: false
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
- |
|
||||
pbias_regulator@0 {
|
||||
compatible = "ti,pbias-omap5", "ti,pbias-omap";
|
||||
reg = <0 0x4>;
|
||||
syscon = <&omap5_padconf_global>;
|
||||
pbias_mmc_omap5 {
|
||||
regulator-name = "pbias_mmc_omap5";
|
||||
regulator-min-microvolt = <1800000>;
|
||||
regulator-max-microvolt = <3000000>;
|
||||
};
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user