From patchwork Mon Mar 11 13:36:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 164 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 432C03F087 for ; Mon, 11 Mar 2019 14:38:30 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id n10sf5846231pgp.21 for ; Mon, 11 Mar 2019 06:38:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1552311509; cv=pass; d=google.com; s=arc-20160816; b=nylU8yglfhl1++nuVJu1EK9SKUVtvY1V9W7DhOBKmGonWnaRr4BNXEx47r+PA3Ui/T B4JazOMRBAT6gAy/23WVTnk9LL69bWX2Qb2G+Tb+xPl5fBAMEFsTc3N9mnFGoGrO/pfD yif5xoTHIT9b2W2L5Rf4eUwcLE3X2wfQkEuV7EiwVG7gTJ6iRtjd70BqOCejMk07seir q1QSYCkWdeNYgQpd8vxX6gEDWv6CHfFfefOqCX0EUI9smSGcUf87Wt3WZuvGPJ4Ud/zM KFf5Rh014MetyvetHxRsSU+Opmgt6HoMzE1O5qPYQB/OW6bwzAqu0lnMN3msgV24xBVI 6Rvw== 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=HmSZdJzIts84NUDBkYYMZ8KVKl92LkHt0yYVCkY4YpE=; b=P0U6Xpc2gZ48f5Hsarz1R+H3pX9hV/r9qNMpifie4nAZVKIISg//5+O+3Iu3OlY5QE 4iuo5osgPEvWLMYPVONZlffLoxZQXx+iUKv1XIT/G23ILbXwM3CM3zNP8YfkxiBImlVX NI+vk3eoSzJFvHWlRSM1/e6F4qoLOcdJvQwNO6Y57nbPlAmCKtieYVNaundrEbxDnSpQ hCVXFR2GBMdcw77LlGwrAJvWiswTMyFqGczHhWreEWlG9JaL9deD/l8mDxUBu1qCbeuL i81Hx3brX26UX/+zkmqoxFEsSrWRBqkSf12D9J7b6fZvO6fjILweqnqx87mNpK/XaYBJ l5qg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bndJ8EPl; 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=HmSZdJzIts84NUDBkYYMZ8KVKl92LkHt0yYVCkY4YpE=; b=b2kLXUAADr/c3NdvD2dbgrqLXeFBTOtOfbg8Gp8y+Zv16eSYNiFC8VbI2HVez2lOVx Xf1/c8goUPY4D+uWI0294Pxs4NtsYKNL4wE+ZGs2bEh7TtOKmgk7DZ/+hO/7pxZmv5D2 GanM6xMh5JlaQirqaAn+zARWJEFcW2ps4896c= 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=HmSZdJzIts84NUDBkYYMZ8KVKl92LkHt0yYVCkY4YpE=; b=YsVCjDmo2kEj8q/KqGJeUH/JKUhmDpUdm7z/jgLrmFsjZp4lGAb4IDEVLz+vWjWBQ1 iwB/jFD8IP91sbcd6s7zotCJHDxeHkiliSGoWebuQ8twBlhnrp188CcAk61XjqRv8eT5 gXc0QiisGX7MgdZ423zsuy7R0Sa6U5X97a2WE2zX5vBmf3Y3xjK96IW5phm0GQI44HKJ uhVl7Yf5pq2iaodJXY/X2fj8FmCfjzyc+wV/qL0RcEYEvMpYYTF9bQfzU/lk7r0bbwFu qgTjnJIHv+sWfhvKA8SVvwO3VXxKsYRF0QsjLLBYnFrVwpp8k8bmb8dpxIuvxrQWmJgM GmDw== X-Gm-Message-State: APjAAAWR0yw/IdJ79tDU5T6Atyfl1jZGfCU+OMM8HcSavat+AHSTaSAH C3nx2x532SdxjUkYoKAuFe3hgfY9 X-Google-Smtp-Source: APXvYqxDTgb2SEXKHjvu1qCnuJ2Gsc+dgz/nxXnOo2zu2eyAFsKSnnPLhwlGzvQsXIyN5GULDgxDng== X-Received: by 2002:a17:902:7205:: with SMTP id ba5mr10341818plb.117.1552311509092; Mon, 11 Mar 2019 06:38:29 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5788:: with SMTP id i8ls7743412pfj.0.gmail; Mon, 11 Mar 2019 06:38:28 -0700 (PDT) X-Received: by 2002:a63:7c07:: with SMTP id x7mr30414134pgc.284.1552311508727; Mon, 11 Mar 2019 06:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552311508; cv=none; d=google.com; s=arc-20160816; b=RXU70J2bVSKGNMrFvaoJnJU77ttOARt+n0+IR7K6H9V2J+c55My2V4i4MhkDB4csWP 9vjqbVTlszZiN0satzdSpJM+KdfVr5LwcU/WQxfyvfKzogN6fq4yP7wbml7irl1Pbevj qHH/3fmwsrap/LUHaO7LAfKIo/o80I2eWR2zMU+kkTAWAAWwB78N+CPQGXUffjetbJUA gvQKMDOFDNWrZS7Fb4s1XElRkaRcBgtsQtYfCRCrCt0vP87jX7mbyxZwdcNwh1OvzfOk xbAP1nEvalgL6f4ZCPfuhUoNspPnecEIQJ8uKHlJL6bMkt/2RXKGvrrbIsZ+r3n+s0rr j14Q== 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=9PxoL5qRhhi9/8I/MxsRIxkuMzLQLSJqsW5+iDKE8rA=; b=wJ6N3ojYW/jOsETsbvDycrth9k6YeBsINUsWJPHlqYRGHrRI0KRMuG9iFxkp3k0PO5 gZyJwipJOlvmTF5JkpV63ACRnQ+gJQrv4w2HINkA8041+ptisOzdhWAw/6gJgfDDdgqJ 0e3PE1EndwxxRXS/FL03+51hw2Rqopj5zZ96JEXICtDqDe+oc7nZ6pieMpVNUyzluhfO 9emsw9ani9AXXl3xPrEwSnM5dUHDN0yFYWKrHHuGuQVJxSLodb39iYmBdJRO5U+RQwtO KExPaoG6wkNQTtLtbG5obzyw1Knep0snwbpx5f4Fv4rWKC9mWHrZPiA4BHrE5cb5WEoG iO3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bndJ8EPl; 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 2sor8410279pgc.69.2019.03.11.06.38.28 for (Google Transport Security); Mon, 11 Mar 2019 06:38:28 -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:5c41:: with SMTP id v1mr24606300pgr.404.1552311508420; Mon, 11 Mar 2019 06:38:28 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.199]) by smtp.gmail.com with ESMTPSA id s79sm9960397pfa.61.2019.03.11.06.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Mar 2019 06:38:27 -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 14/15] arm64: dts: allwinner: a64-pine64-lts: Enable Feiyang FY07024DI26A30-D DSI panel Date: Mon, 11 Mar 2019 19:06:36 +0530 Message-Id: <20190311133637.18334-15-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=bndJ8EPl; 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, - DC1SW as AVDD supply - DLDO2 as DVDD supply - DLDO1 as VCC-DSI supply - PD24 gpio for reset pin - PH10 gpio for backlight enable pin Signed-off-by: Jagan Teki Tested-by: Merlijn Wajer --- .../dts/allwinner/sun50i-a64-pine64-lts.dts | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts index 72d6961dc312..341b1c035604 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts @@ -5,9 +5,48 @@ */ #include "sun50i-a64-sopine-baseboard.dts" +#include / { model = "Pine64 LTS"; compatible = "pine64,pine64-lts", "allwinner,sun50i-r18", "allwinner,sun50i-a64"; + + 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 = <8>; + enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */ + }; +}; + +&de { + status = "okay"; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */ + #address-cells = <1>; + #size-cells = <0>; + 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>; + }; +}; + +&r_pwm { + pinctrl-names = "default"; + pinctrl-0 = <&r_pwm_pin>; + status = "okay"; };