Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6165926ybi; Wed, 29 May 2019 03:59:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwznHnhW6iEgvZSWhtt/9AODhDJkZhXzokWiMkRJZwcn61T1HgZan+HVehbgDeGqSnaPVzj X-Received: by 2002:a17:902:2de4:: with SMTP id p91mr123928830plb.300.1559127551391; Wed, 29 May 2019 03:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559127551; cv=none; d=google.com; s=arc-20160816; b=dMxhPNAS3PUVM6Ho2SsAfN4XpGuyZWSdVqcfnwgwpJ+1sSFYqJNdRI+QSTHigjVg+m NVgQrztw53stAcX3TeN2hawA+wEq17cXWEDkBKkHAcIGTPgmYR8iwbfkkK0SDC2NXOWF 3h4ES1reoh14xM0864xlGspMTO2bB82IEdue90OtEMvtGL0bHfzuuwQm1MC1N/gHfnlo 59Eeews+OoicCby1WMRxxQtrlgbLvYkKA19fJPwXjiliRLYR0TY7TSJTwCDecPcIXTe1 hDCMIWOHNpUnlk7wrr7J10Yaq2QspaANeOkeo3M61hxYDn3Q6eBxIt2HMiH7NHLC6AGS m7cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2ZQ8G0W1S9OmrPavif11lWWMbohgMuBG92FhjQ0hCpY=; b=tL8fcchNga2LT0oWYqVXojzsu90+CLgcQC2LnTCcPLFTheE85CYo/+ZnVf5yxaNMA+ Rq0NP0bxm+IwiyCrBAJtaXc1xwZIT1pwYOB0SGLrC91y3IGAHgbq9UyyAoBLsjDgNYhv uDw6sdQ8+W3fae+UY6ZRXl8B9ZlUCGV+wPsuO9xiy/k5H3FrWgZpN72TAwW+Nskfcuf/ mL4vR8PtZCES9v5JSlLwE71LJWWhC2IlxNXKpoSh42qLJU2WCy+KGBVp2hPr5+Ztbv1E boG03emsfXw++ORYmrPvB5To+yBZI4Rx/Hukxhm6ISmZ010SShV1EB+dTCiuskGKX8HM iywg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gdGxlLlL; 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 v30si29157995pfi.148.2019.05.29.03.58.56; Wed, 29 May 2019 03:59:11 -0700 (PDT) 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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gdGxlLlL; 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 S1726937AbfE2K5P (ORCPT + 99 others); Wed, 29 May 2019 06:57:15 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:33309 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfE2K5N (ORCPT ); Wed, 29 May 2019 06:57:13 -0400 Received: by mail-pl1-f196.google.com with SMTP id g21so922723plq.0 for ; Wed, 29 May 2019 03:57:13 -0700 (PDT) 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:content-transfer-encoding; bh=2ZQ8G0W1S9OmrPavif11lWWMbohgMuBG92FhjQ0hCpY=; b=gdGxlLlLsfXGohWiydB6LjurSsdfuFwPeks8QxffA0jURX8ULCrSOR2YiO7hgtpsji pRmU5gTaS68DtWTDZ+9jgfF86+uStkqc1uiYAY/md8Bxjem8cy01t+D3dbrvS2sRyZYA bx3Xe8a04d+GpRGxmn/E53y2kaBxnnVJcM0zs= 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:content-transfer-encoding; bh=2ZQ8G0W1S9OmrPavif11lWWMbohgMuBG92FhjQ0hCpY=; b=JGLE7j9V1eDa9Xg0cxTBXb6yPvJhj+SZ+gYqzN5wHJ/OOptfcx0zWRvF4IDjtv+fSX 1vU8dyAXjE/5KIzPkO2dRajdcKGdIcsC0vgc29lUGaDIYWjm25mc/NxdFb58CY11q4kI 3Wjjw4ox+hK7iA1uA3sjsMovJtCtG7Vw5mruwEk5/mVSTDCO1GtuLWGOTj+XU35REk2a huzq5etB9yPy2fvV9VmcjbwETvD2YYkOb8V/jYgJpz7yR33bbQlb2fyQwdxxlvkLokWy ooPucQbmCK8kVJyiWxZD78rK4ZriCt6pL50WRXpZUjqXiwZaOevwyf/m48UwU53DehG5 wdag== X-Gm-Message-State: APjAAAXYl24uVe4mssR3ieQQvuBcRdKRAieDddOtSjVyF8aLk4qYaSZN byV0xOVO2fMXCqljbv8tNwyW/Q== X-Received: by 2002:a17:902:a982:: with SMTP id bh2mr35644829plb.224.1559127432704; Wed, 29 May 2019 03:57:12 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.218]) by smtp.gmail.com with ESMTPSA id 184sm18974479pfa.48.2019.05.29.03.57.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 03:57:12 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Sergey Suloev , Ryan Pannell , bshah@mykolab.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v9 7/9] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Wed, 29 May 2019 16:26:13 +0530 Message-Id: <20190529105615.14027-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190529105615.14027-1-jagan@amarulasolutions.com> References: <20190529105615.14027-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add support for Bananapi S070WV20-CT16 DSI panel to BPI-M64 board. DSI panel connected via board DSI port with, - DLDO1 as VCC-DSI supply - DCDC1 as VDD supply - PD7 gpio for lcd enable pin - PD6 gpio for lcd reset pin - PD5 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts index c2a6b73b17cf..166b9761ca83 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts @@ -45,6 +45,7 @@ #include "sun50i-a64.dtsi" #include +#include / { model = "BananaPi-M64"; @@ -56,6 +57,14 @@ serial1 = &uart1; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 255>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 5 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD5 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -116,6 +125,24 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + enable-gpios = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PD7 */ + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + vdd-supply = <®_dcdc1>; + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -206,6 +233,10 @@ status = "okay"; }; +&r_pwm { + status = "okay"; +}; + &r_rsb { status = "okay"; -- 2.18.0.321.gffc6fa0e3