From patchwork Sat Oct 31 12:56:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 7530991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B153BEEA4 for ; Sat, 31 Oct 2015 13:00:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6D5F9206A2 for ; Sat, 31 Oct 2015 13:00:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8A8182069F for ; Sat, 31 Oct 2015 13:00:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZsVkF-0005F6-52; Sat, 31 Oct 2015 12:58:55 +0000 Received: from mail-qg0-f50.google.com ([209.85.192.50]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZsVjC-0004Mm-09; Sat, 31 Oct 2015 12:57:55 +0000 Received: by qgad10 with SMTP id d10so82798718qga.3; Sat, 31 Oct 2015 05:57:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ESiqDPpfYYmXu5GwLJp4WoHbZ3413yRskcpSSJ17YFo=; b=jwKSkmMh+0PF6K7uuKV3u4+qW/RZkosLsY8OPq3fblZt1BU8zJP8ce7h4yIRUQ0GmY Ka8S4GY9vbkmUU9DdaHCx0de7bb5rgNATJ+ELVWRdzTiTwROHsWlozdeVCLijJLL1QdA g1G5Zrbh93vhOLXSUp/Ju4qWcP8tgjbQCiMP7zzRJOy6MLGenF1N5AClt48U/O32r0/T MUS8zXZAS8vZGrWwNTM/XeEtR2tAadPlPEPu+yvV8vZwHeVnWtUJ2ZXzRz3KZKRcKaaU hojZZLzBCJkzvkNLQLoT68CJn1PwaDRi2u5LEYIKtEbbkt0dyO9vEfcEWmxR6rQlIRd+ hfbg== X-Received: by 10.140.235.143 with SMTP id g137mr18228579qhc.11.1446296248960; Sat, 31 Oct 2015 05:57:28 -0700 (PDT) Received: from localhost.localdomain ([45.74.60.60]) by smtp.gmail.com with ESMTPSA id 64sm4362161qgn.12.2015.10.31.05.57.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 Oct 2015 05:57:28 -0700 (PDT) From: Chris Zhong To: heiko@sntech.de, linux-rockchip@lists.infradead.org Subject: [PATCH v2 08/13] Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver Date: Sat, 31 Oct 2015 20:56:04 +0800 Message-Id: <1446296170-3702-9-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446296170-3702-1-git-send-email-zyw@rock-chips.com> References: <1446296170-3702-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151031_055750_386650_E59212C2 X-CRM114-Status: GOOD ( 13.11 ) X-Spam-Score: -0.5 (/) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , Kumar Gala , Chris Zhong , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY, URIBL_BLACK autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add device tree bindings for rk3288 specific Synopsys DW MIPI DSI driver Signed-off-by: Chris Zhong --- Changes in v2: None .../bindings/video/dw_mipi_dsi_rockchip.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/dw_mipi_dsi_rockchip.txt diff --git a/Documentation/devicetree/bindings/video/dw_mipi_dsi_rockchip.txt b/Documentation/devicetree/bindings/video/dw_mipi_dsi_rockchip.txt new file mode 100644 index 0000000..4dea804 --- /dev/null +++ b/Documentation/devicetree/bindings/video/dw_mipi_dsi_rockchip.txt @@ -0,0 +1,56 @@ +Rockchip specific extensions to the Synopsys Designware MIPI DSI +================================ + +Required properties: +- compatible: "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi". +- rockchip,grf: this soc should set GRF regs to mux vopl/vopb. +- ports: contain a port node with endpoint definitions as defined in [1]. + For vopb,set the reg = <0> and set the reg = <1> for vopl. + +For more required properties, please refer to [2]. + +[1] Documentation/devicetree/bindings/media/video-interfaces.txt +[2] Documentation/devicetree/bindings/drm/bridge/dw_mipi_dsi.txt + +Example: + mipi_dsi: mipi@ff960000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi"; + reg = <0xff960000 0x4000>; + interrupts = ; + clocks = <&cru SCLK_MIPI_24M>, <&cru PCLK_MIPI_DSI0>; + clock-names = "ref", "pclk"; + rockchip,grf = <&grf>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + mipi_in: port { + #address-cells = <1>; + #size-cells = <0>; + mipi_in_vopb: endpoint@0 { + reg = <0>; + remote-endpoint = <&vopb_out_mipi>; + }; + mipi_in_vopl: endpoint@1 { + reg = <1>; + remote-endpoint = <&vopl_out_mipi>; + }; + }; + }; + + panel { + compatible ="boe,tv080wum-nl0"; + reg = <0>; + + enable-gpios = <&gpio7 3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_en>; + backlight = <&backlight>; + status = "okay"; + }; + };