From patchwork Tue Dec 3 13:48:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 921 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 446303F0CC for ; Tue, 3 Dec 2019 14:49:08 +0100 (CET) Received: by mail-pl1-f200.google.com with SMTP id d24sf1742039plr.18 for ; Tue, 03 Dec 2019 05:49:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575380947; cv=pass; d=google.com; s=arc-20160816; b=WX7MuPB4A96hDlvPCDRN1+QLUPFpS5NClPCqs7nUlgApvJR10K+QO83O0eYe5mcig4 GfZCxp6yh7Glt1KUgv7WiTGvbwJheDN7KQOAxs8wRVfofIxn4YQNjjoCG3yzzwg2Zk1+ nB7uJjv2Id30IICe84DJi5F/9DvthhvotjuumA3DlZ9UfP9+M2WYc48qdL5GLICZG1mo dH9/rMVfjk7Z4b0NbbNslzhmU2abou9v0iDRNnI9Bmu2Jy4ltsnXREEADtAwfifVsOvV KUYIhakscdLvKvacvds8ft0EsyMV2jrtulcu6MPlVGS3JimRuo6Zlktzbxjy3PkRagS/ IJog== 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=QqWa8WD9UmS9a89SWd7kYYBPfc0o9fYaPMYRPJtqyyQ=; b=sTP12N+PpAHa7cTjUpt6adPNEMBsgamNVG9/KirNmEoA3+LL1vRpy5vAgSe3Xr+5Ap /J4HVmdoacI34WeKIzgiRfXCN/J89n7kR2ExERGtIGuQAmHLSSwZ8Y7FWCljbvFBv1Hn cGBonzw30UWEc3WKRBdBSNyj/W7UIhDzJ8TYiA3HJ8y3omftsBZ4Suw+itbP9x7M8JlJ CDr4RyUrzIwGUYBT3xQbrv/QIIMoi1pfisFLPuHb9YfjmmmoCunw77h67QE7evJW76ve +/SdwnawNkx+20Pmw3U5Uupsomm0P/UCKDmKwrxvRhpJ15M6lXeshH0ByOcsXCvj757P TtCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YCejDFsz; 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=QqWa8WD9UmS9a89SWd7kYYBPfc0o9fYaPMYRPJtqyyQ=; b=BPmtHeRsg4qkEQwvEHcAIG5CIc7gPE9AZTGAxyP/sHTQL8mx4l/9kac9mbA8Rz+SLh Oe2qRdXfRYhzRqxzcCe5JI1hoJVHYkthKX1Wk9QxMIQ6WvAklaJ54gHD+pVpN+fEZz5A vX+rq8ZsGZ9Cp0dqxKxKHlWSSN5H+03I/TcDk= 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=QqWa8WD9UmS9a89SWd7kYYBPfc0o9fYaPMYRPJtqyyQ=; b=DGUt0MB82KI2dpSP8ex5Nnh/aV4eZzgy9rN/+Rn6vhvU+nLPwXXo9nNgmosucXgyuX 33QVPQ+O7n8QQJysqHdcif3gzPO27GFNtRaAh7vzlEvYLyCDw7QApDCxJp3ICVTHzol9 zam/cOQEZCm9nD3eMBNjht4smYfyUXyHqhBr70nGgRndAdP8RgQBipY4fuJORd4JNqEz 9s7hyHPGf4dZZ9aU7r6KpFC3m0GqVQ6T42mDB8i/ikBy/mlWPGTebhi4Pv4jrJrYbLpw OY/Mqv7FF0JGPGSqRpbCPk2kxCtdh3AjEDb7Fn8NdKOy+IcaZfxJ20/c4y36jby7sHjj kziA== X-Gm-Message-State: APjAAAVAE6jHUVxY4WO3cRIikuX4ZAC3u5e7sWpQLEmgDUmVCkYaO0I6 6tdk8STWoWoy0SgyiEKicBResttW X-Google-Smtp-Source: APXvYqyV/lTJ4EZ7R/b2gGVmQoMVoekVbHEqqOcA8mDjKTBtCbdT73LKACb7zksK90Xn6RBNQQlUQg== X-Received: by 2002:a17:902:21:: with SMTP id 30mr4896823pla.338.1575380947001; Tue, 03 Dec 2019 05:49:07 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ff11:: with SMTP id f17ls142758plj.16.gmail; Tue, 03 Dec 2019 05:49:06 -0800 (PST) X-Received: by 2002:a17:90a:7781:: with SMTP id v1mr5587085pjk.93.1575380946530; Tue, 03 Dec 2019 05:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575380946; cv=none; d=google.com; s=arc-20160816; b=l+JMy6vtNZ3/k2LtHO97YAxyqX75yz4gG9ckx4NG8/JB6l2yTYxSp026EzRP9F3vP0 He6hSSlWDDbWDygV8tAwOrv77uhhLihU8pZqXgCfjC98xuG2wOz0RrWVtnWztZ78Bo2G GF81HN1dxliJOk5Z7B8EXAjbyWLQx8ADnj5FYyzXGlzArcv+wygCROPYnTWNqKi1hKsQ 1TPe8qvFXxq+m8Or/QkDtpey0wRsJD2xC9mWfV769Yzw4A2qp0uWYd0OLaWybRIlfCwd 9YlAfQHqe6wUzxOMHBi6+6+NUBRsUu7NrHs1SW5BcPn0iBaj8x8cxgExBTUT40D4UABV 4FcQ== 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=OCWpHuwLWEhr7hIE1xHLzHS/SChie+3Ub/J71wXFl6s=; b=SSkZUzcSI+1MUQAGrJEk9v6Hrwcq9V1gPo3FBSXU4VMv6/PcRpoHi11Gf/6HlxdueV R4U7LO52U2Q6n4aVc/jesmG4Cqgu95Lw3WBKVLRCo/SV5/WUbw7sy8n98241hw7MJjp3 jSmc0Y8eWSGr/OGapLyXPWdh2lBet3hGEmONnNWMKwQyp5tEBhkpHoPWK7mQMyaXsW4S QoMOvku5wZ5CroyRz+KqqwNuG+gqlpxzLWBhAZQrnP/lQ8YvmxYISBO4VEHqf73HlUoD LW0y/T0jTyoXlc6WN2SmDNkP3Kq2DZlv40OMVJ5smL6B0IoAcAooW2YHMU++OtI60E6z kF/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YCejDFsz; 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 n21sor3561523plp.19.2019.12.03.05.49.06 for (Google Transport Security); Tue, 03 Dec 2019 05:49:06 -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:760c:: with SMTP id k12mr4928882pll.33.1575380946137; Tue, 03 Dec 2019 05:49:06 -0800 (PST) Received: from localhost.localdomain ([115.97.190.29]) by smtp.gmail.com with ESMTPSA id y144sm4397892pfb.188.2019.12.03.05.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 05:49:05 -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 v12 7/7] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Tue, 3 Dec 2019 19:18:16 +0530 Message-Id: <20191203134816.5319-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20191203134816.5319-1-jagan@amarulasolutions.com> References: <20191203134816.5319-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=YCejDFsz; 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 --- Changes for v12: - none .../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";