From patchwork Tue May 7 13:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10932929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 53607912 for ; Tue, 7 May 2019 13:07:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42F34285A9 for ; Tue, 7 May 2019 13:07:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 364942875C; Tue, 7 May 2019 13:07:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D3893285A9 for ; Tue, 7 May 2019 13:07:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HmFYRL784zXRC3nZ6mp0jNz/LnZ1l7RPofxzfkEbxgw=; b=om6UpS1n1COkyD Pp5gVsds3kANah6aO1Ii4TLPVFFaDqzJLyMKhGZk5I4yKeF7v4tflWHYO2eZkFFM7kxCNKKGvZcxd hX8CL8rPdpsV17n3YWX3B+v3KxtSVV8qHXX+i5EKHoOr9UNAQuJfXU8IQ+8eAO4FW4Cy4vCXiTcTs ekEoo6YNTAI1RfoxIIJJxbE6Obllif9yOFoSgJN9rp1YuteIHM2TBG5U3lcdcTaiXFJubw109n3t9 K5QZqbdPEAi6HNtFUzZj0FhcMsIftla5rEjv8qb65LiB9qHy9zjt6FLVsdIQP7DmQT7iomOgG6uEj Ru4Ps5xHUj2Wl6pCij3Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzor-0000go-3b; Tue, 07 May 2019 13:07:41 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzog-0000YO-AC for linux-rockchip@lists.infradead.org; Tue, 07 May 2019 13:07:34 +0000 Received: by mail-pl1-x641.google.com with SMTP id bi2so8165123plb.13 for ; Tue, 07 May 2019 06:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zVEShq2r+HH1dqUKjsY/tIvQnR4fC4lx62sAnv2cszQ=; b=jm+TvJfNFt6JoZDpIcsdQYCpeFYqOblkOGI08ywsGy57x+8/bmkSF4Jiva803NbPKE s7m5WLd6gfL1+tbGQjSyYmf3uBgqOudNS4xmd/KNNKzha6oI95GWuIDU4syC1mQ+66W8 lrUJaarBqXPhwdumssK7oXfiCQKiWLW3S0Kas= 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:mime-version :content-transfer-encoding; bh=zVEShq2r+HH1dqUKjsY/tIvQnR4fC4lx62sAnv2cszQ=; b=MOg74pVQZ4eFrkdwEeBGQoR75Qebhl3pgZEcIwJlmJahdSv8NR2pL2GsrHWkIf5FHX vZFZQ/yDx+iL5W4D6TzvgWJPUuZfWUp/DA7TdgajmMvpwkXt1OIKHBbjHMr4Bkn5wt7G QBs/LPGVWkQHV0us504xvShUr3moejk9oAaEiASpM5UCVyaOMs7/A+Jo64FLGtXk3pKa naekhGNswSXscZL6odC10sxyrNkIXjWCJKPA++jnkeA8yR4cQ5IW1k/eXIwdRR71wLTu zTIT0U9ZwSLW4TN19Ab3FotixVe9727MBShJFBvT59SBKo/c3i4aBAjSDhzby+M/hDcR 3QVg== X-Gm-Message-State: APjAAAUOPLmzINVGNc9qQrf6QJd8JoFEDgAcszfIQATpnGG+fcFIWtq2 JOqMmdu5SqHCdT7oZXYwOv6orQ== X-Google-Smtp-Source: APXvYqxTNLStKgWqhFuYnzLAEpQKZaTXrhsWJy7MmuW5PcblTQp6f4JovNxg5jyNfUeBBZ2VP2/bHQ== X-Received: by 2002:a17:902:2a:: with SMTP id 39mr39639547pla.64.1557234449180; Tue, 07 May 2019 06:07:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:28 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH v2 1/3] dt-bindings: display: Document FriendlyELEC HD702E LCD panel Date: Tue, 7 May 2019 18:37:06 +0530 Message-Id: <20190507130708.11255-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060730_359618_878769FB X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 resolution. It has built in Goodix, GT9271 captive touchscreen with backlight adjustable via PWM. Add dt-bindings documentation for it. Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v2: - separate binding patch from driver - Add simple-panel compatible as fallback - Add text info about simple-panel bindings .../display/panel/friendlyarm,hd702e.txt | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt diff --git a/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt b/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt new file mode 100644 index 000000000000..6c9156fc3478 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/friendlyarm,hd702e.txt @@ -0,0 +1,32 @@ +FriendlyELEC HD702E 800x1280 LCD panel + +HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 +resolution. It has built in Goodix, GT9271 captive touchscreen +with backlight adjustable via PWM. + +Required properties: +- compatible: should be "friendlyarm,hd702e" +- power-supply: regulator to provide the supply voltage + +Optional properties: +- backlight: phandle of the backlight device attached to the panel + +Optional nodes: +- Video port for LCD panel input. + +This binding is compatible with the simple-panel binding, which is specified +in simple-panel.txt in this directory. + +Example: + + panel { + compatible ="friendlyarm,hd702e", "simple-panel"; + backlight = <&backlight>; + power-supply = <&vcc3v3_sys>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; From patchwork Tue May 7 13:07:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10932931 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF7AB112C for ; Tue, 7 May 2019 13:07:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF2B5285A9 for ; Tue, 7 May 2019 13:07:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D26AC2875C; Tue, 7 May 2019 13:07:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6A5C9285A9 for ; Tue, 7 May 2019 13:07:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Vxn3999EA23PFVahbbnpYPAtOKUh6tMvuECnZD+x8W0=; b=od4ZOdeNQz3HiT 2nNSsr3rHgWIbmxwPMDocUPwFDTcKSOXFHE/1+wCJb2N9b7DOM8YCM4t3cYd6oOmTBQDwBuPgPbH4 ne6IAj4XWv91S9bbKElQ/PlRzItz272Ib6ABHzI8OV8A8XHR/pFyXnVYkW8H44JxhrJv8yKZvYMLF uBgGqQxeoDoFTIOTBPlxHiE6YaKK/otFgxEID7rVrW/iOnIRGl+HY1JSHA+RSqVSRQ356gotdvsu0 CCtLI0OmQBkMlabkcXnxdh0Aa8RH0TP1q7hF1yQ3gEyKdnkLDmyjfPIEohRNii4karLEsAlSzAlvJ zV2O7yxHsaNVPsDqXy+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzos-0000ih-CP; Tue, 07 May 2019 13:07:42 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzol-0000Zb-Sd for linux-rockchip@lists.infradead.org; Tue, 07 May 2019 13:07:38 +0000 Received: by mail-pg1-x543.google.com with SMTP id z16so8279709pgv.11 for ; Tue, 07 May 2019 06:07:35 -0700 (PDT) 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; bh=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=edyEPa62/tqOK5yYOgIKFbrNm5HJFRdrthDyG8k085PwYA7rMARCaKhtyT0spUv1lZ z80r7mktww84mBSrnXqBVlE03aT9WMA4HAZ4mqg/i8fZ1NPa02rZ+dxElXpGI3svX4yK Ag+W8uF1vfH5vDlvlyHmywP0gZ4a0qKxq5iBM= 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; bh=oYIcefqUbtjO6efG05qDKL3HAKUE9dWz26q5t6PWQVk=; b=VnkSuJSFGCXy8MA52naASdGHbFS/iiB8MIh+evvm6GYdEF8RnTYcvuyAtsFJbF3W1s TG0wn+42Tt8KHj4MnDCtIU1ABULgpqsvEaLzV49LMjydqO0c2JbJGmr6bItEfQ2utILD +uwBJt+AM11knhBbKqfJy4HAwGtxOu5MqExOIYM9HUt6xijnujANQNWVIVR+abvyVBYR TigNl6QFzgqCkQNDwxtopBTQB7jOio52xLM9pFcNFkFta57I4cdqM85FgUJGXAKCkkna ec/Ng02NAawPGvvPI8OjWTLIqSvjWN8DbO2vXN+354wfYTQCC1qrLLXD0uiwpAsWME2B WXhg== X-Gm-Message-State: APjAAAVRst1Zu1rLcoREq5xttaHnWIkTvq7DpVQoxrwL+0Pj7Da6j/+h +YGbCJwQlVj4fki4VaBTA/0Awg== X-Google-Smtp-Source: APXvYqy2CKkQ9wX0prpKV/pt24cFsadXZXvMcaev7EfdOiJeDL66Kfub6iLEmQkBCbHk4BdoBKJpNg== X-Received: by 2002:a63:fb56:: with SMTP id w22mr38503539pgj.354.1557234454717; Tue, 07 May 2019 06:07:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:33 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH v2 2/3] drm/panel: simple: Add FriendlyELEC HD702E 800x1280 LCD panel Date: Tue, 7 May 2019 18:37:07 +0530 Message-Id: <20190507130708.11255-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507130708.11255-1-jagan@amarulasolutions.com> References: <20190507130708.11255-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060736_147936_27D890AB X-CRM114-Status: GOOD ( 11.32 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP HD702E lcd is FriendlyELEC developed eDP LCD panel with 800x1280 resolution. It has built in Goodix, GT9271 captive touchscreen with backlight adjustable via PWM. Add support for it. Cc: Thierry Reding Cc: Sam Ravnborg Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Reviewed-by: Rob Herring Signed-off-by: Jagan Teki --- Changes for v2: - separate it from binding patch - sort the match id and compatible drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 9e8218f6a3f2..93274e270663 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1184,6 +1184,29 @@ static const struct panel_desc foxlink_fl500wvr00_a0t = { .bus_format = MEDIA_BUS_FMT_RGB888_1X24, }; +static const struct drm_display_mode friendlyarm_hd702e_mode = { + .clock = 67185, + .hdisplay = 800, + .hsync_start = 800 + 20, + .hsync_end = 800 + 20 + 24, + .htotal = 800 + 20 + 24 + 20, + .vdisplay = 1280, + .vsync_start = 1280 + 4, + .vsync_end = 1280 + 4 + 8, + .vtotal = 1280 + 4 + 8 + 4, + .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + +static const struct panel_desc friendlyarm_hd702e = { + .modes = &friendlyarm_hd702e_mode, + .num_modes = 1, + .size = { + .width = 94, + .height = 151, + }, +}; + static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .clock = 9000, .hdisplay = 480, @@ -2637,6 +2660,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "foxlink,fl500wvr00-a0t", .data = &foxlink_fl500wvr00_a0t, + }, { + .compatible = "friendlyarm,hd702e", + .data = &friendlyarm_hd702e, }, { .compatible = "giantplus,gpg482739qs5", .data = &giantplus_gpg482739qs5 From patchwork Tue May 7 13:07:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10932935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2CC3912 for ; Tue, 7 May 2019 13:08:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2981285A9 for ; Tue, 7 May 2019 13:08:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B66152875C; Tue, 7 May 2019 13:08:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 308E0285A9 for ; Tue, 7 May 2019 13:08:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2Vb9p+JcE0ipKLuQoYCLHE5cKVRhUsHZ6OSNPj7jdNM=; b=pT0iLT7tev+xhx WHYsggaEWEdu1yUt0YhLRkedEyU6k+1JJQONDiGhMPVmJrU6Ju3dFKFTxSHhop07j2AVjCJoONMJd ipCu2kHJvGTQfS3pUMS3hs6aDPxX7uUGLa3SFCtBdJ0oDMuxOsfF6e8W3pMdFLkteX3jF+MUXsYvJ 6fPtefGyXSPp/+cxjvrR/lFjflbZgv2FA6aGSJOX9BNoE8cqGzpsxRgJfZALc2Z/D8EDSlgXpyrI1 z3cFihIFimSPViUxEpWNWDB79UsNTFLVe/YCD75HFmhEPcmhKprFl/urBreKxzM6YnbFifYZr91p0 6Qg1vukJKNEhEd4x4JeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzp4-00010L-Mf; Tue, 07 May 2019 13:07:54 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hNzoq-0000fw-F1 for linux-rockchip@lists.infradead.org; Tue, 07 May 2019 13:07:45 +0000 Received: by mail-pg1-x543.google.com with SMTP id d31so8290298pgl.7 for ; Tue, 07 May 2019 06:07:40 -0700 (PDT) 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; bh=rmbbR+nEPRU8PAUrqs/Xp1Cybc4IWp6SjLWLlkBHpm0=; b=MQeNgF/ztfyfJPkOLp8v44evWaHK6oQNiqkbYk6h5b2kjyPiu6a9LJ5OzAeVCfV1bv eXov666QPajT8xgYjzaUgoDgyOvsb27oueOSiVnHWAqcG9Q6V47EeBKCQryKWP53/JtH G8SChDw3Fr+NIFF9Q/ph7KdV8veIMSpgTWz04= 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; bh=rmbbR+nEPRU8PAUrqs/Xp1Cybc4IWp6SjLWLlkBHpm0=; b=EuKqUN1b2KFdJPm4n2CHiRx7SuRDJQq9Gl3fQXdYHrf+++w+2toEaRO3C7Efxf1IKV CzdhV4XhS6Q64ACGt9YzzFsMAbl74fd9KnlXGKUK81DybOB4lbt/OaME0Mk0pwBBNbYI GL2gErn1fgRaePgkqFOZHbRD7VIH6XKaaK7lOJytvHUtqjKyN3h7ImBpmTHpn+SRVXj5 25QM/elLMG6bsCSNW9pf5TDTqupCj6SSYg8u9uUNna1WU1W/Lj/BrZRruqx3vDmFGijv DbcnwAnWv38TgVbQQnQBjozNrVfJ27foRk6Ji/IHeQaEfR+fx7IT5dHJxMo8UH542fFP 6MzQ== X-Gm-Message-State: APjAAAU19i48+XU5YpTEryZmpSBio98tNyvpfPggg9GsZ/fucD64Hb6t DAEtIZQhVGYqPJFQv0gSB8Ep+w== X-Google-Smtp-Source: APXvYqxLeInLf88kjLthLdkTwo1/yWUp+xFEYrpTiTrZa+Gcgm+ciJnRApUuxQzvX/3b2mjsA5Dy5Q== X-Received: by 2002:aa7:92c4:: with SMTP id k4mr42376765pfa.183.1557234459930; Tue, 07 May 2019 06:07:39 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:3682:cdb6:452:ecda:bdfa:452e]) by smtp.gmail.com with ESMTPSA id w190sm21889823pfb.101.2019.05.07.06.07.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 06:07:39 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Mark Rutland Subject: [DO NOT MERGE] [PATCH v2 3/3] arm64: rockchip: rk3399: nanopc-t4: Enable FriendlyELEC HD702E eDP panel Date: Tue, 7 May 2019 18:37:08 +0530 Message-Id: <20190507130708.11255-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190507130708.11255-1-jagan@amarulasolutions.com> References: <20190507130708.11255-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190507_060740_941012_17A67D2C X-CRM114-Status: UNSURE ( 9.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, David Airlie , Sam Ravnborg , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Thierry Reding , Jagan Teki , Daniel Vetter , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP FriendlyELEC HD702E is one of optional LCD panel for NanoPC T4 eDP interface. It features 800x1280 resolutions, with built in GT9271 captive touchscreen and adjustable backlight via PWM. eDP panel connections are: - VCC3V3_SYS: 3.3V panel power supply - GPIO4_C2: PWM0_BL pin - GPIO4_D5_LCD_BL_EN: Backlight enable pin - VCC12V0_SYS: 12V backlight power supply - Touchscreen connected via I2C4 - GPIO1_C4_TP_INT: touchscreen interrupt pin - GPIO1_B5_TP_RST: touchscreen reset pin Signed-off-by: Jagan Teki --- Changes for v2: - use force-hpd and delete-property for edp - use generic backlight brightness - add simple-panel fallback compatible .../boot/dts/rockchip/rk3399-nanopc-t4.dts | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts index 931c3dbf1b7d..4cacd09658dc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-nanopc-t4.dts @@ -46,6 +46,14 @@ }; }; + backlight: backlight { + compatible = "pwm-backlight"; + enable-gpios = <&gpio4 RK_PD5 GPIO_ACTIVE_HIGH>; /* GPIO4_D5_LCD_BL_EN */ + pwms = <&pwm0 0 25000 0>; + power-supply = <&vcc12v0_sys>; + status = "okay"; + }; + ir-receiver { compatible = "gpio-ir-receiver"; gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_LOW>; @@ -64,6 +72,18 @@ fan-supply = <&vcc12v0_sys>; pwms = <&pwm1 0 50000 0>; }; + + panel { + compatible ="friendlyarm,hd702e", "simple-panel"; + backlight = <&backlight>; + power-supply = <&vcc3v3_sys>; + + port { + panel_in_edp: endpoint { + remote-endpoint = <&edp_out_panel>; + }; + }; + }; }; &cpu_thermal { @@ -94,6 +114,25 @@ }; }; +&edp { + status = "okay"; + force-hpd; + /delete-property/ pinctrl-0; + + ports { + edp_out: port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + edp_out_panel: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_in_edp>; + }; + }; + }; +}; + &gpu_thermal { trips { gpu_warm: gpu_warm { @@ -130,6 +169,17 @@ }; }; +&i2c4 { + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + interrupt-parent = <&gpio1>; + interrupts = ; + irq-gpio = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>; /* GPIO1_C4_TP_INT */ + reset-gpio = <&gpio1 RK_PB5 GPIO_ACTIVE_LOW>; /* GPIO1_B5_TP_RST */ + }; +}; + &sdhci { mmc-hs400-1_8v; mmc-hs400-enhanced-strobe;