From patchwork Wed May 29 10:56:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 447 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 DB4483F35E for ; Wed, 29 May 2019 12:57:18 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id v125sf1468917pgv.3 for ; Wed, 29 May 2019 03:57:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1559127437; cv=pass; d=google.com; s=arc-20160816; b=NdaaOw6UTan3tTpW+BR5dDURvlrU4gHduRciaiMYkCuixwJIneFjfDNQ1G8/q3yzYa WKRv/O3GzERAD52PMTiuzdyoMiw5fqrPgeBVZAWxW0NAgUCNKAxBQ0GeZDqLVAHQE4ZA 1aNCmFv/lrAz5Wb5z61kEjsLrxRjQ6LpgjaJcoHBzIZBpkP91HpIudR5OgzNCudZPdRr rz1EBI5HI/WxDFK3iq2d8bSSx8sy98pEtAlGMiB8Glc/Xs2KQBxd/bN+nuLAKBijM1lz zGa/wpHYKxMwvGEPEhXuu78suWEYGo63MCVc3WTSKEa9i/WnWxqQ6isl+FTEGPavXVqo Yw6g== 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=BDp3GfXq72/1y+1tA/ZKMtTKZgUPIAufptYdumUNvjM=; b=y8F+jxCHuDhEQYtM7BrWmvq9EmVWu8Zwk0M7uTLZt7q9P6q71BeOeaiQhXMF4PPeDN VbRR5FXUteLPMuNAIlLxv8gvNTve8Bng+JEODcMTcODMrMgQBGdPqq048UC6ZTfMSJ62 C2KZ6pe8PvvQ6JtHynrAtNGfylTElyeEPppteResTyPQ7tdSvwu8o6zpQHebYNf8rDrA syO2Q2y+wPBEShEmAFcxFCY7s8sp0laa4ox+ViA10+9BO9SuJn0/WtfGeMssXI0fKPFn 9OcEeiTSyOTjIfJhf+YTFlZKhIjeRGIgpDVrPg1WFC5kz5OKpJey8mWSX5CNVSA9Bt3P Poew== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VFu9w0hD; 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=BDp3GfXq72/1y+1tA/ZKMtTKZgUPIAufptYdumUNvjM=; b=UTW+PkF6I5mB1WLjRKAW2IAA5jwarW5TI+Wp//BmQmMORNag0jmg7A7B/VAEOa/GNI gac8U23PDthyIZlnnaZFon1UKc2qqMC6n9son1koqandT+n3Gd66IEIbkWz9SObNlyw0 SvAuWj+yJy4ZX1oS+z/Gft7J4vqa7LJURQxUg= 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=BDp3GfXq72/1y+1tA/ZKMtTKZgUPIAufptYdumUNvjM=; b=i1QNGmYPqgv/YLo52dDxcnZxI4jq7nMaEVA/ixYEoxrejxgHMyHpcOy3r1eWs0SlLJ ZYONLHNyY6YWTbzkGxlrV2Ci2b2pbbPvoMUB1hC8EJystsAZM2+ZJlqYDqEApSLDOKab w8YMRxMf5FMiWlsvXEXW82Z1zgqiDyCilS/p+XZA/VrthAQZIoNxptj0qxIN70aRyGXY SHvrSljDJAyaAd9FfANDVvY+7w1LUaonz5of9zyaCVdd134AxBqrsh8ogumPxgsBqcnm aT+fbj8YuU+ltCAhicupIWe7yTs6Owzvfxx9IpM/eYO9MFTFRN9V2a6d26YNT2zJGzpR OJlg== X-Gm-Message-State: APjAAAXkfth/nbaN8sSTE70BCp9Dax8hnqJzVaTpz8bvVQZQBbH6uDPM Ko0Ia8OCN7ZnkcUmU/t3co16lDvm X-Google-Smtp-Source: APXvYqxu8KKG/6GIHKUis8Sq5+qBvhphxx4pRhg2MJRWKsSGzXCQBvTYKmIX384/wvHIXisAB2U5qA== X-Received: by 2002:a63:cc4e:: with SMTP id q14mr134800301pgi.84.1559127437699; Wed, 29 May 2019 03:57:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:828c:: with SMTP id w134ls568188pfd.15.gmail; Wed, 29 May 2019 03:57:17 -0700 (PDT) X-Received: by 2002:a65:52c3:: with SMTP id z3mr84850580pgp.56.1559127437340; Wed, 29 May 2019 03:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559127437; cv=none; d=google.com; s=arc-20160816; b=qhHL+KZ173ktI1EPi5LokbjcBddLGwnAMae6yLMobaJD8Nf5q2wOD8smG7otncjVws sPOGCcYFIdwl8J8QBfa9kd+yipqiKzNRaJRZiccAsnMYUZFcqUTTSwE2xO/9rzJgYlRL ltHTTo4m7IDPVklwQWteAKllBnrj+wwEDfTYGgxeyXrMM1Tbh2filgCx7Pa4wnALTEx6 XLHAFLeF3xRKCPVZa0OSSTW26cB88kVwV74bCXFodNDhUDEmGdjGbqMgDy5XhbC6tKPk hT6JI2GqBMB6r3A5WmztxFXrxLQmKTUbgxena/0Mj6ZAHWUHr49A1IATwwf55dI2HNJL aewg== 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=6DwmkLGpJZpkcPw0XMVVDkf1y0K009QPRSW8hUfXBRY=; b=zcuqbwdX2q+d6UHW5jZImzrRaFGRPz0PcfjQWybnMiKNsPx5Y7pUVDcMIxdpRVRysJ yJohn1UT0obmfPXUWTep9BW3rfXbWK2L//vox9+wuTE8zM8nBu8zRRIpWDnSQ0I4ZM2V tjPPbAKJJRij4P6onJh9prdlUDyAcoocQ4Mw0kqnKYVFQn0tqjO7MzV5Vv5jXWOdUryJ WTkaOLfLA8z6MH3nP1E/HaV3W9IB3icWpU5sNmI1nvmvH9iqVKXTOqjlpEuv8kk9LmfB LdqjQADoqtTOFe83RzcGf6QlEOMn1l7bYd1S1+JnHYy4hjvNnAgSpDbUuwIpvem6A57I LlKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VFu9w0hD; 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 v2sor20519418plo.32.2019.05.29.03.57.17 for (Google Transport Security); Wed, 29 May 2019 03:57:17 -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:a17:902:20eb:: with SMTP id v40mr15879742plg.239.1559127437024; Wed, 29 May 2019 03:57:17 -0700 (PDT) Received: from localhost.localdomain ([49.206.202.218]) by smtp.gmail.com with ESMTPSA id 184sm18974479pfa.48.2019.05.29.03.57.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 03:57:16 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Sergey Suloev , Ryan Pannell , bshah@mykolab.com, Jagan Teki Subject: [DO NOT MERGE] [PATCH v9 8/9] arm64: dts: allwinner: a64-pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel Date: Wed, 29 May 2019 16:26:14 +0530 Message-Id: <20190529105615.14027-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190529105615.14027-1-jagan@amarulasolutions.com> References: <20190529105615.14027-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=VFu9w0hD; 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: , Feiyang FY07024DI26A30-D MIPI_DSI panel is desiged to attach with DSI connector on pine64 boards, enable the same for pine64 LTS. DSI panel connected via board DSI port with, - DLDO1 as VCC-DSI supply - DC1SW as AVDD supply - DLDO2 as DVDD supply - PD24 gpio for reset pin - PH10 gpio for backlight enable pin Tested-by: Merlijn Wajer Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-sopine-baseboard.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts index e6fb9683f213..51b0cf71c3d4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts @@ -46,6 +46,7 @@ /dts-v1/; #include "sun50i-a64-sopine.dtsi" +#include / { model = "SoPine with baseboard"; @@ -61,6 +62,14 @@ stdout-path = "serial0:115200n8"; }; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>; + brightness-levels = <1 2 4 8 16 32 64 128 255>; + default-brightness-level = <8>; + enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */ + }; + hdmi-connector { compatible = "hdmi-connector"; type = "a"; @@ -104,6 +113,24 @@ status = "okay"; }; +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC-DSI */ + status = "okay"; + + panel@0 { + compatible = "feiyang,fy07024di26a30d"; + reg = <0>; + avdd-supply = <®_dc1sw>; /* VCC-LCD */ + dvdd-supply = <®_dldo2>; /* VCC-MIPI */ + reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */ + backlight = <&backlight>; + }; +}; + &ehci0 { status = "okay"; }; @@ -184,6 +211,10 @@ vcc-hdmi-supply = <®_dldo1>; }; +&r_pwm { + status = "okay"; +}; + &sound { simple-audio-card,aux-devs = <&codec_analog>; simple-audio-card,widgets = "Microphone", "Microphone Jack",