From patchwork Tue Nov 13 11:16:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680345 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 120E313BF for ; Tue, 13 Nov 2018 11:23:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00F5D2992E for ; Tue, 13 Nov 2018 11:23:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E871F2995B; Tue, 13 Nov 2018 11:23:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A2AD52992E for ; Tue, 13 Nov 2018 11:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QrlknQEgufxORwpXhKkM48QSh7HTOer+aOD/hvpsBKg=; b=Obueqycl/JqR/v J0YKH2ncEa+4aEpxfCl9HfG0cpZfOm7Hz+MJKDbQIm9eo73Nqb4/CB2qaxDM5k9E7yiOsI7ZdR2mA 7mm9HpR5qlS1TgvO2odmMtqcjR/R/hHVt+jkWVxL5ekgZi9jodby19LSxCuJ225BsR01XfPc7tjxG 8kBopcxCj770v8pWO5JxM+UnDkhPZH6fOMYGF6IbuVHJ7gFwVlV2FC14WnVD8LE3n+qU0gDmL1/rB OHTlj68mq+y7U11333zLydYM/it/Hd8fSf6s+rnxVE5Toznkw4M0BQoVe0VtAR2zzZ6kr+lYL3L+k Ze+kGKU8YXq4Sc7iz+qA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWnN-0006BR-OD; Tue, 13 Nov 2018 11:23:49 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWjJ-00013W-Vf for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 11:19:40 +0000 Received: by mail-pl1-x643.google.com with SMTP id w24-v6so5866349plq.3 for ; Tue, 13 Nov 2018 03:19:27 -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=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=aXSRYZHsbhNKT0MCQAkM4jUd0gD7GuWTjv4ziE59P2i9llzoWL0fMsGaVRPI6POOqV lDVyqQxtgaTJBrI3laIrGCrExXQTmuNyki3b8TUg02nELhcGKGSIR/WmUqDxp9pp1wvI JzGdFwi3Au/34cLHD5Fe3Ne8+gmnwNYV5En88= 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=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=QP2lmmVsbl882sfJL31r+/Ca+T+wOW9JcELJImuvXUPhkiiC8tu9oWX3q6WaecEzG7 fmaY/Uw26JnHKHtxCGc/dr4rm0uOcadpF8eP08OhmhKD43EfUFjXydwSG8QIMYDedZmh +Jzhpg9ls5RNXwUZgoa2UrphKuQHuxgqK6ZIxozujIRLr6VFITt5NHtGw84hTDSjehwH FPdrUhsuRUerENnRCQyPNYGi3eVpOi4YNvmqOailnhuAbrEO0g7KpFL/nJbByEEwonPe ggAu/75NsVHQ0RyHIx3SmyAjZHbzSdNbc8uYq1eg98WQ0zXGrZHo/MQUtp+1cB8H2PSb gRAg== X-Gm-Message-State: AGRZ1gLTEx4fEJm8DTKNaXJyKsNXSrmq2YX+C92jhvKqaZsedS98fy3q tFh44SkVzdCW0KZcgs8gu9cDzA== X-Google-Smtp-Source: AJdET5c4bUXF9K+VVQry16zfsFjYR616EZvc406zl0JPd1pkYP1jMaMYsAyfwxD8lWQTfL2D6sWJng== X-Received: by 2002:a17:902:147:: with SMTP id 65-v6mr4733439plb.140.1542107966879; Tue, 13 Nov 2018 03:19:26 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.19.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:26 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: [PATCH v4 25/26] [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel Date: Tue, 13 Nov 2018 16:46:32 +0530 Message-Id: <20181113111633.20189-26-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_031938_118742_591CCB32 X-CRM114-Status: GOOD ( 15.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add support for Bananapi S070WV20-CT16 DSI panel to BPI-M64 board. DSI panel connected via board DSI port with, - DC1SW as AVDD supply - DCDC1 as DVDD 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 | 42 +++++++++++++++++++ 1 file changed, 42 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 ef1c90401bb2..6cb010e3bbd9 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"; }; @@ -91,6 +101,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 */ @@ -101,6 +120,23 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + avdd-supply = <®_dc1sw>; + dvdd-supply = <®_dldo1>; + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -193,6 +229,12 @@ status = "okay"; }; +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay";