From patchwork Wed Dec 18 19:10:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 937 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BD0AF3F08E for ; Wed, 18 Dec 2019 20:11:00 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id d85sf83664pfd.4 for ; Wed, 18 Dec 2019 11:11:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576696259; cv=pass; d=google.com; s=arc-20160816; b=kefczzHP/05BFyc1epeoEFzIM8gJ4+aiTrrDpgsvV7ef/isJyvXJKci22idytHAffx 28lzweJdKxQG40Fe7bxuW6qArUuJwp1AATEglkLyNpQMQSjQCZfHr8XA4GIJwhLzgXUJ 0YNf3L8g8c6jQypqzEut9G3jfygUW2rHuDxY6UCc+Rg4zoMGTHgAB/bh5u6XyHrM82yF 2qHuywuPjmz2t4qIxVoSDp/1lh7vNxhpkOHPc5T5CK4jkVR9zkRyjKv7IcX+oZtuJvZz ecxz3QgahVnL+F62c5QOs1H41genqObloQWEWxnVnjsirECJ+sjMG4POzHOCmj0cI0b/ S35A== 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=bKISItavWRJcMdD7f7lIpwKX/PGSfyVkfIXe4wqfV25dwxVprXr8ALxJOQ6B/lBxec LCBGTZg0/GTxNNJMWiZOsTAygLP7xt3l4YWGePLufLU3x2eCu4v3dnEj1rrrfzqJK85b 2aZjs05StXNAkjx2RHUG215vLMZYoqZzre6BOjTHFWtpSA3Ri1Qs0gRERA9E5CWDV1dd dtbrCoS0HtLVUTgRyCiLV9lP9/RaeTxYFDnIQBIj9OG9esH1rsB3mpaYYqs+S/rhjhzl M6yefQaerwNfju3LTbqwNNPDZNHBQmzF9S16QS4dgOKVJUqS158SKEOVDjk+G8creTk/ zRXQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XvGX60Sy; 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=o6hFgGZQ0ihZ64oUC0gexKeaByK2LBn4O/H++CgqwxL9eP7xaP8UtYCq/g04Fb+plR nkJJ0fYsiEiKwJwBLyGjNwHEstbyxhWf4Jza6YGSxbrrM2aQ0FCATXhcmILQeFZJYAh4 7cimqNZcA5OfO8jUS8+YzKkDZwolwfwVgRpso= 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=k6Xcwa3hFc4a3qDu611K9fsqrRgyQqh1tN54NNriQCMVHAY7idLOfX53OyKNsjBk0s 8WVhE326bH3z5Ner1h5emVeDIT6CbWEAaXRzVtrSRdH6MCbSTzBAYZq8NnZ6AttSDd8d /nU+z45rXrktO58ZhWRRG31zdDJGbafFJXwuXkDICJLwP9jIPaR+iSJQswbOwENTXlJ+ VKnJBIMPMDbW2dXUq9KUYwWys/mi0hGZw4EB9cKrKQVjoamldbU8Jb8RtfiO9wcN6oNl DVlmljRDHC84Xo4jOdRGd0oOHvy1b3RbLc1UAaG3BHni1FocHQwWJkZ6VUfK9CHEAKF7 dBtQ== X-Gm-Message-State: APjAAAXhwbRkbnYc1sZfRrVVxXv0ozgJk9D98lmkGCMjl7RoaCmz8IGi B99WZztjgpv8bLriiLLrUUHWBIJt X-Google-Smtp-Source: APXvYqxcPpRF6QFu8Y1vsW5rKMhDiaXgr0+WG6Sv7fKSz/u6cgkYPCf4ksI5YY/WarGoqfTZmPWnmg== X-Received: by 2002:a17:902:421:: with SMTP id 30mr4675566ple.324.1576696259475; Wed, 18 Dec 2019 11:10:59 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:e107:: with SMTP id q7ls757164pfh.15.gmail; Wed, 18 Dec 2019 11:10:59 -0800 (PST) X-Received: by 2002:a63:1d1d:: with SMTP id d29mr4511361pgd.387.1576696258716; Wed, 18 Dec 2019 11:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576696258; cv=none; d=google.com; s=arc-20160816; b=qIyPmclL6MdsgU6AYie4m/O6FQKhwgHqKlfuuOCWdsnZm7kkADot+tIrb3ResWDyBu fn2dZ272uFby0skWrV3i3jrJru57gIrKpTMk5DrVt9x99ZFF34EzcmfMMrsgZQkRUL0K IOkmmajnXAsmZqiBVjjNVQypErXD1ZyWJRoC+lVaPStmbEO/huYPdvyWAS8dMaWhGE1L CNUfIBF04W0+506qG0pl63hLI7HMVob4DG1EMkIQJLqM9slrMWgeqwpbxnX3N/Of+U71 /AE66D92DFhge4VZq6RiUCbvsRnlCK/aGFydTYpV9iH/Wi0QDQ6mOkNzXVShTX/qsE7O +EMg== 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=gGlHpdmBktYOudVorVkLjLFQH/M+DsAByhK/BrtYacQLZQcwzDcsqCq0Ahssqh8Fp5 CvgdKWmk7xR2viVyRdzj5uPwFlvfw7kH7yKSTh9+uhSoJTMkf4Q9O8A5+asXxiDRsf4w qfSKdpqQHXVkdmTkb6YDUsSTE6Lr2fq6tp6WXQqsxxYcRRNDQgiu/mz2kgjS22tz9rhx 01H7Lst9AX2R3Kux59ZM+kUm15PlgQSayFJbXbiH4/8Gkzw2jX5+vwrHegUx1JBB0mNE /UjholDGrChVgdFIh6bRx2QTMiwqzYAESmjQgRt2QaDQk7m9zkFqAXpU39ONc3xNaxkP hvWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XvGX60Sy; 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 s5sor3300181plp.29.2019.12.18.11.10.58 for (Google Transport Security); Wed, 18 Dec 2019 11:10:58 -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:a17:902:8501:: with SMTP id bj1mr4678564plb.84.1576696258260; Wed, 18 Dec 2019 11:10:58 -0800 (PST) Received: from localhost.localdomain ([2405:201:c809:c7d5:78ea:e014:edb4:e862]) by smtp.gmail.com with ESMTPSA id q7sm3745855pjd.3.2019.12.18.11.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 11:10:57 -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 v13 7/7] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Thu, 19 Dec 2019 00:40:17 +0530 Message-Id: <20191218191017.2895-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191218191017.2895-1-jagan@amarulasolutions.com> References: <20191218191017.2895-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=XvGX60Sy; 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";