diff options
| -rw-r--r-- | Documentation/devicetree/bindings/panel/ortustech,com43h4m85ulc.txt | 7 | ||||
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 27 |
2 files changed, 34 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/ortustech,com43h4m85ulc.txt b/Documentation/devicetree/bindings/panel/ortustech,com43h4m85ulc.txt new file mode 100644 index 000000000000..de19e9398618 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/ortustech,com43h4m85ulc.txt | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | OrtusTech COM43H4M85ULC Blanview 3.7" TFT-LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "ortustech,com43h4m85ulc" | ||
| 5 | |||
| 6 | This binding is compatible with the simple-panel binding, which is specified | ||
| 7 | in simple-panel.txt in this directory. | ||
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index c2aeb89cb851..d9491bc8f9a4 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
| @@ -828,6 +828,30 @@ static const struct panel_desc lg_lp129qe = { | |||
| 828 | }, | 828 | }, |
| 829 | }; | 829 | }; |
| 830 | 830 | ||
| 831 | static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { | ||
| 832 | .clock = 25000, | ||
| 833 | .hdisplay = 480, | ||
| 834 | .hsync_start = 480 + 10, | ||
| 835 | .hsync_end = 480 + 10 + 10, | ||
| 836 | .htotal = 480 + 10 + 10 + 15, | ||
| 837 | .vdisplay = 800, | ||
| 838 | .vsync_start = 800 + 3, | ||
| 839 | .vsync_end = 800 + 3 + 3, | ||
| 840 | .vtotal = 800 + 3 + 3 + 3, | ||
| 841 | .vrefresh = 60, | ||
| 842 | }; | ||
| 843 | |||
| 844 | static const struct panel_desc ortustech_com43h4m85ulc = { | ||
| 845 | .modes = &ortustech_com43h4m85ulc_mode, | ||
| 846 | .num_modes = 1, | ||
| 847 | .bpc = 8, | ||
| 848 | .size = { | ||
| 849 | .width = 56, | ||
| 850 | .height = 93, | ||
| 851 | }, | ||
| 852 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, | ||
| 853 | }; | ||
| 854 | |||
| 831 | static const struct drm_display_mode samsung_ltn101nt05_mode = { | 855 | static const struct drm_display_mode samsung_ltn101nt05_mode = { |
| 832 | .clock = 54030, | 856 | .clock = 54030, |
| 833 | .hdisplay = 1024, | 857 | .hdisplay = 1024, |
| @@ -965,6 +989,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 965 | .compatible = "lg,lp129qe", | 989 | .compatible = "lg,lp129qe", |
| 966 | .data = &lg_lp129qe, | 990 | .data = &lg_lp129qe, |
| 967 | }, { | 991 | }, { |
| 992 | .compatible = "ortustech,com43h4m85ulc", | ||
| 993 | .data = &ortustech_com43h4m85ulc, | ||
| 994 | }, { | ||
| 968 | .compatible = "samsung,ltn101nt05", | 995 | .compatible = "samsung,ltn101nt05", |
| 969 | .data = &samsung_ltn101nt05, | 996 | .data = &samsung_ltn101nt05, |
| 970 | }, { | 997 | }, { |
