From patchwork Tue Oct 23 15:50:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10653443 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 704F513BF for ; Tue, 23 Oct 2018 16:47:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B1B82A0F8 for ; Tue, 23 Oct 2018 16:47:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 498A42A136; Tue, 23 Oct 2018 16:47:11 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 B86492A0F8 for ; Tue, 23 Oct 2018 16:47:10 +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=xgSkKwmZd+WDcqWNynuqgWYQWGs4pOmeEM+RvbwTEXA=; b=caAbdta4MG6xw6 j280ag97nnw/7l09XU2zB0MDF9CfN8JPbwz9f5BZLHJ92/v4X2st5kPaIRxif4vE7aixxDPm+ovUC QTF5ahVtrRwwY0xdS2ADI0EGZpCIX0hC9aSk0GusSGsfwnBS2sHgaUiQwYrUvBtpPfDKbhpt79xc5 YZNTeNcR6yn3yzlDbi9aO4hrgyoElLhZrSZHq9BSlCkLdwes9F9jGywd7M2QCzFApdse3NT4MRP3J KiL36kieAxX2g1nsWjfy09AWin7Q18lLisp4aE9uu7hPH91fdGi52H1UYCkk7zEZGqtO/VPdQ7Yi7 jYTcaV9hrACLB2MNmFLA==; 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 1gEzpa-00057e-IX; Tue, 23 Oct 2018 16:46:58 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEzpW-000579-Ci for linux-arm-kernel@bombadil.infradead.org; Tue, 23 Oct 2018 16:46:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=HlqvyVxrx75NOn82GVMXgOU3Afz6lacgakwTsKXnt2w=; b=AKXSqh9MbP5RzRpp9AaYd/cBLB cvSZ/4Cz656oOo5tOUXWrCrwryo3Vww7PHO5vUsqn/bObt7Oz59aL9LO+qPddtgH1wdPlR/f3ZntO z6ES1MNRPIBUveh17ayvG7hf99M5J1UQnrgMMJbULZ3JVPeNeCSYWgqYkjRBe2WyGNJqOzNXQyZZy tmG7e9AGJ4o6nVUJdX7T+SMCshX/0nijRGC/AuFE0lci68zxm3fP8pif6hjvpZF7yn60rOdOfMmMh JCJgpGtC6kWcktzJbnWWcwCDfpXW7vA5rMa5a0/jOJGwyS7P/mW/iKHMw2Y/9Qgn6TLpH6uLD77s4 jKrDF3aA==; Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEyyx-0002uF-Vy for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 15:52:36 +0000 Received: by mail-pf1-x444.google.com with SMTP id a19-v6so883774pfo.8 for ; Tue, 23 Oct 2018 08:52:25 -0700 (PDT) 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=HlqvyVxrx75NOn82GVMXgOU3Afz6lacgakwTsKXnt2w=; b=HZJ1xqPB9nZ8Qbe4tx6apMvmSRog4qRr3R4fe4cl0MyXhBvjytpa8LyA6Ca7FbXszV N5QsZ7XCp5w8jMBJpcI6Mu3+NHONjoN4XeVTa59Fs8JJ3xISx94syh2VVULEEixd6Xwn rHhXI7nkKrreXotjIyrFsy8+SJCZmL8EaJiS4= 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=HlqvyVxrx75NOn82GVMXgOU3Afz6lacgakwTsKXnt2w=; b=tDV2QmN5gsVVWKTBGvs2l9dQ5DPxVdo1sz1re3KZ2127te5KOP/nhlFBuYMkHXh/2z ZPv5u0ZJ6Sj9nq1tYJ4Uzfq3ABxUyALrV5bwUOc9ULFrdJUwZNwjPP2oQjAKTi/0eeL6 aatJh+cvSv6DClAqChZH1YJMzLg9gzghte0eup3LDWL/CSRucEqJjFsROln+gIRbRweW O/sdhV5mH49RxLOOL3iwJ6bVgpFbblprwqj7UGcu6uTt7U9q6uIeZ2683b1IPOZmoawi m3QqvcRxp82lRrM+xo+ZyLh+0qmpQ8d7Y+kLhgU2Psj3VCvO3mTt709I5imTeRv0RR5r w3cg== X-Gm-Message-State: AGRZ1gJaZRZIe0FxRhO4oHanr8evTytzvp+aDi4pm1HeR5gJCrYkXmrA g/LZ/UCDZggFTsCpqiW9wEPS0w== X-Google-Smtp-Source: AJdET5c8geUzHYhcbqgCFVoE13rlTg+25LzQx0dpHwZyYviAPpqPto11GZ/hPY5qyyegy+6hh4k9Ww== X-Received: by 2002:a63:3204:: with SMTP id y4mr1808778pgy.41.1540309943547; Tue, 23 Oct 2018 08:52:23 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id o75-v6sm7442829pfg.0.2018.10.23.08.52.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:52:23 -0700 (PDT) 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 Subject: [PATCH v2 15/15] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel Date: Tue, 23 Oct 2018 21:20:35 +0530 Message-Id: <20181023155035.9101-16-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181023155035.9101-1-jagan@amarulasolutions.com> References: <20181023155035.9101-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_115236_069216_DE7DC6CD X-CRM114-Status: GOOD ( 15.50 ) 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 --- Changes for v2: - Use quadratic rule on pwm brightness .../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..e0c6d1870a94 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,24 @@ serial1 = &uart1; }; + vdd_bl: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "bl-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */ + enable-active-high; + }; + + backlight_dsi: backlight-dsi { + 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>; /* PD5 */ + power-supply = <&vdd_bl>; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -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>; /* PD6 */ + backlight = <&backlight_dsi>; + }; +}; + &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";