From patchwork Fri Mar 15 13:08:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 175 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 417103F033 for ; Fri, 15 Mar 2019 14:09:08 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id w16sf10228841pfn.3 for ; Fri, 15 Mar 2019 06:09:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552655347; cv=pass; d=google.com; s=arc-20160816; b=OQtvXZ4ztiDzLuSYT3q7T1y353Uv8YwWpRaXoBYESlMVtXXStw4JTjj22bqcI2iANN fg+I1qyijt4LDwFRc1WqbEaywfe8a6xNBXRyk2mTCDuiN9ozlGlJjx4Owz3iTZLTObab PCxx0kb2zZVYMph9NQQYp5l2I5cos7IsLOyUWG+95GDCvJT5itbD8hO+Qr5pa3xQHa2s HArt47zN1M5aMffbZpJUpDZw4J/Hy+mB0eODFLxj9G5sP31qbQlHVhvLhgRAmKLRk1/L KT1U2O/MkMqzF/5PidrFt6+MXkcVhSrzmMD5ovLOnawiQnhNJUA6uTseXKKPejLITQV2 1uYw== 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=jzUOwPF/pnqIdCFQBF01/prJEiQ0q7yR1n39hLZLVXA=; b=IJx4TkN+3MnVLDMZpyp+WUPJOzfHEWse0IWXC2Qf8Euv6qx0ypPFlQ3MkFQcy6IMZR lf0K41dnPTFPdc8fl6g4MNq2O9xWawrcDCn1KjBYT9iOU4IFlKZ6qsN3m46Dr0MkIwZf WrWLNDfiRLr0lsIH+W7C+h0Pc+lZb/5nfnEWEJ9zzNoDbZb05ojCJAn/zkEnUUZiSRin v42wvKqHn+WRfjxaKwx10/AoY+zuoeKi0g/ky3cXxCAw1UBG/ahHRcVBQqRix7w/5Pom rbgW+XWJu+Sh3LZoLsd6tkhpOmhVALuot6ScCxUjH4Qqdu89sEz+zuHpUTEE6qPyFRMB gJcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BTB4zVgu; 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=jzUOwPF/pnqIdCFQBF01/prJEiQ0q7yR1n39hLZLVXA=; b=YFaC1xf1gz7/B0nbw/TQo3qmxJ3wX07ElBzElUtya5iBhH5wPa87GD0gywbGokmIjX 4Mm+QbDs6qfcEmnVIa0l6any2sfICEcaHwW2FIf5dofATk0N9Cuovz3lgwuXPzwpKfNT Uzhkx9KKHPTKGu45mTdZyCJFrD4fbJS55zAvA= 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=jzUOwPF/pnqIdCFQBF01/prJEiQ0q7yR1n39hLZLVXA=; b=kSFfXEfxvHAVKsVLWrsUgLOYPo82VYUb4E9VNyo12nTpQ/dYLPrWUWfW5G+7pvlHgY mfry3dZeFXwhI+eZ64V3DBJT5D7tFI+yRDGKlDO4AWQbGIRCl/+loCZuZOmlm+gs/PoX Et3sJgwQWCpzU2nX9DFf+Rdzllj0FpUoM23DJHnPsy/n9YMq+2sH7sTqrxscDC7I4uB8 4CeX539AmdFivZRRLGbJi38i2MF0IIiwfmXBR1wvOGBAvr5IYe8snzQ/9YnKjYxWKqpI lN5d4rdIrdQ7gLjfkxGhRJAt2KHtiK4rKL1vf5MP2IBk3sgDvlbSxcdBO8Dqhs5J9r7N fhtQ== X-Gm-Message-State: APjAAAUS6ufeqEL5+otNrvsgd1pULYb8YlO1K3KwchCpuFRPJZvN8oXQ KUrqDN3BYmxN9gaB2StOaeHm+T8W X-Google-Smtp-Source: APXvYqwIqu661T+XcApPKRkHy7uyzLOyNGQptIo600EO5eJ5Kyx/T/J0NwDNZ1eY6k5a9laskhFBzQ== X-Received: by 2002:a63:6f83:: with SMTP id k125mr1188807pgc.127.1552655347060; Fri, 15 Mar 2019 06:09:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1281:: with SMTP id 1ls3991331pfs.4.gmail; Fri, 15 Mar 2019 06:09:06 -0700 (PDT) X-Received: by 2002:a65:4549:: with SMTP id x9mr3427133pgr.3.1552655346673; Fri, 15 Mar 2019 06:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552655346; cv=none; d=google.com; s=arc-20160816; b=sC150IQbDfRwdqh4eBq9FI70FtuEBR1PIsiZZm4exA9kEmtA4jHTjb5CMq9TQAFVxD d/sK3w8rNTLTu+Ve9sg++kRX8KiGi/WmHiUwEJ8v8+QfwVdv96RL7gpbcPz5+jz5mHXS HRk0rNh0d7YH85RfMejERGmW2IRkhFYVMDyBJeILbsKCP6BvRUDStJBmmpEnWjgS8RDz cU06u8pExutKs6WfS6brRJ3MaFZMpXJA9vNXWSiKqpAXIPPIQ+cJWHf+x9DaMlPBoyeK r+mfEpUIwPgIxgTL4syvuhiWPXX1fTOi7bUnMWjVlltcA3lANpxTzg18t/AwIBBuq9RY 1neA== 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=fgjvITMSu4P9dEIyxGHg+50sb9yJF4/343qaf5B+0M4=; b=YIeeXWUMMtZ6IBMFgfZRZguhMtRu9nQLBNKcPiZ9eTrfyGuNvfZOf8O7diE6hIogFH tT+yrhRTXl8RIqlk8gO51X5p4eGLzYOHKC+rxngW5bv6jnDTHtI9CQ/d5G1VYxuu9GZg HDJme5vX3Cy/Mj0GmlvmZDDnEPH/IxYcRL4kJv5j4/gJup8w02orFtBvCgTh6zg8d7pT BHROBeB4eEWzEbYZ69B0ApK3AdaxkX79Z5YqAzYF0KfqSUZLsRdECeAxZ5xq27pIqhOg bsdSdNRx8eg3hFkYctFLlQ0yiQ6Wz2WX3X6aZefRlAHzI6JOHbjf4eaXoPVPPfSkB3Od GrvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BTB4zVgu; 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 s86sor3087841pfa.59.2019.03.15.06.09.06 for (Google Transport Security); Fri, 15 Mar 2019 06:09:06 -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:aa7:9102:: with SMTP id 2mr3913621pfh.179.1552655346407; Fri, 15 Mar 2019 06:09:06 -0700 (PDT) Received: from localhost.localdomain ([183.82.230.185]) by smtp.gmail.com with ESMTPSA id e2sm854008pfa.64.2019.03.15.06.09.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 06:09:05 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Laurent Pinchart , Chen-Yu Tsai , Maxime Ripard , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland Cc: Michael Trimarchi , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 6/6] arm64: dts: allwinner: bananapi-m64: Enable S070WV20-CT16 DSI panel Date: Fri, 15 Mar 2019 18:38:25 +0530 Message-Id: <20190315130825.9005-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190315130825.9005-1-jagan@amarulasolutions.com> References: <20190315130825.9005-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=BTB4zVgu; 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. 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, - DLDO1 as VCC-DSI supply - PD6 gpio for reset pin - PD5 gpio for backlight enable pin - PD7 gpio for backlight vdd supply Signed-off-by: Jagan Teki --- .../dts/allwinner/sun50i-a64-bananapi-m64.dts | 63 +++++++++++++++++++ 1 file changed, 63 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 7793ebb5d2b8..f31083aa4521 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,15 @@ 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 512>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 5 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD5 */ + power-supply = <®_vdd_backlight>; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -91,6 +101,26 @@ }; }; + panel-connector { + compatible = "bananapi,s070wv20-ct16", "simple-panel"; + + port { + backlight = <&backlight>; + panel_ep: endpoint { + remote-endpoint = <&bridge_out_ep>; + }; + }; + }; + + reg_vdd_backlight: vdd-backlight { + compatible = "regulator-fixed"; + regulator-name = "vdd-backlight"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* LCD-PWR-EN: PD7 */ + enable-active-high; + }; + wifi_pwrseq: wifi_pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ @@ -116,6 +146,33 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + bridge@0 { + compatible = "bananapi,icn6211", "chipone, icn6211"; + reg = <0>; + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + bridge_out_ep: endpoint { + remote-endpoint = <&panel_ep>; + }; + }; + }; +}; + &ehci0 { status = "okay"; }; @@ -208,6 +265,12 @@ status = "okay"; }; +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay";