From patchwork Mon Mar 30 18:16:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1059 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6D2823F03F for ; Mon, 30 Mar 2020 20:16:42 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id y21sf16021830pjn.5 for ; Mon, 30 Mar 2020 11:16:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592201; cv=pass; d=google.com; s=arc-20160816; b=P7peNq4M0yoFkumk8GDeCC8Zsz1jUKIsCoZHex9q7rygVr95xlP8vwdJDHERaKgNiX dFRN5/wOshFRXyqeCogGFEWSJXrpdXm3TLXe/QdxjTTQcPwYCein2buWFAVyqvnJcQcy U271e9hxxUpLBsJ/px06PJQdVSxIoiTM1MKRCUHV2zLvoWeQoX6Xq56+FLgQHJy/kNiV pfvhp40oQTn6mzLf9lpVo6EzJzRX9Ro1CNwyksZH16hsUEw9HiqymMxIIB6QY+P+Xsep bQflUFWLjAkIhSY+eIJPeJWVs/N9v8SuVaHaj6LZt6j/3kJeHKwaWy5gnoHlSkzefYt1 4vXQ== 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=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=l4tCW7yIdb0wcZNzouoXyRqE6jjQrNTzqjOWaSpXrUQaeE25l5S2ay/FJQ2dpHaPAC 5x8yWxDu/2b0WdWUNQvoeeRHNmpfwXhDMSMc+ER/g94jzx/tSJOy6kWxS/KgtNNyTgii XNVn4UHMNK7sxF73RtSbLE7Riw44JjotoEHj8ENKdXjPyEHpNAUxkz+NzaHU2+S0/h8y go2U/OgSYUoqYUpE0cTPDa3nFkVLOHTT6dumB8lJoPFOrINSPsZ5jOyNwPtiVAg2QqEL rIDGQ8wRvP8BRZY34ITruc8mu1ktmgJ1C8LHH4Eo15O8/yXyIRJXIHs+zeC7+tDdK1lC aC6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=V9kVaSFL0NkhyPXveoNVA9+IYu7HlH3RxP4xoSvTBdx44X2emrHUQ32y0yz2i6tfHR svIfa3T1bhORZuu1WDo5OX5Pxok0Zc52U6SjIaZDd0fHqpOFfFJzxgFdZRb9lvMWrJXZ Mfud/xSIbvMjzZgY91c+iY3PCpvv1vZGYmrt4= 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=2KfulCqo5MzpeR5JXxWjX6Rm9m8Px2dsPKY7RHpj2FE=; b=mR/7VYQ9Frh3IPx0vkZtstNt88y6p2jnSSTOb1CotaS3y0lJgRdxPSRVXEbwfdRiQG ysaYt5kAOktIXqsGDa4eizsFaZjt6VQQGU3QCsvWJn4HFtZDsLzSrnmJOWNpumGmitjg dx7qZzPLeizE9ik+DOlsCnNR9Uw5sMMo6dA1H2bdVgRPGK5qYHXJTOXcEDzbOY9AWwXJ h1z/9yT9so4Ict5r2OJM9s4j252IPQN1RM7+ywLY8QGnDisDKX8YSyB0fVX2GCQBgjq+ fH9DN1LPHlAvTt7zyKh0xVS56tf36QzVX2+X2gSXTuQRt4TjI//5WMgewG+1sWeaaeMa YGGg== X-Gm-Message-State: AGi0PuY6/HaVYmk6+/2TIVbdOiKFMCXZNKBH2Qfaks6W99WxJh6QLhLc kuZ79ZoIDsTk/9LMx0bqhMlN/Re+ X-Google-Smtp-Source: APiQypLiuwOXEkEGBDnZdAvwQzxRT7hEIATaJIApg0rQLCu6rBGwJjECnAZ1qVRyKUWm4U6QUmDwuQ== X-Received: by 2002:a17:902:d909:: with SMTP id c9mr350501plz.6.1585592201198; Mon, 30 Mar 2020 11:16:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:332a:: with SMTP id m39ls332565pjb.2.gmail; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) X-Received: by 2002:a17:902:aa4c:: with SMTP id c12mr14338751plr.168.1585592200648; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592200; cv=none; d=google.com; s=arc-20160816; b=jYPVkwpqO4YpOcNHD+UQhBd3k5nxqX82iqMfcpiVB2rHFayC/l6xRlSTlt6Nd6dwsx wzHPwW0t2maEyOVjOK94GLsKPKnE9h+/7L8R0rCGAROXMjt75A2l1EqvYzH+P1rGI0op Azbjh4mRjLc4HcCrUiC+/tdrQwPeIUMLlooD8VohvR9vRb+vD5WOeLefoAjHjv5P1U7w c7PACZkXc5IG6WuAwTMrjzlhgbcBZxe3EYRnWJyxhZ7PaUOoOAdqrV2Ek9/joP7UjyPc ziKE4qRM9bCbOP8pqGAnRxUKuy2ElLkAPMTLPkNMy1wphmsF9MTgbtSkoxSWVTqnlUBb aclw== 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=mbP8yTk1wDXX6Om+l/BmnhYz0CyI1FvoE9vWahYLyqA=; b=LxsCN2h/e0vgJ0mAQpwcj/FF9IW7rGXfxPqJLrSfONBHhhHdOKwS/P/PdxS3cU9DB6 aNh9aCZ9XBp8A3zLpVwzPfhd9PJ6kKCpyo1E+ZIdDvkPM9qJhUp11VPNqxpEZludpd0V clNxOmeMlXoocN/5pHONvqxttpkjggoE8HCJ7gOSCkfq8pDil/5O/lf3wehC4n1FyXYU 9DWEMfXg8bDZ8oYyCSOUOTBuaHVeewLhLlTR8Pl5xSSOt3/R7JSASXud3w3zI5W+QfIC gF0tiDaXmvc3EerduQZwEo2QEXLcZjELxL6jJvgvHdXR7D23+uEEKODPtNAF9v2EIQsO XnnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id v15sor466337pju.34.2020.03.30.11.16.40 for (Google Transport Security); Mon, 30 Mar 2020 11:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:c583:: with SMTP id l3mr713589pjt.84.1585592200261; Mon, 30 Mar 2020 11:16:40 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b95e:3742:c972:389e]) by smtp.gmail.com with ESMTPSA id p7sm207452pjp.1.2020.03.30.11.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:39 -0700 (PDT) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich , Anatolij Gustschin Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI Date: Mon, 30 Mar 2020 23:46:13 +0530 Message-Id: <20200330181613.29462-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200330181613.29462-1-jagan@amarulasolutions.com> References: <20200330181613.29462-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=G5Jb1WTO; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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: , Enable config options and console setting to respective rk3399 board for HDMI output. Boards supported and tested on this patch are: - NanoPc T4 - NanoPi M4 - NanoPi Neo4 - ROC-RK3399-PC Signed-off-by: Jagan Teki --- Changes for v2: - use usbkbd in stdin - enable USB_KEYBOARD configs/nanopc-t4-rk3399_defconfig | 7 +++++++ configs/nanopi-m4-rk3399_defconfig | 7 +++++++ configs/nanopi-neo4-rk3399_defconfig | 7 +++++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ include/configs/evb_rk3399.h | 5 +++++ 5 files changed, 32 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index 9ea9b11574..607a00dbf7 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-m4-rk3399_defconfig b/configs/nanopi-m4-rk3399_defconfig index ad0e808bf6..3fcb7ac2d7 100644 --- a/configs/nanopi-m4-rk3399_defconfig +++ b/configs/nanopi-m4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/nanopi-neo4-rk3399_defconfig b/configs/nanopi-neo4-rk3399_defconfig index d038a8cab9..b9ea535e43 100644 --- a/configs/nanopi-neo4-rk3399_defconfig +++ b/configs/nanopi-neo4-rk3399_defconfig @@ -52,5 +52,12 @@ CONFIG_USB_ETHER_ASIX88179=y CONFIG_USB_ETHER_MCS7830=y CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=y +CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index d540a17aeb..be76524cef 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -59,3 +59,9 @@ CONFIG_USB_ETHER_SMSC95XX=y CONFIG_USB_KEYBOARD=y CONFIG_SPL_TINY_MEMSET=y CONFIG_ERRNO_STR=y +CONFIG_DM_VIDEO=y +CONFIG_VIDEO_BPP16=y +CONFIG_VIDEO_BPP32=y +CONFIG_DISPLAY=y +CONFIG_VIDEO_ROCKCHIP=y +CONFIG_DISPLAY_ROCKCHIP_HDMI=y diff --git a/include/configs/evb_rk3399.h b/include/configs/evb_rk3399.h index c0b0358893..2d3db22877 100644 --- a/include/configs/evb_rk3399.h +++ b/include/configs/evb_rk3399.h @@ -6,6 +6,11 @@ #ifndef __EVB_RK3399_H #define __EVB_RK3399_H +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + #include #if defined(CONFIG_ENV_IS_IN_MMC)