Skip to content

Commit

Permalink
Merge tag 'drm-tinydrm-2017-02-18' of https://github.com/notro/linux
Browse files Browse the repository at this point in the history
…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
Dave Airlie committed Feb 23, 2017
2 parents 601109c + 1f47e6c commit a5eb76d
Show file tree
Hide file tree
Showing 20 changed files with 2,845 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Documentation/devicetree/bindings/display/multi-inno,mi0283qt.txt
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>;
};
4 changes: 4 additions & 0 deletions Documentation/devicetree/bindings/display/panel/panel.txt
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)
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ mpl MPL AG
mqmaker mqmaker Inc.
msi Micro-Star International Co. Ltd.
mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.)
multi-inno Multi-Inno Technology Co.,Ltd
mundoreader Mundo Reader S.L.
murata Murata Manufacturing Co., Ltd.
mxicy Macronix International Co., Ltd.
Expand Down
1 change: 1 addition & 0 deletions Documentation/gpu/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Linux GPU Driver Developer's Guide
drm-kms-helpers
drm-uapi
i915
tinydrm
vga-switcheroo
vgaarbiter

Expand Down
42 changes: 42 additions & 0 deletions Documentation/gpu/tinydrm.rst
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:
6 changes: 6 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4245,6 +4245,12 @@ S: Supported
F: drivers/gpu/drm/mediatek/
F: Documentation/devicetree/bindings/display/mediatek/

DRM DRIVER FOR MI0283QT
M: Noralf Trønnes <noralf@tronnes.org>
S: Maintained
F: drivers/gpu/drm/tinydrm/mi0283qt.c
F: Documentation/devicetree/bindings/display/multi-inno,mi0283qt.txt

DRM DRIVER FOR MSM ADRENO GPU
M: Rob Clark <robdclark@gmail.com>
L: linux-arm-msm@vger.kernel.org
Expand Down
2 changes: 2 additions & 0 deletions drivers/gpu/drm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ source "drivers/gpu/drm/mxsfb/Kconfig"

source "drivers/gpu/drm/meson/Kconfig"

source "drivers/gpu/drm/tinydrm/Kconfig"

# Keep legacy drivers last

menuconfig DRM_LEGACY
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ obj-$(CONFIG_DRM_ARCPGU)+= arc/
obj-y += hisilicon/
obj-$(CONFIG_DRM_ZTE) += zte/
obj-$(CONFIG_DRM_MXSFB) += mxsfb/
obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
21 changes: 21 additions & 0 deletions drivers/gpu/drm/tinydrm/Kconfig
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.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/tinydrm/Makefile
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
3 changes: 3 additions & 0 deletions drivers/gpu/drm/tinydrm/core/Makefile
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
Loading

0 comments on commit a5eb76d

Please sign in to comment.