From patchwork Thu Apr 2 11:41:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1064 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id ED8D23F0D3 for ; Thu, 2 Apr 2020 13:41:55 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id v18sf123965pfg.9 for ; Thu, 02 Apr 2020 04:41:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585827714; cv=pass; d=google.com; s=arc-20160816; b=0kKrJP5AymDvC4uC1XmIB53+gnCbSmC2IS87wt56zCJi29e3gY0ZH5IMsIxFMh7s3H WUbr/MZfCRwgslo+Ji1ntCSSFdxpQhb2a5Hr5mzyIkTl6H7Tb02Qs6MD0bpD2WJgNp7n 0mgyGm1KwcGGg/kHlL3tP5chClxgapXBFFpG0iuTe9tQPZte2aOP2HhJllojHb2nMUNu e6bQv9aFLwfUht65mmed51Uk49nKZBajkDTZnJV8fgntTeaMup1UDA1tRwcsBc0avR6r P9TlGlvktOERHs++hSKGszG8OdB+EG0ECKRwrDGBvm0fhuV5uG6eQI4Pwv2IRo7lYA5/ gyGw== 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=elliqK3lrH4+6Mdqt0wibSdb6Pg3OgW3oCGmEUpGLNQ=; b=DJCEq66gavKkKOd8l/g4XEb6gfqhZJiJ5mhMuOUb1gCSIi1mtO9YCMhpkh6swPLhRw avrWGYkX2tYJHd/A3Vgmbet2gkJifAAu9lIYOSc5CuTUqumyPUrjjYSHDU9b+2FpsJVC Bt5K8tj82zlBI4gJa4btol8IrNrz3Dp2IepaeqJb3aslCwZM1GGnI8FMTTur8e7hhSsJ vqy7jbyuSfz8kmovWN5E6HWel/kwEGVHQVk9v6Ax5oObGEJBOVJb+MhiqenVNqF8oXoT i+jJJoZByuRFFbW2y+pX+nmyGaS4R0S/zx4eFow9ljCaf702NaZ6HyZdom0j/6mCUOxC FQvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bWrtgsQu; 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=elliqK3lrH4+6Mdqt0wibSdb6Pg3OgW3oCGmEUpGLNQ=; b=TiWSA09hvj7h93Z2Tv85mbbAiDVf2IO6MO8Vy7bhOW30fySO49+iKDhNK6uFlO1747 aJW3W7lwqCAahKN6f9FuZtr+r6vssDQHT9g2O000Rx+D3Dvsr+VP19wgr78UvHAmE8aL TGygoczvZgu9NJxQRpFFA4F+7JSo6YSntSfnU= 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=elliqK3lrH4+6Mdqt0wibSdb6Pg3OgW3oCGmEUpGLNQ=; b=A1XSp49qFRDg6twg98ppDLKlI50n/i27KGe/ypWCpuUbqd2PZUmBgOhz/ASJxAkrZQ CMYUCESgDpyWoXHm0jtFc0HQsIKIs+BdylOSinWl1kS8m//157vwA8xANURdD5+q2V20 BnFCB8+krpJWA4KMSL6q7vdyjIVIa0SrCW87f7tXGhCFpxvAYTl5J7zE6/kCshlJePyX /mm//6YfK2Gi6YIAeoWRJvS5IJdhSbu5px5L+QuRLIQBIrtWqmOGmv5DXeGrdwwwZRKC 4Qc4LincCsCB6/RAJF6PA0ybWCaFJrg6bh+LYUX+pXMOfJCD8vgy6B5sH/H/+U8saTNR pOug== X-Gm-Message-State: AGi0PubYXSeR8Dtxs2sfIVhQG20NbWhLzzbeQQWRvWsnJcmnYVuLpHsN RQsoNM0oqikhVGS+0tXn5jDAwN/w X-Google-Smtp-Source: APiQypJWEdlzjcfJjjh0aK6eVETJus+h5GuwGGmzygoCOh971oI0qclFBgN1EOxMRpzSZGjRAyMc7w== X-Received: by 2002:a63:e544:: with SMTP id z4mr2950776pgj.174.1585827714710; Thu, 02 Apr 2020 04:41:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:8488:: with SMTP id c8ls2578953plo.8.gmail; Thu, 02 Apr 2020 04:41:54 -0700 (PDT) X-Received: by 2002:a17:902:8ec1:: with SMTP id x1mr2578818plo.325.1585827714182; Thu, 02 Apr 2020 04:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585827714; cv=none; d=google.com; s=arc-20160816; b=fI3LBvFdVpRVplGzDLDjZDiEPUPud/GI7xBp6hHHLOQkIkzKYkCq3I4gglHnucTTv3 8uy0Q2a/TEQZ/iOFAV+ahWKrYvxnVWKVo1PuJJrjE7NbNmYS1elZMz4/xoUg4Q90lKLD IU3Essa8j2TjGUk0vI8Wy+eniqq9nQNXfrILMvHu/pQCdgQRQ7TQOuYiVOI83RWh1/oH RcsE11Ks58KouehzFYar9tS+fOBGpvut0WILzZFr/jw7UGx6Gjt6keomqnnFP4ZRL2hm fDiLG/qQQkz0uTNYlfs8Fp5dSdv9rECKYMCvWhX1aEdOxS88LpmvtIj471SyTaJte3WT Opsw== 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=WRZdNM0deIoSv283K07zAk/A6gBZnVda/XJNRb/2yT4=; b=h4mE1pCsElrodbir+rpgKDF7u47WjOl+RL/qSqjL0M8ixW8Fz8ZAHM1qiB5sE9E9/N tgiNxjgdKOFIThvszx8clOnsS+P57dizMOtcKHCvkLaVd6pvqkaRwQQq4qMA3lb/LaMW vn0vIblWxYd9WMoWJsj4gl9WwofgXoQ7Biv53Xk7xO1pAc7ZQuid6h3MIifRmonEHO7e wFLwzMuhiEAYMHrjbkW3lu5qPI8dIEjtOSOQ4FA1CjOo+DxnYuy95j9QZ2o5OM9Mo3Mg LENv8woVO6D+Bl5Ouz32GQRYytYV8Vb1GryA0CBdSU/VtLwIlR8MIsV5vY5kp7DbGijc Jz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bWrtgsQu; 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 81sor6264704pfb.4.2020.04.02.04.41.54 for (Google Transport Security); Thu, 02 Apr 2020 04:41:54 -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:a05:6a00:2cb:: with SMTP id b11mr2732492pft.42.1585827713856; Thu, 02 Apr 2020 04:41:53 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 04:41:53 -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 , Manivannan Sadhasivam Subject: [PATCH v3 4/5] rockchip: Enable HDMI output on rk3399 board w/ HDMI Date: Thu, 2 Apr 2020 17:11:24 +0530 Message-Id: <20200402114125.2501-5-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=bWrtgsQu; 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: , 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 - Rock960 Cc: Manivannan Sadhasivam Signed-off-by: Jagan Teki Tested-by: Peter Robinson Reviewed-by: Kever Yang Acked-by: Manivannan Sadhasivam --- Changes for v3: - add rock960 hdmi out support configs/nanopc-t4-rk3399_defconfig | 7 +++++++ configs/nanopi-m4-rk3399_defconfig | 7 +++++++ configs/nanopi-neo4-rk3399_defconfig | 7 +++++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ configs/rock960-rk3399_defconfig | 7 +++++++ include/configs/evb_rk3399.h | 5 +++++ include/configs/rock960_rk3399.h | 5 +++++ 7 files changed, 44 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/configs/rock960-rk3399_defconfig b/configs/rock960-rk3399_defconfig index ba4226e173..c4e954731a 100644 --- a/configs/rock960-rk3399_defconfig +++ b/configs/rock960-rk3399_defconfig @@ -58,5 +58,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/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) diff --git a/include/configs/rock960_rk3399.h b/include/configs/rock960_rk3399.h index 746d24cbff..304ad2b7aa 100644 --- a/include/configs/rock960_rk3399.h +++ b/include/configs/rock960_rk3399.h @@ -6,6 +6,11 @@ #ifndef __ROCK960_RK3399_H #define __ROCK960_RK3399_H +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + #include #define CONFIG_SYS_MMC_ENV_DEV 1