[PATCH] dt-bindings: mfd: mediatek,mt6357: Fixup reference to pwrap node
Krzysztof Kozlowski
krzk at kernel.org
Mon Aug 26 08:45:16 PDT 2024
On 26/08/2024 08:54, Macpaul Lin wrote:
> The mt6357 is a subnode of pwrap node. Previously, the documentation
> only included a note in the description of mt6357. This change adds the
> appropriate $ref for pwrap to ensure clarity and correctness.
Heh? The schema described mt6357, not pwrap. Why are you changing it?
>
> $ref: /schemas/soc/mediatek/mediatek,pwrap.yaml
>
> Additionally, the indentation for the pmic section has been adjusted
> to match the corresponding structure.
>
> Signed-off-by: Macpaul Lin <macpaul.lin at mediatek.com>
> ---
> .../bindings/mfd/mediatek,mt6357.yaml | 124 +++++++++---------
> 1 file changed, 65 insertions(+), 59 deletions(-)
>
> Changes for v1:
> - This patch has been made based on linux-next/master branch.
>
> diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
> index b67fbe0..5f4f540 100644
> --- a/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
> +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
> @@ -22,69 +22,75 @@ description: |
>
> It is interfaced to host controller using SPI interface by a proprietary hardware
> called PMIC wrapper or pwrap. This MFD is a child device of pwrap.
> - See the following for pwrap node definitions:
> - Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml
>
> properties:
> - compatible:
> - const: mediatek,mt6357
How does this schema is being selected without compatible?
> -
> - interrupts:
> - maxItems: 1
> -
> - interrupt-controller: true
> -
> - "#interrupt-cells":
> - const: 2
> -
> - mediatek,hp-pull-down:
> - description:
> - Earphone driver positive output stage short to
> - the audio reference ground.
> - type: boolean
> -
> - mediatek,micbias0-microvolt:
> - description: Selects MIC Bias 0 output voltage.
> - enum: [1700000, 1800000, 1900000, 2000000,
> - 2100000, 2500000, 2600000, 2700000]
> - default: 1700000
> -
> - mediatek,micbias1-microvolt:
> - description: Selects MIC Bias 1 output voltage.
> - enum: [1700000, 1800000, 1900000, 2000000,
> - 2100000, 2500000, 2600000, 2700000]
> - default: 1700000
> -
> - regulators:
> - type: object
> - $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml
> - unevaluatedProperties: false
> - description:
> - List of MT6357 BUCKs and LDOs regulators.
> -
> - rtc:
> + pwrap:
With the diff it is tricky to say what you are doing, but it feels
wrong. I don't understand the rationale, the problem being fixed here,
and considering unusual diff, this just looks wrong approach.
Bindings do not work like that - you do not reference the parent inside
the child. There is nowhere example for that, so I have no clue how did
you come up with it.
Best regards,
Krzysztof
More information about the Linux-mediatek
mailing list