From patchwork Thu Apr 2 11:41:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1065 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EFCB63F0D3 for ; Thu, 2 Apr 2020 13:41:59 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id d2sf5565218pje.1 for ; Thu, 02 Apr 2020 04:41:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585827718; cv=pass; d=google.com; s=arc-20160816; b=gG72pEBFghnMS0b9bowgioQBd2n72Wz05VMD2w+p1/1D3kFrtY1bmIkps8SDFYft+m 7d+9AdfLZGkYDTfkVju71qrezvpIiUd/ceJV/Lk0WWw8QEn5Ht4PJgkOv8nJ3kkVetzv 4zqCl0R8GXfu00nooE9JvuY79jeRlquFAdRJNjImub90myMc1Eebf09ANCvVwVtUvJCf +ZyvslGo/+at9uotzoMunt2R/zn4kbFnNX8QGPkYYFjYcBcdTVBnn4MVk/14qzvYNun2 NYFKxW4GIv2Iejzr00w+gkelN7vsiboLNW0Or+3jXFAaLndHHVFY6T28ivW0FTA9LJii vgUA== 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:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:dkim-signature; bh=sY2Uwap6VoaGtzb/RJ06Y7SiovfBagvtaU/oA7dfMfQ=; b=cfRPurEH163XFlZ27iu/0zGWgfRn/Te36xehXU00V6cjkkISQDxW/BtQJs3Juq/FnJ ShtdDRgu145DM8DcqBlTYBoRz5mtNMv8m2+J8/Dw29ThnhH7bJRL3s2dIVHagOo7caX5 Bg0Ge7abjmBb1iVMYx/qDrWEHk7rVPOPb9TCRDLdGPLCThKC8KqYPJHXsvDQfUHJMLH3 ZybKRqxY9+1F4EHMcmJkZHmC2k0UPfA9ukI/Hj0Xq6KzTdiUrwTQopKuau3LiAsu/zbS TXk6pK6xjoSYgt6v9/xOInFcKiQvIpcX+IgHOFm8Md9Oi8qAkGqAUsES5EyHzxT98bp4 Qffw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nB6TM8G5; 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=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sY2Uwap6VoaGtzb/RJ06Y7SiovfBagvtaU/oA7dfMfQ=; b=UZ49EaHjAGjHHZJ3iIS/Yq5G9vfFpvKb5OampmNLrkT+sFZe5Lti6ojtQnxTUoLWmS DskpfnTS6JKjlIkVnPT/XTKMTRUF4/R8FwctCgTsGWg8B8Z7ZavKKo/ZrL8zbfZuP/S3 2RCfchZDWhNZ/BA/W9faVGxn7Pmp9ihgWvXp0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:to:cc:subject:date:message-id :in-reply-to:references: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=sY2Uwap6VoaGtzb/RJ06Y7SiovfBagvtaU/oA7dfMfQ=; b=agEbc4IC2Ws4bxZDtHgWQMUQu/KpW2fYG/3iclIaAOcLKsD0TqTYjVe3E8orw53VAt W37HUeDfRLoDNdcW0XSICQZVYGpRGj6pVW9vHVew+NWGfxtK21sXgvyAWvLY0rkRZS5O o5i+1wiX87HZgbL8cj+mllvdXW1ra4Yq7F1hehknnpmeT6vf9t/g+wUlApns/Sc5WGhr di0xb/IESMMMRjZnL5y7Y/Tl8YDG5FbhWMRpte4aeeWASBsnpUJsPWmj8I52YVECdj3H 6g6Qq7DPpAjvezpZhoeeiWUBTtg8Fd3YqyN7LEf3D5+qYazUqi87QHK+kN1iiyN5uSZy Nxcg== X-Gm-Message-State: AGi0PubL2jppRHk1GOR4VvXLrpVfK4SYJ6fZJG7tjD0P2ihj0XYhNPaG gnfxHK7gVpIsa9jSe0XJQE2mwDXG X-Google-Smtp-Source: APiQypIn4+lTUQ3nZKnf2Kz/GWH6im/rAyFMLKYPid8RpbJPdLxHXiQtxPYsFmOJjIy7lOVf0fmM0Q== X-Received: by 2002:a63:2057:: with SMTP id r23mr3024751pgm.232.1585827718752; Thu, 02 Apr 2020 04:41:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:fb01:: with SMTP id o1ls2321679pgh.3.gmail; Thu, 02 Apr 2020 04:41:58 -0700 (PDT) X-Received: by 2002:a63:1c1:: with SMTP id 184mr3072872pgb.203.1585827718147; Thu, 02 Apr 2020 04:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585827718; cv=none; d=google.com; s=arc-20160816; b=t9OoJZxiX6RxBYs6qYOt89cx7UVqQ1mCFeOa36v1LWZ931zUBNLVtR6SNIccq4HUld R2nOE3qNuTK4lLULK/IHG1uDCRBoqNN6SE6YPEthsIqIRJJNN7qEBEFzm2UHjfEubQ0k k3/lY+WfeRZGbseT9tx3atO5wrsTJleS7FMthUsuO3OijoOwfEx+pFxk3hoNIx0Q5EDb kCbRJZjvL1akGRkAywjK1gVSMGW1YW96upeWQfiphXiZbvvBVSQM/Mbm3slbkZh92qih 1zu/4NHy9I7pkbXH3Id65heQ+r9pU+Kb2Uwr+nToHw9maaZaCH4sTiZ+djCz3PuJc6jn 6Hqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oIKi2o05B3Z9cSU1NF9xH472HBvt4fwkMM8ABMXFROs=; b=geGH6+5HGrD5ZD9ZBbZOHY7vDtlmfuyqaijj7Ik4+tj5b3qLagz9q92n1TlAkQIZfn Px1RJk3/iDTEEW/fZ6lFP1y8X/ECUL9tOXPIJ8qNeqWoomnaHyAqYfhlkB4qbHAqB+3O o4UIqUAdid7ulQ8Y5G4Gydn+bqnnDkNDXg1lij+6kbxRt9VQEoFeTqgpLQ5/cYUKl/9i 6kJUmC6pwCBuR4iYZUhl1AEEJABAn4mynyJ49iMnvB+KDSJjVt2ga6P1ucm9WIB9/MzH prqhZ7Mfx/1uXTkiQLjlB+vBHagSwcTomGFeMEfcf2c+MMaGBdiLGan2nrk9d1meG5Q/ UE4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nB6TM8G5; 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 g21sor6213905pfb.52.2020.04.02.04.41.58 for (Google Transport Security); Thu, 02 Apr 2020 04:41:58 -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:a63:cb4a:: with SMTP id m10mr3060711pgi.101.1585827717799; Thu, 02 Apr 2020 04:41:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:3532:519d:ba6d:25e1]) by smtp.gmail.com with ESMTPSA id i4sm3618107pjg.4.2020.04.02.04.41.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 04:41:57 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: Mark Kettenis , sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v3 5/5] video: rockchip: Support 4K resolution for rk3399, HDMI Date: Thu, 2 Apr 2020 17:11:25 +0530 Message-Id: <20200402114125.2501-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200402114125.2501-1-jagan@amarulasolutions.com> References: <20200402114125.2501-1-jagan@amarulasolutions.com> X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nB6TM8G5; 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: , The default resolution for rockchip display is 1920x1080 which failed to work on 4K HDMI out displays on rk3399. So, mark the default resolution as 3480x2160 for rk3399 HDMI out. This would work all the hdmi display resolutions till 4K. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- Changes for v3: - new patch drivers/video/rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/rockchip/Kconfig b/drivers/video/rockchip/Kconfig index 10182d0b66..cfd774ead6 100644 --- a/drivers/video/rockchip/Kconfig +++ b/drivers/video/rockchip/Kconfig @@ -22,6 +22,7 @@ menuconfig VIDEO_ROCKCHIP config VIDEO_ROCKCHIP_MAX_XRES int "Maximum horizontal resolution (for memory allocation purposes)" depends on VIDEO_ROCKCHIP + default 3480 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI default 1920 help The maximum horizontal resolution to support for the framebuffer. @@ -31,6 +32,7 @@ config VIDEO_ROCKCHIP_MAX_XRES config VIDEO_ROCKCHIP_MAX_YRES int "Maximum vertical resolution (for memory allocation purposes)" depends on VIDEO_ROCKCHIP + default 2160 if ROCKCHIP_RK3399 && DISPLAY_ROCKCHIP_HDMI default 1080 help The maximum vertical resolution to support for the framebuffer.