From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Daniel Golle <daniel@makrotopia.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Sabrina Dubroca <sd@queasysnail.net>,
Chen-Yu Tsai <wenst@chromium.org>,
"Garmin.Chang" <Garmin.Chang@mediatek.com>,
Sam Shih <sam.shih@mediatek.com>,
Frank Wunderlich <frank-w@public-files.de>,
Dan Carpenter <dan.carpenter@linaro.org>,
James Liao <jamesjj.liao@mediatek.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, netdev@vger.kernel.org
Subject: Re: [PATCH v5 3/5] dt-bindings: clock: mediatek: add clock controllers of MT7988
Date: Wed, 13 Dec 2023 08:04:23 +0100 [thread overview]
Message-ID: <7c878a4e-da9b-4e8e-a965-9eeefe073d13@linaro.org> (raw)
In-Reply-To: <ce9b1e777090724794cf9f0c52bcd8618385fd06.1702350213.git.daniel@makrotopia.org>
On 12/12/2023 04:18, Daniel Golle wrote:
> Add various clock controllers found in the MT7988 SoC to existing
> bindings (if applicable) and add files for the new ethwarp, mcusys
> and xfi-pll clock controllers not previously present in any SoC.
>
> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
> ---
...
> - - const: syscon
> + oneOf:
> + - items:
> + - enum:
> + - mediatek,mt7622-sgmiisys
> + - mediatek,mt7629-sgmiisys
> + - mediatek,mt7981-sgmiisys_0
> + - mediatek,mt7981-sgmiisys_1
> + - mediatek,mt7986-sgmiisys_0
> + - mediatek,mt7986-sgmiisys_1
> + - const: syscon
> + - items:
> + - enum:
> + - mediatek,mt7988-sgmiisys_0
> + - mediatek,mt7988-sgmiisys_1
No underscores in compatibles. At least for new ones, because you cannot
touch the old.
> + - const: simple-mfd
> + - const: syscon
>
> reg:
> maxItems: 1
> @@ -35,11 +42,47 @@ properties:
> description: Invert polarity of the SGMII data lanes
> type: boolean
>
> + pcs:
> + type: object
> + description: HSGMII PCS logic
> + properties:
> + compatible:
> + const: mediatek,mt7988-sgmii
> +
> + clocks:
> + maxItems: 3
> + minItems: 3
drop minItems
> +
> + clock-names:
> + items:
> + - const: sgmii_sel
> + - const: sgmii_tx
> + - const: sgmii_rx
> +
> + required:
> + - compatible
> + - clocks
> + - clock-names
> +
> + additionalProperties: false
> +
> required:
> - compatible
> - reg
> - '#clock-cells'
>
add allOf: here
> +if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt7988-sgmiisys_0
> + - mediatek,mt7988-sgmiisys_1
> +
> +then:
> + required:
> + - pcs
else: also valid?
Maybe there is no point to have it in this binding?
Best regards,
Krzysztof
next prev parent reply other threads:[~2023-12-13 7:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-12 3:18 [PATCH v5 1/5] dt-bindings: clock: mediatek: add MT7988 clock IDs Daniel Golle
2023-12-12 3:18 ` [PATCH v5 2/5] dt-bindings: reset: mediatek: add MT7988 ethwarp reset IDs Daniel Golle
2023-12-12 9:32 ` AngeloGioacchino Del Regno
2023-12-13 7:00 ` Krzysztof Kozlowski
2023-12-12 3:18 ` [PATCH v5 3/5] dt-bindings: clock: mediatek: add clock controllers of MT7988 Daniel Golle
2023-12-12 9:32 ` AngeloGioacchino Del Regno
2023-12-13 7:04 ` Krzysztof Kozlowski [this message]
2023-12-12 3:19 ` [PATCH v5 4/5] clk: mediatek: add pcw_chg_bit control for PLLs " Daniel Golle
2023-12-12 9:31 ` AngeloGioacchino Del Regno
2023-12-12 3:19 ` [PATCH v5 5/5] clk: mediatek: add drivers for MT7988 SoC Daniel Golle
2023-12-12 9:31 ` AngeloGioacchino Del Regno
2023-12-12 9:33 ` [PATCH v5 1/5] dt-bindings: clock: mediatek: add MT7988 clock IDs AngeloGioacchino Del Regno
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=7c878a4e-da9b-4e8e-a965-9eeefe073d13@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=Garmin.Chang@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=frank-w@public-files.de \
--cc=jamesjj.liao@mediatek.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mturquette@baylibre.com \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=robh+dt@kernel.org \
--cc=sam.shih@mediatek.com \
--cc=sboyd@kernel.org \
--cc=sd@queasysnail.net \
--cc=wenst@chromium.org \
/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