From patchwork Thu Dec 7 15:59:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 121005 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp8533980qgn; Thu, 7 Dec 2017 08:00:04 -0800 (PST) X-Google-Smtp-Source: AGs4zMY/5AY3yV+bE5EzerD3q+G3FMfnMTU3xSxoFI7ihzcFIpo50Tp9Fh14IMM7RvfRG8EZ3zm3 X-Received: by 10.99.106.4 with SMTP id f4mr22825667pgc.162.1512662404217; Thu, 07 Dec 2017 08:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512662404; cv=none; d=google.com; s=arc-20160816; b=W1DvNsWfLUnJKY14g9R2gkfFE/aRkawGTGr4iNbU86KQMTg8ghaZPSwdbqqIk8VjSh yaKuKtsdOeHzJf1pY8VcKI5CkdgGlZWcF7PyWPjlx3z+GDjSodz6TD1qjck1A0P+CaoI 3qPTbeVtMImYvOi/cSU3YlWKtSC6nzAdK34flPQczgKSgDKIhHsHjH6R36e9dIjHBOsB H7nNHxdBlZPzldpD81MkGaPr5F4YQfA4AFsDg3pHjEjH450UhdUPG7JbtS3/gQCx8jfQ qaVNQCOjCs2uN+pPfUwH8cHC8dGrP41JxrSO+iBcCiIwZP4f9pEXd+LFrffuvEll7+1h zbvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=yOtOkkc6awb2NsC5bNUzcnUStPGdnuJt7GN2PktHH3E=; b=qJZhKngZzkZDhVuPwLT5POPWXzPQat0Myv1Dp5/9zUIlcg0hrMDVI49IVqzURR63kN +M8imZtgi7g3JECSwjcQ7wfluD2/7tlmNPlfKB2QVmW27KGhl/itrif5nPgCfV7j2DHI duNXTZUCeuenzsxrcDn3Q586xuCfqnDzQ07DnHvTBtLHC4xwGJLtFre8ZsDGlGTchjtH RC+ete9bE7M2Ypxnmv5kRw1WvehKKsyW7tUX/W6LPVuniMG7QGEJgqLZz9yW2Unlzn9F FdC+y7fMwW9XoEiJdmS35gQy+zYs0OQFwQvRLrTArIFYcVWufC5WRwOlAZ0JcE+qGmlR BwxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e61si3844104plb.758.2017.12.07.08.00.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 08:00:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CEC906E837; Thu, 7 Dec 2017 15:59:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E4776E831 for ; Thu, 7 Dec 2017 15:59:24 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 5674420C53; Thu, 7 Dec 2017 16:59:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.187]) by mail.free-electrons.com (Postfix) with ESMTPSA id 1D4FC20C89; Thu, 7 Dec 2017 16:59:13 +0100 (CET) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v4 15/15] ARM: dts: sun8i: a711: Enable the LCD Date: Thu, 7 Dec 2017 16:59:00 +0100 Message-Id: <190e169fb62cbc75ac786ecaa3c63cdcb1b5b209.1512662253.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Cc: Mark Rutland , Thomas Petazzoni , jernej.skrabec@siol.net, plaes@plaes.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , thierry.reding@gmail.com, linux-arm-kernel@lists.infradead.org, icenowy@aosc.io X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The A711 has 1024x600 LVDS panel, with a PWM-based backlight. Add it to our DT. Reviewed-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 61 ++++++++++++++++++++++++- 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index a021ee6da396..511fca491fe8 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -45,6 +45,7 @@ #include "sun8i-a83t.dtsi" #include +#include / { model = "TBS A711 Tablet"; @@ -59,6 +60,44 @@ stdout-path = "serial0:115200n8"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>; + + brightness-levels = <0 1 2 4 8 16 32 64 128 255>; + default-brightness-level = <9>; + }; + + panel { + compatible = "tbs,a711-panel", "panel-lvds"; + backlight = <&backlight>; + power-supply = <®_sw>; + + width-mm = <153>; + height-mm = <90>; + data-mapping = "vesa-24"; + + panel-timing { + /* 1024x600 @60Hz */ + clock-frequency = <52000000>; + hactive = <1024>; + vactive = <600>; + hsync-len = <20>; + hfront-porch = <180>; + hback-porch = <160>; + vfront-porch = <12>; + vback-porch = <23>; + vsync-len = <5>; + }; + + port { + panel_input: endpoint { + remote-endpoint = <&tcon0_out_lcd>; + }; + }; + }; + reg_vbat: reg-vbat { compatible = "regulator-fixed"; regulator-name = "vbat"; @@ -89,6 +128,10 @@ }; }; +&de { + status = "okay"; +}; + /* * An USB-2 hub is connected here, which also means we don't need to * enable the OHCI controller. @@ -142,6 +185,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -323,6 +372,18 @@ regulator-name = "vcc-lcd"; }; +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd_lvds_pins>; +}; + +&tcon0_out { + tcon0_out_lcd: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;