[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c510cf8e-4111-8886-99e0-8ad35b3086a8@linaro.org>
Date: Wed, 1 Jun 2022 11:34:17 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Fabien Parent <fparent@...libre.com>, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, vkoul@...nel.org,
qii.wang@...iatek.com, matthias.bgg@...il.com, jic23@...nel.org,
chaotian.jing@...iatek.com, ulf.hansson@...aro.org,
srinivas.kandagatla@...aro.org, chunfeng.yun@...iatek.com,
broonie@...nel.org, wim@...ux-watchdog.org, linux@...ck-us.net,
Yong Wu <yong.wu@...iatek.com>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
dmaengine@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-iio@...r.kernel.org,
linux-mmc@...r.kernel.org, linux-phy@...ts.infradead.org,
linux-serial@...r.kernel.org, linux-spi@...r.kernel.org,
linux-usb@...r.kernel.org, linux-watchdog@...r.kernel.org
Subject: Re: [PATCH 02/17] dt-bindings: memory: add mt8365 SoC binding
documentation
On 31/05/2022 15:50, Fabien Parent wrote:
> Add MediaTek SMI bindings for MT8365 SoC.
>
> Signed-off-by: Fabien Parent <fparent@...libre.com>
> ---
> .../bindings/memory-controllers/mediatek,smi-common.yaml | 6 ++++++
> .../bindings/memory-controllers/mediatek,smi-larb.yaml | 6 ++++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> index a98b359bf909..e1029ac99ab4 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.yaml
> @@ -46,6 +46,11 @@ properties:
> - const: mediatek,mt7623-smi-common
> - const: mediatek,mt2701-smi-common
>
> + - description: for mt8365
Skip description and:
> + items:
> + - const: mediatek,mt8365-smi-common
This should be rather enum. I see existing code did that way, but this
way makes it bloated. If new device compatible with mt8186 comes, should
be added to this enum, not to new items.
> + - const: mediatek,mt8186-smi-common
> +
> reg:
> maxItems: 1
>
> @@ -130,6 +135,7 @@ allOf:
> - mediatek,mt8192-smi-common
> - mediatek,mt8195-smi-common-vdo
> - mediatek,mt8195-smi-common-vpp
> + - mediatek,mt8365-smi-common
>
> then:
> properties:
> diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
> index c886681f62a7..815d87fc64a0 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.yaml
> @@ -32,6 +32,11 @@ properties:
> - const: mediatek,mt7623-smi-larb
> - const: mediatek,mt2701-smi-larb
>
> + - description: for mt8365
> + items:
> + - const: mediatek,mt8365-smi-larb
> + - const: mediatek,mt8186-smi-larb
Ditto.
> +
> reg:
> maxItems: 1
>
> @@ -78,6 +83,7 @@ allOf:
> - mediatek,mt8183-smi-larb
> - mediatek,mt8186-smi-larb
> - mediatek,mt8195-smi-larb
> + - mediatek,mt8365-smi-larb
>
> then:
> properties:
Best regards,
Krzysztof
Powered by blists - more mailing lists