From patchwork Thu Mar 16 20:47:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9629327 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 8FB3F60249 for ; Thu, 16 Mar 2017 20:52:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FA322866F for ; Thu, 16 Mar 2017 20:52:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F15D2864A; Thu, 16 Mar 2017 20:52:44 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 DC93E2864A for ; Thu, 16 Mar 2017 20:52:43 +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=bUnNNVOhaG/VbLuWOccCHxupDdm/oUuL1cBHFVei0CI=; b=UYUIQgqwgvDdXWkF9V5ll64OyN dFXK445bQtrpnwlThXl3h4L9oku/ce/S07Ix8aRP9jBhihzeWbp9wbrXaVCLRMEIU+g/erVa9afRh Jenh3wnzaKQiIq4ZfnZ9F4NFu1w/SZPaZDRbhxzfrTqcOkigIzDvc8VLs2HEPijkaCPxhCYvlr0Bx EZpNDN6mTocESs6dOmAKtzlPof8Zk9hcpq4ICDxqp0QP2cXdkMesWqncYZznbID374s4QO2B6uqGB gNhoELtR+yQbqzTVJmo5Wf1gLgZ8pmK2OnqsoasqHRwn0HUVBVM3tUyifHcbFJW6iEY8l4YmaBDPs a0bhzMDw==; 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 1cocNw-0002Kj-2u; Thu, 16 Mar 2017 20:52:36 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cocN0-0001Im-5k for linux-arm-kernel@bombadil.infradead.org; Thu, 16 Mar 2017 20:51:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=RlHCZExrZYnBS3s/2GF/Z6+3qWLkgCQXHfG0f/77WVY=; b=V7dGrb9lY8kYBHY/dD4k6+h0T cGaHYUJo5B0Gr/3k2faH3N+OZ1mmJ4/DBLHSnHIegmJazTpXEilmUGwVszxzAmd9U9HmLBvzBfW84 fPDgFEnRbR/A5xYMvvpFX4VFI7JK4aSmSEb/jwrARJYpWIh/VB8NRkFlhbWmyOr+OwFRt+aTWn+RJ YSp13UGfut4PF+QaHlcpsi7l8q12LW515MqxARwypGt3Hf/ma0hB939QoL+G+blgDFo+Rx8+6KjMB owkBr0nJG4FYYXygY7/A+4v35oJOKfeo9U89gq9SApVsX3ClpjYaJrjUJN08Q84uHjdBQYAGsFqKD DM0au+zvg==; Received: from forward9h.cmail.yandex.net ([2a02:6b8:0:f35::eb]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cocMu-0000ux-HJ for linux-arm-kernel@lists.infradead.org; Thu, 16 Mar 2017 20:51:36 +0000 Received: from smtp3j.mail.yandex.net (smtp3j.mail.yandex.net [IPv6:2a02:6b8:0:801:1::12]) by forward9h.cmail.yandex.net (Yandex) with ESMTP id 2CEC02246E; Thu, 16 Mar 2017 23:51:08 +0300 (MSK) Received: from smtp3j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3j.mail.yandex.net (Yandex) with ESMTP id 03C5B6241013; Thu, 16 Mar 2017 23:51:01 +0300 (MSK) Received: by smtp3j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id cN2NeqrDXI-ouNqT4Ks; Thu, 16 Mar 2017 23:51:00 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1489697461; bh=RlHCZExrZYnBS3s/2GF/Z6+3qWLkgCQXHfG0f/77WVY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DJu/ZUZUTcCjyc5dkz4cikyK0UOSRuxiqea6JQNDQF913EcV1RY9Ps7Dv2IzCfUip MUFt5YEbnrgp4KQYuHqMjZTQLrBMq3Y5l0X9/vsfCq3a0DKLAPvOsnLJSwl0Pc7ncm TzrFJM5zw6kbAjLoO6bdg81JZy0pKkbshQ+jgXZI= Authentication-Results: smtp3j.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Subject: [PATCH v2 8/8] ARM: dts: sun8i: enable LCD panel of Lichee Pi Zero Date: Fri, 17 Mar 2017 04:47:48 +0800 Message-Id: <20170316204748.8596-9-icenowy@aosc.xyz> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170316204748.8596-1-icenowy@aosc.xyz> References: <20170316204748.8596-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170316_205132_950934_E326CF6C X-CRM114-Status: UNSURE ( 8.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Icenowy Zheng , linux-clk@vger.kernel.org, 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-Virus-Scanned: ClamAV using ClamSMTP A 480x272 QiaoDian QD43003C0-40-7LED panel is available from Lichee Pi. This commit connects this panel to Lichee Pi Zero. Lichee Pi also provides a 800x480 panel without accurate model number, so do not merge this patch. It will finally come as device tree overlay. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts index 387fc2aa546d..7ae72bf63cd0 100644 --- a/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts +++ b/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts @@ -75,6 +75,28 @@ gpios = <&pio 6 2 GPIO_ACTIVE_LOW>; /* PG2 */ }; }; + + panel: panel { + compatible = "qiaodian,qd43003c0-40", "simple-panel"; + enable-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* Should be backlight */ + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>; + remote-endpoint = <&tcon0_out_lcd>; + }; + }; + }; +}; + +&de { + status = "okay"; }; &mmc0 { @@ -86,6 +108,20 @@ status = "okay"; }; +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd_rgb666_pins>; + status = "okay"; + +}; + +&tcon0_out { + tcon0_out_lcd: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; +}; + &uart0 { pinctrl-0 = <&uart0_pins_a>; pinctrl-names = "default";