* [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains
@ 2024-10-19 5:26 Fei Shao
2024-10-21 11:35 ` Conor Dooley
2024-10-23 14:39 ` Chun-Kuang Hu
0 siblings, 2 replies; 3+ messages in thread
From: Fei Shao @ 2024-10-19 5:26 UTC (permalink / raw)
To: AngeloGioacchino Del Regno, Chun-Kuang Hu
Cc: Fei Shao, CK Hu, Conor Dooley, Krzysztof Kozlowski,
Matthias Brugger, Philipp Zabel, Rob Herring, devicetree,
dri-devel, linux-arm-kernel, linux-kernel, linux-mediatek
There are two kinds of MediaTek DPI devices in the tree: the ones with a
power domain and those without (or missing). The former are the majority
and are more common in newer DTs. Only three older DTs fall into the
latter category: MT2701, MT7623 and MT8192.
However, the current binding only allows particular DPI devices to have
power domains, which results in spurious binding check errors against
existing and new DTs.
Instead of diligently maintaining the allowed list, let's do it the
other way around - create an exception list for devices that are fine
not specifying a power domain. This list is expected to be fixed, and it
encourages new MTK DPI devices to describe their power domain whenever
possible; if not, those should be listed with proper rationale.
Signed-off-by: Fei Shao <fshao@chromium.org>
---
.../bindings/display/mediatek/mediatek,dpi.yaml | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
index 3a82aec9021c..c464642bbfb6 100644
--- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
+++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
@@ -81,14 +81,13 @@ required:
allOf:
- if:
- not:
- properties:
- compatible:
- contains:
- enum:
- - mediatek,mt6795-dpi
- - mediatek,mt8173-dpi
- - mediatek,mt8186-dpi
+ properties:
+ compatible:
+ contains:
+ enum:
+ - mediatek,mt2701-dpi
+ - mediatek,mt7623-dpi
+ - mediatek,mt8192-dpi
then:
properties:
power-domains: false
--
2.47.0.rc1.288.g06298d1525-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains
2024-10-19 5:26 [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains Fei Shao
@ 2024-10-21 11:35 ` Conor Dooley
2024-10-23 14:39 ` Chun-Kuang Hu
1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2024-10-21 11:35 UTC (permalink / raw)
To: Fei Shao
Cc: AngeloGioacchino Del Regno, Chun-Kuang Hu, CK Hu, Conor Dooley,
Krzysztof Kozlowski, Matthias Brugger, Philipp Zabel, Rob Herring,
devicetree, dri-devel, linux-arm-kernel, linux-kernel,
linux-mediatek
[-- Attachment #1: Type: text/plain, Size: 979 bytes --]
On Sat, Oct 19, 2024 at 01:26:56PM +0800, Fei Shao wrote:
> There are two kinds of MediaTek DPI devices in the tree: the ones with a
> power domain and those without (or missing). The former are the majority
> and are more common in newer DTs. Only three older DTs fall into the
> latter category: MT2701, MT7623 and MT8192.
>
> However, the current binding only allows particular DPI devices to have
> power domains, which results in spurious binding check errors against
> existing and new DTs.
>
> Instead of diligently maintaining the allowed list, let's do it the
> other way around - create an exception list for devices that are fine
> not specifying a power domain. This list is expected to be fixed, and it
> encourages new MTK DPI devices to describe their power domain whenever
> possible; if not, those should be listed with proper rationale.
>
> Signed-off-by: Fei Shao <fshao@chromium.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains
2024-10-19 5:26 [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains Fei Shao
2024-10-21 11:35 ` Conor Dooley
@ 2024-10-23 14:39 ` Chun-Kuang Hu
1 sibling, 0 replies; 3+ messages in thread
From: Chun-Kuang Hu @ 2024-10-23 14:39 UTC (permalink / raw)
To: Fei Shao
Cc: AngeloGioacchino Del Regno, Chun-Kuang Hu, CK Hu, Conor Dooley,
Krzysztof Kozlowski, Matthias Brugger, Philipp Zabel, Rob Herring,
devicetree, dri-devel, linux-arm-kernel, linux-kernel,
linux-mediatek
Hi, Fei:
Fei Shao <fshao@chromium.org> 於 2024年10月19日 週六 下午1:30寫道:
>
> There are two kinds of MediaTek DPI devices in the tree: the ones with a
> power domain and those without (or missing). The former are the majority
> and are more common in newer DTs. Only three older DTs fall into the
> latter category: MT2701, MT7623 and MT8192.
>
> However, the current binding only allows particular DPI devices to have
> power domains, which results in spurious binding check errors against
> existing and new DTs.
>
> Instead of diligently maintaining the allowed list, let's do it the
> other way around - create an exception list for devices that are fine
> not specifying a power domain. This list is expected to be fixed, and it
> encourages new MTK DPI devices to describe their power domain whenever
> possible; if not, those should be listed with proper rationale.
I've applied patch [1]. I think that patch fix the same problem with this patch.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/commit/?h=mediatek-drm-fixes&id=af6ab107ce2c338790c6629fe0edc0333e708be8
Regards,
Chun-Kuang.
>
> Signed-off-by: Fei Shao <fshao@chromium.org>
> ---
>
> .../bindings/display/mediatek/mediatek,dpi.yaml | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
> index 3a82aec9021c..c464642bbfb6 100644
> --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
> +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml
> @@ -81,14 +81,13 @@ required:
>
> allOf:
> - if:
> - not:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - mediatek,mt6795-dpi
> - - mediatek,mt8173-dpi
> - - mediatek,mt8186-dpi
> + properties:
> + compatible:
> + contains:
> + enum:
> + - mediatek,mt2701-dpi
> + - mediatek,mt7623-dpi
> + - mediatek,mt8192-dpi
> then:
> properties:
> power-domains: false
> --
> 2.47.0.rc1.288.g06298d1525-goog
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-23 14:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-19 5:26 [PATCH] dt-bindings: display: mediatek: dpi: Update device list with power-domains Fei Shao
2024-10-21 11:35 ` Conor Dooley
2024-10-23 14:39 ` Chun-Kuang Hu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox