From patchwork Wed May 29 10:56:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 446 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 902943F35E for ; Wed, 29 May 2019 12:57:14 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id o12sf1289711pll.17 for ; Wed, 29 May 2019 03:57:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1559127433; cv=pass; d=google.com; s=arc-20160816; b=fMEi1Sx1t3BG/fkn8nNmIoCQ3AAeOMkyAD+o3J02rGePi+6tIwJNReZTSjV5rT2nIi 6oJNPLm6tnYn7o6MW6HXyTba5UZbqHoCWHjWf0+Ykg8hTUxWTbr6lW4TrHk9t0MEjM8y s+5Q6wwDhfoqJpzIhDhCuAy2oMEGNcxPSihGT4/kqQGQNse1vcg6LxWE+wOtn5HLlPsS cY1D+95iB93NXDvM8qcW5Oq4yNI/Z68NGhGr1hiTMxiHMBSaCnLmdnh2mpNdrwTThP5N Zh3UhKqvz/EM1164yqp5Z/27TTiLudsmFg/3FOCw0FH35NRrxcYJJ98pnupLzT/ckyS6 c8sg== 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=FtwLNYguSH6VMg4jhsdj+gNKTWY96vv+LvCekAbM5+o=; b=OOd1vuHDTjOFBnT4D8Gx+VW5Kn0FGEKAN8AFEUN3/6od/3gF1UvxIx3RTdjLVYgbxy DuLNF4IPKkrVDzf3g5T4O2WQGYb+wbmu4pAu5bXTDxsPU4BIRwqwox3Bjk1RgVCg7B33 QVC9tESk3FtNl54m1E9OBtI3w4yIekXkahIzH5HQKLOJXhVhXQGDIMYw0/B2uuBk1sqf gjeJ71dt5PRRIYBQSIqDqOYsSpoeTsjn2BGDXG9Hp40ECZZ3I+oBtuvXSEKUYw83O7ic hq/AtRUQCZYPN6MhMz+fDbLDryed2wURU1vM7VUVMcll0ueAsjouF0ZyBHgm+SbBXDMd pPZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gdGxlLlL; 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=FtwLNYguSH6VMg4jhsdj+gNKTWY96vv+LvCekAbM5+o=; b=mS7kRV8Kje0gP23dOC7Zrku93a87caLwCsMm8unrUVt907Jfrss1+FxFy+cbaYd5zD ijCWNyvTcJME+fCfYE5SUupj24Na+tVL1SjjY1a3a2aNhQmdp5mIRhsc1d3MkwB851VK 93SXDB3vengSnX8b18rC58JtjtuqQpmmsgeNA= 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=FtwLNYguSH6VMg4jhsdj+gNKTWY96vv+LvCekAbM5+o=; b=qTbTO3bkhcQMhkW8pwuB4IexmqwfNc6Pp49gf3GoIMUF3/SE9F6IS2gcW5T8IpqoVl 3Qpd/N3I8GXTdZRyN/v5HRDVAlLzzk4xQ/Gv9bNW3aReEChJFhXCllbVpxWdvVqsxy+a iTcL7aFOZdZ+HzQ4rzBRZjeax7a8QyYwy15/TyjA8riDWrjfgWN+HTEgdjLXIp8xHVOx TcpiywP3MezZtuMEBTqCzuMkXarlOUmKxjqA/d0fRb4T3XX2Fe92L7byvZYG44iox/Q1 AljgHMvPVfU6sXypYkuIsKturJ00u/Y+qs14W5YYiGS39z9yiY9SkEN6FZBobWfbCfWo rV3w== X-Gm-Message-State: APjAAAVpmFtHjFEyfS2FB/+WeaFlXJ/tigx3OMGtwa5Wsz+L0ebXgaVh FE8cAx/HPPbLkWzA6exOAEm0hok+ X-Google-Smtp-Source: APXvYqzjRNJPNbvY9a1ltF4gztxm46t64+uy7N+Tsbkb5zTkAeIfUYxe6oO2cge1trPlOMdghWQYvA== X-Received: by 2002:a62:ee17:: with SMTP id e23mr542852pfi.130.1559127433364; Wed, 29 May 2019 03:57:13 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:760d:: with SMTP id k13ls479042pll.14.gmail; Wed, 29 May 2019 03:57:13 -0700 (PDT) X-Received: by 2002:a17:902:bc8a:: with SMTP id bb10mr11134811plb.310.1559127433022; Wed, 29 May 2019 03:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559127433; cv=none; d=google.com; s=arc-20160816; b=ECgyO9Mb3Nwt3k1rbOKACeveNxeFKdE7v9g+nL2YOIDhThc5CRpwp6QhAQJwBH1Q0v +/uWkgqG59rk0Pz7ayMev5Md2ipNX6248Qlgj1d0zHC9WnzJD01WSSG1SD5NKLt7U2MI 2lnPeXCnrTtM3fh2ED+PYV6En3KSlAJw/7IFuWhJRAzRJUkJSAIPZrwZq+AaNZJ7qnxW q65vn5p7u6x1A6Wvh/Dl3J5mpYgFaaHOP7hF99M+lrRzhE3jJLHUVcAscTzzv8aiXFSY gN0GOF3hhpwWwUf7VF+QWJ9zk+OGg2M/RqPiEPa8pFMq/7Df8dcO0auWd7DSTCnPuIbH Cv7Q== 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=2ZQ8G0W1S9OmrPavif11lWWMbohgMuBG92FhjQ0hCpY=; b=A56IdBn0H6JPB7iwWw1uKcPFUWhRBku6z8bUYSjhUXqfErzcl8x5XimaM87etQp/pL klFixgJJ2Jm1BJXJJ9SbtCDkPxwmDH9NoMIKLP3Byh2QNCLha4fpBSdluLBucJaj2Z24 y+8WPnRxMshEaroHR9lw+3QxAqsmpnD4Kdl08c6+1p4eYcHhBDSxgykpUvgdU/x69pmS 24uqmicyZPRFurBG9kNUm0iDcylsbBKCbZ89uXxQlt5p7ATiVXKXkH9RlEUPFqXSToFx oN09ESFOZ1T9GEQvV779SnysJlGPGuHym0MVxWUyhjyuEvps26Z3VVPsAOEAiItGyJMf uBxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gdGxlLlL; 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 h3sor20605293pld.22.2019.05.29.03.57.12 for (Google Transport Security); Wed, 29 May 2019 03:57:13 -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: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 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gdGxlLlL; 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: , 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";