From patchwork Mon Mar 11 13:36:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 163 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5724E3F087 for ; Mon, 11 Mar 2019 14:38:24 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id z5sf1170943pgv.11 for ; Mon, 11 Mar 2019 06:38:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552311503; cv=pass; d=google.com; s=arc-20160816; b=qH+H7XrU90Gu7rzf0NRzGybo2AelHHiwUbPKaQtdKQjassXAgU+Myu2gmxcTcbvy1l 2aNt1wfMqgEB5M3jGjYaMP+/MCz80zx4va872YYYYk8tS9Z+pmNkT4tC2GAgbJXwO+ZO GCs/QatZEtHQ87ZUoriVlnATHaGLrbnz4zlKN89qnpW2r9TBCUMYBMEf1Lck7VjO/7pF B9lLM92y8nYcXmhZp8C1Sh0gQ3e9aP0OUoPfjXSM3lPsf0A6BUhWs6ir+7ifFforjvpb /ql/XsnCT9nBi3qGyEBFvYdtKuVeo9IlJgxvmK1r/qE1tleVbGn/gWjzDxELQ68YwwJa D51Q== 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=OU1vy1wloIO27t622s3wm1SWDnRyKMQU/SaiTc2fqnE=; b=XOp3cloGD7YyVu2PFh/CIzOvekBpTPwSkHYkaACPkZtQDl8LLO0B843GCDXsqf7uSG 3yxcsh5DOiNPqT8YQVshNaAkoK3552AQw1FXXGAm616tCB/EOnc3HGA7PeDY9vJ/hSkY x/LQOzrqdOse5KNHQCCA07KhoVjwiZ1V2W6osxpo766sFuAmtRLggQMx11BoXVgKfHBD pzc9+QW8XG649d+E3KCKa/rTuNroY6l1R4RI7OpvJq7erwJdctlcRDVw/gSBoiupSDKr Ez9DZeOK6LTlyzkGMlcx9EP9ClhH1OHdjZLIfSEREP8Gulo5dp9db10hBIXJFxrMKbZI aPRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=csEEdpOU; 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=OU1vy1wloIO27t622s3wm1SWDnRyKMQU/SaiTc2fqnE=; b=KsfqJ1ANIodqlyofFiGUmWnfrJcibDuGbQ57XOjPMSDEimcfRdhIOmzKM/D3WKp1IE ezwyKcr2lKy8ydUhtCxgYJNP+U9uQwsWgcAyTbpGH34Y+9JUgD4DYAnFN5a6d3NtVFC6 4SXETkt+hQLUD5X9eE5WF5ipVpVchVAZ7fOhk= 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=OU1vy1wloIO27t622s3wm1SWDnRyKMQU/SaiTc2fqnE=; b=IOAPBm+vBgnlKFXavAuE7oZOYLxgjWGa7VRN1EtfOjRTfmJSYtnMtXk7t+Z7O13RrO X9LmZt8ZA0KQW42GDWuLGJl15mUz4awkQm8rZ/5dq9kpLW20iFXQTpIaZe/wlqICY7MG 9FfY7XWJmB51xa+q3FiH+EveFc8/OvbMxxt7hV+BXn3eAPdkBy9TrUgJbc0p2p3M4bnq GTnNjSAbO4Eiq020elFqAsqsBkAr/MKr9D12oRBbO1FV+fxg6e5biid6rMStpKHNSwQ3 nD3KUSgZzoRsLlHRFNKBCZxQIyT6HSAn9dyurJGr7diOm7ZlfK5PMgBTvX7h2mfZUhPk QutQ== X-Gm-Message-State: APjAAAXkraYDEyqPvlJc+qq7Jv1HK4sFdDa3bRT+Rf+5tc5GVndz8CzK TxwpnllQx2YWJSuLKgcBqXWXX+sI X-Google-Smtp-Source: APXvYqzsezkhxObMnYGS7fqXLav2d300WUY/3PfDwOYL07SDqBhqdyu82HYMp7nnB0PaD4NQ9c/rPg== X-Received: by 2002:a62:46d2:: with SMTP id o79mr12351814pfi.5.1552311503177; Mon, 11 Mar 2019 06:38:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:e393:: with SMTP id ch19ls8881243plb.2.gmail; Mon, 11 Mar 2019 06:38:22 -0700 (PDT) X-Received: by 2002:a17:902:403:: with SMTP id 3mr34183564ple.48.1552311502824; Mon, 11 Mar 2019 06:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311502; cv=none; d=google.com; s=arc-20160816; b=rzMFkE75QGZgTFxq66JwKX36VoaV5CAxWIfXmx9CTThm0UoEIwl7a2e2+O1gPSjexU tXU5ueU2OaFFVLS6zkvkk9P+UyhrDjhBcWgwzrENhZ3Yiij60lpkDEhGa3FTTOaLIpiO eZL8gLcJTgIkrL4QJf2AA4X3zwdjQMy4YSrqN/H2pTLgyOwYuzic2q45XE+ltuwEX+vA hSHmmJ1xJ5rffCOosyGIbrffCwI7KdAcsVPepUOCra4O3OTHQXz7YT86ECVHDVLtODRZ E8kqxvO/npzfcoHl8+azoQV0Pvd8ZLVU2v7bpg1St/xUCI8q41lU0tDKMYvfvsoVaj0m 5loA== 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=bbfFLXYgQgT96KQWpvufycXDySGsaHFmNnIKKD+QAAA=; b=HhzeNBD2xmlS8ALfTfkmLR40FMuL7vfvrjPIihcrBtiqoY4Q6xj/NQX71fF/IhPEPZ izmkJLysRTfptcLvwZFX/BHjL7p9/AakYJbqsqMTgKzQCzdScC1BekmQqalCixSKoCOw PdhlfsHyIUlDDHhiRFIiU/8IJiRX9HfyBu8rsLcK0v1X0n7zkvTxawVJ6gWpVqMk+72I 46LQNCCqhOAAVgbTgElD4id+DhGLBf31zy82bUbuYa6EMoMoGLqdxH3i+0gQd4j6c+tN rHBnn7dSOornGdi16eCbg3nYy5LkRFdelv/PQx0f3pkLjmxjtBv2cAeZb1wnMkVbs8WQ 5BBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=csEEdpOU; 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 i20sor8231693pgj.36.2019.03.11.06.38.22 for (Google Transport Security); Mon, 11 Mar 2019 06:38:22 -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:a65:4608:: with SMTP id v8mr30653224pgq.9.1552311502540; Mon, 11 Mar 2019 06:38:22 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.199]) by smtp.gmail.com with ESMTPSA id s79sm9960397pfa.61.2019.03.11.06.38.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 06:38:22 -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: [PATCH v8 13/15] arm64: dts: allwinner: a64-amarula-relic: Add Techstar TS8550B MIPI-DSI panel Date: Mon, 11 Mar 2019 19:06:35 +0530 Message-Id: <20190311133637.18334-14-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=csEEdpOU; 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: , Amarula A64-Relic board by default bound with Techstar TS8550B MIPI-DSI panel, add support for it. DSI panel connected via board DSI port with, - DLDO2 as VCC supply - DLDO2 as IOVCC supply - DLDO1 as VCC-DSI supply - PD24 gpio for reset pin - PD23 gpio for backlight enable pin Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 6cb2b7f0c817..f85ed0b99942 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -9,6 +9,7 @@ #include "sun50i-a64.dtsi" #include +#include / { model = "Amarula A64-Relic"; @@ -18,6 +19,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 512>; + default-brightness-level = <2>; + enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PD23 */ + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -30,6 +39,30 @@ }; }; +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + panel@0 { + compatible = "techstar,ts8550b", "sitronix,st7701"; + reg = <0>; + VCC-supply = <®_dldo2>; /* VCC-LCD */ + IOVCC-supply = <®_dldo2>; /* VCC-LCD */ + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -72,6 +105,12 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pin>; + status = "okay"; +}; + &r_rsb { status = "okay";