From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Alexandre Mergnat <amergnat@baylibre.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Sean Wang <sean.wang@mediatek.com>,
Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Chen Zhong <chen.zhong@mediatek.com>,
Fabien Parent <fabien.parent@linaro.org>,
Alessandro Zummo <a.zummo@towertech.it>,
Mark Brown <broonie@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Flora Fu <flora.fu@mediatek.com>,
Tianping Fang <tianping.fang@mediatek.com>,
Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Mattijs Korpershoek <mkorpershoek@baylibre.com>,
Rob Herring <robh@kernel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
Fabien Parent <fparent@baylibre.com>,
linux-input@vger.kernel.org, devicetree@vger.kernel.org,
linux-leds@vger.kernel.org
Subject: Re: [PATCH v6 05/10] dt-bindings: soc: mediatek: convert pwrap documentation
Date: Tue, 29 Nov 2022 09:57:56 +0100 [thread overview]
Message-ID: <79651cf2-7efd-b54c-65a0-8986cea071d5@linaro.org> (raw)
In-Reply-To: <CAFGrd9pueans7Z_GHassY7ouGOwDmj4oJHAXS4ZtbYK4KH58Bw@mail.gmail.com>
On 28/11/2022 15:03, Alexandre Mergnat wrote:
>
>>>> +allOf:
>>>> + - if:
>>>> + properties:
>>>> + compatible:
>>>> + contains:
>>>> + const: mediatek,mt8365-pwrap
>>>> + then:
>>>> + properties:
>>>> + clocks:
>>>> + minItems: 4
>>>> +
>>>> + clock-names:
>>>> + minItems: 4
>>>
>>> else:
>>> ???
>>
>> Actually this looks less complete than your previous patch.
>>
>> else:
>> clocks:
>> maxItems: 2
>> same for clock-names
>>
>
> I think I’ve followed the feedback done here [1]
> I’ve declared `minItems: 2` globally and override it to 4 if
> mediatek,mt8365-pwrap is used. Isn’t it the right way to implement it
> ?
Yes, just the other part of comment is missing:
"If you really want to force a validation error when using
mediatek,mt8365-pwrap
and not providing `sys` and `tmr` clocks, you can just override minItems."
but that's fine if this was your intention.
>
>>>> + compatible = "mediatek,mt8135-pwrap";
>>>> + reg = <0 0x1000f000 0 0x1000>,
>>>
>>> This does not match your unit address. No warnings when compile testing?
>>>
>
> There are no warnings when compile testing. I will fix the unit
> address anyway, sorry.
>
>>>> + <0 0x11017000 0 0x1000>;
>>>> + reg-names = "pwrap", "pwrap-bridge";
>>>> + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
>>>> + clocks = <&clk26m>, <&clk26m>;
>>>> + clock-names = "spi", "wrap";
>>>> + resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
>>>> + <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
>>>> + reset-names = "pwrap", "pwrap-bridge";
>>>
>>> Missing pmic. Make your example complete.
>>
>> Probably pmic should be skipped, I understand it is described in MFD
>> binding.
>>
>
> Put the pmic in the example have 2 constraints:
> - The original pmic "mediatek,mt6397" isn’t supported by a yaml
> schema, so I’ve a dt_binding_check fail: `failed to match any schema
> with compatible: ['mediatek,mt6397']`
> - If I put another pmic that supports a yaml schema, I need to put all
> required properties for the pmic, which I thought was unnecessary
> since it’s already done in its own schema and can change for another
> pmic, so less consistent.
>
> Then yes, IMHO, PMIC should be skipped in the example.
Yes, you're right.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-11-29 8:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-25 15:10 [PATCH v6 00/10] Add MediaTek MT6357 PMIC support Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 01/10] dt-bindings: input: mtk-pmic-keys: add binding for MT6357 PMIC Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 02/10] dt-bindings: rtc: mediatek: convert MT6397 rtc documentation Alexandre Mergnat
2022-11-27 12:59 ` Krzysztof Kozlowski
2022-11-28 8:56 ` Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 03/10] dt-bindings: rtc: mediatek: add MT6357 support Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 04/10] regulator: dt-bindings: Add binding schema for mt6357 regulators Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 05/10] dt-bindings: soc: mediatek: convert pwrap documentation Alexandre Mergnat
2022-11-27 13:04 ` Krzysztof Kozlowski
2022-11-27 13:11 ` Krzysztof Kozlowski
2022-11-28 14:03 ` Alexandre Mergnat
2022-11-29 8:57 ` Krzysztof Kozlowski [this message]
2022-11-25 15:10 ` [PATCH v6 06/10] dt-bindings: mfd: mediatek: Add bindings for MT6357 PMIC Alexandre Mergnat
2022-11-27 13:13 ` Krzysztof Kozlowski
2022-11-25 15:10 ` [PATCH v6 07/10] arm64: dts: mt6358: change node names Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 08/10] arm64: dts: mt8173: change node name Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 09/10] regulator: add mt6357 regulator Alexandre Mergnat
2022-11-25 15:10 ` [PATCH v6 10/10] Input: mtk-pmic-keys: add MT6357 support Alexandre Mergnat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=79651cf2-7efd-b54c-65a0-8986cea071d5@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=amergnat@baylibre.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=broonie@kernel.org \
--cc=chen.zhong@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=fabien.parent@linaro.org \
--cc=flora.fu@mediatek.com \
--cc=fparent@baylibre.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-rtc@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=mkorpershoek@baylibre.com \
--cc=pavel@ucw.cz \
--cc=robh+dt@kernel.org \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=tianping.fang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).