Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2393635imu; Thu, 24 Jan 2019 12:01:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN4O32XrDvHnm1L7nlift9J8g79EVoEg12fhbWzKzkozTPr/syGrwkrx5NxUX0r4W16nsCfN X-Received: by 2002:a62:5301:: with SMTP id h1mr7845820pfb.17.1548360073396; Thu, 24 Jan 2019 12:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360073; cv=none; d=google.com; s=arc-20160816; b=yMzUMTfj9+6F5Td42k3he8qKq4njokUcHTbeZtriFSyFGuFJ0kajUEA5X0tOtPpOdC HGIFcofQqAno1TAuLe4bNlGI0QAcrvjTUAY/DWiLxU5kVdY99kbmOMhUtpLcT+ph5vgI J54AK4LfH2I7Z8/yvJuK92/6ToORELhs/ZMfTwdwITMCk1AjwSCS5/M20PrSN//gHq6o D7n0qevp1Ib1BNDfosmYs5py0vI9dig5nGLUEREK900NPlbGRXkwJr5gvGG3w/bXWXm0 Vnhfy7OwQWLpBu/dq2lBFw0PbupVF39lagdaWv7ixfkFiKCuu2tERAEx1cuvbd4UQo2Y ekAA== 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=soUQzKMmxVLy4tGsbhoyX6SR8F/5vCDS2D75UzCy/p4=; b=VID5ucdH9ArVvi40CxCpZhHDuQi18utq7OxiB8Zt3oiezhhgVdsz8jSAsW52oz9hZ1 lFq/wFnqncqIfiN6KJm3SvRKygz8DNpcFd6TkRu0TyAo6bxdlqZ8ShNMxS4p1sTUxByg H5WTKTROtdbQxtHganv8fX2FfWzbhw4DaBYOHXgJsz/0Gu0Okc6Ps6lVYJMoPdwxyAiU F1ecSZOFYhgYIv3HZ0zZI9lLlJKot0AbDCACZ/La1dfIpDxxB7lYyMtCywoDEz7ml9UC xtXAk+bwHD/pX+7cJyo4FZ0OZnDIu+ChuSt635OlQRGus3WhnvnowO9FJm2HGZL6NwGI s3Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pDm2CF9F; 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 b11si10077704pgt.289.2019.01.24.12.00.58; Thu, 24 Jan 2019 12:01:13 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pDm2CF9F; 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 S1731789AbfAXUAx (ORCPT + 99 others); Thu, 24 Jan 2019 15:00:53 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:32898 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729835AbfAXUAw (ORCPT ); Thu, 24 Jan 2019 15:00:52 -0500 Received: by mail-pf1-f196.google.com with SMTP id c123so3552951pfb.0 for ; Thu, 24 Jan 2019 12:00:51 -0800 (PST) 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=soUQzKMmxVLy4tGsbhoyX6SR8F/5vCDS2D75UzCy/p4=; b=pDm2CF9FEByve8QNGu0gfhjfwth1MWBhy/p3CB7KTTVbi8SWcZlwqxMz3Jj0FOQwJE hTiVNLIfFGYpkS/HEdtIdT3c4ofBZ2JFDLKeB0m54ERQiBG7t/2NK0InkdpBxqE0Qjoc BBEJPEQVYcjNZPvTxK8Qmvh3NG4ptucQ5FzRQ= 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=soUQzKMmxVLy4tGsbhoyX6SR8F/5vCDS2D75UzCy/p4=; b=Xld4owppsN7DiaQcAiZXZtMp0A4MUIy1Pz/BMMWwO2BIo6akIrGImsQboB3lreOygD robl06FVirDlQah/WyiLodbPPGuju4bw+eyOHVGGt+cXCElGK0RNDBVqblilzkCaEzr3 tuPDg9WSNnKdZ+odb4XLNmrb7xizErYYPoN04ymhNDbuV8oldy0fm3qrnrIFwifAdEjm yS61UmHQ8U3Z7AzKJEfm7h68A8AXJsb21jtIl1ORqE72/nMZCEi6qaVOyp+01mZ23I2J 6GGf4kNdLVFU/ECB10iFzvdJRBLCKo0xSpPWAPIAJb9Rf6s+zivnrWnyN+Z8AeWir7YA mZ0g== X-Gm-Message-State: AJcUukdiO/yhP5LVW00hwTl4+ylvqEOy2EF0kQgtu/6Y4UfaMH7nQ6qo YIkDWCE1VAQF0JglePhEkf2JCw== X-Received: by 2002:a63:9501:: with SMTP id p1mr7201961pgd.149.1548360051292; Thu, 24 Jan 2019 12:00:51 -0800 (PST) Received: from localhost.localdomain ([115.97.179.75]) by smtp.gmail.com with ESMTPSA id x11sm61637003pfe.72.2019.01.24.12.00.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 12:00:50 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v6 17/22] arm64: allwinner: a64: pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel Date: Fri, 25 Jan 2019 01:28:55 +0530 Message-Id: <20190124195900.22620-18-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190124195900.22620-1-jagan@amarulasolutions.com> References: <20190124195900.22620-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 Feiyang FY07024DI26A30-D MIPI_DSI panel is desiged to attach with DSI connector on pine64 boards, enable the same for pine64 LTS. DSI panel connected via board DSI port with, - DC1SW as AVDD supply - DLDO2 as DVDD supply - DLDO1 as VCC-DSI supply - PD24 gpio for reset pin - PH10 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../dts/allwinner/sun50i-a64-pine64-lts.dts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts index 72d6961dc312..341b1c035604 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts @@ -5,9 +5,48 @@ */ #include "sun50i-a64-sopine-baseboard.dts" +#include / { model = "Pine64 LTS"; compatible = "pine64,pine64-lts", "allwinner,sun50i-r18", "allwinner,sun50i-a64"; + + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 512>; + default-brightness-level = <8>; + enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */ + }; +}; + +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + panel@0 { + compatible = "feiyang,fy07024di26a30d"; + reg = <0>; + avdd-supply = <®_dc1sw>; /* VCC-LCD */ + dvdd-supply = <®_dldo2>; /* VCC-MIPI */ + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; }; -- 2.18.0.321.gffc6fa0e3