From patchwork Wed Feb 21 09:20:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 128996 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp409102ljc; Wed, 21 Feb 2018 01:20:53 -0800 (PST) X-Google-Smtp-Source: AH8x226XhJmR7h0cydGmADIUbTZF50gFBtbyaBW9nHv9S3hM0zvANKkYZ4N1eON2jc0q39pxU4iw X-Received: by 10.98.82.138 with SMTP id g132mr2681269pfb.120.1519204853845; Wed, 21 Feb 2018 01:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519204853; cv=none; d=google.com; s=arc-20160816; b=gXZepLw5CG7a9xE37/JYyGe4OjOCrzCmGbeFaTuDxnqwJoaDDRlI1a7fZUnOGrtVXX ot+tP09PTrD+mqYcVj3Wz0/b1+sNhB7By728uc3W7OGpdWIHp9WY8j90pnN9xDA/GetQ eTwn/vkK1/vd4OIimQhlvPm23MekHCiOIr9GgGR2wHmlWxwuEQ9weDLdeltevTX/yxhb P5HC/uMRqKtltkCkCv1Kqpd27uHKnsstquR4DGyde8VB/yjJVHMLqMUL5wl7bCfiji0O kffLGM7AMlFdVDQjowJ8LJeNiwa7aCeqLFOd0Sc5NS8lPbBn12KOio/q2+jNG8IK8eqA /Vfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=F0bxsI+/D+s+fJ/FvPzjfyK9v1ULwAI1WhWF17q3OOY=; b=ezdzvWRiZ5iIbTiUFgFiNaNTZahzvsGWR+6IYv9OavRSjEMInfZ+0sTftSju07OqbI Px/F3DeH8bPRAYL2yR4O6mpxwyM+b6IG3SLWkjIZ4SZ6u7dtrK7ez0PI81VjLDGh84tL IET8kXneUKztf1nTF+PY6QjuVDFAxvXd4ElkXABEpcpb5qPHz+bEOQjO9EtSvEaWIwEr I1/XM2ey3Aqn4z0i7eZRUyxvoAaReb23SKKgvXvo+4QSSAbWP+lWjTk2d6VPSPHqpk8y a1kOYEpGy7RcrLn3EqQNAiA715AFUlpBGX90bKWz4Cqq/b5pcPHX7XyCq+fPN42OQkMe 75cw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e1-v6si3102443pln.578.2018.02.21.01.20.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 01:20:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 916226E571; Wed, 21 Feb 2018 09:20:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DBDA6E571 for ; Wed, 21 Feb 2018 09:20:50 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 58E50207F5; Wed, 21 Feb 2018 10:20:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 1611F207C3; Wed, 21 Feb 2018 10:20:39 +0100 (CET) From: Maxime Ripard To: Mark Brown , Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring Subject: [PATCH v2 10/10] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display Date: Wed, 21 Feb 2018 10:20:34 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thomas Petazzoni , Daniel Vetter , Maxime Ripard , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Maxime Ripard The BananaPi M2M has an optional 1280x720 DSI panel. Since that panel is optional, we can only show a DT patch that would show how to enable it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 39 +++++++++++++++++++++- 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts index eaf09666720d..11a4dfde2679 100644 --- a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts +++ b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts @@ -44,6 +44,7 @@ #include "sun8i-a33.dtsi" #include +#include / { model = "BananaPi M2 Magic"; @@ -81,6 +82,14 @@ }; }; + pwm_bl: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 255>; + default-brightness-level = <8>; + enable-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PG10 */ + }; + reg_vcc5v0: vcc5v0 { compatible = "regulator-fixed"; regulator-name = "vcc5v0"; @@ -120,6 +129,26 @@ status = "okay"; }; +&de { + status = "okay"; +}; + +&dphy0 { + status = "okay"; +}; + +&dsi0 { + status = "okay"; + + panel@0 { + compatible = "huarui,lhr050h41"; + reg = <0>; + power-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* PB07 */ + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ + backlight = <&pwm_bl>; + }; +}; + &ehci0 { status = "okay"; }; @@ -179,6 +208,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -291,6 +326,10 @@ status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_b>;