From patchwork Wed May 29 10:56:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 445 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 868DC3F35E for ; Wed, 29 May 2019 12:57:10 +0200 (CEST) Received: by mail-pl1-f198.google.com with SMTP id y1sf1299416plr.13 for ; Wed, 29 May 2019 03:57:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1559127429; cv=pass; d=google.com; s=arc-20160816; b=X39Px2Lbbfgx3UThsv0R2DPCLtzphc0C4yNx1F5nNj4nHT1htVum1RNfEFokej/PqY 18oR76Ga1wQTCuFNrog2gnhLbO68M7piElY+/TKlul65eFqsVHGKkabkE/EKYVnNJd/4 15wmVmJZe8BO/v2c2ug6Fn0MWCrc0iGA+6F5d4ihWAvinJr+bTNp79Nrbisews9qPSma K3ZpARsU2XS5Fibv61gMzOgkFvVThJ4ksW2M0P5v8kcGPc6uWkDMMgosVKAPt+1ynlRv m/fBQdB9g7Q+nejqtOUTZNPKksEaObYJ/Hg4MDmJY2sH/lNOy6HL0BUxfeXwQ8ram1RI uE9Q== 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=CBWZPc5V/Bub15RSqxMWS9yBssYn75uQ7srf8JmcGuA=; b=cHO1BZJzk6+VPlEHdDNgWgbVowxiSGvJoy42F6Kxwu8EfwaQGCE32xftAxVu6di3A8 tQftLueSZTsz5cvUdSJnAfWf7iSZemYj2A8X2nuqUk0IcVhU+2pvhi3Zj9WodaLkiX2V pFmap9ppW4Q1soLlgRAOpTBvCPlYn0Zrn2o3R9P8Ep1rYDKFedMLaHmswzGwh/AAjPLc DHaUs/mW1R6mz3p57D+DqFT6lfhzTH631/Ah9XpKOK/Y9xN2lK9zKycQRoKVbUjTuwVI RJh7Zb0/j/EJcF2FIq2UPtoRdVFgR8oIWdvypxPssNIEJNHNImkwdsfWrs5f82PvR7/v Ey3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FIQa332o; 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=CBWZPc5V/Bub15RSqxMWS9yBssYn75uQ7srf8JmcGuA=; b=hoXtavv3YyFy7OJy3XgS4MkhH0FY2SyXiLT63WpFWpco+oaO/0aFAM6Tw8m8/0si49 NAUE7KGzFwOftc3/vmQWHDQLj51eShjqzzQZWcGGhAMBSfGw5J+ZJQYyWXIfoTgRq6md dN8li0W3iGTvILgRor84qkC0kt7LN5hEFN2xo= 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=CBWZPc5V/Bub15RSqxMWS9yBssYn75uQ7srf8JmcGuA=; b=tbYo02BeIm/V5FMXGwqhZWWFc55VeGX704WAVVIJ2p/wYmBJ8/b5EA/srwuPHGLSRo i+f+8bTAreXN4KYkYRkghrEk5InM0KtNq/DjPP9wISV1idCp0/s+ImtExb/syR9G0mk/ Z8rB5DVoIyAf0iNiXTxzthE9zXfW5VkvP44irfoWa4mCDGupzpE1PjUiD1SLHrkrbyT6 AHtrWAaKxWv9p9flj24j3slBfAumXfHxxfZtuG7OoFlWQTnIpJyq90T1FN6okp8E2oJN aH/ZFEeigEK5LzpnDiVIUknNE6KR1kLTLae5G2pwCL1QudFwUVbmdJSSUadormzLhuvv l0ZA== X-Gm-Message-State: APjAAAVErxvYudV2B05fTEKVOg2uZ/J9g8PbFZ/FtZOcqBQjeylhTmcf ckYuhImXH22En3o7bZfuLewuSWaK X-Google-Smtp-Source: APXvYqxuJsTZfZln81y5FFQfJBIqnW/YhC9fBA+5Z2I3EU/IyiubGNikQ27sJXyNKgt+UwvVVSDPAA== X-Received: by 2002:a62:a508:: with SMTP id v8mr981206pfm.87.1559127428996; Wed, 29 May 2019 03:57:08 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:3483:: with SMTP id b125ls570144pfa.11.gmail; Wed, 29 May 2019 03:57:08 -0700 (PDT) X-Received: by 2002:a65:528b:: with SMTP id y11mr136702565pgp.341.1559127428633; Wed, 29 May 2019 03:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559127428; cv=none; d=google.com; s=arc-20160816; b=suZbJZ+w/cdcWzQt8EaeZ+Z/xhc1lMOug9p16y34J5OaqxLKU51FI+QjDn0ALKkUtA oPGTsfikvtql7HijH5IlJzVtM7TRGMDmdmLz3/5H0eomsd9AKuRK+k7x9AEfuGaBndiB Dfg/cJDOiTikRyjr9jru2MiMtywr9oIr/QPlKbylHZrtfQZsVsgLYkgrP2s2ITFXLAXI dl0QqGQUMxeFHpTNDVhmrc+SPjVPRkhT1+NjulppIqjnW3taonvbm3wVAM1padNoo5Ul 6xdnyzyKSIQ4kZKs+7U6MC/ntHbAlEI2Zd9kb2PYjfPDP5uCg/D8PmJ8AJvwClkuRi9z Faqg== 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=Eyb7BIHD01D0smmXOe136462okq/ItEJbzuGD038kxU=; b=Ok5sbJh9mF4BTwMocUYXRtM6tDpG1E2DMHiizGpH500lFNdrItemxFmKD89X/8FpqV caPSYLh4CM1OqEt3LQZgv0MH6Oy7cjzW6ME57xuVq+3XQmDGQAB71utak41mlr1kgk3u 3vIJ//bv2OkwWtpDcl6lDuFOjAcE5eIsPKC4BwpTq+/A24Iq+AImMQQgf5ToL3XTQtE+ mC40jSh9Nlx7Dd5gey0KZ9D/17GPKx/pKVMg4BI+598iqWOYvDK9tba8DPKYJfFryJjj 0bBt5zimOes/cG8QJPRgcqm+qG+tbolH+HVpw8xecDQj/uH17f1QKCvGv/1hCnMxHSz0 V7fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FIQa332o; 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 v13sor15856143pgr.24.2019.05.29.03.57.08 for (Google Transport Security); Wed, 29 May 2019 03:57:08 -0700 (PDT) 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:c20c:: with SMTP id b12mr1312582pgd.3.1559127428328; Wed, 29 May 2019 03:57:08 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.218]) by smtp.gmail.com with ESMTPSA id 184sm18974479pfa.48.2019.05.29.03.57.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 03:57:07 -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: [PATCH v9 6/9] arm64: dts: allwinner: a64-amarula-relic: Add Techstar TS8550B MIPI-DSI panel Date: Wed, 29 May 2019 16:26:12 +0530 Message-Id: <20190529105615.14027-7-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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FIQa332o; 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: , 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, - DLDO1 as VCC-DSI supply - DLDO2 as VCC supply - DLDO2 as IOVCC supply - PD24 gpio for reset pin - PD23 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 35 +++++++++++++++++++ 1 file changed, 35 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 5634245d11db..5109c3258a2f 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 255>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD23 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -80,6 +89,28 @@ }; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC-DSI */ + status = "okay"; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; /* VCC-MIPI */ + IOVCC-supply = <®_dldo2>; /* VCC-MIPI */ + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -151,6 +182,10 @@ status = "okay"; }; +&pwm { + status = "okay"; +}; + &r_rsb { status = "okay";