Skip to contentSkip to conversation

drm/panel: Add Raydium RM67191 driver

PATCH In review Robert Chiras 2 participants 5 messages May 3, 2018 – May 8, 2018

Subsystems (5)
lore
Share & tools
lore

Robert Chiras

author maintainer
#0 lore raw

v2 cover drm/panel: Add Raydium RM67191 driver

This patch-set add support for Raydium RM67191 FHD (1080x1920) OLED panel driver.

New in v2:
- Splitted the device tree bindings into a separate patch
- Squashed the fix from Mirela into the initial patch of the driver
- Sorted Makefile and Kconfig alphabetically
- Optimized the code around manufacturer_cmd_set according to suggestions
- Use the new backlight_enable/disable() functions
- Fixed the calls to panel_unprepare/panel_disable as suggested
- Moved the DSI init sequence from panel_prepare into panel_enable. Now, we only handle reset into prepare/unprepare, while doing the DSI init/uninit in enable/disable functions.

Robert Chiras (2):
drm/panel: Add Raydium RM67191 DSI Panel
dt-bindings: Add Raydium RM67191 panel bindings

 .../bindings/display/panel/raydium,rm67191.txt     |  38 ++
 drivers/gpu/drm/panel/Kconfig                      |   9 +
 drivers/gpu/drm/panel/Makefile                     |   1 +
 drivers/gpu/drm/panel/panel-raydium-rm67191.c      | 654 +++++++++++++++++++++
 4 files changed, 702 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
 create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author maintainer
#1 lore raw

PATCH v2 1/2 drm/panel: Add Raydium RM67191 DSI Panel

Add support for the OLED display based on MIPI-DSI protocol from Raydium:
RM67191.

---
 drivers/gpu/drm/panel/Kconfig                 |   9 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-raydium-rm67191.c | 654 ++++++++++++++++++++++++++
 3 files changed, 664 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-raydium-rm67191.c
drivers/gpu/drm/panel/Kconfig +9 -0
index 25682ff..b0d5678 100644
@@ -108,6 +108,15 @@ config DRM_PANEL_RASPBERRYPI_TOUCHSCREEN
 	  Pi 7" Touchscreen.  To compile this driver as a module,
 	  choose M here.
 
+config DRM_PANEL_RAYDIUM_RM67191
+	tristate "Raydium RM67191 FHD 1080x1920 DSI video mode panel"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	depends on BACKLIGHT_CLASS_DEVICE
+	help
+	  Say Y here if you want to enable support for Raydium RM67191 FHD
+	  (1080x1920) DSI panel.
+
 config DRM_PANEL_RAYDIUM_RM68200
 	tristate "Raydium RM68200 720x1280 DSI video mode panel"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index f26efc1..4ebe7b5 100644
@@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o
 obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o
 obj-$(CONFIG_DRM_PANEL_PANASONIC_VVX10F034N00) += panel-panasonic-vvx10f034n00.o
 obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen.o
+obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o
 obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o
 obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o
drivers/gpu/drm/panel/panel-raydium-rm67191.c new file +654 -0

654 lines not on this page · raw message

Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
author maintainer
#2 lore raw

PATCH v2 2/2 dt-bindings: Add Raydium RM67191 panel bindings

In reply to Robert Chiras
---
 .../bindings/display/panel/raydium,rm67191.txt     | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +38 -0
