From patchwork Tue Nov 13 11:16:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 34 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f199.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id F0E752E542C for ; Tue, 13 Nov 2018 12:19:34 +0100 (CET) Received: by mail-pl1-f199.google.com with SMTP id 34-v6sf9272847plf.6 for ; Tue, 13 Nov 2018 03:19:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542107973; cv=pass; d=google.com; s=arc-20160816; b=sQSor9D865nn77gj/8lScGCNftswmmHtCqD4Hxz81IaGZmtIuDd2l2pnNb1jI8hWoE HoJTFJQj8AAGkLRXJ6W/AspQrdS+Rse86dKEpONTtpWTuGXiFDMQgiOrueaj5EosCPpv CqINZv/pOPNuL+ifUT+ijXMef0t1BXS52G3un4LUmfC5IVzlgcgMov2zkpKJaulNDtEr lMD7+Wdinq+D1JYnWPUhLJDV8nFdOMvQ4XWN72oKABcaJxj4NdhwvcGiFC9B6QVdwbsq r4fx9xMC2zwHk0vhM1yoyMqS4pUCLjrNqXD/qKFCfYTYzEYMz0CwXcUpjGNOUl5ojQlI 7HIw== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SYvsDZFatZNo8KTo2brjgveRTySLcBTtFJwHL/yY9k0=; b=aB1gqdbwSu72APcqQUALvvt7O7G0LDHXc7AS7Z+XwY86KjK93tBHhdQDKxfzh8Lzbx oBX5fQ9qgnjoZVjkLlSYYt4QUVaDtKrLowG90wkq8v86HDbOgdU5JFyyXjVT2DVxkei2 +/KE1Nej1b658iVlJU6GCDGOkAeaLbLiRl4icMSSCP3CVkFlAg3ucniLkJZnUw7/372J 1yoQVcKf3/WMvIKVOuuG5k5TwgAKVIZ+MQgyU3XzUpoJ2eNNx0aee6OvznE3n303RHIL DmVULHTG4PLlTTLdOctHMnF+Brv+Qb8VLRwlq62A2iG7lEa34rBo87od7avPDLWtEXyu mkYQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dv16mTKb; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=SYvsDZFatZNo8KTo2brjgveRTySLcBTtFJwHL/yY9k0=; b=U2zjyLXIYge8DbRsc7QFX7u295AKsg0ysNJKYOb69tzeOM4pSXTYSh5R72mUH750Lo lM2L8YFsQgk5YIEdWrJz4KKYvNfaTpdMwNjhx/Df9oLp5AiIdJKczfVwtLnIHutwP+2Y qKtgJco35jJT8JN93YFadR9eFHSHzfYiFVq/k= 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: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=SYvsDZFatZNo8KTo2brjgveRTySLcBTtFJwHL/yY9k0=; b=oXJQdlEy6xXRNbHZH2L0Xhq9muO3LnlVcV2dwUg5gSt2ALx2PXOsbsVc5XQI7vOw4q L+E2PY8X3ny7AbEmoQmgjtMYrehXPbl54nFyUxAdgi1nrr8PbVJDfgGuqcW7Aqgc0xJd tsumkR7mLPk9YzxJKZgTkHBOi+WTkFvexFRUAfEd/H6k+W9AZnwdTNcQ3U1KSbcUrLNQ U+9Sjml2yIANA6v7rN5Q+BsB2tqQw5a11pr7asTCuGNTeIwJ3eeAqyEqlCm1r5j+nBgL YIpjlMFNww5hTyct9Ijaw5Qav8q1moOr61OsBkudLFEAW2pr0A/nPscO4AjDFtfdMPlX tLWQ== X-Gm-Message-State: AGRZ1gI4l1tWpMMzFsc81Y7SrjmT5mxyFgEQagSUWS8o+3LFASVvtL+c FUHumNoSGRA2J7DG2jrEhATLbA0N X-Google-Smtp-Source: AJdET5d/fQX4bVClvovMWC+NriH/Was2eSABh6z8grNvrGH+IfIagEbWoxiO7NVg7X6qQ8f64fR+eQ== X-Received: by 2002:a62:6184:: with SMTP id v126-v6mr1481484pfb.60.1542107973657; Tue, 13 Nov 2018 03:19:33 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:938b:: with SMTP id r11-v6ls4174662pfk.12.gmail; Tue, 13 Nov 2018 03:19:33 -0800 (PST) X-Received: by 2002:a63:db02:: with SMTP id e2mr4400253pgg.419.1542107973432; Tue, 13 Nov 2018 03:19:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107973; cv=none; d=google.com; s=arc-20160816; b=hXiwUONWOLBIFbAObZ2d3aLe2PtmHopGg1p8S9KM0NseEZWw7GwfiXGhWSOpstu1A1 9mbMWETH27hUqSCIQjefrOTLuK+AvRe+tTGwsMpmB5vaNiNF3Dr5S3vCpBQbVrC7LtP/ Trln4qDImnoV8YiM77S91s85KC5s72a23qD5SBXuvbrzhWfMl6dLwKXZL4AeM5txoIey xmYsy9qtvyoRrI6ZkVAm9agTncfHwg5liZZHmNtKB+oKG+MFAEZsx6e5JCsuP3Hy7O2e 4JPp+f2f3BOaaHcR+TRKvnRqW7NdmD07h9j/9xKSR2EMP/vErC3Z7dj01EzM+d3iFoX+ wFqw== 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=SYvsDZFatZNo8KTo2brjgveRTySLcBTtFJwHL/yY9k0=; b=mXF1sVG//3CyvIrwnLAvnXRpNo5FaxtT/S8sMf5hsEc9fG9pa4sW6whxPi8CUysC7Z /UQu4JLLSMlh6XcIOLgcVie2Waj8ttWUipRDPVtwhqZRscMH/ZXRo6eKErKchV+3PJrX bXIno0GmrDSACrP0VkVrC74so/gSWW8YRyadETKX4B7vgTOnj0YDZvNGoXG3Fjg8gaM6 xnYkOu6z6KYZlrC2A1F+guufOWF21lZdsccFe43Qxs/IggguFYze3CHqhyQVZDfhqA25 su07GI1YrgHvfi84BqVNcKghBlWfd8uDTIXiFrNbQGJhYd95IkdeF5fJ1+WLxACUsEwL e8rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Dv16mTKb; 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 f124sor13116373pgc.14.2018.11.13.03.19.33 for (Google Transport Security); Tue, 13 Nov 2018 03:19:33 -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:af18:: with SMTP id w24mr4397635pge.385.1542107973054; Tue, 13 Nov 2018 03:19:33 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.19.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:32 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v4 26/26] arm64: dts: allwinner: a64-amarula-relic: Enable Techstar TS8550B MIPI-DSI panel Date: Tue, 13 Nov 2018 16:46:33 +0530 Message-Id: <20181113111633.20189-27-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-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=Dv16mTKb; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Amarula A64-Relic board by default bound with Techstar TS8550B MIPI-DSI panel, add support for it. DSI panel connected via board DSI port with, - DC1SW as AVDD supply - DCDC2 as DVDD supply - DCDC1 as VCC-DSI supply - PD24 gpio for reset pin - PD23 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 6cb2b7f0c817..ecc0d8094815 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -9,6 +9,7 @@ #include "sun50i-a64.dtsi" #include +#include / { model = "Amarula A64-Relic"; @@ -18,6 +19,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 512>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD23 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -30,6 +39,28 @@ }; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; + status = "okay"; + + panel@0 { + compatible = "techstar,ts8550b"; + reg = <0>; + avdd-supply = <®_dc1sw>; + dvdd-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -72,6 +103,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -107,6 +144,15 @@ regulator-name = "vcc-pll-avcc"; }; +®_dc1sw { + /* + * This regulator also indirectly drives the PD pingroup GPIOs, + * which also controls the power LED. + */ + regulator-always-on; + regulator-name = "vcc-phy"; +}; + ®_dcdc1 { regulator-always-on; regulator-min-microvolt = <3300000>;