[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b5d3d996-9c4c-b245-ad59-4fb2218dac1f@collabora.com>
Date: Wed, 2 Mar 2022 15:14:49 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: xinlei.lee@...iatek.com, thierry.reding@...il.com,
u.kleine-koenig@...gutronix.de, lee.jones@...aro.org,
robh+dt@...nel.org, matthias.bgg@...il.com
Cc: linux-pwm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
Project_Global_Chrome_Upstream_Group@...iatek.com,
jitao.shi@...iatek.com, allen-kh.cheng@...iatek.com,
rex-bc.chen@...iatek.com
Subject: Re: [PATCH v3,6/6] dt-bindings: pwm: Add compatible for MediaTek
MT8186
Il 02/03/22 06:31, xinlei.lee@...iatek.com ha scritto:
> From: Xinlei Lee <xinlei.lee@...iatek.com>
>
> Add dt-binding documentation of pwm for MediaTek MT8186 SoC.
>
> Signed-off-by: Xinlei Lee <xinlei.lee@...iatek.com>
> ---
> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
> index 3a5d1cfed94d..053805846cfe 100644
> --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
> +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
> @@ -21,6 +21,9 @@ properties:
> - mediatek,mt6595-disp-pwm
> - mediatek,mt8173-disp-pwm
> - mediatek,mt8183-disp-pwm
> + - items:
> + - const: mediatek,mt8186-disp-pwm
> + - const: mediatek,mt8183-disp-pwm
> - items:
> - const: mediatek,mt8192-disp-pwm
> - const: mediatek,mt8183-disp-pwm
>
Hello Xinlei,
even though repeating these items may not give you errors, this is not really
the best way to do this.
I've done something similar here:
https://lore.kernel.org/linux-arm-kernel/20220217095242.13761-1-angelogioacchino.delregno@collabora.com/
So, for the compatibles needing mediatek,mt8183-disp-pwm it should be looking
similar to this:
- items:
- enum:
- mediatek,mt8186-disp-pwm
- mediatek,mt8192-disp-pwm
- mediatek,mt8195-disp-pwm
- const: mediatek,mt8183-disp-pwm
Regards,
Angelo
Powered by blists - more mailing lists