From patchwork Mon Nov 27 15:41:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 119724 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp437670qgn; Mon, 27 Nov 2017 07:42:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ4zcUPQBwNLGbfIEpg7PQ+YqehJxCHBVCmXLp129eYwC7qIsT+oGOPQIjtaurD+HeQ8Fq6 X-Received: by 10.159.251.140 with SMTP id m12mr39443206pls.199.1511797325999; Mon, 27 Nov 2017 07:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511797325; cv=none; d=google.com; s=arc-20160816; b=yoqYXo/quKeX/iYmyeqQqm6nU2/1htDwzMT2SQ8Lh2Q7NlapaT0I5XD2xq52Eo9IJt l3MWok0OBmZJQ24c2jtkjK+36VJNsaiJ6sMM3t9aVvUe2BvhFRWBeybD83MaE0HVA+Ag 7YgcAs9EPHz+kpLV1tnBvR+ZlgG8pPvHLMy5Ui0K6XXC66VpsjDvFzoPZpAF2VldRK6b mYUsGmJguCi7J0H9NYnkuHcLHyHFCAgBWohz0ToCq0VrNfbg/g1OGGgxmiDnTsWmbTou 7QJ/Y6E9O/zbt06No+LBt4kzjQjFzQBGBhdCcrhI+giNfHgtQ9ucNH44rcrh3+jUh73u wUmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GFijbjOXkyLMwgN0kkXRkmLD2rUuyKHJmlF6LdopYp8=; b=ocfTxmw5ESuy7A7bUXdL+RpyQ5ITsybVocn8R4qSb9K7QQcp5XfILvsS5b1FSL1fTu RYcdjKdTihGJnGLvFm47uiZNik/j0Nan0hplBjiv4Rr3/qS8VHTwbOVF5XT5PwdIlys7 PNNkTvjARXhVmoyLg7GrWhwFpQJpAn1PN/Hrus38q/c5eIoMiSOrFqUnY4enPh8JoIlZ 3XKo1tA60GKDkYEdD/+yARvDqtKW9qAdDnOMUgEpRbOhbsMULMZVlj6q1qB9uoKEAmbU eyDNKzROiX5mtRHZtXXIWOy66CQQ9g6fkfh3yC9ydFQB/n65cLrIrTUVRefuSrX8m3mr 0urA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si25718513pfh.412.2017.11.27.07.42.05; Mon, 27 Nov 2017 07:42:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752870AbdK0PmE (ORCPT + 28 others); Mon, 27 Nov 2017 10:42:04 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:32922 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbdK0PmA (ORCPT ); Mon, 27 Nov 2017 10:42:00 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 6CC1C213D6; Mon, 27 Nov 2017 16:41:59 +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 (unknown [185.94.189.187]) by mail.free-electrons.com (Postfix) with ESMTPSA id 1619620DD4; Mon, 27 Nov 2017 16:41:59 +0100 (CET) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Mark Rutland , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, plaes@plaes.org, icenowy@aosc.io, Thomas Petazzoni , jernej.skrabec@siol.net Subject: [PATCH v2 18/18] ARM: dts: sun8i: a711: Enable the LCD Date: Mon, 27 Nov 2017 16:41:42 +0100 Message-Id: <1a9c9ec49f2b0c55e9a72205e87474a0bc34d9f7.1511797218.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- git-series 0.9.1 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>;