drm/dsi/tegra: continuous clock support
Subsystems (6)
v3 cover drm/dsi/tegra: continuous clock support
This small series adds a flag that allows to specify that a DSI device supports non-continuous clock mode, and uses it in the Tegra DSI driver to only enable this mode on panels that support it. Until now, the Tegra DSI driver unconditionally enabled non-continuous mode, which prevented continous-mode-only panels from working with it.
This allows us to enable the panel embedded in NVIDIA SHIELD and which only supports continuous mode.
Changes since v2:
- Changed the flag to enable non-continuous behavior instead of the contrary, to match the DSI spec more closely and highlight the fact continuous behavior is the default
Changes since v1:
- Removed unneeded regulator-always-on property for vdd_lcd regulator
Alexandre Courbot (4):
drm/dsi: Flag for non-continuous clock behavior drm/panel: Set non-continuous clock flag on supporting panels drm/tegra: dsi - Handle non-continuous clock flag
ARM: tegra: roth: add display DT node
arch/arm/boot/dts/tegra114-roth.dts | 22 +++++++++++++++++++--- drivers/gpu/drm/panel/panel-simple.c | 5 +++-- drivers/gpu/drm/tegra/dsi.c | 3 ++- include/drm/drm_mipi_dsi.h | 2 ++ 4 files changed, 26 insertions(+), 6 deletions(-)
Signature · 1 line
2.0.0
PATCH v3 1/4 drm/dsi: Flag for non-continuous clock behavior
As per section 5.6.1 of the DSI specification, all DSI transmitters must support continuous clock behavior on the clock lane, while non-continuous mode support is only optional. Add a flag that allows devices to indicate that they support non-continuous clock mode so host drivers can adapt their behavior accordingly.
--- include/drm/drm_mipi_dsi.h | 2 ++ 1 file changed, 2 insertions(+)
include/drm/drm_mipi_dsi.h +2 -0
@@ -94,6 +94,8 @@ void mipi_dsi_host_unregister(struct mipi_dsi_host *host);#define MIPI_DSI_MODE_VSYNC_FLUSH BIT(8)/* disable EoT packets in HS mode */ #define MIPI_DSI_MODE_EOT_PACKET BIT(9) +/* device supports non-continuous clock behavior (DSI spec 5.6.1) */ +#define MIPI_DSI_CLOCK_NON_CONTINUOUS BIT(10)enum mipi_dsi_pixel_format {MIPI_DSI_FMT_RGB888 ,
Signature · 1 line
2.0.0
Thierry Reding
AppliedRe: [PATCH v3 1/4] drm/dsi: Flag for non-continuous clock behavior
Quoted 10 lines · Alexandre Courbot
As per section 5.6.1 of the DSI specification, all DSI transmitters must support continuous clock behavior on the clock lane, while non-continuous mode support is only optional. Add a flag that allows devices to indicate that they support non-continuous clock mode so host drivers can adapt their behavior accordingly.
Signed-off-by Alexandre Courbot <[email protected]>--- include/drm/drm_mipi_dsi.h | 2 ++ 1 file changed, 2 insertions(+)
Applied, thanks.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 2/4 drm/panel: Set non-continuous clock flag on supporting panels
In reply to Alexandre CourbotThe LG LD070WX3-SL01 and Panasonic VVX10F004B00 are DSI support non-continuous clock mode. Set the MIPI_DSI_CLOCK_NON_CONTINUOUS to their definition so host drivers become aware of this capability.
--- drivers/gpu/drm/panel/panel-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/panel/panel-simple.c +3 -2
@@ -545,7 +545,7 @@ static const struct panel_desc_dsi lg_ld070wx3_sl01 = { .height = 151, }, }, - .flags = MIPI_DSI_MODE_VIDEO, + .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS, .format = MIPI_DSI_FMT_RGB888, .lanes = 4, };
@@ -599,7 +599,8 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { .height = 136, }, }, - .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, + .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | + MIPI_DSI_CLOCK_NON_CONTINUOUS, .format = MIPI_DSI_FMT_RGB888, .lanes = 4, };
Signature · 1 line
2.0.0
Thierry Reding
AppliedRe: [PATCH v3 2/4] drm/panel: Set non-continuous clock flag on supporting panels
Quoted 8 lines · Alexandre Courbot
The LG LD070WX3-SL01 and Panasonic VVX10F004B00 are DSI support non-continuous clock mode. Set the
MIPI_DSI_CLOCK_NON_CONTINUOUSto their definition so host drivers become aware of this capability.Signed-off-by Alexandre Courbot <[email protected]>--- drivers/gpu/drm/panel/panel-simple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
PATCH v3 3/4 drm/tegra: dsi - Handle non-continuous clock flag
In reply to Alexandre CourbotHandle the MIPI_DSI_CLOCK_NONCONTINUOUS flag and only set TX-only clock behavior when this flag is present to allow panels requiring continuous clock mode to operate with this driver.
--- drivers/gpu/drm/tegra/dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/tegra/dsi.c +2 -1
@@ -474,7 +474,8 @@ static int tegra_output_dsi_enable(struct tegra_output *output)tegra_dsi_writel (dsi, value,DSI_HOST_CONTROL ); value =tegra_dsi_readl (dsi,DSI_CONTROL ); - value |=DSI_CONTROL_HS_CLK_CTRL ; +if (dsi->flags &MIPI_DSI_CLOCK_NON_CONTINUOUS ) + value |=DSI_CONTROL_HS_CLK_CTRL ; value &= ~DSI_CONTROL_TX_TRIG (3 ); value &= ~DSI_CONTROL_DCS_ENABLE ; value |=DSI_CONTROL_VIDEO_ENABLE ;
Signature · 1 line
2.0.0
Thierry Reding
AppliedRe: [PATCH v3 3/4] drm/tegra: dsi - Handle non-continuous clock flag
Quoted 8 lines · Alexandre Courbot
Handle the
MIPI_DSI_CLOCK_NONCONTINUOUSflag and only set TX-only clock behavior when this flag is present to allow panels requiring continuous clock mode to operate with this driver.Signed-off-by Alexandre Courbot <[email protected]>--- drivers/gpu/drm/tegra/dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v3 4/4 ARM: tegra: roth: add display DT node
In reply to Alexandre CourbotTegra DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional.
--- arch/arm/boot/dts/tegra114-roth.dts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
arch/arm/boot/dts/tegra114-roth.dts +19 -3
@@ -28,6 +28,22 @@ reg = <0x80000000 0x79600000>; }; + host1x@50000000 { + dsi@54300000 { + status = "okay"; + + vdd-supply = <&vdd_1v2_ap>; + + panel@0 { + compatible = "lg,lh500wx1-sd03"; + reg = <0>; + + power-supply = <&vdd_lcd>; + backlight = <&backlight>; + }; + }; + }; + pinmux@70000868 { pinctrl-names = "default"; pinctrl-0 = <&state_default>;
@@ -823,7 +839,6 @@ regulator-name = "vdd-1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; - regulator-always-on; regulator-boot-on; };
@@ -870,10 +885,11 @@ regulator-name = "vdd-2v8-display"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + regulator-always-on; regulator-boot-on; }; - ldo3 { + vdd_1v2_ap: ldo3 { regulator-name = "avdd-1v2"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
@@ -1069,7 +1085,7 @@ regulator-boot-on; }; - regulator@1 { + vdd_lcd: regulator@1 { compatible = "regulator-fixed"; reg = <1>; regulator-name = "vdd_lcd_1v8";
Signature · 1 line
2.0.0
Thierry Reding
AppliedRe: [PATCH v3 4/4] ARM: tegra: roth: add display DT node
Quoted 8 lines · Alexandre Courbot
Tegra DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional.
Signed-off-by Alexandre Courbot <[email protected]>--- arch/arm/boot/dts/tegra114-roth.dts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
I've applied this to Tegra's for-3.17/dt branch. Thanks.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH v3 4/4] ARM: tegra: roth: add display DT node
Quoted 11 lines · Thierry Reding
Quoted 8 lines · Alexandre Courbot
Tegra DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional.
Signed-off-by Alexandre Courbot <[email protected]>--- arch/arm/boot/dts/tegra114-roth.dts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)I've applied this to Tegra's for-3.17/dt branch. Thanks.
Thanks - how about the other patches of the series? Ideally this one should be applied last.
Re: [PATCH v3 4/4] ARM: tegra: roth: add display DT node
Quoted 12 lines · Alexandre Courbot
Quoted 10 lines · Thierry Reding
Quoted 8 lines · Alexandre Courbot
Tegra DSI support has been fixed to support continuous clock behavior that the panel used on SHIELD requires, so finally add its device tree node since it is functional.
Signed-off-by Alexandre Courbot <[email protected]>--- arch/arm/boot/dts/tegra114-roth.dts | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-)
Quoted 4 lines
Quoted 1 line
I've applied this to Tegra's for-3.17/dt branch. Thanks.
Thanks - how about the other patches of the series? Ideally this one should be applied last.
Those will go into separate trees and I haven't gotten to those yet. I'll probably apply them later today.
Thierry
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel