This patches add support rockchip RGB output, Some Rockchip CRTCs, like rv1108,
can directly output parallel and serial RGB data to panel or to conversion chip.
So we add this driver to probe encoder and connector to support this case.
Sandy Huang (4):
devicetree/bindings: display: Add doucument for RGB panels
devicetree/bindings: display: Add document for rockchip RGB output
drm/rockchip: Add support for Rockchip Soc RGB output interface
drm/rockchip: vop: Add more RGB output interface type
.../bindings/display/panel/panel-rgb.txt | 116 +++++++
.../bindings/display/rockchip/rockchip-rgb.txt | 72 +++++
drivers/gpu/drm/rockchip/Kconfig | 11 +
drivers/gpu/drm/rockchip/Makefile | 1 +
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 +
drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 2 +
drivers/gpu/drm/rockchip/rockchip_rgb.c | 344 +++++++++++++++++++++
8 files changed, 549 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/panel-rgb.txt
create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt
create mode 100644 drivers/gpu/drm/rockchip/rockchip_rgb.c
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Describe the panel property rgb-mode for parallel and serial
RGB output interface, include the connection relations for each
mode.
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
---
Changes:
.../bindings/display/panel/panel-rgb.txt | 116 +++++++++++++++++++++
1 file changed, 116 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/panel-rgb.txt
@@ -0,0 +1,72 @@+Rockchip RV1108 RGB interface+================================++Required properties:+- compatible: matching the soc type:+ - "rockchip,rv1108-rgb";++Optional properties:+- pinctrl-names: must contain a "lcdc" entry.+- pinctrl-0: pin control group to be used for this interface.++The rgb has two video ports described by:+ Documentation/devicetree/bindings/media/video-interfaces.txt+Their connections are modeled using the OF graph bindings specified in+ Documentation/devicetree/bindings/graph.txt.++- video port 0 for the VOP input, the remote endpoint maybe vopb/vopl/vop+- video port 1 for either a panel or subsequent encoder++the panel described by:+ Documentation/devicetree/bindings/display/panel/simple-panel.txt+rgb-mode nodes described by:+ Documentation/devicetree/bindings/display/panel/panel-rgb.txt+Panel other required properties:+- ports for remote rgb output.++Example:++panel: panel {+ compatible = "auo,b101ean01";+ enable-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>;+ rgb-mode = "p888";++ ports {+ panel_in_rgb: endpoint {+ remote-endpoint = <&rgb_out_panel>;+ };+ };+};++For Rockchip RV1108:++ rgb: rgb {+ compatible = "rockchip,rv1108-rgb";+ pinctrl-names = "lcdc";+ pinctrl-0 = <&lcdc_ctl>;++ ports {+ #address-cells = <1>;+ #size-cells = <0>;++ rgb_in: port@0 {+ reg = <0>;+ #address-cells = <1>;+ #size-cells = <0>;++ rgb_in_vop: endpoint {+ remote-endpoint = <&vop_out_rgb>;+ };+ };++ rgb_out: port@1 {+ reg = <1>;+ #address-cells = <1>;+ #size-cells = <0>;++ rgb_out_panel: endpoint {+ remote-endpoint = <&panel_in_rgb>;+ };+ };+ };+ };
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Rob Herring <robh@kernel.org> Date: 2017-11-02 00:22:14
On Wed, Nov 01, 2017 at 03:52:38PM +0800, Sandy Huang wrote:
Describe the panel property rgb-mode for parallel and serial
RGB output interface, include the connection relations for each
mode.
Signed-off-by: Sandy Huang <redacted>
---
Changes:
.../bindings/display/panel/panel-rgb.txt | 116 +++++++++++++++++++++
1 file changed, 116 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/panel-rgb.txt
There's a couple of attempts to do the same thing[1] and I'm not taking
more than 1. I'd suggest you split this from the rest of your series and
work out this part separately with others.
Rob
[1] https://patchwork.kernel.org/patch/9999407/
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html