From patchwork Thu Dec 21 11:02:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 122535 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp725592qgn; Thu, 21 Dec 2017 03:03:44 -0800 (PST) X-Google-Smtp-Source: ACJfBovGjL40ARoXq1+FIoZaIbBIc2mwG+cWOi5bR4/en6YYpDXSs5+WliPiHLf4TI5ze6NEc7Wf X-Received: by 10.159.244.12 with SMTP id x12mr10367997plr.312.1513854224468; Thu, 21 Dec 2017 03:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513854224; cv=none; d=google.com; s=arc-20160816; b=nvTD+7YTyxBNHleiVwnjAIZ6kMGzY/CTD2cKYQ1kCSwYncJu0fd7iwC2ZXu0fDlrm4 hfZsDsyxLvAZtWjQDyXoWjTkajL0HvXnvo8yTKUM1zvhdWGtFN1KOq8JIxcMjVGmPFqj 4aQF0aEu+W0e+fqE4N7oWblKnhkSx3J/dhVw2apGy23F/UGcbjkq6Aez+7/GCBIreW6k LXqUVRwl0TJ2V0SQg9wpo3Qvs+Nc8HATowlr0C+VHfdvVbUzsCiHGhlXEXuG/ZGR1WKl v2BAOtzR2PfDjtMwG5CExQr8rx8JSMvYiMKW3xcV2ryRfQIdmuFIixGvAZoPVq/Qx6rS PaUQ== 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=YZKi9LNMQ+WpqqyHaf1ipLSfvbxdDXklcpuvCyc/8OJgzJIDLJWxxNb/SB+vs5MMy8 cO94ofqYwwVuHJzw/sINwNe6inexacCI3WqIRMWxmjAWn9kjJhHmac620XPwa7j3ktpa K8oRjuV+mIkzSgFEW+Kt6rDpF5TXrOS/fLLolV+gUpaPdcLNVMU3/w1Vue014paS9u1N wZp6SNiUxGZWcrvj4YuP2fNsKFw9vgz86PPU1jnZwQHvf0pBCU2wxHo5qUiy+vWLf0mL kOt3jVKcNxcAw1/t5kwFQhBjmAHksTmITW6KD6yqDWc986ckPCNuEFVxSOh8VclJO5qH wrww== 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 5si14498361plt.371.2017.12.21.03.03.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Dec 2017 03:03:44 -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 9D3CB6E628; Thu, 21 Dec 2017 11:03:17 +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 D35266E628 for ; Thu, 21 Dec 2017 11:03:13 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 8F845209EB; Thu, 21 Dec 2017 12:03:12 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 1F4D820956; Thu, 21 Dec 2017 12:02:47 +0100 (CET) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH v5 12/12] ARM: dts: sun8i: a711: Enable the LCD Date: Thu, 21 Dec 2017 12:02:38 +0100 Message-Id: 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, Laurent Pinchart , 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>;