From patchwork Tue Nov 13 11:16:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 33 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id C7CC32E542C for ; Tue, 13 Nov 2018 12:19:28 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id g21-v6sf10063084pfg.18 for ; Tue, 13 Nov 2018 03:19:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542107967; cv=pass; d=google.com; s=arc-20160816; b=eRjlHeAmaqvvrQXRLWwND3zwWmuVxlqK441U0ZDBygHBj56ScUlybYwVfM0/cJCjVi kDISLvlSyQo+OyQNu8WFDEYHrhtt+Y9NCEp6ykIzM37GPr0U6hv+O147cagaGfPnkSaE ra5FecztKKkCWueW8MZ3YO4qMYSjpYRWYVHxu3L/VjCOJWGQogtKPb34ROS0ut9v+B3B 3FOI6dz0+sxMvX/AR0Tn+1nVlZcklxB17QDrwCK2invPPZ4QYDG6OyQu9PKgv302usdZ 4xzPyp+4bEvwQwPGjkfprDc/v9NUqzZ1iFYDTm5WjHhKy8UPBgySHxtRTqpmSGQv3CkA SSoA== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=WDL8wOWSvsZjDHaNQALPKrjX4SjR9NUvaVmJyrZm3dufb8QAC3P6D9KDnv8VcjCkH3 WN4C712Igu5l4Gehno2ny/7EnpqQbvmSJcefUTfhsilOeUiUzhDnMnM6gUYfp1aEy34W w80miTtJ41gnRURwSJMjqMK4I7GaaS+rnQIDw3vAzSVosh/SCp+mLgiGy4bB7ADd60mI 5sdzJmC9JAnZ7utqMb59jl/RErPMdTrgpzJc/y9ooNzm/uWhqyXEss+OTjFgrIqiRQRr lml9c7OUKpIWHXAxMgVU+HSf3buN2CusIn2d0VED44MPxE/r5W/JhoX+MHmRNd5g7G9w 0Ypg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aXSRYZHs; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=aBt4nOHIRudcQEZsY0Y0VXoVkFg+eVbtwm0UD+ghpfniqYsWscgBurRq6ye9sasr4a A1vVm50LIs6d8CkAVVOlvN5TkcRMF+mz9d9dWcBJE6fTlhND8OPw2ljhMSMS04adYK3X /cI0CRH6K9oL+jFFoJnXiT/eDE91RdML8k/cg= 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:content-transfer-encoding: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=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=hMACIkjYH/HOhbcJIoIcJXiXabQWDNSsVIBnzSwFAw7bhg2KTD6PPEzqqKbiLvTznu p5CFxRGk6wgjekd7Mbk8VHvUW/jXsganJ66KSuoyn9gUEndgcPY9yhUGRNK2igIeSvRz kyY5yICjZWWQKF8IunAp9KmI3hggctmSvbA7cx/mnSDsEKOVZtNqQwMz56fF8sZTdDA8 Rv40yniR/Z6AUdKbBWAn9Xbrqb6f5kShgBIZlnSEDUleEVPF2uBgOA1inkdCzspjA/5j XiqptfzgMuPJvx13ZmGdZzpikB769ol5QI7tjRqVMcLuK/sZ79LcpogOryNtrVPKnUtj PHSg== X-Gm-Message-State: AGRZ1gIhUi9ii8G8lYQL+byzXt+KUJZKL16x/zmMT7H9t0tJNM1lADjy D9BBBNz2T2HIUz841aYI6mxfKdky X-Google-Smtp-Source: AJdET5d7ZcV2HZI3kKYtQZCkDMPWOb057sLvqleaykFPGVnzJzt0EBGENkFt2uqnLylyRYANGllt+A== X-Received: by 2002:a63:7d1:: with SMTP id 200mr1203357pgh.69.1542107967501; Tue, 13 Nov 2018 03:19:27 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:18c:: with SMTP id 134ls2790075pgb.4.gmail; Tue, 13 Nov 2018 03:19:27 -0800 (PST) X-Received: by 2002:a62:292:: with SMTP id 140-v6mr1625280pfc.16.1542107967216; Tue, 13 Nov 2018 03:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542107967; cv=none; d=google.com; s=arc-20160816; b=hv2xUwM1dJbnnzH4r77prUF6rCwRslousqTylh7zzgqL92X/US1mgLJvf0nxhOg9YJ CvS2aCAXXX75U18ExTzoUEcNBdv2dppdwOiNhCwGNNoYtl4DJBzD+VXbXvCJiRGv4ALl 7vKYw49+bpVkbJhg4SV7nmEtserQUexMWEiZbpbuQnJG8qPo7PHprxe6U4Id0UmpvnMd Gk15rJxLNfRguoTqhRa8UHIUhRELloalxQ7rm1motQWkHppgHng/abWD1F+Ncs45vBLC 3ecZcKmzEv/8gzcT74RUgHoYOAXxj1AWVr+Wn+jpgnt0zDD3NAR2kdTRdCEhBQSGJlCm CbKg== 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=dFmQHR6i3Cq6KIGTpn1MkZLq+Qzoqe9DW0CEaYkYNfU=; b=y/x80pumE9FIJsDmxj5+YoY61eQ3u+BtYzNtbPHCX1JKvNGPm6yIT8jkpid3sVGStT M+SqNsjTOdR/IRElPYFwfHB7VyWNVFJO96hWFiV8ovWZs20XETr1yRPaFTP9n4WIfdA3 LiYz6IBYpURgWIqMeDAtUwWQ8dWIR86ZKNJv6rVXoSzh0EQg2LF/VYCZkDzDBzxbj/6B 198AUcFptRaKrrinNnkiA3srfQaBov7TOGooPseoUnP8kJojUcix9QguWU+VvFNi0Xdn lY1MkkBj+YsL6g36YLGObeeioCgDDGTvi2D4ioOpTH466G2HFxE+TmhbzESUl7ISPlch EXwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=aXSRYZHs; 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 b11-v6sor13219354pla.12.2018.11.13.03.19.27 for (Google Transport Security); Tue, 13 Nov 2018 03:19:27 -0800 (PST) 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:902:147:: with SMTP id 65-v6mr4733439plb.140.1542107966879; Tue, 13 Nov 2018 03:19:26 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.19.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:26 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v4 25/26] [DO NOT MERGE] arm64: dts: allwinner: bananapi-m64: Bananapi S070WV20-CT16 DSI panel Date: Tue, 13 Nov 2018 16:46:32 +0530 Message-Id: <20181113111633.20189-26-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-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=aXSRYZHs; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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. DSI panel connected via board DSI port with, - DC1SW as AVDD supply - DCDC1 as DVDD 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 | 42 +++++++++++++++++++ 1 file changed, 42 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 ef1c90401bb2..6cb010e3bbd9 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,15 @@ }; }; + 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 */ @@ -101,6 +120,23 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + status = "okay"; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + avdd-supply = <®_dc1sw>; + dvdd-supply = <®_dldo1>; + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -193,6 +229,12 @@ status = "okay"; }; +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay";