From patchwork Tue Dec 31 13:05:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 994 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4BB123F077 for ; Tue, 31 Dec 2019 14:06:29 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id t17sf15679947ply.5 for ; Tue, 31 Dec 2019 05:06:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577797588; cv=pass; d=google.com; s=arc-20160816; b=qlgwvXQ0HYjv3xV7IDvV1045ykCzwBizzmwTfHAsEyG38nXarkVdc601U5g3WdBqxQ CKBiY9CI0L/31IVB8s28cWl3oBLoAcqKlIFBnAuSnAzYInpM3SRAKx7SfXSPgT/1QrHs aEuBDhAx7E3n8aZ59OrjfxtDUZqCk3kOtHQ2Zr8rvIfNEKbjYGY5NiQlBlth+h5Lg7sN OlV39AszN+s/hXiofGY0vIup586GwuWWjupAr5HYPpeLQ9gU/Egov6zrftJTrt9IKj52 2d2CUmwUQc5dl0dMBCSH7eKB7E96BsQifRRG7g4HexkpTzA6hR9zf8wgAH1FPo0KvicH Dv2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=ZYcQU47pVipWoPyrfX5fnm3CYMZLbxSv/Ht2pYo14QA=; b=j9YcDPTX7x8DmZBa+uNSyddnNjBHLAczpwIkq4EkhsnWOllwvAG3a2vwbcHZ3V7VRw S0MHOSsqUnajxFvtRyiFwx5xnYB54aB9g+jRNzr2X8HRBjEg3j6/iCHMBpQwF3+dxRQN pjunU2oOpQLj5E5pEjHAQSxyvgAYEGJt43radlj16bexV6Rs3PQvYc0ySqDAfehbr2KG 8Zev0K8aU+cyYcTE5B/Ztj0utq17jOhfHu0XZjcZBqngX9SMEKREIkyTkEV/rjM2Lq6b 291SQrOYLdtviRsYFJ/pqUxRMKjegXtsrJQRkRWPi5FmAD8FidJ5v2dt6Kqx6VyOG5M+ +Khg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rWDBjcTP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=ZYcQU47pVipWoPyrfX5fnm3CYMZLbxSv/Ht2pYo14QA=; b=dysnlkTVHJVhXN9EhpGJh496a1b+SmS2rIo2zAC8ajW1HUbA5HfADIm9jMBtKHF8li jxQjYOOCl/HARSstIbdhlF3ZBvexg+2sWvY/IlItbCMvY5060JKSpbhG529xH6yXSVqG Zh/j1a0m1F8+ju79308eodGrcdjXDo6E+E+NU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=ZYcQU47pVipWoPyrfX5fnm3CYMZLbxSv/Ht2pYo14QA=; b=XBiGRQ+b59DYJVw+mh3wo0efCb2NeH2racbCxMgXtir5WKmtUbx9PbPYySHLSeBuGU Has64aMGDPykO9uFgcFdF9YhKGlm1VZwaRYOK7VLP6nc1ynzlCpQysXUNj428ZMhzfJ5 YHvPXwcoMz++QjdIQ/rNdxmcXnvwmsPPzAAnYi9ZbRbyloZ/cwcwh6H482OXXSipVzlY ZBAp9j89B+QcqYwqlkysgaAdJaieFb/VPsSfsJPoidaysQBUSsuP8qWK54WXfviuWFHz r/gHTUhDOFAcLXQTO/ZjRTnmvia6ZxZSYjLLj5VOUlt6j2KRtNV7fFTS9eGM4stbPR9c /Prg== X-Gm-Message-State: APjAAAWLW1at1Xa5yRlRlZSUFRV8ECaNsYOgT3im/MAI4dJbPo+W9BKD kVpsJcijmU9CNY6SG7pUZvRCy5kK X-Google-Smtp-Source: APXvYqwZI7iEet2boaAAc388GuEvmwmBg7Uq/O60RysWDerh14Vlew1tKu45whtv7leBEuMjpoXcwQ== X-Received: by 2002:a17:90a:28a1:: with SMTP id f30mr6161412pjd.77.1577797587959; Tue, 31 Dec 2019 05:06:27 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b789:: with SMTP id e9ls10348076pls.4.gmail; Tue, 31 Dec 2019 05:06:27 -0800 (PST) X-Received: by 2002:a17:90a:b78d:: with SMTP id m13mr6262228pjr.100.1577797587512; Tue, 31 Dec 2019 05:06:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577797587; cv=none; d=google.com; s=arc-20160816; b=gafcxAbKXlW4chgGQZrBFZRd8eO7/G3MeUcsyja8FerkF3eRls6RsqgsRGKEVnFixU 1kMzJ2Aeqso5m37w5NshadvlEzesWiO31UeaKu2qfg4OZuKp7TktXBRoAs0Jrp+tCiqp ixW5j7TTF1nx2czSch+MZzwWA/dmN2MBqSssLjsM18q+tQMXiLqrKyIRR0Iw9HudvIFj w1HROCR2R+NQJ145UoZnJQL5OIOzRz1I2JkQp8fw6UFBqhrlAlupxxMcKlDdxdPjBc9Y rzPn6id0GwRjQ/bv0IhBzR1PGvmfd/f9iZ1CPNEe/97U1swWY8CpmVo+cUgZFRdWTUb9 oucA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fxRlGBthrDx9tpHcl7NzfKEhaXjVuy3iPazdjbs07eE=; b=DcOgZem9fw3gwamYRSTi3jdyld1VgZAG2+tOJQ1x4SoOmNGyGvvQ3eZ8Ejh159qJ5y pxCzaBw8hDvqwIw6sqIoCO289Jv6pFwExTbDFpPgzjnR7oGw8AaXvYlN188ES0N91cBm CIzYlm7oLqpDdFXlRqkK1DGIeNQ2BK4oyF4hVZy5wRVBpalOviY/qh4Zox6Y//DDaQVv 50OWq0F8cv64K4Yw/32N8Y/nDHYN5yZbrpcAlCSsHLsK9ESI4JHdTffbmkCUqD1RHUCO pGWvy8R6xI+8aaQ1laIOat9sDNU//XPkZQsd/eaQmVTIB/mkRABQWeU3aj6+pitYt4Y5 u/jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rWDBjcTP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 21sor49517832pgt.49.2019.12.31.05.06.27 for (Google Transport Security); Tue, 31 Dec 2019 05:06:27 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a63:1110:: with SMTP id g16mr56093805pgl.84.1577797587194; Tue, 31 Dec 2019 05:06:27 -0800 (PST) Received: from localhost.localdomain ([49.206.202.115]) by smtp.gmail.com with ESMTPSA id i3sm55204089pfg.94.2019.12.31.05.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 05:06:26 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring Cc: David Airlie , Daniel Vetter , Mark Rutland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v3 9/9] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable Bananapi S070WV20-CT16 Date: Tue, 31 Dec 2019 18:35:28 +0530 Message-Id: <20191231130528.20669-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191231130528.20669-1-jagan@amarulasolutions.com> References: <20191231130528.20669-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=rWDBjcTP; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch add support for Bananapi S070WV20-CT16 DSI panel to BPI-M2U board. DSI panel connected via board DSI port with, - DCDC1 as VCC-DSI supply - PH18 gpio for lcd enable pin - PD17 gpio for lcd reset pin - PD16 gpio for backlight enable pin Signed-off-by: Jagan Teki --- Changes for v3: - none .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts index 42d62d1ba1dc..99f84e6f15ce 100644 --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts @@ -45,6 +45,7 @@ #include "sun8i-r40.dtsi" #include +#include / { model = "Banana Pi BPI-M2-Ultra"; @@ -55,6 +56,14 @@ serial0 = &uart0; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 255>; + default-brightness-level = <2>; + enable-gpios = <&pio 7 16 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH16 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -117,6 +126,24 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + enable-gpio = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PH18 */ + reset-gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* LCD-RST: PH17 */ + vdd-supply = <®_dcdc1>; + backlight = <&backlight>; + }; +}; + &ehci1 { status = "okay"; }; @@ -209,6 +236,12 @@ vcc-pg-supply = <®_dldo1>; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + ®_aldo2 { regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; @@ -295,6 +328,10 @@ regulator-name = "vdd1v2-sata"; }; +&tcon_lcd0 { + status = "okay"; +}; + &tcon_tv0 { status = "okay"; };