[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <13fe3e54-caa5-098c-0a86-3d2f8475c23f@collabora.com>
Date: Fri, 14 Apr 2023 12:25:57 +0200
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Cc: matthias.bgg@...il.com, p.zabel@...gutronix.de, airlied@...il.com,
daniel@...ll.ch, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, jassisinghbrar@...il.com,
chunfeng.yun@...iatek.com, vkoul@...nel.org, kishon@...nel.org,
thierry.reding@...il.com, chunkuang.hu@...nel.org,
ck.hu@...iatek.com, jitao.shi@...iatek.com,
xinlei.lee@...iatek.com, houlong.wei@...iatek.com,
dri-devel@...ts.freedesktop.org,
linux-mediatek@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-phy@...ts.infradead.org, linux-pwm@...r.kernel.org,
kernel@...labora.com, phone-devel@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht
Subject: Re: [PATCH 01/27] dt-bindings: pwm: Add compatible for MediaTek
MT6795
Il 14/04/23 10:34, Krzysztof Kozlowski ha scritto:
> On 14/04/2023 10:30, Uwe Kleine-König wrote:
>> On Fri, Apr 14, 2023 at 10:21:05AM +0200, Krzysztof Kozlowski wrote:
>>> On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote:
>>>> Add a compatible string for MediaTek Helio X10 MT6795's display PWM
>>>> block: this is the same as MT8173.
>>>>
>>>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
>>>> ---
>>>> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++-
>>>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
>>>> index 0088bc8e7c54..153e146df7d4 100644
>>>> --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
>>>> +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml
>>>> @@ -22,7 +22,9 @@ properties:
>>>> - mediatek,mt8173-disp-pwm
>>>> - mediatek,mt8183-disp-pwm
>>>> - items:
>>>> - - const: mediatek,mt8167-disp-pwm
>>>> + - enum:
>>>> + - mediatek,mt6795-disp-pwm
>>>> + - mediatek,mt8167-disp-pwm
>>>
>>> This does not look correct. You do not add compatible, you replace
>>> breaking all mt8167-disp-pwm. At least it looks like this from context.
>>
>> I thought the old semantic to be:
>>
>> "mediatek,mt8167-disp-pwm"
>>
>> and the new
>>
>> "mediatek,mt6795-disp-pwm" or "mediatek,mt8167-disp-pwm"
>>
>> . What am I missing?
>
> The new is ok for mt6795 but it is not valid for mt8167.
>
Sorry, why is it not valid for MT8167?
This is changing the doc from:
OLD:
- items:
- const: mediatek,mt8167-disp-pwm
- const: mediatek,mt8173-disp-pwm
NEW:
- items:
- enum:
- mediatek,mt6795-disp-pwm
- mediatek,mt8167-disp-pwm
- const: mediatek,mt8173-disp-pwm
For me, that's totally valid, as the old semantic was:
compatible = "mediatek,mt8167-disp-pwm", "mediatek,mt8173-disp-pwm";
...and the new semantic is .. the same; this commit only *adds* the
possibility to get a
compatible = "mediatek,mt6795-disp-pwm", "mediatek,mt8173-disp-pwm";
without breaking anything.
Regards,
Angelo
Powered by blists - more mailing lists