From patchwork Mon Mar 11 13:36:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 165 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 13DC33F087 for ; Mon, 11 Mar 2019 14:38:36 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id q15sf5847211pgv.22 for ; Mon, 11 Mar 2019 06:38:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552311515; cv=pass; d=google.com; s=arc-20160816; b=oC1e/rGJwrumuo/G9hd20cpvtRVi8P9tM9YHkn3FhzDXKaZsF7mVKT6P2WoXKIAGft PHRBE0A3wPqO2xNeQRiibPz+T7X/40WLkqoaQAR2EiRLRoyTq9b0sFK3xKgBHQa78BF2 YBoffNMzOknfQhVfbj5Jaopux7psFM+WVdk1vsaIByBQzolT/iQQXgCTv1EOLLgejrk6 87v5nSE8sfGmB4xraGQLpwZaFoQ0Dg9iwApv1jpU3qjeN32ohkjCYrU5hkhMRwlfiP3R oTxCqIJpnIVMbVQeH6W/d56R5RmQrf6dPCgNpfeVruxYKLZ4/Pzix8P66dBxOW16psYQ +1AQ== 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=kzE3/VGvhd86bvUJconp9SPa/GS5zbXdjmEpXgZlsMU=; b=Doeu5B4RUc1wYHJsUuYMQ+Pul9n40WVvozYcXYgi02jjpdii/IFasoLLTSKT0hW1py HZW0pUEUHWInAvwo0OnfC1+EP4gXsQ8qaqowyLnLRgwFIWL4bDLpz19+zm4gcFV43SPw l1wjb5jgw0kCOhJ258/l3qILRpI0Kty0jjjANPoLlveM36JTw2Oth6eBSRfF3AmzktsG GH1zsHQ9tmMNk53nHgrHgi0MNzz3GRIlwJaVqwhDo3+0MXX190sO6LwtAkaglKNmDKlC SQjjentB0XvcyFVLVXSDMJrSsOQjMHQ8Y2TRNdiK+81/QPZlL87d8xEserp6pJ9AXf92 abQA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ncOMkBB8; 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=kzE3/VGvhd86bvUJconp9SPa/GS5zbXdjmEpXgZlsMU=; b=B6DXCG1o/FsNCNax1sfkCS/kx2CtiOzaioqS1c9a6FQBkGl44eupj2uzzb27eJf5x4 emgrmYtjSg9A0Zugw9Jw6Tk/+k93M8qEAwwztBvWP2FaoFm+t+C1WU6W/SqLu8xcv3rf Fm2VXW1HU48wnm65/t4oreGsG148+9BLq9974= 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=kzE3/VGvhd86bvUJconp9SPa/GS5zbXdjmEpXgZlsMU=; b=qLVRXMr7NTlG+wr6DnkgIxRPwlUneltyPkAwTVeVlFoBQ1V4byE3A9T7leausY4u5t 9Z/IAlD7v3/SS7BqpZdZoc6JjAYRcJl95bk5dyA7uBUSHgUssZB+ziacB+gzInc7/CbD 4Du8muXIVkJ/9NowetBC237oqaNc7ROSuzcVtJlrvvAKXAS06mi+mWzqwkQ4nkW9PDIR 4omtcLkOedH3t30bcwx2VR6Pgy0ZjTAKomGE3A+limp5vTpVL+kaUR5lpWHVuiwzSZTp zPpD+N5M4tiCrcBZsIe5HFDiapjDXv9UNXIZMC3c+IvSpS1OA2wp1Vj4xOzhclVYXKPD 1YYg== X-Gm-Message-State: APjAAAVjJQV1FIdOV+OX/qnjgl2hcAAh6PoSA3GhoqDfmiaAafxxAJep dIr1IB9yjGwnz4+maDcEy4Jy0o11 X-Google-Smtp-Source: APXvYqx/NkP9sd+lQX/oacbSmd0LAd243F7pSdNIlk3fB7KeW9SYuAwc7jdMd+xNAK9fTIxtufwALw== X-Received: by 2002:a17:902:7c93:: with SMTP id y19mr10506909pll.137.1552311514883; Mon, 11 Mar 2019 06:38:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:1f03:: with SMTP id f3ls7715187pff.2.gmail; Mon, 11 Mar 2019 06:38:34 -0700 (PDT) X-Received: by 2002:a63:83:: with SMTP id 125mr30286731pga.403.1552311514524; Mon, 11 Mar 2019 06:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311514; cv=none; d=google.com; s=arc-20160816; b=J99XaJgKaSrW1ve+MoCi/ODd3itcPgymOJOY9EbCgBCw98lfTuzM913KgSFfz+Ok0t yFUZjRT6h6humYXtKYwuu2ta3bHFLZshyCAsJg0Fzm0xM2Mxdkz/2jm++w5BwXe6aX0Q LdBfl88q2qED2hkAE4KYGSAQu7PpCbv4hlWba7wPCd2WmeAYSYBIkG8DX538L/aJVEV+ FFuostIX761cAOyJZbIIFa3F6H7Z1JfITFBqc+OVu3QslEVuBzmD92e/1Un/779WN8jv kMU3kimzQ/lnqGQz9WrNQbgbXO6gC2bt78yWxi0KmEt8QUn5BXnNPZUhVA6+h7wGdwAW xpyg== 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=ywK6pcoFaKLaYGBN5FuWj3q4y3hHnb3hpgGYqdNyD7Y=; b=HZqyOeiEElkwgHyt0VgbUpVtk51EqMbKgdr/f5kfKO9vbkRXO3U9AAEyhBfPjes8A5 4gy2HOHQIFZV/0tNY2RcR+V6Go+YeNgStLIbXhdzjRqONLR7mJ8UP7+a6xpLPqjskmHI m0JjH/VG9zqEaaecIJ3W2SFLVTeEWeFN35stjXHSY4yXALxo+Reiu5Hc+ZE3P8azQlS2 8R1YXV5Oa2/ZNIJQmJOvQKWWv0K4cwzEL+xJmdI9Om/zkMV0EaMKXWiP3OtfEd7xwOvV 15MCT0ndcgtMuCV1kAKezlT/zUAWevYIAMQG4pI+tylMn30Uk0/k9jZqwBXkUW0xvsd9 UpHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ncOMkBB8; 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 e124sor8556691pfc.8.2019.03.11.06.38.34 for (Google Transport Security); Mon, 11 Mar 2019 06:38:34 -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:a62:1283:: with SMTP id 3mr33977851pfs.122.1552311514206; Mon, 11 Mar 2019 06:38:34 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.199]) by smtp.gmail.com with ESMTPSA id s79sm9960397pfa.61.2019.03.11.06.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 06:38:33 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v8 15/15] arm64: dts: allwinner: bananapi-m64: Enable Bananapi S070WV20-CT16 DSI panel Date: Mon, 11 Mar 2019 19:06:37 +0530 Message-Id: <20190311133637.18334-16-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190311133637.18334-1-jagan@amarulasolutions.com> References: <20190311133637.18334-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=ncOMkBB8; 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. DSI panel connected via board DSI port with, - DLDO1 as VDD supply - 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 | 44 +++++++++++++++++++ 1 file changed, 44 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..9d740afadd30 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 */ @@ -116,6 +135,25 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "bananapi,s070wv20-ct16-icn6211"; + reg = <0>; + reset-gpios = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD6 */ + vdd-supply = <®_dldo1>; + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -208,6 +246,12 @@ status = "okay"; }; +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay";