From patchwork Mon Oct 9 08:06:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Jiachai X-Patchwork-Id: 823104 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y9XtD6clvz9t5x for ; Mon, 9 Oct 2017 19:08:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754069AbdJIIGy (ORCPT ); Mon, 9 Oct 2017 04:06:54 -0400 Received: from regular1.263xmail.com ([211.150.99.134]:58112 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbdJIIGt (ORCPT ); Mon, 9 Oct 2017 04:06:49 -0400 Received: from hjc?rock-chips.com (unknown [192.168.167.193]) by regular1.263xmail.com (Postfix) with ESMTP id 93E68925F; Mon, 9 Oct 2017 16:06:45 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 9528C390; Mon, 9 Oct 2017 16:06:45 +0800 (CST) X-RL-SENDER: hjc@rock-chips.com X-FST-TO: thierry.reding@gmail.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: hjc@rock-chips.com X-UNIQUE-TAG: <06b1a149fa6a49aed897cc1c0294200a> X-ATTACHMENT-NUM: 0 X-SENDER: hjc@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 32607K9JANK; Mon, 09 Oct 2017 16:06:46 +0800 (CST) From: Sandy Huang To: Thierry Reding , David Airlie , Rob Herring , Mark Rutland Cc: Sandy Huang , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/4] devicetree/bindings: display: Add doucument for RGB panels Date: Mon, 9 Oct 2017 16:06:41 +0800 Message-Id: <1507536404-108507-1-git-send-email-hjc@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507536396-106827-1-git-send-email-hjc@rock-chips.com> References: <1507536396-106827-1-git-send-email-hjc@rock-chips.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- .../bindings/display/panel/panel-rgb.txt | 116 +++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/panel-rgb.txt diff --git a/Documentation/devicetree/bindings/display/panel/panel-rgb.txt b/Documentation/devicetree/bindings/display/panel/panel-rgb.txt new file mode 100644 index 0000000..0c5b054 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/panel-rgb.txt @@ -0,0 +1,116 @@ +RGB Display Panel +================== + +This describe the panel property rgb-mode for parallel and serial +RGB output interface. rgb-mode should be "p888", "p666", "p565", "s888" +and "s888-dummy", the following describe the connection relations. + +p888 mode: + ___ ___ ___ ___ ___ ___ ___ +dclk __/ \___/ \___/ \___/ \___/ \___/ \___/ \___ + ______ ______ ______ ______ ______ ______ ______ +DATA23 ><__R7__><__R7__><__R7__><__R7__><__R7__><__R7__><__R7__>< +DATA22 ><__R6__><__R6__><__R6__><__R6__><__R6__><__R6__><__R6__>< +DATA21 ><__R5__><__R5__><__R5__><__R5__><__R5__><__R5__><__R5__>< +DATA20 ><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__>< +DATA19 ><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__>< +DATA18 ><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__>< +DATA17 ><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__>< +DATA16 ><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA15 ><__G7__><__G7__><__G7__><__G7__><__G7__><__G7__><__G7__>< +DATA14 ><__G6__><__G6__><__G6__><__G6__><__G6__><__G6__><__G6__>< +DATA13 ><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__>< +DATA12 ><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__>< +DATA11 ><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__>< +DATA10 ><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__>< +DATA9 ><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__>< +DATA8 ><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA7 ><__B7__><__B7__><__B7__><__B7__><__B7__><__B7__><__B7__>< +DATA6 ><__B6__><__B6__><__B6__><__B6__><__B6__><__B6__><__B6__>< +DATA5 ><__B5__><__B5__><__B5__><__B5__><__B5__><__B5__><__B5__>< +DATA4 ><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__>< +DATA3 ><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__>< +DATA2 ><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__>< +DATA1 ><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__>< +DATA0 ><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__>< +pixel | n | n+1 | n+3 | n+4 | n+5 | n+6 | n+7 | + +p666 mode: + ___ ___ ___ ___ ___ ___ ___ +dclk __/ \___/ \___/ \___/ \___/ \___/ \___/ \___ + ______ ______ ______ ______ ______ ______ ______ +DATA17 ><__R5__><__R5__><__R5__><__R5__><__R5__><__R5__><__R5__>< +DATA16 ><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__>< +DATA15 ><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__>< +DATA14 ><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__>< +DATA13 ><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__>< +DATA12 ><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA11 ><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__>< +DATA10 ><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__>< +DATA9 ><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__>< +DATA8 ><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__>< +DATA7 ><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__>< +DATA6 ><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA5 ><__B5__><__B5__><__B5__><__B5__><__B5__><__B5__><__B5__>< +DATA4 ><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__>< +DATA3 ><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__>< +DATA2 ><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__>< +DATA1 ><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__>< +DATA0 ><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__>< +pixel | n | n+1 | n+3 | n+4 | n+5 | n+6 | n+7 | + +p565 mode: + ___ ___ ___ ___ ___ ___ ___ +dclk __/ \___/ \___/ \___/ \___/ \___/ \___/ \___ + ______ ______ ______ ______ ______ ______ ______ +DATA15 ><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__><__R4__>< +DATA14 ><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__><__R3__>< +DATA13 ><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__><__R2__>< +DATA12 ><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__><__R1__>< +DATA11 ><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__><__R0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA10 ><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__><__G5__>< +DATA9 ><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__><__G4__>< +DATA8 ><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__><__G3__>< +DATA7 ><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__><__G2__>< +DATA6 ><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__><__G1__>< +DATA5 ><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__><__G0__>< + ______ ______ ______ ______ ______ ______ ______ +DATA4 ><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__><__B4__>< +DATA3 ><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__><__B3__>< +DATA2 ><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__><__B2__>< +DATA1 ><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__><__B1__>< +DATA0 ><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__><__B0__>< +pixel | n | n+1 | n+3 | n+4 | n+5 | n+6 | n+7 | + +s888 mode: + ___ ___ ___ ___ ___ ___ ___ +dclk __/ \___/ \___/ \___/ \___/ \___/ \___/ \___ + ______ ______ ______ ______ ______ ______ ______ +DATA7 ><__R7__><__G7__><__B7__><__R7__><__G7__><__B7__><__R7__>< +DATA6 ><__R6__><__G6__><__B6__><__R6__><__G6__><__B6__><__R6__>< +DATA5 ><__R5__><__G5__><__B5__><__R5__><__G5__><__B5__><__R5__>< +DATA4 ><__R4__><__G4__><__B4__><__R4__><__G4__><__B4__><__R4__>< +DATA3 ><__R3__><__G3__><__B3__><__R3__><__G3__><__B3__><__R3__>< +DATA2 ><__R2__><__G2__><__B2__><__R2__><__G2__><__B2__><__R2__>< +DATA1 ><__R1__><__G1__><__B1__><__R1__><__G1__><__B1__><__R1__>< +DATA0 ><__R0__><__G0__><__B0__><__R0__><__G0__><__B0__><__R0__>< +pixel | --------- n --------- | ------- n + 1 ------- | -------- + +s888-dummy mode: + ___ ___ ___ ___ ___ ___ ___ ___ +dclk __/ \___/ \___/ \___/ \___/ \___/ \___/ \___/ \___ + ______ ______ ______ ______ ______ ______ ______ ______ +DATA7 ><__R7__><__G7__><__B7__><_NULL_><__R7__><__G7__><__B7__><_NULL_>< +DATA6 ><__R6__><__G6__><__B6__><_NULL_><__R6__><__G6__><__B6__><_NULL_>< +DATA5 ><__R5__><__G5__><__B5__><_NULL_><__R5__><__G5__><__B5__><_NULL_>< +DATA4 ><__R4__><__G4__><__B4__><_NULL_><__R4__><__G4__><__B4__><_NULL_>< +DATA3 ><__R3__><__G3__><__B3__><_NULL_><__R3__><__G3__><__B3__><_NULL_>< +DATA2 ><__R2__><__G2__><__B2__><_NULL_><__R2__><__G2__><__B2__><_NULL_>< +DATA1 ><__R1__><__G1__><__B1__><_NULL_><__R1__><__G1__><__B1__><_NULL_>< +DATA0 ><__R0__><__G0__><__B0__><_NULL_><__R0__><__G0__><__B0__><_NULL_>< +pixel | ------------- n ------------- | ----------- n + 1 ----------- | From patchwork Mon Oct 9 08:06:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Jiachai X-Patchwork-Id: 823103 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3y9Xt60tSfz9tY2 for ; Mon, 9 Oct 2017 19:07:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754013AbdJIIHC (ORCPT ); Mon, 9 Oct 2017 04:07:02 -0400 Received: from regular1.263xmail.com ([211.150.99.137]:45556 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754066AbdJIIG5 (ORCPT ); Mon, 9 Oct 2017 04:06:57 -0400 Received: from hjc?rock-chips.com (unknown [192.168.167.179]) by regular1.263xmail.com (Postfix) with ESMTP id 6DD28DBF2; Mon, 9 Oct 2017 16:06:53 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id EA3243A7; Mon, 9 Oct 2017 16:06:50 +0800 (CST) X-RL-SENDER: hjc@rock-chips.com X-FST-TO: mark.yao@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: hjc@rock-chips.com X-UNIQUE-TAG: <579cd59c909375745efbc043541d5005> X-ATTACHMENT-NUM: 0 X-SENDER: hjc@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 12581V612GV; Mon, 09 Oct 2017 16:06:53 +0800 (CST) From: Sandy Huang To: Mark Yao , David Airlie , Rob Herring , Mark Rutland , Heiko Stuebner Cc: Sandy Huang , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/4] devicetree/bindings: display: Add document for rockchip RGB output Date: Mon, 9 Oct 2017 16:06:47 +0800 Message-Id: <1507536409-110749-1-git-send-email-hjc@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507536396-106827-1-git-send-email-hjc@rock-chips.com> References: <1507536396-106827-1-git-send-email-hjc@rock-chips.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This path add support rv1108 rgb output interface driver. Signed-off-by: Sandy Huang --- Changes in v3: move rgb-mode to panel node which describe at: Documentation/devicetree/bindings/display/panel/panel-rgb.txt Changes in v2: 1. rename rockchip,rgb-mode to rgb-mode; 2. delete reg for signle endpoint; .../bindings/display/rockchip/rockchip-rgb.txt | 72 ++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt b/Documentation/devicetree/bindings/display/rockchip/rockchip-rgb.txt new file mode 100644 index 0000000..d91a7bf --- /dev/null +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip-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>; + }; + }; + }; + };