new file mode 100644
index 0000000..0fe6d4b
@@ -0,0 +1,38 @@
+Raydium RM67171 OLED LCD panel with MIPI-DSI protocol
+
+Required properties:
+- compatible: 		"raydium,rm67191"
+- reg:			virtual channel for MIPI-DSI protocol
+			must be <0>
+- dsi-lanes:		number of DSI lanes to be used
+			must be <3> or <4>
+- port: 		input port node with endpoint definition as
+			defined in Documentation/devicetree/bindings/graph.txt;
+			the input port should be connected to a MIPI-DSI device
+			driver
+
+Optional properties:
+- reset-gpio:		a GPIO spec for the RST_B GPIO pin
+- pinctrl-0		phandle to the pin settings for the reset pin
+- panel-width-mm:	physical panel width [mm]
+- panel-height-mm:	physical panel height [mm]
+
+[1]: Documentation/devicetree/bindings/display/display-timing.txt
+
+Example:
+
+	panel@0 {
+		compatible = "raydium,rm67191";
+		reg = <0>;
+		pinctrl-0 = <&pinctrl_mipi_dsi_0_1_en>;
+		reset-gpio = <&gpio1 7 GPIO_ACTIVE_HIGH>;
+		dsi-lanes = <4>;
+		panel-width-mm = <68>;
+		panel-height-mm = <121>;
+
+		port {
+			panel1_in: endpoint {
+				remote-endpoint = <&mipi1_out>;
+			};
+		};
+	};
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer
#3 lore raw

Re: [PATCH v2 2/2] dt-bindings: Add Raydium RM67191 panel bindings

Quoted 20 lines · Robert Chiras
---
 .../bindings/display/panel/raydium,rm67191.txt     | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +8 -0
new file mode 100644
index 0000000..0fe6d4b
@@ -0,0 +1,38 @@
+Raydium RM67171 OLED LCD panel with MIPI-DSI protocol
+
+Required properties:
+- compatible: 		"raydium,rm67191"
+- reg:			virtual channel for MIPI-DSI protocol
+			must be <0>
+- dsi-lanes:		number of DSI lanes to be used
+			must be <3> or <4>

Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt line 18

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +10 -0
+- port: 		input port node with endpoint definition as
+			defined in Documentation/devicetree/bindings/graph.txt;
+			the input port should be connected to a MIPI-DSI device
+			driver
+
+Optional properties:
+- reset-gpio:		a GPIO spec for the RST_B GPIO pin
+- pinctrl-0		phandle to the pin settings for the reset pin
+- panel-width-mm:	physical panel width [mm]
+- panel-height-mm:	physical panel height [mm]

width-mm and height-mm are the common property names.

Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt line 20

Quoted 2 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +2 -0
+
+[1]: Documentation/devicetree/bindings/display/display-timing.txt

Footnote to what?

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author maintainer
#4 lore raw

Re: [PATCH v2 2/2] dt-bindings: Add Raydium RM67191 panel bindings

Quoted 38 lines · Rob Herring
Quoted 37 lines · Robert Chiras

---
 .../bindings/display/panel/raydium,rm67191.txt     | 38
++++++++++++++++++++++

 1 file changed, 38 insertions(+)

 create mode 100644 Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt

diff --git a/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t xt b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t xt
new file mode 100644
index 0000000..0fe6d4b
--- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/raydium,rm67191.t xt

Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +5 -0
@@ -0,0 +1,38 @@
+Raydium RM67171 OLED LCD panel with MIPI-DSI protocol
+
+Required properties:
+- compatible: 		"raydium,rm67191"
+- reg:			virtual channel for MIPI-DSI

protocol

Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +4 -0
+			must be <0>
+- dsi-lanes:		number of DSI lanes to be used
+			must be <3> or <4>
+- port: 		input port node with endpoint definition

as

(quoted diff) +1 -0
+			defined in

Documentation/devicetree/bindings/graph.txt;

(quoted diff) +1 -0
+			the input port should be connected to a

MIPI-DSI device

Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +1 -0
+			driver
Quoted 8 lines
Quoted 7 lines
Documentation/devicetree/bindings/display/panel/raydium,rm67191.txt new file +4 -0
+
+Optional properties:
+- reset-gpio:		a GPIO spec for the RST_B GPIO pin
+- pinctrl-0		phandle to the pin settings for the

reset pin

+- panel-width-mm:	physical panel width [mm]
+- panel-height-mm:	physical panel height [mm]

width-mm and height-mm are the common property names.

OK, I will change them accordingly.

Quoted 5 lines
Quoted 4 lines

+
+[1]: Documentation/devicetree/bindings/display/display-timing.txt

Footnote to what?

In the previous version it had an optional display-timing property. I removed it in this version, but I forgot to remove the footnote. I will remove this in the next version of the patch-set.

Quoted 1 line

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel