From patchwork Thu Jan 23 16:28:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1043 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C452F3F042 for ; Thu, 23 Jan 2020 17:29:16 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id r17sf1951420pfl.2 for ; Thu, 23 Jan 2020 08:29:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796955; cv=pass; d=google.com; s=arc-20160816; b=W00Mpd+wUNJtveJtHKYyhkVvY93kTaBVM/vQJ2JZNDJBE79Jpwj6K2ori/lxeMGmp/ SEXtUU9eaNReE/Cdom+il/TlcAnC/gLrVqVg17oJRR42ZCb4BQy+URGBR4xtY1paKT5v yiVRnEju2D6s/wReom8esqpuaQ23fysbS3dndUYTkq8H81YbqIOKsbn4gyixV1CemANU U3lIACtEp/ZhYkP0q0crbIiheNQwI/MfEyXHq/51KggkTpfgVQicXpPlLWAE8XmdZesi K6ijCYU2ZMxE/QfRenwSe2ZZu26i66LaLRuI3Dq7Zm/gFP+IvA3ma+2w3iB6c3xwV3pW xlLA== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=p+eZJCCH/eOgHd8nektQnfxIr8WoPc8EhZxz5CZAQMY=; b=nRWYNFJCp0n/JWNZJrDRy+odUWcFPVaVd7SCKDos4CTshaDGJiI8Pe7fUssA6G+mwg X5V55sMlfjuZcWkm1I4cCwZC/9VbYM/3CqR4hTx0Whn9Kui2baZ/fO6UME3S24ZRzahe SFkeq1oX+F0FNRwo/KCrIH4dAFpLGv7Z1KvVGlXj1nFUw5Npj2i9GCX6tRetK3Pp6CO0 jSpHgNZbJSq/R+5aDphvb8HTig2qmf4ahzNSXJTAlBvimfaZK5BDMYpqxqN/4WzlJ5Zl VfV2TOIvFf7L7bOCixSVfTmbcsbSw/2P/dho6Xmtz0Y9yVWW/AYIIJODLP6qv6cvZYjC xLzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DKr9jE2m; 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:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=p+eZJCCH/eOgHd8nektQnfxIr8WoPc8EhZxz5CZAQMY=; b=RtJBakbcDqsx7cQf2/4xwUIF94jy+ZaqYXiWjph0CToKhsqZRjTUYW5fWTKzsj9bdL HLez/kIboa1za3+PLEObe4di4eNf84UF2m7itQ55QdI2pWUkejd8HI2XTofebTHos248 HqBXSL0JhrC5NLHLpsaFsgS2R8fkJCFPPwclI= 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: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=p+eZJCCH/eOgHd8nektQnfxIr8WoPc8EhZxz5CZAQMY=; b=Yn2D6j+7Pxn6rfPdWHZ/kVCFvB20bg1yDcMRrdAjoWt9Qb4CjDjH76eLDlL3KI796g Zcx7dpb3GJ4xmlHuTdpWc7MWJvlR1LBV9lVXoWa/JGQCpe6MDCr6wvOf0FW24DmR1BjZ iafCA7HkauQ5Du1xUCNkuRQLHjn9zg86LAPYRQp4sxHNithiPHii1NDnX5PDcJdBsQnW rsVKwHywZe8lVfz5BKkOy8/ZdoQLNJgZ00iM9pgoTYSjYhv621bgWvrpFCxYL6dz9ep7 Kn++Mk4VHXVyNw7Ibr8RrTMrXi9qaGDoI8SQ7ReqwLQBBV9HMYXRwOI9iLk/+NABo3O9 RpnA== X-Gm-Message-State: APjAAAUlM0LosClrEG6czJ10c6dx14tBgVt4MG7zP1ouiOSN9jetmkJ+ l0tD2NjCbr27sffSmLZBU+CACziU X-Google-Smtp-Source: APXvYqwf/CVdAtGlUuDYJZOdByWnpu5UuZvmgSesk2tLDNrRsnOIJAtQkjO8nk3oP0BMHG6q8t+Rvg== X-Received: by 2002:a17:902:9a49:: with SMTP id x9mr5721945plv.261.1579796955139; Thu, 23 Jan 2020 08:29:15 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8c94:: with SMTP id b20ls1765654pjo.0.gmail; Thu, 23 Jan 2020 08:29:14 -0800 (PST) X-Received: by 2002:a17:902:502:: with SMTP id 2mr16879667plf.151.1579796954642; Thu, 23 Jan 2020 08:29:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796954; cv=none; d=google.com; s=arc-20160816; b=flYzBRGS9N5y8Sg2kc3iqF8t1S+fvqZP16jgqlZLwChtc9JT0A3rWve6oCKOs02TvG bbBAxQhvA3idyjSIMToAQ4AeyHjv33YtyBeuNlyDQ5sw6EWJctWEy4+aesDYbEbZyJDX bxGTIGcLmx8LQHVXKTO11gi7YRoV7vn398SL3poq75z2rMTZMxCUEQ/S+ZDgQJIvAhbE lDwkPDtnhJze4Wna9uPDVOvUi5NBK0zsjGJKOJOBPXEJzZ5Ov0M2AJmBNttyQWlqlAw1 roEVM5KssdfdshjwusbDCUPcXNCI3vAdo1kvEdkTLZzVjkWMcG1sQ58teh+hvZVl8SdY Cxvw== 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=ndtYoQ6Nt/cBfDDV6NtfbvXyNMRmPW16rAbNsEk3+no=; b=IRunEYBGNQ6VqZsrcF/IzCP+rJHD65JzAf0VdMeKAdUiczmStYJnke3pXLhfviMCGu IN+VICAE0THnxnK982BrDYM9V1IqgPVGw0mMaZzWwRoPdxy83cxqdns1JayJQwNP7z++ KXfD+bg9KZu7Z1lTnS7FeeN1x0wt1T/LVoLEDTA1hHUvEnKbVwhdpzfso+kx9aF/NObf kKdpFk2vO/zHbiqYSrRJopQ1I/GeKsMhTIZevhT4zGlAqn4cBYs8QUhNvjfudYDxgb/N M3TRc3GY2KAvcb7RWETn3Iyq8FU+M8mY7bd1etbLYNGzDhDK7Y782tJXAt2NCQz4dWUo /wPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DKr9jE2m; 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 z1sor2913276pfn.14.2020.01.23.08.29.14 for (Google Transport Security); Thu, 23 Jan 2020 08:29:14 -0800 (PST) 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:27c4:: with SMTP id n187mr4960310pgn.305.1579796953688; Thu, 23 Jan 2020 08:29:13 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:13 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/4] arm64: dts: rk3399-u-boot: Delete vop assigned-clocks/rates Date: Thu, 23 Jan 2020 21:58:42 +0530 Message-Id: <20200123162845.10651-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=DKr9jE2m; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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: , Linux supporting assigned-clocks for VOP on rk3399 by assuming U-Boot not initializing it on this linux commit: commit <617f4472bdd3> ("arm64: dts: rockchip: init rk3399 vop clock rates") There is no specific need to initialize these assigned clock in U-Boot as video drivers still work with default aclk and   hclk values. So, these clocks are simply not supported by rk3399 clock driver. But, during stdio probe of vidconsole, the device probe will try to check whether the assigned clocks on that video console node is initialized or not? and return error if not. So, delete these property via -u-boot dtsi as there is no specific need in U-Boot. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index 40240bbfc2..b8b20ed22d 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -64,9 +64,13 @@ }; &vopb { + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-rates; u-boot,dm-pre-reloc; }; &vopl { + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-rates; u-boot,dm-pre-reloc; }; From patchwork Thu Jan 23 16:28:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1044 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 DA60A3F042 for ; Thu, 23 Jan 2020 17:29:19 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id 14sf2003120pjo.3 for ; Thu, 23 Jan 2020 08:29:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796958; cv=pass; d=google.com; s=arc-20160816; b=NJqT9qENjQJcHzLsZqbDKdvDSDbsVEfYATEI0Yp3+igpmVhO9cMLIGFDVrcmQ7SzgI 4REo8jEmrjommrCDfYC+Ij+VGNdN4tYM56pQIKDnsP3a6lift3OTPX6WPUeOeGrXB+NO jAr7ZJzaygOBdZ4EmUKFCe9HC0LLgg+kResa2J9Nhg1JkO17XxvoLBOPVro1T6XPEE+y Oc8lL76DU2d6IQPuGExu0/1TmPSap32Sx2KuRcATaLZD3+0R6nDTGuGmdikXEN+Wx6qb 8Uj2RdMQRuZQI3J7mMlSmkcehrSI6DyGXMCy73HJC1tMQ3j9ETqTsoIlZ2yGEnn0fN3y RX1w== 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=K8l1UOPRqgVerLG2DbOSH98YUpdvfvGjbeYw5z2+04s=; b=j8TmmJbCtyp02YBvU5fPcoYWSALYgZE70IHpgp+si/irP9YUTcHx2yclv8Vkb9K9fm GJu/2zqZ/B/7wKibCKH1aazxemginz1aHWvjTqzxVJuTNXKJOqipHc2s/ayYZKt0MrrQ o1D0u8EyjhccMKeERuSjheFQDiAkZUQU4g7Uhy5S6kmMTHirZoOJsA8aEQpneTb/ofkd hBVwHNcbJ9OYBn7GBSSq8c//Bc3kOvhCx9VRpXH55dzLjAx2VRGo54fg5CWuS748u7CU PCo3Wn37xqha75eSkTXOTvK2fH2ooArc1R1KrLMfHho80xs0eqh9mlQjQ+k6sfvNfySS Cn2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Bwp7pmpf; 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=K8l1UOPRqgVerLG2DbOSH98YUpdvfvGjbeYw5z2+04s=; b=ZB620fkF1hBq5B6K1cOUvOA/IvZ/n69NP9TGYyFeBLgiTnOfGYULP+AJs5fBQVYwLo uYLGYPv6vu+2V9HEx7VmlUEVoszw3+GSUpeBx1oFP405f67z6Lc6lFF30IPsLg8pdOIg cN/qM1yQs1zOROtjFpXot0I9JfXBbVP3tf1vg= 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=K8l1UOPRqgVerLG2DbOSH98YUpdvfvGjbeYw5z2+04s=; b=onUmebGVu00ySasPk1xq74bGrEVHweTyI3yts10KKluXvBKfMaEtSReSunjotEK5RA 30StWQ5+xSnXf2y9DK3C5kdEQo9459BbVFofw4BVgvqfDciKa7nWZ9rG/NI1MWEPwKaO 0HFFr5sCutg0fNjgs4supuOF2WybWDpHVHsMz/TvWrPn7uUiSzwyDnXHlCf3cK7tDcb1 khfXCGL+eeP5ktg7Lv7X5fysT0DK5Q96VLOomTT1FEqNb+yk4E6m7M0awnx8NlMJEBLe I/E4dbNrh6pxbyXpJLx5hEj1j9LoSRMmAxbpFmb4gAzf/DQVnqDU8XYNSssRBC7f4EZk 6GWQ== X-Gm-Message-State: APjAAAWUupuQmlImroBmeKBdBVWzTlNXWMM9I0BPeKGHrz1HHFuL+e1M ExY7BjZuiCMZIxQR6Sv7Kgf2NCuj X-Google-Smtp-Source: APXvYqxPTDEVPzQ7Ag4Z/0skhB+86RZb+amkHg4rozBJ9sas+t54/vATPBYTEXj8b2l1A3RDojOzaQ== X-Received: by 2002:a63:5d4d:: with SMTP id o13mr4642913pgm.182.1579796958156; Thu, 23 Jan 2020 08:29:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:30d:: with SMTP id 13ls13315822pgd.7.gmail; Thu, 23 Jan 2020 08:29:17 -0800 (PST) X-Received: by 2002:a63:6c03:: with SMTP id h3mr4534204pgc.19.1579796957592; Thu, 23 Jan 2020 08:29:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796957; cv=none; d=google.com; s=arc-20160816; b=cUoaS+5HEuSlRrIRmQc/kWPpgYi2oTuZ2KLuOQZ4r6yz8GDJAQu7xVkpelOFJUAZE0 z9T95DExdPAY77yjYIDqNd46m4GHHWGjMdshhb7Ma9anZfP+nquOGglUuyxoX8ObMu+D Oy/78yTcVWAlp+txkMoW2TkTDdtDHNtg5k9l0YXt3lohBAd6MpKQRhizVDO8e9K0WBmJ 4O++6EOggO5ocIx/kaoMAjZM8mVedBWmrjqIFtOSTaNoDPUdPseiuWEmlbyvkYWxiEiv p4LBi6eMy4nnVjjX77BmmW6FzbfeOf/TzIIm+/tMoYqOULHS8PTynu6Ijv6tXIvtCrKT rLxA== 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=JZjaZueugpYt326WNoZ6QPw0PlT7W0gDge9nb36q0kk=; b=07t+He+V7f9OCJ8Vyxpova76LEzeCokVHQHwIpkmhWAedttWs7lgoqAzo8FZ88AzGW eQnltTEXqH48cmMVxzKTcd/tuXjXn19qyJuE4aMKGe1Q1cTjiBJEgmwj2QIyPdRJsMoy V7XTq4X/xaDxUTOI8PAuED9PcB0JlFS+saqBeR3YKZTwdiG/b5SEYUlyviz8yeuOsTJX fB/phFhmKCu2ACLs9n67RhG0Ork7fzB4UMc5rM4tQz26qdhwWcwQbiGaqNbdibGwuefI MD5pPS27O3ER6ZBdWjW8qeRJaktv7j4WGad2TkPGFCFu3tSzFGJDQAvjQlwmPRLgAlQq oarw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Bwp7pmpf; 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 p2sor2851148pfn.50.2020.01.23.08.29.17 for (Google Transport Security); Thu, 23 Jan 2020 08:29:17 -0800 (PST) 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:aa7:86ce:: with SMTP id h14mr8285366pfo.31.1579796957206; Thu, 23 Jan 2020 08:29:17 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:16 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/4] video: rockchip: Fix vop modes for rk3399 Date: Thu, 23 Jan 2020 21:58:43 +0530 Message-Id: <20200123162845.10651-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-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=Bwp7pmpf; 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: , VOP display endpoint pipeline configuration is differs between rk3288 vs rk3399. These VOP pipeline configuration depends on how the different display interfaces connected in sequence to IN and OUT ports like for, RK3288: vopb_out: port { #address-cells = <1>; #size-cells = <0>; vopb_out_edp: endpoint@0 { reg = <0>; remote-endpoint = <&edp_in_vopb>; }; vopb_out_hdmi: endpoint@1 { reg = <1>; remote-endpoint = <&hdmi_in_vopb>; }; vopb_out_lvds: endpoint@2 { reg = <2>; remote-endpoint = <&lvds_in_vopb>; }; vopb_out_mipi: endpoint@3 { reg = <3>; remote-endpoint = <&mipi_in_vopb>; }; }; RK3399: vopb_out: port { #address-cells = <1>; #size-cells = <0>; vopb_out_edp: endpoint@0 { reg = <0>; remote-endpoint = <&edp_in_vopb>; }; vopb_out_mipi: endpoint@1 { reg = <1>; remote-endpoint = <&mipi_in_vopb>; }; vopb_out_hdmi: endpoint@2 { reg = <2>; remote-endpoint = <&hdmi_in_vopb>; }; vopb_out_mipi1: endpoint@3 { reg = <3>; remote-endpoint = <&mipi1_in_vopb>; }; vopb_out_dp: endpoint@4 { reg = <4>; remote-endpoint = <&dp_in_vopb>; }; }; here, HDMI interface has endpoint 1 in rk3288 and 2 in rk3399. The rockchip vop driver often depends on this determined endpoint number and stored in vop_mode. So based on this vop_mode the bpp and pin polarity would configure on detected display interface. Since, the existing driver using rk3288 vop mode settings enabling the same will result wrong display interface configuration for rk3399. Add the patch for fixing these vop modes for rk3399. Signed-off-by: Jagan Teki --- arch/arm/include/asm/arch-rockchip/vop_rk3288.h | 11 +++++++++++ drivers/video/rockchip/rk3399_vop.c | 2 -- drivers/video/rockchip/rk_vop.c | 4 ++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h index 8398249509..872a158b71 100644 --- a/arch/arm/include/asm/arch-rockchip/vop_rk3288.h +++ b/arch/arm/include/asm/arch-rockchip/vop_rk3288.h @@ -85,6 +85,16 @@ enum { LB_RGB_1280X8 = 0x5 }; +#if defined(CONFIG_ROCKCHIP_RK3399) +enum vop_modes { + VOP_MODE_EDP = 0, + VOP_MODE_MIPI, + VOP_MODE_HDMI, + VOP_MODE_MIPI1, + VOP_MODE_DP, + VOP_MODE_NONE, +}; +#else enum vop_modes { VOP_MODE_EDP = 0, VOP_MODE_HDMI, @@ -94,6 +104,7 @@ enum vop_modes { VOP_MODE_AUTO_DETECT, VOP_MODE_UNKNOWN, }; +#endif /* VOP_VERSION_INFO */ #define M_FPGA_VERSION (0xffff << 16) diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 81c122d7a9..1d5b3931a6 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -45,8 +45,6 @@ static void rk3399_set_pin_polarity(struct udevice *dev, V_RK3399_DSP_MIPI_POL(polarity)); break; - case VOP_MODE_LVDS: - /* The RK3399 has neither parallel RGB nor LVDS output. */ default: debug("%s: unsupported output mode %x\n", __func__, mode); } diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index b56c3f336c..bdb790a0c5 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -117,10 +117,12 @@ static void rkvop_enable_output(struct udevice *dev, enum vop_modes mode) V_EDP_OUT_EN(1)); break; +#if defined(CONFIG_ROCKCHIP_RK3288) case VOP_MODE_LVDS: clrsetbits_le32(®s->sys_ctrl, M_ALL_OUT_EN, V_RGB_OUT_EN(1)); break; +#endif case VOP_MODE_MIPI: clrsetbits_le32(®s->sys_ctrl, M_ALL_OUT_EN, @@ -312,7 +314,9 @@ static int rk_display_init(struct udevice *dev, ulong fbbase, ofnode ep_node) /* Set bitwidth for vop display according to vop mode */ switch (vop_id) { case VOP_MODE_EDP: +#if defined(CONFIG_ROCKCHIP_RK3288) case VOP_MODE_LVDS: +#endif l2bpp = VIDEO_BPP16; break; case VOP_MODE_HDMI: From patchwork Thu Jan 23 16:28:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1045 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E20083F042 for ; Thu, 23 Jan 2020 17:29:22 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id t12sf2052981pgs.13 for ; Thu, 23 Jan 2020 08:29:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796961; cv=pass; d=google.com; s=arc-20160816; b=0Ksx6dUL4YWPLtARbTllOjg82mSsJQhZz7aANqC9/UsuPbjniUsj54I7Najmz0qkyP AAvyr8TP0fXvsluGriF++omM9V1cNIWah3igMiRhvFjWomqDmvuuGg7DgSoADN/r7ZO5 IdzSa/5ZOwen9H/TEtdSAgGVGnxsVBnY8MmwbfPptOzWJfcYIGfgOSax+I78cTR4uneD mqegL4FNkD4djfsGmA4OcEHce2VEvapBb7LjDbszlnr/QodFtLQApMhErKBWg/mVKzkG tLMNCZ/XNsI0I8OEHrV4iglFwOaCOSRwlvSpmsM2R0sN279PTRVtqXiSNxm4abwzDdBH 4F/g== 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=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=eooYz0mSQlVMzvVles04zPARld3bPky9BXaEevcfwYXgKM324PJFQ0PK0u0ZLYr1P7 nw1fOfzgxJKOQGHOKcZLblAD2VQ3tmU9wabbVN9BUtGQTH5QUmdiP2hqcnPaO2kaIz98 4W3f0/Eh1A1Q0gS27BPUU4dnkD2OhY/z/iq1hfOvZ8b8V0/2HWQnaudcdTSp8DPRqFTT ofDcFY5FC/EKakBJ0pXBK15HY/DbN3HJMRVi7cJQA2KqDlET4/01bwqxEJSGtVD8DaC0 QSiJXM2PbVNAxC/OmuFlBiv5Sha6DZObgAc24zM+DJIqn9x2V50iw9mBz0A9KbULiy+L XnDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XchflPEb; 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=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=iCDvkyHxk7esjVZYutnG/798GMxYhgbuJjHSNhZccyqUFGpNIGkFfnMDaiFskWvMyQ f3HeyPIgD3QM6w/EE7MJhQ0ku7Mo4NERwSkUfZAcp6tdgFoY51S30DQSR5dwS39UM3mE 0zQ5l6j0aofcb8dynSwxsjRPUl8agVqoHKt88= 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=1RHLjPsQuYGlNXS4XmOgFM/B0w1vvyWCFWL9skJGuAQ=; b=oiEzi7U5CDFy7ogy5IVVxsiwqbk3uXE6qU+P3cujsN0Y4dST3sz8eiy0fdQCUC+8/X BiWlIzQ57WtLUQ7wRLegT4Bg6ZtihKEES7HJfytLotBb99Ivx/phDBEkmbuRwFJMOtah 06iyss2Tfv7htf28o7FBYxdx2nLp2C0vsMaNnoedkx0rXZdN+KqQkJdJBxptcCVLyOMr sXHnyul3JL84NVh9pRbsRoPXFXswiZC2Ezk7z2H5UrjMhEIfMqxfu1251Bq3WhDAcOjh hrPzM+FBfjy0L3Gf3V5rjgHMvW6n6OUkjDuVvsXKGiNqCOUPBm1DaghWrY+2PPM+ZPg/ 4yKQ== X-Gm-Message-State: APjAAAXd452eb7r2PltiRXDjKV1qQQ30c+ntUbt3fczKtd4XohznKEx3 88r/LVjOsvzNU73o6l/DUAMu1aYC X-Google-Smtp-Source: APXvYqznolN5cS1AA2bi2X6jg0/soyfL3lLJcUJfX2oc/eSEnKC1+vkWrWoCngi9T0BZlI03ujH7Zg== X-Received: by 2002:a63:b20:: with SMTP id 32mr4579703pgl.390.1579796961671; Thu, 23 Jan 2020 08:29:21 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:567:: with SMTP id 94ls13473545plf.8.gmail; Thu, 23 Jan 2020 08:29:21 -0800 (PST) X-Received: by 2002:a17:90a:e657:: with SMTP id ep23mr5201075pjb.105.1579796961163; Thu, 23 Jan 2020 08:29:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796961; cv=none; d=google.com; s=arc-20160816; b=j6muJKEdiv8c3nGQKS9lgXk4M28CUKZgg121DZjygVvLkphxDP2VxTuh0aQiG5MgxH EAGlYnjdejgNznhsdLfpgoHry4bdHxtXrLyHCRxPMCX4+tqNVtKShMgn7XbccuZ9a99I izk89IQw9101mWub9mkbMAtF1JADT1roGbPm5w4C7IajLm/hcDXhbRURMN7NKb4Uc+U9 fQzWv+5jsbQDFkTEKIx+pKWnLIc4++5XkWbHZvMQ/NiyOPo47dSxnFwSPdjzzbg4Ky7U jrPIpSxPlWAKw5DyA2nptj81u38vT0Sm744PacKO2l8vRDlOwDR5tAERcfHFiOVuY1Fy inCA== 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=J+OiRInHosqjCdmhqjIGvub+XWktp878CWzZRNlLP4A=; b=Jpjflj+rUB/AJx8PJ6FeP5bP12YDbeGRjeNLjUgdItUEVTSnDjyfucittDVPubqjP1 UV3/KrIFAcCp1tLz8Lx+ucShUfTeHsQMPOq321zLiELQK7BIh8vK9LvMc4VdNytjnUx/ tLZbp+vq9UPGOlbw8lPoiES90k3Xr5B6oI5KNJ8TWnSbGtptV+5hyaug0BD6bS4Wze85 e6GiOFGKnZe4bmNhJKblOC5bqgmVu5IPdOsWVzpQ1uI4HSv7jbPyBQFJV6UqO0HZ0Riw muw3yms6YGrNIybx5dTaD9fMCnEW4L4w7+42MyiXJDEMXaXwcMTe9lr5T8rB7iwlRVnV 80gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XchflPEb; 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 2sor2758689pgy.36.2020.01.23.08.29.21 for (Google Transport Security); Thu, 23 Jan 2020 08:29:21 -0800 (PST) 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:6f8a:: with SMTP id k132mr4915552pgc.70.1579796960871; Thu, 23 Jan 2020 08:29:20 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:20 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 3/4] rockchip: Enable pre console for rk3399 Date: Thu, 23 Jan 2020 21:58:44 +0530 Message-Id: <20200123162845.10651-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-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=XchflPEb; 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 pre console buffer for rk3399 platform. This would help to capture the console messages prior to the console being initialised. Enabling this would help to capture all the console messages on video output source like HDMI. So we can find the full console messages of U-Boot proper on HDMI display when enabled it for RK3399 platform boards. Buffer address used for pre console is 0x0f200000 which is ram base plus 240MiB. right now the Allwinner SoC is using similar computation. Signed-off-by: Jagan Teki --- arch/arm/mach-rockchip/Kconfig | 1 + common/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index ed7514ab75..0cb1f23d0f 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -229,6 +229,7 @@ config ROCKCHIP_RK3399 select DM_PMIC select DM_REGULATOR_FIXED select BOARD_LATE_INIT + imply PRE_CONSOLE_BUFFER imply ROCKCHIP_COMMON_BOARD imply ROCKCHIP_SDRAM_COMMON imply SPL_ROCKCHIP_COMMON_BOARD diff --git a/common/Kconfig b/common/Kconfig index 21d0244050..7d81924340 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -568,6 +568,7 @@ config PRE_CON_BUF_ADDR default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I default 0x0f000000 if ROCKCHIP_RK3288 + default 0x0f200000 if ROCKCHIP_RK3399 help This sets the start address of the pre-console buffer. This must be in available memory and is accessed before relocation and From patchwork Thu Jan 23 16:28:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1046 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 316D03F042 for ; Thu, 23 Jan 2020 17:29:26 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id a4sf2036145pgq.23 for ; Thu, 23 Jan 2020 08:29:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579796965; cv=pass; d=google.com; s=arc-20160816; b=GRw4fy2XhgbVj+JtMr+BZVC08ez3b42YWxGvzSqXlRHJCrqYmvUzjao/s1jaDUFBYK 7EIE227fH2j/iPGcxiyP8MMC+/XotjzM5l097jpiCUVLM7feuODp4X0RX1b+cYUzeQIa Uiv+ZN6qVu7Er24x/5w6ydr6q7rS3t63uW8THUy7Ho4SSfBDaCk+/hvGUCknqJuuhQsj Rk9EPQ8ELTHO/1CAHeLBWV34AhG3KhneLAA4bl9p5UYi7UfNHrKIp1OQXUrZdufrN8Ho 5XxPQi2A/ISI23nvNWTbRu9+YcXbJpTJ2GkYWjRLnDnUS+clmHuKG05FIqaWwXjs34dY wVuw== 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=sUjqnSy8Zm+hDKGM/sLJnooD/7UgsHdcPtTDQ4uTmQ7MTaWFjDunKjiuUrnXefm1Ig tKWjcpBsK27Iou0qYy7d+3mzXHSVLC4455v7Ae3g8hdERXvy2tbJ5W5SpPJ3QTOTpmZL PopPLhWmRjc/zcBSRHie1TugYj3DnFn9QqVCqM0bkgLP5GI0Tmwy9xf7Io1lcKvr6X3G IvgOFehJXsxksFhw0ToX1ETtQQ6mAqg1aZYfkJ5hNiRMRrZ90HGMkdjIRLWM7aXAdF48 XaSUU3ppd4oI7gEsCHAsDEssiOFv3Xc6V60KNr8Z3fqLVCFcL0+smgTp2eef1cpVODGX aMrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CGRx2/w0"; 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=ArqRojPQky3YiB8BHS6R/ONaE7C/QieXEtfT6DwrrvLjpuy5Gcf+w7HlUwetYriQI+ uGbUwwBSFvclN06fl4VAJm28LMvZFm+gLQe//LE8zKuhiIpUij93QZ2w8t723yMrXPmV N7S4EfYzPKOdBpE6CJQ/19aCGgUw4bUqdo5eM= 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=TRqt8DxM3kUe731duI5UUJ6z9d4LQmoXuj2NLCuhN9E=; b=dhhGzUbhrhFA++sSlE834Rl1g257bM4I0RGoVuOIY4qZ5T0b1ONjb7crM6swt8LN+1 N24jq37zzKiGpR2Ir0W4qAy254FTBLvua+spczimMIZUsSft+kz5EEJ+MEuz99CKeeta h1GKBZCq101vAT/nXRt15g8mcPG+otZ1RSy5z9NU+eHgKzom/FI1QcGeYcedkWdKAYMs hFrzo2mRciIgAfIWf4rSqItZKpJ6MGJRKqML+EASpEFaUvU37HE6PAUo+myVMIiOG0F4 6xuAGNRHtRju4y1Ot9FUg1Ng50G1NT4FF5mBDoZipTLGv4rhiMOjqYTsoREKoHOZ3Gcx ioHQ== X-Gm-Message-State: APjAAAW4cxoXdAnE1pQNCj46TbQJ7ke8CufVlcBjgSQeNoF+H/1dZbxz bcXG+6DyI5cOBWvrh2FvwFNOM9HA X-Google-Smtp-Source: APXvYqz3XfhdsPWYwoUFqhclmlNHE4R7abLaSWlEGt+lw5aGJ0WPmujZ8kcXVOVcKLpxfdDEtogEPw== X-Received: by 2002:a63:1f0c:: with SMTP id f12mr4932385pgf.247.1579796964875; Thu, 23 Jan 2020 08:29:24 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9f95:: with SMTP id g21ls13471907plq.5.gmail; Thu, 23 Jan 2020 08:29:24 -0800 (PST) X-Received: by 2002:a17:902:9691:: with SMTP id n17mr17457153plp.304.1579796964314; Thu, 23 Jan 2020 08:29:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579796964; cv=none; d=google.com; s=arc-20160816; b=VEZuDmd2YqjLqocyG1RsAbcUKYzrrHAQEe9JoDgcsJKfz9zI1FypAIiGjdNalm6o3o mGVFIm87EoP1xTfsLR3vyd00le+OGS9FkDNnSr5Y7D6ys/9HLmB3wsNLM5yglh+4mwlR vHSO3th/UTIRs/5WaMFKnFPSPhAPbb/69HL0nuJ3rPyOmUOEt0LrsyeOUNdacEqDx5Jg peOFrqsZciuD3HZxhUjFw1WL/GYqwJw9x9Oz1EicKf4VbicPyQbyd3Ns4I8U9SDD5uGU ojiSSWi2spTKSVHP6Xd9ojw8PgE0Mq5ll2LrtciwvrEnT2ji40Yn6uhzomCOrAJFWnfO NfNw== 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=baaDoeDkotpglxjsNTDoBouhmXKpmsImZXmCo5dx/Oo=; b=mWHQm7BCq7Tzqsjpi9Yc4tkIMKX3QUxAVFtxejrZScOLCVQRTPcQzmPAuT+6gZWyWN 1p+weqjfS5Rd+cBKbbLO5NXg8LSMOiibDB29GkJ8IDOCML07TJ+dbYx0p8I41b5TkZEx 25T9PSMBMTihjhu1K1qeLpVoCehwJtojIwzAjsiZqsmlhcY/q8smaOfhgMnwHb6S+9Qr 2BR5C+9xHcdfksF6a7GROUp23qny5BAsKchtOx7szBaDVsG/eZA6fmPyc3mIPcl8NclQ nP1ENf6DC+vVG6M/5u1aUhD091MqL37oMEL9aQeLjajylYDKLOd2IM4u1LfN1jC3rFkQ nC7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CGRx2/w0"; 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 l7sor2717963pgj.52.2020.01.23.08.29.24 for (Google Transport Security); Thu, 23 Jan 2020 08:29:24 -0800 (PST) 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:213:: with SMTP id 19mr4818279pgc.160.1579796963913; Thu, 23 Jan 2020 08:29:23 -0800 (PST) Received: from localhost.localdomain ([49.206.202.109]) by smtp.gmail.com with ESMTPSA id u1sm3188909pfn.133.2020.01.23.08.29.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2020 08:29:23 -0800 (PST) From: Jagan Teki To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Michael Trimarchi , u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI Date: Thu, 23 Jan 2020 21:58:45 +0530 Message-Id: <20200123162845.10651-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20200123162845.10651-1-jagan@amarulasolutions.com> References: <20200123162845.10651-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="CGRx2/w0"; 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 Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 6 ++++++ configs/nanopi-m4-rk3399_defconfig | 6 ++++++ configs/nanopi-neo4-rk3399_defconfig | 6 ++++++ configs/roc-pc-rk3399_defconfig | 6 ++++++ include/configs/evb_rk3399.h | 5 +++++ 5 files changed, 29 insertions(+) diff --git a/configs/nanopc-t4-rk3399_defconfig b/configs/nanopc-t4-rk3399_defconfig index bd6d60ff6c..17e8a18d31 100644 --- a/configs/nanopc-t4-rk3399_defconfig +++ b/configs/nanopc-t4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=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 74ede13c23..b73b2fdc27 100644 --- a/configs/nanopi-m4-rk3399_defconfig +++ b/configs/nanopi-m4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=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 a44124aac0..2ecb50967b 100644 --- a/configs/nanopi-neo4-rk3399_defconfig +++ b/configs/nanopi-neo4-rk3399_defconfig @@ -53,3 +53,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=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 3a051d9b0c..a9f99f992d 100644 --- a/configs/roc-pc-rk3399_defconfig +++ b/configs/roc-pc-rk3399_defconfig @@ -56,3 +56,9 @@ CONFIG_USB_ETHER_RTL8152=y CONFIG_USB_ETHER_SMSC95XX=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..09eb361655 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,cros-ec-keyb\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + #include #if defined(CONFIG_ENV_IS_IN_MMC)