Skip to content

Commit 4b71e26

Browse files
smaeulmripard
authored andcommitted
drm/sun4i: dsi: Add the A100 variant
The A100 variant of the MIPI DSI controller now gets its module clock from the TCON via the TCON TOP, so the clock rate cannot be set to a fixed value. Otherwise, it appears to be the same as the A31 variant. Reviewed-by: Jernej Skrabec <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 1fa734a commit 4b71e26

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,10 @@ static const struct sun6i_dsi_variant sun6i_a31_mipi_dsi_variant = {
12231223
static const struct sun6i_dsi_variant sun50i_a64_mipi_dsi_variant = {
12241224
};
12251225

1226+
static const struct sun6i_dsi_variant sun50i_a100_mipi_dsi_variant = {
1227+
.has_mod_clk = true,
1228+
};
1229+
12261230
static const struct of_device_id sun6i_dsi_of_table[] = {
12271231
{
12281232
.compatible = "allwinner,sun6i-a31-mipi-dsi",
@@ -1232,6 +1236,10 @@ static const struct of_device_id sun6i_dsi_of_table[] = {
12321236
.compatible = "allwinner,sun50i-a64-mipi-dsi",
12331237
.data = &sun50i_a64_mipi_dsi_variant,
12341238
},
1239+
{
1240+
.compatible = "allwinner,sun50i-a100-mipi-dsi",
1241+
.data = &sun50i_a100_mipi_dsi_variant,
1242+
},
12351243
{ }
12361244
};
12371245
MODULE_DEVICE_TABLE(of, sun6i_dsi_of_table);

0 commit comments

Comments
 (0)