From patchwork Sun Dec 22 13:22:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 957 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F01F43F042 for ; Sun, 22 Dec 2019 14:30:01 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id w21sf3924221pgf.19 for ; Sun, 22 Dec 2019 05:30:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1577021400; cv=pass; d=google.com; s=arc-20160816; b=pY6gDU+Q4JZz9KyQWdWW2qLfJDMtVF0LQ83UY/d3U569YWUJIH95hVWdRtHYfB3Nqq skHMU79biPIQiOU/6gk4r+gY8QhiLFJ9QM5feaw3Qq3MBl+QlEMr60TvW/mTkMEpr5MN Fg8+qr8WcyCH8tWctG7zoDLtBZSeiuWHdF26+A8nQLlAeLb8Oh/epucDyiVe6AtojJbn jJau/5Irx+s30yZp3htdhR9S0OQcu602pLTeUJksyAAkfPD5zacToFdEIc/6r7YjNCTy Vg6Sd92xJruWyLMNsdS7oxJB+SU3e4xeuGb/oz/aNN9cu8L4nufnsxn5PedaAiyGTBur By3g== 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=AbVVcOca1oaXxCGpbAE2TpKbiWLPgWIfwfify4nmDlE=; b=yvfVqIGVE8a76TdIUSHRhkwvR/1WqVP46ldKhT+ynDcPAqzGZEnjJNwbcR7qYfDNeU X7HR0pYRkwjBbzizb60IRD0skf1FG8+VrSSrDruG+tW7W/mjRpDAyhXXCZ4TncH+q8PM 9EAY/i/iKMDpxA+AkgFvdMfRpCk2lxqP/WgdQy6QoXTwl2a5+gPIphkrpxQncA1pRwq7 5u1jtNzEuvPSvfW+0O820q5fCXa0irudryf06+r5rgV/IhmoDt/PcOguVqxrGciJlH/X 9KW0PkKbwb+Bof13FpwUa3KI+JFBQT4RAB10hxKBMYDCoudErn0RfLAky1Hb+1dq7UVb 511g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ko7Ge9z6; 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=AbVVcOca1oaXxCGpbAE2TpKbiWLPgWIfwfify4nmDlE=; b=q/d7mwz//C5Zpt3DF+H0Nlp652YHbZH+XRLURu5N4O02jh2aCkFykxAn3f0497CiQS kQiIjjFJNKvnYzM4+sfIq92v2XOJw+w00ZOWVXaLJcZJuhWWcmAF0GAvkvunQI8fV44x N7/hAe534ogyKJNOLitE8rh5chN/gEFuy1kjQ= 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=AbVVcOca1oaXxCGpbAE2TpKbiWLPgWIfwfify4nmDlE=; b=UyCJFuFOZLzoi0/BxZByIMcjWWJ0g1JTxa/tHOQf+rkeaJhwmOMnZreeem5c6tG7lx 8LHDUy70NDcJMsfuIXuVggvp2facYGL/Ls8oX/lR8fJ/ns3IHhSwCeH7emaXGusMRjaA k/M4kmZAJvdt8faCUUgIQPKpfSRcKFMdbTDxHS+mOmrO+4ZM5qqljhfaK9icmY82KldS paSQgKeC6Qid7FV7uGm0LAXGBx/aV2OYfAfjL8wDk2Ue+J0rxQ/3Nv9qRoWwIOttb+y/ mVtNCLJB2711DBXDJyaFikI7gUDOCT/Z3DNZ+95ZBRg5rk69nz51T5E9C4hUgOUXH87E 2kXQ== X-Gm-Message-State: APjAAAXkYJL1POqG1fq9tS6RhWvRf7n8A2chB/ke78lHCbZXi7rKkr8d sM1XF0c8C8FyXgZdSvPk7jVwsKhZ X-Google-Smtp-Source: APXvYqzRUXHF6oA98QDSwHiiEjg6E8oKUgRWAWiGmhCha5W1RApMPmgQfnyudDq4o2LVLJu4dgPKwg== X-Received: by 2002:a17:90a:e2ce:: with SMTP id fr14mr27712119pjb.99.1577021400762; Sun, 22 Dec 2019 05:30:00 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:aa97:: with SMTP id d23ls3544330plr.12.gmail; Sun, 22 Dec 2019 05:30:00 -0800 (PST) X-Received: by 2002:a17:90b:30c8:: with SMTP id hi8mr706015pjb.73.1577021400304; Sun, 22 Dec 2019 05:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577021400; cv=none; d=google.com; s=arc-20160816; b=MuBWQwCphP/cJKDc/6I4cBOTlugzllJPj6nvoKQCfqYXWycUHByiCyd0S/uqk4+zku HSxFATY70c/1vmEn8uuL5cGtlNPVlKKKI3w1X21w1DzhebRDELFpQOs6B/scfSQ6B1hW XI4WCCn95m81fsHu/p/rKhNFSOnW0a2uEcMhf+/j5psriW0kIlZ9W94TVgid7QilKdSs gNBhsm2mcXubMTeZWwdO1bjgN9Ts2R5EdK/CpRtWa2Ot51fSA5BhCNA9hh6GhUOVKal/ In4Zz1NTg7TuHkOfYAEFkwLm4n2oqKUVmhu8txWnSFU25q8ijMh3bVCdGMsJuJlniQMv eSMw== 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=mkXpYcbeC0bnNO0q+6BYbbUdKRmj3eZu6k2PkyZZ+20=; b=VRie2BW8e1woE8a4Tk6L9o6VpxeHqyuQGmTpSl41wLrr3fXFDDySCK/G9RpCIhrJkZ /8E+A4fSKxJL5aI9NWnh2jME7XNfP9ueJy2+tEQTQ9KkMMyjtPOZszHZn5+k2pnNA2zU cAi/U1ZwCw5LpCa2nYMsoigcpBGNNJ2jjrdoa2Iq7An9ispkbXskxEybfmTSaleliYzh lakwo5k4i4gLgAx9P4Svvu7WOvYk7zQR0EkbzjrAT5bfzIrGnDTDkgCra0S7cbv+OUPP kdn+g92Y2XbOYM4hKqH/PuXFgotw/V1FqBtz4j6bTaimU1Wd5CJoLDLFfxRkl9433APq NmEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Ko7Ge9z6; 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 l12sor17576744pff.55.2019.12.22.05.30.00 for (Google Transport Security); Sun, 22 Dec 2019 05:30:00 -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:201d:: with SMTP id g29mr26867710pgg.427.1577021399945; Sun, 22 Dec 2019 05:29:59 -0800 (PST) Received: from localhost.localdomain ([49.206.202.16]) by smtp.gmail.com with ESMTPSA id o2sm12073058pjo.26.2019.12.22.05.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 05:29:59 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: michael@amarulasolutions.com, Icenowy Zheng , linux-sunxi , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v14 7/7] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Sun, 22 Dec 2019 18:52:29 +0530 Message-Id: <20191222132229.30276-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191222132229.30276-1-jagan@amarulasolutions.com> References: <20191222132229.30276-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=Ko7Ge9z6; 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 208373efee49..6beaecdd802a 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";