From patchwork Fri Oct 25 17:56:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 887 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 E726E3F0E1 for ; Fri, 25 Oct 2019 19:57:27 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id x8sf1971908plo.17 for ; Fri, 25 Oct 2019 10:57:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572026246; cv=pass; d=google.com; s=arc-20160816; b=jVRxnAEBoAUZ5uHUV9os4hsz09cqp+Aq40Gg10YpcDrRJRHCXiO5RQ/QmiVUj0o9lg PGugf8erslh6bQsu4PGUl/6oO0K3frmTfoGDVrLGrIs9l1L4+7g89YLDkKnV3zB6xkNz 3x7kZ/siJPjarZJz6mTa+2+3IaNCU6kfw69Jgrq1IJ6Z7rDQHgRzsOOc5jWVy2tEj6w8 J/YXaE1jkDuAVNWfC6fhyr1kQPjCgvfK10ZiBBid1q45C9clZ0q3W9kCszzzEDkqfEFK HSaevFT4mlhdZ6t5/RpXiUrLAdyUThvhclFcD4go/aTnHT88XMcwxQUOGNe9dnSPPzz5 99Og== 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=FghdHRUaEn73EmTlEGw0J8ubkxbq1janRDvfGT6tSIXtiQ2/XvlCJ5j62fYSBSIwPf sOBXeuVmU0yu4qtge91yDQupvcsprw/jOFgYA/UB4gcREGbMqgw1BDShyWBqnpR4q3xD 7+unbp1Eya9rTtPtiSaoOqNBqXH/oFCacrbHcrCPPgeXuo4G8FZEBr7eWLJL7Dunt+4F 7qwzxJhcop2A6Cld6MvPdFLXSRB/ogyYlppTVU8nRcB12p8CfTVU/lJTORCm15RYXoAG JyC8TOLfhPhBbSHinZB87nTxmIURBGCPVB6TSfiX9gRtBhdAARhXTMwws5CWeVBAOja2 o1Og== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gweTI0Ly; 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=AbrzonVDLqa/qHB1Q/DYZnklbSlXZ4nepgsG+ORd3zL/jBHC2wyTJ63TVw78pZb/ez +kQVsRep+S4Dif9WYBEbDhJNjdH3LqXhKqjkflfZibuKhAeHZMbUGTvgwoe+2YCVdjNn VkEYwNX3zo/sLZh6vJkRMadEvrp2ZLbkJtvow= 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=SigI37qYrEEs2ZaeRyF0PUcneOZ/TFGl6az/LaXJ/ors8YVtrcnZQqmuyIczzQKgW1 ajex/ccdwSN1K9xVSWoazdrhFfdLUUEMu7kZ5rblVPwy4zp7ZTkdvEFvJZ1oBHRjZwy9 a/2S/ZSB+6dOTbiDZmJN9iid6C1RX/G/5y2/G3Y/0lCeL5AyzdTLFOTlGpb7gwkUwKWe mrkj9qsAcT8egxrtsgfmK8uGfzqqR+MY/qLls51IsK2RbSfIVGGprs4UW8LkMSWbSKXp DjyjdlCvA+AfhZiC36vVQDi+dGj2dlo7DhpaAdIlgcMKZNT4y/5uYW+LM5MuENnbm1gD xPYA== X-Gm-Message-State: APjAAAV1k7gR+ilc4O4nadxJQt69ogIrbFL7T1CJ0Zs07ZC7g0M2xzUO FOVPulmVtVKjgH0aN3WYlTZVmU99 X-Google-Smtp-Source: APXvYqwS7ZK8GkuekBn53+kjUK2sLDXwlmrZoN65d0UQRgRWB6rsXJXvBdiQMYQ+NIFdadBFycnlEA== X-Received: by 2002:a17:902:47:: with SMTP id 65mr5236941pla.81.1572026246721; Fri, 25 Oct 2019 10:57:26 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a611:: with SMTP id u17ls1612422plq.8.gmail; Fri, 25 Oct 2019 10:57:26 -0700 (PDT) X-Received: by 2002:a17:902:d70b:: with SMTP id w11mr5389657ply.128.1572026246324; Fri, 25 Oct 2019 10:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572026246; cv=none; d=google.com; s=arc-20160816; b=cVx/vnbaKZymqyYnMk/MU2lYPFRlvLMIGlhzCxaCnTGCoepunPEMVtM4SfVkZ2OzGM mUOsY5p6oFau3XPRoCVj6QNK4BYSOFrEYXtuQrbdw/NkdvtTipsDxmGwZaF6e0cYdxKG QUd8+MlJg8WaV1VUe4cHakrPL3+6PzQ1e2jxailfadMnJD96FvXIaOQ4jWaL2XD86PL+ 9lnOkufsHJgm4xkaOGFihdppeHI+8qz/sZcCN7tgjUTKhu1Sl4R8gQyY6IT/Fzz+eVwz Td3CsPZ0SSEcFnoQtaoF7cwFHFWmBwsQ3+WPZBsW+1tkZd+eyVla7c6m/aEdBBSZUk4r rRBQ== 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=gJa1p1UfTvHJi6FK+J6wsoIF1zD05EaBJUWl7XuiFBLgiBQxm7mrYqnvWnxED2yFlY g1twruhppZBzMX+YcqZqf2dzvfN3nMwHsbwUNfwrQpA+LRq7ug2/cJBuyxph8S9c7BUy IjOVB5+PDpdal64dudc6Ou8bx6pwaJ/LhxapZMp1kn3WHPF7dGMpzxe1BMS+fdrqAMFa ibqaPIbgvQpFR4XdVnZ/pT4XwInpskbUHpH9fKeeu90vNBK4OLvQC7XBiDj7sypMd5QK +p/9BE35k0QHhfW0FaPYBf5cG+7uwSRdFcm4RdnxVwgTKkY39tJBUpxAWty2UCJYig/U 4JXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gweTI0Ly; 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 g8sor2729820pgn.77.2019.10.25.10.57.26 for (Google Transport Security); Fri, 25 Oct 2019 10:57:26 -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:9d47:: with SMTP id i68mr5939677pgd.28.1572026245814; Fri, 25 Oct 2019 10:57:25 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.31]) by smtp.gmail.com with ESMTPSA id n15sm2926580pfq.146.2019.10.25.10.57.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 10:57:25 -0700 (PDT) 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 v11 7/7] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Fri, 25 Oct 2019 23:26:25 +0530 Message-Id: <20191025175625.8011-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191025175625.8011-1-jagan@amarulasolutions.com> References: <20191025175625.8011-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=gweTI0Ly; 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";