diff options
| -rw-r--r-- | Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt | 7 | ||||
| -rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt b/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt new file mode 100644 index 000000000000..fc1ea9e26c94 --- /dev/null +++ b/Documentation/devicetree/bindings/panel/shelly,sca07010-bfn-lnn.txt | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | Shelly SCA07010-BFN-LNN 7.0" WVGA TFT LCD panel | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible: should be "shelly,sca07010-bfn-lnn" | ||
| 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 2da228576d0c..555c11d9c7cc 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c | |||
| @@ -802,6 +802,29 @@ static const struct panel_desc samsung_ltn140at29_301 = { | |||
| 802 | }, | 802 | }, |
| 803 | }; | 803 | }; |
| 804 | 804 | ||
| 805 | static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { | ||
| 806 | .clock = 33300, | ||
| 807 | .hdisplay = 800, | ||
| 808 | .hsync_start = 800 + 1, | ||
| 809 | .hsync_end = 800 + 1 + 64, | ||
| 810 | .htotal = 800 + 1 + 64 + 64, | ||
| 811 | .vdisplay = 480, | ||
| 812 | .vsync_start = 480 + 1, | ||
| 813 | .vsync_end = 480 + 1 + 23, | ||
| 814 | .vtotal = 480 + 1 + 23 + 22, | ||
| 815 | .vrefresh = 60, | ||
| 816 | }; | ||
| 817 | |||
| 818 | static const struct panel_desc shelly_sca07010_bfn_lnn = { | ||
| 819 | .modes = &shelly_sca07010_bfn_lnn_mode, | ||
| 820 | .num_modes = 1, | ||
| 821 | .size = { | ||
| 822 | .width = 152, | ||
| 823 | .height = 91, | ||
| 824 | }, | ||
| 825 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, | ||
| 826 | }; | ||
| 827 | |||
| 805 | static const struct of_device_id platform_of_match[] = { | 828 | static const struct of_device_id platform_of_match[] = { |
| 806 | { | 829 | { |
| 807 | .compatible = "auo,b101aw03", | 830 | .compatible = "auo,b101aw03", |
| @@ -867,6 +890,9 @@ static const struct of_device_id platform_of_match[] = { | |||
| 867 | .compatible = "samsung,ltn140at29-301", | 890 | .compatible = "samsung,ltn140at29-301", |
| 868 | .data = &samsung_ltn140at29_301, | 891 | .data = &samsung_ltn140at29_301, |
| 869 | }, { | 892 | }, { |
| 893 | .compatible = "shelly,sca07010-bfn-lnn", | ||
| 894 | .data = &shelly_sca07010_bfn_lnn, | ||
| 895 | }, { | ||
| 870 | /* sentinel */ | 896 | /* sentinel */ |
| 871 | } | 897 | } |
| 872 | }; | 898 | }; |
