Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2394437imu; Thu, 24 Jan 2019 12:01:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN6+8X73QPdBqZnIxJh1lUOpaiEVcHPqKKP4FNIJ37SvqyX31/6OE01HNTT+tnaKa+YpjLBi X-Received: by 2002:a65:4904:: with SMTP id p4mr7273576pgs.384.1548360109157; Thu, 24 Jan 2019 12:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360109; cv=none; d=google.com; s=arc-20160816; b=tH842DD+ar0R6g+U9EDFUMa6EHEZh0XCPxIPHK6ofUAFs0G0No0lpuCpV8cnQt+EkY 0RAuwlLaDiKmRSf1lMzMkwklQ4ok/qtYitwYJSvQ93WNtpyfkpobE+ykZVjY+I1bckHW LdmL6kPBjYC5qtii5YTMRi2mpxOI3P1ZMEXpmtlzZcnduMq2dKFeSm7bwmOf+oRCbJFX QXU+agEpTBCyg/BoPH7+jlrG2xowVcE+4KgPd68XTJphAyjlfbaD7Rvsxov9I1pdh23c u9F3yFfquG9DF31ebIu+RKP2s3GbOGEyZMPPdu4Z7u3c2oWPp2Afp2cGeV1Pv/MpHIO2 6/Rw== 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=viWBxNLdmx5hdu4igYEdtrD9NNJ9I5QzFtzjPLFp1Zg=; b=AkJZLdYARTcMbSda2X6sDYMdJAjmMzKbeJMpRjaWd1LmMs8dQVesneQg8MlhSu9ljz Y082veToO9Z3ahIEvJpfaM01tDGKmSC0rNSmguS5rQsk7tTBMiB5r4xivNPLul8M1EC2 GiNfjYsonrnBWRADQTTzADFB80WKwzOZwEToM0sfay/b0KLTG+5D9puytQ+tLQknhOH7 Bn8hW+jtDOLcnDjnp/zS3+YPm3TEhmGJrrbrBuepi0H1qALT8DGGLtedZcvdzukoCncz SUEomDh9V7TB3csucSD7BLNQcv0XEAqq24XAXFuFVezOYejNGKn5axpMbPRcRUFvO36q DEpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="J/w9SOD6"; 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 r8si22012755plo.203.2019.01.24.12.01.33; Thu, 24 Jan 2019 12:01:49 -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="J/w9SOD6"; 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 S1731537AbfAXUBY (ORCPT + 99 others); Thu, 24 Jan 2019 15:01:24 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37701 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730021AbfAXUBX (ORCPT ); Thu, 24 Jan 2019 15:01:23 -0500 Received: by mail-pf1-f193.google.com with SMTP id y126so3532404pfb.4 for ; Thu, 24 Jan 2019 12:01:23 -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=viWBxNLdmx5hdu4igYEdtrD9NNJ9I5QzFtzjPLFp1Zg=; b=J/w9SOD6T4AdblpX5nwobBrlOLEkBmczgfC3EY9vW9U5isU0HSHZCQg04H+zLA8Amt ByrPzdOucoh0P1rugWULznnraWoSn7rsrzqZud/+tHUIuLElI4DOx6twc5+bMHFdvdIq Okztp/hQTyVgLiSWJe+rS0nY8Sw6pUepTXGKE= 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=viWBxNLdmx5hdu4igYEdtrD9NNJ9I5QzFtzjPLFp1Zg=; b=ZkPSWtw2IIIVCqSO87DMJy939V16vUsi/UeUDL7NNmpl16nMJK6ERGIVlNlFntlKvi ye/8g2ZLZOVgll4ltOeK9npIipXvYVpfJKy8Rp3fpcJQrgDUNCTTXgcDj56Jir5CftBu Vf0kZMcaN9UZfPA2b1cCNc2/fDbKpQf+VG4xkGlp1VM3lHoBCUP7IyNzbuTNfjzfvfPC yF5avxgA4l6ks4UVa3viXPlN09Yh9hYsyA8GhwiKezs43tzB/y+lSZU4D/aHIiOKxy2s GIMvWizRmnHosChzeQ4XaOD1EcLQ25elT7mpnIOeIKVGrgPodvajhaqHMnrOKhYvMQu8 M3+A== X-Gm-Message-State: AJcUuke6lFiYfm2vxx0DKDg35ZBxIivD7cBwvbwgUzWGlxMKs0ITklMX PAXzJefe2WB1i+RihKblFSB3VA== X-Received: by 2002:a63:e950:: with SMTP id q16mr7215772pgj.138.1548360082660; Thu, 24 Jan 2019 12:01:22 -0800 (PST) Received: from localhost.localdomain ([115.97.179.75]) by smtp.gmail.com with ESMTPSA id x11sm61637003pfe.72.2019.01.24.12.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 12:01:22 -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: [PATCH v6 22/22] arm64: dts: allwinner: a64-amarula-relic: Add Techstar TS8550B MIPI-DSI panel Date: Fri, 25 Jan 2019 01:29:00 +0530 Message-Id: <20190124195900.22620-23-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 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, - DLDO2 as VCC supply - DLDO2 as IOVCC supply - DLDO1 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 | 39 +++++++++++++++++++ 1 file changed, 39 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 f180c841ac3c..703055f2a4fb 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"; }; @@ -83,6 +92,30 @@ }; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; + IOVCC-supply = <®_dldo2>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -160,6 +193,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; -- 2.18.0.321.gffc6fa0e3