From patchwork Fri Aug 18 08:09:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6buE5a626ZKX?= X-Patchwork-Id: 9907831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 860ED600CC for ; Fri, 18 Aug 2017 08:10:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 76FCA28C65 for ; Fri, 18 Aug 2017 08:10:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BD6F28C69; Fri, 18 Aug 2017 08:10:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_LOW, RCVD_IN_SBL_CSS autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EF7FD28C65 for ; Fri, 18 Aug 2017 08:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SGhErS1QNZ+1k6y0NERTQbRpnOsu9ZGian+l/sElUrQ=; b=YoxFEOR/8c14qqrCaZIbnGXRSL HB5wK6pg61zZzJWMzYdHX4z/cbwWeGdslkXPLQwW/wCxppQgHUGBJUblssL5PWwbfJ4WDaiz/X7Rw 84uItAZgVDYllrutF89DAbrAMEIsFbIhz2z33DPri1jPUEpROVJ3ueXzCl1AkRUixvhKQu1O16StT palDWkR0UXGwc7SsTIjzpUnEpY3nONKp7V7xYmRkdm69wP4hSkRuNMp+fHvnUUr4oPMpwQQU188lf Ntx0xlXGRR8dZGLCUCfuCBc7f+pnKocDacsyK9JWwIvXCHg/vILI5AZy0XLXLHdwykPCnX54pB6Hm 7G63InyA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dicMi-00025r-Dv; Fri, 18 Aug 2017 08:10:48 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dicMK-0001uu-Ib; Fri, 18 Aug 2017 08:10:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=prl1UO3UnrZnD54yNZzBPpWOEImPzgvnAhnyPQDLuWc=; b=PqMyBJQ5PyGepBaCH4J+sbd29 DPiTYmgM/FadcEqFxinNrOv9Q451CnPv8tjkGSdx3wBZQvVaWCq+XriKHHTmzzXUAflaWuUl+BfLF CXnIHuKwIrVEUPeFJkMQ6GSa7Zdh5n6bamBFNbi1VeerNETacej55/Ez47PAtWuILJaTi4T+2asHD Cs0pNCxIL/SuZkgkyyENtjTFFpFFlbJUSPgVkGq1Q1SxKg+f31hrzS+8i69P6M6+dCALPAnJWtrLQ AZbrvjdaQMxeLC0T80PJGioahzNlvj9Omq83AQpDxM+CB6nGjIwb5GaZ32SBx9SHFnBELH8VgI/tp JpAXygB7A==; Received: from regular1.263xmail.com ([211.150.99.134]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dicMI-0000D3-Pz; Fri, 18 Aug 2017 08:10:23 +0000 Received: from hjc?rock-chips.com (unknown [192.168.167.11]) by regular1.263xmail.com (Postfix) with ESMTP id BE07A9181; Fri, 18 Aug 2017 16:09:56 +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 710733C3; Fri, 18 Aug 2017 16:09:56 +0800 (CST) X-RL-SENDER: hjc@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: hjc@rock-chips.com X-UNIQUE-TAG: <6e1a841225b7d62ea146e77479d61e0e> 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 17142HX7C7G; Fri, 18 Aug 2017 16:09:57 +0800 (CST) From: Sandy Huang To: Heiko Stuebner , Rob Herring , Mark Rutland , Russell King Subject: [PATCH v6 2/3] ARM: dts: Add LVDS info for rk3288 Date: Fri, 18 Aug 2017 16:09:55 +0800 Message-Id: <1503043795-22805-1-git-send-email-hjc@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503043780-22605-1-git-send-email-hjc@rock-chips.com> References: <1503043780-22605-1-git-send-email-hjc@rock-chips.com> X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Sandy Huang , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 2484f11..c2e33b8 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -983,6 +983,11 @@ reg = <2>; remote-endpoint = <&mipi_in_vopb>; }; + + vopb_out_lvds: endpoint@3 { + reg = <3>; + remote-endpoint = <&lvds_in_vopb>; + }; }; }; @@ -1026,6 +1031,11 @@ reg = <2>; remote-endpoint = <&mipi_in_vopl>; }; + + vopl_out_lvds: endpoint@3 { + reg = <3>; + remote-endpoint = <&lvds_in_vopl>; + }; }; }; @@ -1099,6 +1109,39 @@ }; }; + lvds: lvds@ff96c000 { + compatible = "rockchip,rk3288-lvds"; + reg = <0xff96c000 0x4000>; + clocks = <&cru PCLK_LVDS_PHY>; + clock-names = "pclk_lvds"; + pinctrl-names = "lcdc"; + pinctrl-0 = <&lcdc_ctl>; + power-domains = <&power RK3288_PD_VIO>; + rockchip,grf = <&grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + lvds_in: port@0 { + reg = <0>; + + #address-cells = <1>; + #size-cells = <0>; + + lvds_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_lvds>; + }; + lvds_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_lvds>; + }; + }; + }; + }; + hdmi: hdmi@ff980000 { compatible = "rockchip,rk3288-dw-hdmi"; reg = <0xff980000 0x20000>; @@ -1823,5 +1866,14 @@ rockchip,pins = ; }; }; + + lcdc { + lcdc_ctl: lcdc-ctl { + rockchip,pins = <1 24 RK_FUNC_1 &pcfg_pull_none>, + <1 25 RK_FUNC_1 &pcfg_pull_none>, + <1 26 RK_FUNC_1 &pcfg_pull_none>, + <1 27 RK_FUNC_1 &pcfg_pull_none>; + }; + }; }; };