Commit bf7c0799 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Neil Armstrong
Browse files

drm/bridge: tc358768: switch to bus-width



"data-lines" property is way too similar to "data-lanes".  It is also
duplicating "bus-width" from video-interfaces.yaml schema.  "data-lines"
was deprecated in the bindings and "bus-width" is preferred, so parse it
instead while keeping things backwards compatible.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241003133904.69244-2-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241003133904.69244-2-krzysztof.kozlowski@linaro.org
parent d704a2fe
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -443,6 +443,8 @@ static int tc358768_dsi_host_attach(struct mipi_dsi_host *host,
	ret = -EINVAL;
	ep = of_graph_get_endpoint_by_regs(host->dev->of_node, 0, 0);
	if (ep) {
		ret = of_property_read_u32(ep, "bus-width", &priv->pd_lines);
		if (ret)
			ret = of_property_read_u32(ep, "data-lines", &priv->pd_lines);

		of_node_put(ep);