-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'drm-tinydrm-2017-02-18' of https://github.com/notro/linux …
…into drm-next Add tinydrm * tag 'drm-tinydrm-2017-02-18' of https://github.com/notro/linux: drm/tinydrm: Add support for Multi-Inno MI0283QT display dt-bindings: Add Multi-Inno MI0283QT binding dt-bindings: display/panel: Add common rotation property of: Add vendor prefix for Multi-Inno drm/tinydrm: Add MIPI DBI support drm/tinydrm: Add helper functions drm: Add DRM support for tiny LCD displays
- Loading branch information
Showing
20 changed files
with
2,845 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
Documentation/devicetree/bindings/display/multi-inno,mi0283qt.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Multi-Inno MI0283QT display panel | ||
|
||
Required properties: | ||
- compatible: "multi-inno,mi0283qt". | ||
|
||
The node for this driver must be a child node of a SPI controller, hence | ||
all mandatory properties described in ../spi/spi-bus.txt must be specified. | ||
|
||
Optional properties: | ||
- dc-gpios: D/C pin. The presence/absence of this GPIO determines | ||
the panel interface mode (IM[3:0] pins): | ||
- present: IM=x110 4-wire 8-bit data serial interface | ||
- absent: IM=x101 3-wire 9-bit data serial interface | ||
- reset-gpios: Reset pin | ||
- power-supply: A regulator node for the supply voltage. | ||
- backlight: phandle of the backlight device attached to the panel | ||
- rotation: panel rotation in degrees counter clockwise (0,90,180,270) | ||
|
||
Example: | ||
mi0283qt@0{ | ||
compatible = "multi-inno,mi0283qt"; | ||
reg = <0>; | ||
spi-max-frequency = <32000000>; | ||
rotation = <90>; | ||
dc-gpios = <&gpio 25 0>; | ||
backlight = <&backlight>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Common display properties | ||
------------------------- | ||
|
||
- rotation: Display rotation in degrees counter clockwise (0,90,180,270) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ Linux GPU Driver Developer's Guide | |
drm-kms-helpers | ||
drm-uapi | ||
i915 | ||
tinydrm | ||
vga-switcheroo | ||
vgaarbiter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
========================== | ||
drm/tinydrm Driver library | ||
========================== | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c | ||
:doc: overview | ||
|
||
Core functionality | ||
================== | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c | ||
:doc: core | ||
|
||
.. kernel-doc:: include/drm/tinydrm/tinydrm.h | ||
:internal: | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-core.c | ||
:export: | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | ||
:export: | ||
|
||
Additional helpers | ||
================== | ||
|
||
.. kernel-doc:: include/drm/tinydrm/tinydrm-helpers.h | ||
:internal: | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | ||
:export: | ||
|
||
MIPI DBI Compatible Controllers | ||
=============================== | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/mipi-dbi.c | ||
:doc: overview | ||
|
||
.. kernel-doc:: include/drm/tinydrm/mipi-dbi.h | ||
:internal: | ||
|
||
.. kernel-doc:: drivers/gpu/drm/tinydrm/mipi-dbi.c | ||
:export: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
menuconfig DRM_TINYDRM | ||
tristate "Support for simple displays" | ||
depends on DRM | ||
select DRM_KMS_HELPER | ||
select DRM_KMS_CMA_HELPER | ||
select BACKLIGHT_LCD_SUPPORT | ||
select BACKLIGHT_CLASS_DEVICE | ||
help | ||
Choose this option if you have a tinydrm supported display. | ||
If M is selected the module will be called tinydrm. | ||
|
||
config TINYDRM_MIPI_DBI | ||
tristate | ||
|
||
config TINYDRM_MI0283QT | ||
tristate "DRM support for MI0283QT" | ||
depends on DRM_TINYDRM && SPI | ||
select TINYDRM_MIPI_DBI | ||
help | ||
DRM driver for the Multi-Inno MI0283QT display panel | ||
If M is selected the module will be called mi0283qt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
obj-$(CONFIG_DRM_TINYDRM) += core/ | ||
|
||
# Controllers | ||
obj-$(CONFIG_TINYDRM_MIPI_DBI) += mipi-dbi.o | ||
|
||
# Displays | ||
obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tinydrm-y := tinydrm-core.o tinydrm-pipe.o tinydrm-helpers.o | ||
|
||
obj-$(CONFIG_DRM_TINYDRM) += tinydrm.o |
Oops, something went wrong.