From patchwork Thu Jun 13 18:52:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 555 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 55CBF3F033 for ; Thu, 13 Jun 2019 20:54:31 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id a21sf14444579pgh.11 for ; Thu, 13 Jun 2019 11:54:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1560452070; cv=pass; d=google.com; s=arc-20160816; b=LRHKv5NsYXEUGQs9ZG2mwatDEuVvxkS9ZOE6IoLyech344bqfRMbt//5d7SrFhTfTo cD90kTwPWWcT0WkzTYieIFVsqZaX5turOTth8kSQ5Iai/qMjwqx6e3Z4owILUb9BNMpB Mz6AgxUpwM/h2V/3FGvf9bWpRLy2L5+JbW93KwRj2XhMD6K3Argkz5FP2p4ftZ2A+SPQ vZHYWjRnQH1hDnSw/iZzsAkFmYjgKhQl9PRIkVu2dKc+/HTUnjM65WzokGV5lmQ8+9/P kV/RV13tChQk8qHGYP9TUwE5urlHeBwky1f9iiZnlGuEgn5kfNk/uFctxvbEkDqj00nA gh6w== 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=8XGVgT7y0gt/TB42lUp4uz5dYNfUWMlG6XWK6iycls0=; b=RvTuRxwdbbe+UJJTfSetOpFvHo2gFF9WTu8q8xeQh1yIAkUMPLaLBvO1/pv03mMcLn AElAXyGutKgMcbENm9Veug8uxl5EOEkaFp+TVDvuaRSIIiPPB7qricCCJiPpe8MCdBzx SBoCjZons1oGFa9W5NekjtzIr3FSispGN8OfU1+Buz0wvn7VFvM9OC5qYc9Zhm/ZzOgL hxVstDLP+kAEYYrcR4+DuzH0Eh2Sgmp8oH1iDKqT0jvQAqkN5NJXkEmLt1PLu5Of5ljI ejwf/PTdsPpTpAs81ZHyqJ19dqO71bpGIj50Ujzix6xQKkw9D5VeONDqnAArn8lVfP3C YcOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="obuL5/C4"; 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=8XGVgT7y0gt/TB42lUp4uz5dYNfUWMlG6XWK6iycls0=; b=JtOq2jPE8oeqFv5yxyxV/ltVchK79uaJWXLX+rIhNYoUJZkWz7t4Qu0WOaRF6WGwP/ zEb+CkE1ww1iqkGHh0XeJ8EIUQn+Fz1PsvM7kaNqh5Le3ixVGpBGhqUxknDc9Z8ph1cG JITdFah8kCaPAms8kqHLMWvkI63K92KP8vjX8= 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=8XGVgT7y0gt/TB42lUp4uz5dYNfUWMlG6XWK6iycls0=; b=GmBceRIMXNh+tmXqQml7cgwwfyi6OiTHNwj1vWZhUGnIQoaA8rFjbb05OCoa27UYv+ HTS+8YlzsggktTZD0gaGIfzFV/m+KQdGddxkRoA18uG+7JsYsz66W9NSVOr4hPQSKXYF h3A2XCUEO3xlsLjHr3hRbcLT/1TK3Fep3M2pg2YzxgbR2TF+U6m5dTJEiXxKZaemF1dq xbb1mjhwButpP4O9cZ0fxP5VR+3PBUamncuO3eSFeTXnqx2OCJKbzVp563RxA07TY4sq mqKFNC/pbCJRoiDWGc2wFnna6kcEktURnZaS7wqO9qQ5kQdefwOSGomkRGoFOneV4IFo 6mIA== X-Gm-Message-State: APjAAAUPhGJ3lV7rJzUcMaz6pBMgfBkmLDKpR8jpW76A6kmtwXdDTNVI nJcE6YTNafaKK/eqmJgh+XP4Ja2l X-Google-Smtp-Source: APXvYqy0n6U6ebFiWoa3O+UvQnnlh9A1WzBxiOXXxFyJGlNJd/EHq99fPYbJ6WDq/Or3D4AbWYVmPg== X-Received: by 2002:a17:902:26c:: with SMTP id 99mr91780227plc.215.1560452070131; Thu, 13 Jun 2019 11:54:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:9112:: with SMTP id 18ls1053918pfh.0.gmail; Thu, 13 Jun 2019 11:54:29 -0700 (PDT) X-Received: by 2002:a63:484d:: with SMTP id x13mr22929914pgk.448.1560452069753; Thu, 13 Jun 2019 11:54:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560452069; cv=none; d=google.com; s=arc-20160816; b=y9vbv3UmOGpGk/nBIpq41sO0o48Phi9eenHMuD1vtcEw6YyB5flt8hXm1sBkmAEDvh HrMI1MSOD658inAWzqF5CRt25IgWyBoa7TQ8csBUjaKoQM3tR1QHy9WXDOv6jllQnHoa TEMBJq9aDTzBX0G0YXdJRLc0P/vjrt6reUG2DeQQFNHds/AL1H31rv3bGjBbBIX0+/Wa U+0sA0E+Mcia3xFKRCRYDW797bK2I6B9NYatnwe9dityHNv+KQ+7SC/fR+tXKwbAiigs glnZRGNpOsCd2zPdqwIFzjzpHdsOShAM3YsrPOFkNf5EuBwpInQqOF7Dlz8izafBYTUs 2WlA== 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=51aUrymmYRWhKwkwNUN7n3u+csGBwL1xctf+8Q7+DLA=; b=lNGCRxFC7JK3L5JT63X87AgIXadN4Uqrv6Fou7cHc1KiV4WtQu5aqlgOEvqEfs4MD+ pMChxnSppSy8wqq8eRwDCf4JmvLEzi9xURnXp4coDkk4UNeXYw6wXJVSJc0b5LBGcRf4 X9NZx7D0n1D81upHtMV95IAfCEf33Bw4ewh8UjhwcSvh2TCYKwV8YIJlUnRwjLvsnus9 l7T52WDioJnE4q5S7EF8d5spbd0yZrNe0/CZIyBkppoxPo2Z9XHFdzdltI6dF6re6j55 tlrCXsO2wftZ/EX9xK2Ae5L2TB8S5HSt5C7Mf5RoUPPJaF9B/Vvlik1pGen/+ElZti0O k7hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="obuL5/C4"; 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 f32sor502983pje.11.2019.06.13.11.54.29 for (Google Transport Security); Thu, 13 Jun 2019 11:54:29 -0700 (PDT) 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:90a:2e87:: with SMTP id r7mr6985533pjd.121.1560452069402; Thu, 13 Jun 2019 11:54:29 -0700 (PDT) Received: from localhost.localdomain ([115.97.180.18]) by smtp.gmail.com with ESMTPSA id p43sm946314pjp.4.2019.06.13.11.54.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jun 2019 11:54:29 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jernej Skrabec Cc: Michael Trimarchi , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH 9/9] ARM: dts: sun8i-r40: bananapi-m2-ultra: Enable Bananapi S070WV20-CT16 DSI panel Date: Fri, 14 Jun 2019 00:22:41 +0530 Message-Id: <20190613185241.22800-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190613185241.22800-1-jagan@amarulasolutions.com> References: <20190613185241.22800-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="obuL5/C4"; 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-M2U board. DSI panel connected via board DSI port with, - DCDC1 as VCC-DSI supply - PH18 gpio for lcd enable pin - PD17 gpio for lcd reset pin - PD16 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts index c488aaacbd68..5f39317b783e 100644 --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts @@ -45,6 +45,7 @@ #include "sun8i-r40.dtsi" #include +#include / { model = "Banana Pi BPI-M2-Ultra"; @@ -55,6 +56,14 @@ serial0 = &uart0; }; + backlight: 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 = <&pio 7 16 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH16 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -117,6 +126,23 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + enable-gpio = <&pio 7 18 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PH18 */ + reset-gpios = <&pio 7 17 GPIO_ACTIVE_HIGH>; /* LCD-RST: PH17 */ + backlight = <&backlight>; + }; +}; + &ehci1 { status = "okay"; }; @@ -203,6 +229,12 @@ pinctrl-0 = <&clk_out_a_pin>; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + ®_aldo2 { regulator-always-on; regulator-min-microvolt = <2500000>; @@ -290,6 +322,10 @@ regulator-name = "vdd1v2-sata"; }; +&tcon_lcd0 { + status = "okay"; +}; + &tcon_tv0 { status = "okay"; };