From patchwork Sun Feb 14 19:41:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1637 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F29A53F158 for ; Sun, 14 Feb 2021 20:41:50 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id o2sf821056pfd.1 for ; Sun, 14 Feb 2021 11:41:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613331709; cv=pass; d=google.com; s=arc-20160816; b=sOuLdgOYgGScAee59x4xniv5L2XwufTaJFfv4RJyl+BpVsKPWRL9xLayjHfnpnghqO 6ATbnaHQqCEaIkRKVcPhdFQaylUwalARCCDXZyKF5HHlkJ39pJRA7hWs+U8wEoSW2zn4 bItCcg8qJ7Dqw7RjvVtcUB8MTsYc9Tv7UTicOUHxOwEuRkMerIa2Mw4KLxNm2253nuMl CGnlzWMJ41FI9pbg9L2bOcED4JlRCRTbW2njS30Aef6MPm2GCbsRRP/iacq3iHba5TuZ 7OxvHqiN7CoIpQiKYbm00l84QZkZUCCYEzWKP/IJppbaNVEZ7Fs8wxFN7xHz8ZC0u8XS hYcg== 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=PLzMcRBzUcqmmNyXFpfEuNJmipu8cJPkYEEsdk2FHGg=; b=Xm27tyeuNms8bSTErP7/ihbWL+z3vMnj6vCxcqlc0k+GQk53i5arRdeqUdHRtU2jJ7 V9akvW8DCsgLytCfZUqAFTuxwC4lFblN3T71iVrKZctUtOtiEyKybE7hM266P1HdlaMg P2cpHxQ+SF2+fzhDKKnNPnLiQ9GUiW3PYpQlwwVuK8XjvsCzTMdH9m/itwgww7tg7pYm lzmNCLVN5iIgCLy3Ssfk6ZGyApH8Hu65IMgFCL8cvGKKqtdDFR3JwqJ+Ttez0wd4sz50 wkBdl2YABf0T5y99n7W+7T/IZMaAU71yVPIwyH3n4EOImN08g8uZ9QgKWcyNU2TeeB/l wVtg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IB0GXfTI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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=PLzMcRBzUcqmmNyXFpfEuNJmipu8cJPkYEEsdk2FHGg=; b=rTsMVJ9LBYzKvnY8sWYQ0VNlCvqu32VJ0wCIY4NscOABInlpBZRJ6Pf9urol9o0Y/W FNuAmOcu3P/TnG/Ru4yda5jfck+gV7frOSY23Vkr5mBCaX0Wk2rbR8NAU9hCKSu/aiXi FdBGeNYti2D9K82ENAs1IJB0OIEMRWQxEobDk= 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=PLzMcRBzUcqmmNyXFpfEuNJmipu8cJPkYEEsdk2FHGg=; b=Lsa2pSuG3vGTJR/T1uY+a3znlhXpp9lvF9keOldhI+qIt7IXObGAsz/BleFZ+I3Ndu 9sfU0YPwx1KGPXWhZiIfBL6VVZl2dKekmJQYRo/tgFbzoCDGRzqyAF/ywbfs0TJISh86 RsQGl2tySxvxsY6OqzQcyg4ITe65mic5/106blfgaKHdpOLrJHLFcRUCJDRXYML10UOK dB+FawBPzjYydVUrX81ycckKXtePTCjDSXv1UWutULwzy06TAJ1yaweXcjAvfhGP2Duw zQpOtLrUfX9Daoed4cVGIBn2OGFL9f25su1356x2Kie+638TX0Ovug8TqoH4Sy35AQkr nOTw== X-Gm-Message-State: AOAM530hofOtz3XMnzwJcCZD+zcm/9YFy3r1bKxRz+hUfF5ZNfOfrBpO nGWIONUKYbcDTW7STMqNCHB0ilJ0 X-Google-Smtp-Source: ABdhPJxqO8iGNTvMgfgImGPRA6NMZ4NtuiuQH8OjObqeuv+Hd3DkSN5iMxs4R/r6QN1XQo5tWsjshw== X-Received: by 2002:a17:90a:b702:: with SMTP id l2mr12994781pjr.13.1613331709772; Sun, 14 Feb 2021 11:41:49 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:296:: with SMTP id 144ls5433597pgc.4.gmail; Sun, 14 Feb 2021 11:41:49 -0800 (PST) X-Received: by 2002:a63:1c1d:: with SMTP id c29mr12661862pgc.94.1613331709140; Sun, 14 Feb 2021 11:41:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613331709; cv=none; d=google.com; s=arc-20160816; b=c/FWd983yiFWbxxKkrkH3kRFAQNfISOe7QVZLiqM1vAAnDGPBEveP7vzQc45MniTAx QV/GUFxQtsFB0BH3hkH2428krNfImfB5YWK14ORNYH8/VEjfePS+rAqm2DVzzIW0j2tX xWnvbPOIFfjrtHppfO9jm3kAeVypsaDvKOogSlhZOZsMBVz72fh3W5ySlhWaJayOk2Om 6Qs0RkcL1PKPdXkcoGN9bIHGAVT2lkz0X+TF/WEnr40SAq6BeoEqCGljCAAb03rt9IcT ZZa07se6hgLgqgNv1HPFrvAF0WPEjZgJ+BigvMrEtPwabAV5iTpMsuWWaqzSFtQtkDCm ZZGw== 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=PjDic6T8CX1s3JQ+rCi0YZO3YnZwESEKbfpyyMhv06I=; b=gmncdZJUA4H4b7v76GnJtoViRPqkC9H9xW7AuWHwRJMmrf1ND5eZFHEGYb3W04hlME Qsc+J6rHbMZUKvhv0EviXIQ4IdwYePKf393hpR69QAgIgr6MryWAup4Um1RMFz0PUxxX SvB/7WCV9Bmh/U4z2i1iaTH1flBRjqCApsSUEOhBJLLzWUjGCxGi+2w5ayWalkUmBSLO Aql6hBpPA1Jr8u8ys/hVHtAnYKI+JfTDIIwGvl1NhJAab2zF+ZEL6xbI6omY1CB+73ww 3u2+ExHdJT90+7eSussG7xoQq2hx+78bfl3jGvAfa70kCdGuaHMtH8MB85PeE+0ATArt kkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IB0GXfTI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id h4sor834783pji.43.2021.02.14.11.41.49 for (Google Transport Security); Sun, 14 Feb 2021 11:41:49 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:d590:: with SMTP id v16mr8459529pju.116.1613331708894; Sun, 14 Feb 2021 11:41:48 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id 125sm15129247pfu.7.2021.02.14.11.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 11:41:48 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Laurent Pinchart Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v3 7/7] ARM: dts: sun8i: bananapi-m2m: Enable S070WV20-CT16 panel Date: Mon, 15 Feb 2021 01:11:02 +0530 Message-Id: <20210214194102.126146-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210214194102.126146-1-jagan@amarulasolutions.com> References: <20210214194102.126146-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=IB0GXfTI; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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 panel to BPI-M2M board. Bananapi S070WV20-CT16 is a pure RGB output panel with ICN6211 DSI/RGB convertor bridge, so enable bridge along with associated panel. DSI panel connected via board DSI port with, - DCDC1 as VCC-DSI supply - PL5 gpio for bridge reset gpio pin - PB7 gpio for lcd enable gpio pin - PL4 gpio for backlight enable pin Signed-off-by: Jagan Teki --- Changes for v3: - none arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts | 85 ++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts b/arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dts index e1c75f7fa3ca..f3f63187badc 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"; @@ -55,12 +56,21 @@ aliases { i2c2 = &i2c2; serial0 = &uart0; serial1 = &uart1; + mmc0 = &mmc0; }; chosen { stdout-path = "serial0:115200n8"; }; + 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 = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PL4 */ + }; + leds { compatible = "gpio-leds"; @@ -81,6 +91,18 @@ red { }; }; + panel { + compatible = "bananapi,s070wv20-ct16", "simple-panel"; + enable-gpios = <&pio 1 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PB7 */ + backlight = <&backlight>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; + reg_vcc5v0: vcc5v0 { compatible = "regulator-fixed"; regulator-name = "vcc5v0"; @@ -122,6 +144,59 @@ &dai { status = "okay"; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dcdc1>; /* VCC-DSI */ + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + dsi_out: port@0 { + reg = <0>; + + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_out_dsi>; + }; + }; + }; + + bridge@0 { + compatible = "chipone,icn6211"; + reg = <0>; + reset-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* LCD-RST: PL5 */ + + ports { + #address-cells = <1>; + #size-cells = <0>; + + bridge_in: port@0 { + reg = <0>; + + bridge_out_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + }; + }; + + bridge_out: port@1 { + reg = <1>; + + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + &ehci0 { status = "okay"; }; @@ -157,6 +232,12 @@ &ohci0 { status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pin>; + status = "okay"; +}; + &r_rsb { status = "okay"; @@ -269,6 +350,10 @@ &sound { status = "okay"; }; +&tcon0 { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;