Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2395529imu; Thu, 24 Jan 2019 12:02:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7npw9VA2V6C8DkeFqzhaja+3cuVNfNEU7jzFWHgwAflgCiEgZi3FOkXVrRs6+MWeZ+1lP4 X-Received: by 2002:a62:520b:: with SMTP id g11mr8017009pfb.53.1548360161471; Thu, 24 Jan 2019 12:02:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360161; cv=none; d=google.com; s=arc-20160816; b=0G3ZKpqB6AhPrjb+qgIkw9/Sxx9Z4UmhwEeVge1uI9aZrd8KDtuZ+VIZQEaAT7mqfw O6WttMwMZikcplDCC1ZGh6h6X+AsL1dvtW2iorign0CXaugkJFY44iz28YxyozhZBzkO csWOM3Dexza4FFWZkupwyCstkxcqTbD9BtKyBFR5iZphvpx5WPkbkz8R1XR/aXGbVnX1 GpYayLoNvMCpUcEAD5su0qUDgVmBYN0gSUTnd5yzH/2a7YSef13wuanNCfAUgPCm2C2T zwzDVKGQ947xUVhljSIL33kyXRsDe7V1PhZ720AkybrmJvjIFrUlfDRM3vw6DKSj/bIB 9GzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=592MwDOO4fFABylW/PjMmeCRDtBAYuoeRyepsTAixok=; b=JfkYWUzCF+z9RjVs+QcodADkE5bC9BeQoX2+idO9TEiWCFQnQSUxqEOhMpkFe4mH1E iuVSOBbl3Od4Kg/ghhVM67/keHxzFFBtl32YAoGadGx5flc6qS4lDOYvYeQEgcQ6Ah7F ncpLfhMRF6mBsUfURyhsG4be4zMtKr9JqMKLvckA8b6ueR5iRk1qSvl/cW2dKhWDW5on sHso7qtwY095QwoWjjhkf3MSHMcBtW48DKHvtgEnbq5xluVrruIw8QjUzctFavgREbu8 a5nHK4OUMZPCvqId98YWorWmPlxDSoC/Eeq6YL/OZMQX/ASbKB3f38fvkT6hR4adf1KM jVYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QXQNyql8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si23239141plc.241.2019.01.24.12.02.25; Thu, 24 Jan 2019 12:02:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QXQNyql8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732344AbfAXUBG (ORCPT + 99 others); Thu, 24 Jan 2019 15:01:06 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:35762 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728816AbfAXUBE (ORCPT ); Thu, 24 Jan 2019 15:01:04 -0500 Received: by mail-pf1-f194.google.com with SMTP id z9so3540091pfi.2 for ; Thu, 24 Jan 2019 12:01:04 -0800 (PST) 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:content-transfer-encoding; bh=592MwDOO4fFABylW/PjMmeCRDtBAYuoeRyepsTAixok=; b=QXQNyql81nyRq1SmbUoWO/HBZiNHXLOzPHkANeXW2GFAI8/tdVm2NRLnTD8Lfs7RLq udqkn69CFuwJCUMS0SsPCQS0RNWyziAPdAqCCQc7yvoTKEHfWNX0SQQk6kkcf9wjyk1i rd3bDGgKNEWxVmbD0Tjpzub92DBKf0GW7UggY= 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:content-transfer-encoding; bh=592MwDOO4fFABylW/PjMmeCRDtBAYuoeRyepsTAixok=; b=QwglAyGvT1PkBHDeeUsPWhYf7qRMLSPtFHdZ1vb99+/HKRUkkDnY5Gl8TDrbhF/v1j pYOOLIXCib+ecW3SwNuf+2X5eOoIhfg8cuNIOADeJvkt881ZFMcZOOnDVQ+psriYQxOA 2jW5j4zfcOvaYbHtoLDzMqLjVqggk2BqYzYS7c+nPGqT8hWMmWIFFP9QAavLxv8GcYTP NqvRys9BI+PKQwegQ9ybM1bnCEQBVtXkJGEl3UuSNuXUcClVQ0Vc3Lah2RcNK4D/GgoM Z2tKzmvQzB0VrvG6/qzj24ZGv+N2Ik0Y3WeGpa3huQtk9p54Qu0qGAIpX5cz8LLrlV3w Fbrw== X-Gm-Message-State: AJcUukex2s/NlJ7QseAW5v0l6MX8bsmF52nwldZf17qk1XFpMW6kKxPa tvYpwZDbbZDJQyepTE9uVlloBQ== X-Received: by 2002:a62:5793:: with SMTP id i19mr7956202pfj.49.1548360063998; Thu, 24 Jan 2019 12:01:03 -0800 (PST) Received: from localhost.localdomain ([115.97.179.75]) by smtp.gmail.com with ESMTPSA id x11sm61637003pfe.72.2019.01.24.12.00.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 12:01:03 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v6 19/22] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel Date: Fri, 25 Jan 2019 01:28:57 +0530 Message-Id: <20190124195900.22620-20-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190124195900.22620-1-jagan@amarulasolutions.com> References: <20190124195900.22620-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add support for Bananapi S070WV20-CT16 DSI panel to BPI-M64 board. DSI panel connected via board DSI port with, - DLDO1 as VDD supply - PD6 gpio for reset pin - PD5 gpio for backlight enable pin - PD7 gpio for backlight vdd supply Signed-off-by: Jagan Teki --- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 43 +++++++++++++++++++ 1 file changed, 43 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 c99f66271287..14ecc57c72cf 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,15 @@ 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 512>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 5 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD5 */ + power-supply = <®_vdd_backlight>; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -126,6 +136,15 @@ }; }; + reg_vdd_backlight: vdd-backlight { + compatible = "regulator-fixed"; + regulator-name = "vdd-backlight"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PD7 */ + enable-active-high; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ @@ -169,6 +188,24 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + vdd-supply = <®_dldo1>; + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -261,6 +298,12 @@ status = "okay"; }; +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; -- 2.18.0.321.gffc6fa0e3