From patchwork Tue Mar 6 13:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 130805 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3967263lja; Tue, 6 Mar 2018 05:57:28 -0800 (PST) X-Google-Smtp-Source: AG47ELutyRf4HxXwmdpT/J74kWQAqxoyNiiKXDSbx3X6hkrolcdO0zizrV7W7Z+XbXQDeQ5osePC X-Received: by 2002:a17:902:5ac1:: with SMTP id g1-v6mr16359037plm.255.1520344648562; Tue, 06 Mar 2018 05:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520344648; cv=none; d=google.com; s=arc-20160816; b=izJc1YLpX35yugJNamlX6LB93oCy6YDGrznEtBgmquNkI6OvllXRsn5/5jf8dMY9e9 NmzbJ6WHl5Wx+icsi1mbcIRy9C2EU8lqcLcp7sxRXcHiBrFoxm6UyiTXvBkInUg3AY+W 6u8ISQhoeSpRbpeBOdOMwilL3YmF7kr11U3atpdB62OTq4vCLPJuveu84+odfp16cBND 3PHEY6qTv978uTSx2n2DBNha6R0twTzssiG/WVd4w23RLejkWlS7kikzzkUr9Gv3Rirh SXUzpwnGPWKOAC41h5aPnjy0EL9XyvQMnqAc5OIrqvzzoRBU8drjbVqRF4D4sDuJIQUZ sB/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=GPBHydLkJMPWvta1rP3x3Qms34EDFWDrbx0lS+eHrvU=; b=eoaFK92lmpjwqoFNgm5+dKnLmC/tcjyblQQDHbFF8eMFpCUM0sX7IztvhGb//Azy4c z3PDQIv6IqHi+TS2dwW23uOVyIDMbxv+wdHcqOiOveCGE5LIeEQNGyv+CVH5UaHBCiX0 b+XclEimDCEnFzZdfSfvF39hxKqx8VLEKYg696JWeELYvgoYS6Fp959IGWBVw98DqzAz t7JzU8UufRp4GG9tLxE1S2GbG5aMLvergY1NB9zj27nTtKy+9uHvhcYkcE8HJwqdtnIW CIJbhVY43MYut81bvhzJBdUiZgccGslwdhsvgUt+vqT1rI3JTpKd2wJjadwojPvcGqkC AMtg== ARC-Authentication-Results: i=1; mx.google.com; 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 31-v6si11133913plk.699.2018.03.06.05.57.28; Tue, 06 Mar 2018 05:57:28 -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; 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 S1753642AbeCFN5Z (ORCPT + 28 others); Tue, 6 Mar 2018 08:57:25 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35031 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530AbeCFN5Q (ORCPT ); Tue, 6 Mar 2018 08:57:16 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 1E22B20974; Tue, 6 Mar 2018 14:57:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.190]) by mail.bootlin.com (Postfix) with ESMTPSA id 6B22E209F2; Tue, 6 Mar 2018 14:56:26 +0100 (CET) From: Maxime Ripard To: Thierry Reding , Chen-Yu Tsai , Maxime Ripard , Mark Rutland , Rob Herring Cc: dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Maxime Ripard Subject: [PATCH v3 7/7] [DO NOT MERGE] arm: dts: sun8i: bpi-m2m: Add DSI display Date: Tue, 6 Mar 2018 14:56:04 +0100 Message-Id: <7c43c99d4faed3f37aad899d3516e606c14381e4.1520344489.git-series.maxime.ripard@bootlin.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- git-series 0.9.1 diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts index eaf09666720d..e1bc9bb1c992 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 = "bananapi,lhr050h41", "ilitek,ili9881c"; + 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>;