From 40807f612dcd189cebf8e851f7841693df19d1ef Mon Sep 17 00:00:00 2001 From: Svyatoslav Ryhel Date: Mon, 16 Aug 2021 08:53:59 +0300 Subject: [PATCH] gpu: drm: grate: enable t30 dsi support Signed-off-by: Svyatoslav Ryhel --- arch/arm/boot/dts/tegra30.dtsi | 6 ++++++ drivers/gpu/drm/grate/drm.c | 1 + drivers/gpu/drm/grate/dsi.c | 1 + 3 files changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/tegra30.dtsi b/arch/arm/boot/dts/tegra30.dtsi index d5c860c92e54c..d4c9483dea3d2 100644 --- a/arch/arm/boot/dts/tegra30.dtsi +++ b/arch/arm/boot/dts/tegra30.dtsi @@ -319,6 +319,9 @@ power-domains = <&pd_core>; operating-points-v2 = <&dsia_dvfs_opp_table>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; }; dsi@54400000 { @@ -332,6 +335,9 @@ power-domains = <&pd_core>; operating-points-v2 = <&dsib_dvfs_opp_table>; status = "disabled"; + + #address-cells = <1>; + #size-cells = <0>; }; }; diff --git a/drivers/gpu/drm/grate/drm.c b/drivers/gpu/drm/grate/drm.c index 5c3b15b5e5e72..affdf2b0e7509 100644 --- a/drivers/gpu/drm/grate/drm.c +++ b/drivers/gpu/drm/grate/drm.c @@ -669,6 +669,7 @@ static const struct of_device_id host1x_drm_subdevs[] = { { .compatible = "nvidia,tegra20-gr2d", }, { .compatible = "nvidia,tegra20-gr3d", }, { .compatible = "nvidia,tegra30-dc", }, + { .compatible = "nvidia,tegra30-dsi", }, { .compatible = "nvidia,tegra30-hdmi", }, { .compatible = "nvidia,tegra30-gr2d", }, { .compatible = "nvidia,tegra30-gr3d", }, diff --git a/drivers/gpu/drm/grate/dsi.c b/drivers/gpu/drm/grate/dsi.c index f6d13602e1b78..76e7109960304 100644 --- a/drivers/gpu/drm/grate/dsi.c +++ b/drivers/gpu/drm/grate/dsi.c @@ -1686,6 +1686,7 @@ static const struct of_device_id tegra_dsi_of_match[] = { { .compatible = "nvidia,tegra132-dsi", }, { .compatible = "nvidia,tegra124-dsi", }, { .compatible = "nvidia,tegra114-dsi", }, + { .compatible = "nvidia,tegra30-dsi", }, { }, }; MODULE_DEVICE_TABLE(of, tegra_dsi_of_match);