Skip to contentSkip to conversation

arm64: dts: mt8183: jacuzzi: Fix bus properties in anx's DSI endpoint

PATCH Superseded Nícolas F. R. A. Prado 2 participants 3 messages Feb 1, 2022 – Feb 24, 2022

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: mt8183: jacuzzi: Fix bus properties in anx's DSI endpoint

mt8183-kukui-jacuzzi has an anx7625 bridge connected to the output of its DSI host. However, after commit fd0310b6fe7d ("drm/bridge: anx7625:
add MIPI DPI input feature"), a bus-type property started being required in the endpoint node by the driver to indicate whether it is DSI or DPI.

Add the missing bus-type property and set it to 5 (V4L2_FWNODE_BUS_TYPE_PARALLEL) so that the driver has its input configured to DSI and the display pipeline can probe correctly.

While at it, also set the data-lanes property that was also introduced in that same commit, so that we don't rely on the default value.

Fixes fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature")

---
v1: https://lore.kernel.org/all/[email protected]

Changes in v2:
- (thanks Rob) Use proper format when refering to commit in commit message as pointed out by checkpatch

 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -0
index 8f7bf33f607d..e8f133dc96b9 100644
@@ -171,6 +171,8 @@ port@0 {
 
 			anx7625_in: endpoint {
 				remote-endpoint = <&dsi_out>;
+				bus-type = <5>;
+				data-lanes = <0 1 2 3>;
 			};
 		};
 
Signature · 1 line
2.35.1
author Reviewed-by AngeloGioacchino Del Regno on v2 1/1
#1 lore raw

Sorry, I forgot to add the reviewed-by from v1. Added below.

Quoted 9 lines · Nícolas F. R. A. Prado

mt8183-kukui-jacuzzi has an anx7625 bridge connected to the output of its DSI host. However, after commit fd0310b6fe7d ("drm/bridge: anx7625:
add MIPI DPI input feature"), a bus-type property started being required in the endpoint node by the driver to indicate whether it is DSI or DPI.

Add the missing bus-type property and set it to 5 (V4L2_FWNODE_BUS_TYPE_PARALLEL) so that the driver has its input configured to DSI and the display pipeline can probe correctly.

Quoted 5 lines

While at it, also set the data-lanes property that was also introduced in that same commit, so that we don't rely on the default value.

Fixes fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature")
Quoted 30 lines

---
v1: https://lore.kernel.org/all/[email protected]

Changes in v2:
- (thanks Rob) Use proper format when refering to commit in commit message as pointed out by checkpatch

 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -0
index 8f7bf33f607d..e8f133dc96b9 100644
@@ -171,6 +171,8 @@ port@0 {
 
 			anx7625_in: endpoint {
 				remote-endpoint = <&dsi_out>;
+				bus-type = <5>;
+				data-lanes = <0 1 2 3>;
 			};
 		};
 
Signature · 5 lines
2.35.1


-- 
To unsubscribe, send mail to [email protected].
#2 lore raw
In reply to Nícolas F. R. A. Prado

Hi,

(CC-ed DRM bridge maintainers and the dri-devel ML)

Quoted 9 lines · Nícolas F. R. A. Prado

mt8183-kukui-jacuzzi has an anx7625 bridge connected to the output of its DSI host. However, after commit fd0310b6fe7d ("drm/bridge: anx7625:
add MIPI DPI input feature"), a bus-type property started being required in the endpoint node by the driver to indicate whether it is DSI or DPI.

Add the missing bus-type property and set it to 5 (V4L2_FWNODE_BUS_TYPE_PARALLEL) so that the driver has its input configured to DSI and the display pipeline can probe correctly.

Don't people find it odd that this is setting the bus-type to "parallel"
(5) for the device to use DSI? Instead of "MIPI CSI-2 D-PHY" (4) or even "MIPI CSI-2 C-PHY" (1) which is specified in the binding? It's completely backwards.

Would it be possible to fix the binding and driver at this point?

Thanks
ChenYu

Quoted 37 lines

While at it, also set the data-lanes property that was also introduced in that same commit, so that we don't rely on the default value.

Fixes fd0310b6fe7d ("drm/bridge: anx7625: add MIPI DPI input feature")

---
v1: https://lore.kernel.org/all/[email protected]

Changes in v2:
- (thanks Rob) Use proper format when refering to commit in commit message as pointed out by checkpatch

 arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi +2 -1
index 8f7bf33f607d..e8f133dc96b9 100644
@@ -171,6 +171,8 @@ port@0 {
 
                        anx7625_in: endpoint {
                                remote-endpoint = <&dsi_out>;
+                               bus-type = <5>;
+                               data-lanes = <0 1 2 3>;
                        };
                };
 
--

2.35.1

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek