| Message ID | 20200330181613.29462-2-jagan@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB7HORD2AKGQEP47XD6A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 43C873F03F for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 30 Mar 2020 20:16:30 +0200 (CEST) Received: by mail-ot1-f70.google.com with SMTP id a3sf15668327oti.11 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 30 Mar 2020 11:16:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585592189; cv=pass; d=google.com; s=arc-20160816; b=ehkfXNhS7MjPoUv2vCrhBasZKlaJvLkw2SjMJkyKWZhhDRK5P8QMMUsReYBo+9Y+Vc jzbvOddnxDYdVnZJzHDQIbtK5yfqx5v3kBVHD/YrIlyrpr8YjqI/jShMWyYoYX2ZX91q LPJwVgfPwfsyFg9gnDwi8U7HFc7RBlryfXDTuar11l1gVvmwuhf3EcY5OsTPfh/4uzy1 rTZ63WUD3fU0ZY9WRJCwL4Epss4VBStR+o3+OF8ArPEVPWrgkXHRBki8QreHWYWt/KJc 8ZLyWyscohzpizHNhBU+KS/KpylzsupmIBKbEzrxG9STwO5qYSIlLqwQAxVQmSQ3JHb4 zyVQ== 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=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=LhYTvsbVLVUSsWb61IvkA+7+hPoxvvR8GRvfCeBxl+ntHw7uAOcmA0OTpAXR95J0Ka Jb3U5b60D8i6bjhY3CV7EPsrrBsCOqh1GSboPLvJ0p/cQhwBKLSL0X+aQxL3El0Hy577 DsWqtveKgO5uXEm6gNECGCFJkrKRefPr1IU6ovsNsMuj3LKhy8yYZVf+Zp6Ty5kzt4+w 4WtjbLhgZ56F4XxbNlOOLnJfEAFjBYFt767G5K7SrO0VeeOClqNNtN9Bg3RFuIcfsmGa C0esAnV/4SUyFvoZLoZ8AaNv9pXM9EL7winirEIFdO5RFMne3cq8GH1Z2p9blzMCjDpx I4pQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; 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=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=iyTzdb8IzDVVqBMjFG36U1095KzKjLF7mCXGlmm2aE6p9IOi6IrnktiyBG29Jdh6Ge iPWaCqh+ySzXatWSIzMG0W7MukqGSNYO6lFDDxHnqHlZJOOnk1EVOvX7Q3xWqKIcsCIJ d+v3Vr8zbZFi7Z0dv83lZOTVmlTYqtf+5JWUM= 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=qqCziSQu8hiSSX096zHTxtse6tB3iO2/7cCfCXkMSII=; b=tKg9WyMu6B4q3aeedwRYge8sZ+1vajbeZn3FkM9x+qOEVdf5rBQEffZdMG8BQf/1Fl flxXSdqvEVDJ+1Pw/rTV8d4sAWTPTrtq+Uke681gwd3JTOQ3kuIBcOnh47lzoJgcQMUA ZVRAcZ8EeiLvQTTu6WOpQqv+0Hw4hyRNRpaky6Ys1RyJER53G5aXK5W4rp3mlEgHgpr7 Gqpr7Qf0WCsVPEqmQveOaUT982i9CqLPfCeUWKLu32D8QdBUpA4OjTNXCfEtE1F+Zc9E //WHx3kwpGWU+Gew+WfFR997C+ezFem2khwm+y9y/kb3UulS4aXncLhJ5gpjD167lAxR 24mw== X-Gm-Message-State: ANhLgQ1iPQgaRjmvwCy37Jrzm2j2f7Qr9f1YNiOOLsgRqIM7TirpMrBR SnKnhKrPX6opZs/q+Qlke9t4W6ar X-Google-Smtp-Source: ADFU+vugLdOzA75r/W61U5xQO9xlZZ73MnRR0AT7mk9xggq1rquMW70OWlXw9CZkt9JUe8R91XVGmw== X-Received: by 2002:a9d:2dc1:: with SMTP id g59mr341019otb.90.1585592188676; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a9d:3bc8:: with SMTP id k66ls6917241otc.10.gmail; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) X-Received: by 2002:a9d:6c45:: with SMTP id g5mr10154710otq.347.1585592188187; Mon, 30 Mar 2020 11:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585592188; cv=none; d=google.com; s=arc-20160816; b=s5aaM9tYfuGDA9pP0Fa5nL5F+VNFIw4g7xl0o8zGavXSHPa+U5W/hWMG59MU1sjgQc Y4OXzD3nBxxcYiPo8h78iThcwBmZczPyhu+xydCxkeVMgYeVC/Yo4MMW2utcY0nIUEub ArVQb8Jv1OKdRcDyAaAm1bzpNcwPOmizgIazRmE2DuqE/Tg9VGTWe9OfodrqHAnTRnfL BfZlDbo71GWprGRKhT/Zuypl8q3J6YK6ICh2wsRioQccbADUMpXGCdhQ7SghGi5KW1PF j5OymE0LNsggLcOad2kSv2Wask/ufVDeczS46U6F/rAZPXp99xiCxxUSILKIFL2O4COk dhJA== 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=wJTLWcIFZyv0JFO9cta9pHUG+lGi0mCPWEKe9LuSPG8=; b=cB2K+veEYmGw6UqQxM52c0vNEbnZsBDTCmNYZnxRyhtI3kwLFjhth/M2Q6BpycqS5U WmdpSi9r07X4Tom/wD6Q3nzX/tqDXrs9Ys6a93f9MVvlI4udddT3L+fSp0eWzXg5xTeD cbvjglS3UhPKv9mJZBOeaaUALxGLxdS7YflRTHLuzy+qQluQQN08dfGukUp9uTX7jSTC KQmEyXbWAhabZH0aWTYpBQMNIjHo6YqptWmUDtz443ew/0ZVRQUvW7eDhRoHI01Ib87q 24ajVWTe5RPozubo9RUAsH+GmBrCoGzHE6n3LXzTKNnu/ExAWelvBDKZyCf6L0WAUxBK GoqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; 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 l81sor14469817oif.145.2020.03.30.11.16.28 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 30 Mar 2020 11:16:28 -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:2c87:: with SMTP id s129mr12932224pgs.406.1585592187786; Mon, 30 Mar 2020 11:16:27 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 11:16:27 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Kever Yang <kever.yang@rock-chips.com>, Simon Glass <sjg@chromium.org>, Philipp Tomsich <philipp.tomsich@theobroma-systems.com>, Anatolij Gustschin <agust@denx.de> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v2 1/4] arm64: dts: rk3399-u-boot: Delete vop assigned-clocks/rates Date: Mon, 30 Mar 2020 23:46:10 +0530 Message-Id: <20200330181613.29462-2-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> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="YggXH8/k"; 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: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
| Series |
rockchip: rk3399: Fix HDMI out
|
|
Commit Message
Jagan Teki
March 30, 2020, 6:16 p.m. UTC
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 <jagan@amarulasolutions.com>
---
Changes for v2:
- none
arch/arm/dts/rk3399-u-boot.dtsi | 4 ++++
1 file changed, 4 insertions(+)
Comments
> From: Jagan Teki <jagan@amarulasolutions.com> > Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, > linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, > Jagan Teki <jagan@amarulasolutions.com> > Date: Mon, 30 Mar 2020 23:46:10 +0530 > Content-Type: text/plain; charset=UTF-8 > > 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. Deleting these properties isn't very helpful as it means the U-Boot device tree can no longer be used by the kernel. Isn't it a better idea to implement these clocks as stubs in the u-boot clock driver? > Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> > --- > Changes for v2: > - none > > 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 8b857ccfc7..b846f9cde7 100644 > --- a/arch/arm/dts/rk3399-u-boot.dtsi > +++ b/arch/arm/dts/rk3399-u-boot.dtsi > @@ -99,9 +99,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; > }; > -- > 2.17.1 > >
On Tue, Mar 31, 2020 at 1:06 AM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: > > > From: Jagan Teki <jagan@amarulasolutions.com> > > Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, > > linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, > > Jagan Teki <jagan@amarulasolutions.com> > > Date: Mon, 30 Mar 2020 23:46:10 +0530 > > Content-Type: text/plain; charset=UTF-8 > > > > 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. > > Deleting these properties isn't very helpful as it means the U-Boot > device tree can no longer be used by the kernel. Isn't it a better > idea to implement these clocks as stubs in the u-boot clock driver? I did try this before sorting out these changes, seems like it requires a bit more tweaking the clock wrt display code. I really didn't see any use case as of now for just to print u-boot log on display out, and more over this support has been broken since from releases. so bypassing these nodes can be a solutions for now. Jagan.
Hi Jagan, On 2020/3/31 下午1:59, Jagan Teki wrote: > On Tue, Mar 31, 2020 at 1:06 AM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: >>> From: Jagan Teki <jagan@amarulasolutions.com> >>> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, >>> linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, >>> Jagan Teki <jagan@amarulasolutions.com> >>> Date: Mon, 30 Mar 2020 23:46:10 +0530 >>> Content-Type: text/plain; charset=UTF-8 >>> >>> 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. >> Deleting these properties isn't very helpful as it means the U-Boot >> device tree can no longer be used by the kernel. Isn't it a better >> idea to implement these clocks as stubs in the u-boot clock driver? > I did try this before sorting out these changes, seems like it > requires a bit more tweaking the clock wrt display code. I really > didn't see any use case as of now for just to print u-boot log on > display out, and more over this support has been broken since from > releases. so bypassing these nodes can be a solutions for now. I agree with Mark for not touch the dts first. I don't know the detail of display driver but: - The rk3399 driver use to work without touch dts from kernel; - the clock driver have a rk3399_vop_set_clk() which does not depends on dts. Thanks, - Kever > > Jagan. > >
Hi Kever, On Thu, Apr 2, 2020 at 2:48 PM Kever Yang <kever.yang@rock-chips.com> wrote: > > Hi Jagan, > > On 2020/3/31 下午1:59, Jagan Teki wrote: > > On Tue, Mar 31, 2020 at 1:06 AM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: > >>> From: Jagan Teki <jagan@amarulasolutions.com> > >>> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, > >>> linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, > >>> Jagan Teki <jagan@amarulasolutions.com> > >>> Date: Mon, 30 Mar 2020 23:46:10 +0530 > >>> Content-Type: text/plain; charset=UTF-8 > >>> > >>> 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. > >> Deleting these properties isn't very helpful as it means the U-Boot > >> device tree can no longer be used by the kernel. Isn't it a better > >> idea to implement these clocks as stubs in the u-boot clock driver? > > I did try this before sorting out these changes, seems like it > > requires a bit more tweaking the clock wrt display code. I really > > didn't see any use case as of now for just to print u-boot log on > > display out, and more over this support has been broken since from > > releases. so bypassing these nodes can be a solutions for now. > > > I agree with Mark for not touch the dts first. I don't know the detail > of display driver but: > > - The rk3399 driver use to work without touch dts from kernel; > > - the clock driver have a rk3399_vop_set_clk() which does not depends on > dts. The existing video drivers are written based on the puma dts and those are not inline to Linux dts files, i.e. the reason the code is pushed I think. The rest of rk3399 dtsi files are now inline to Linux as and display out on these are broken from last 2 releases. so my idea is to resolve the things one-after-another like 1. Make existing video stuff work with all rk3399 (this series along with this patch) 2. Drop this patch change and make video drivers working w/o any explicit changes in dts like this patch does. Since step 2, would take time, and require close testing of all boards I would like to pick the existing stuff for the release. Mark my words to fix the things for the next release. Jagan.
> From: Jagan Teki <jagan@amarulasolutions.com> > Date: Thu, 2 Apr 2020 15:07:01 +0530 > > Hi Kever, > > On Thu, Apr 2, 2020 at 2:48 PM Kever Yang <kever.yang@rock-chips.com> wrote: > > > > Hi Jagan, > > > > On 2020/3/31 下午1:59, Jagan Teki wrote: > > > On Tue, Mar 31, 2020 at 1:06 AM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: > > >>> From: Jagan Teki <jagan@amarulasolutions.com> > > >>> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, > > >>> linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, > > >>> Jagan Teki <jagan@amarulasolutions.com> > > >>> Date: Mon, 30 Mar 2020 23:46:10 +0530 > > >>> Content-Type: text/plain; charset=UTF-8 > > >>> > > >>> 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. > > >> Deleting these properties isn't very helpful as it means the U-Boot > > >> device tree can no longer be used by the kernel. Isn't it a better > > >> idea to implement these clocks as stubs in the u-boot clock driver? > > > I did try this before sorting out these changes, seems like it > > > requires a bit more tweaking the clock wrt display code. I really > > > didn't see any use case as of now for just to print u-boot log on > > > display out, and more over this support has been broken since from > > > releases. so bypassing these nodes can be a solutions for now. > > > > > > I agree with Mark for not touch the dts first. I don't know the detail > > of display driver but: > > > > - The rk3399 driver use to work without touch dts from kernel; > > > > - the clock driver have a rk3399_vop_set_clk() which does not depends on > > dts. > > The existing video drivers are written based on the puma dts and those > are not inline to Linux dts files, i.e. the reason the code is pushed > I think. The rest of rk3399 dtsi files are now inline to Linux as and > display out on these are broken from last 2 releases. so my idea is to > resolve the things one-after-another like > 1. Make existing video stuff work with all rk3399 (this series along > with this patch) > 2. Drop this patch change and make video drivers working w/o any > explicit changes in dts like this patch does. > > Since step 2, would take time, and require close testing of all boards > I would like to pick the existing stuff for the release. Mark my words > to fix the things for the next release. Fair enough. I don't think fixing the issue is too difficult, but it is better to do these things in small steps anyway.
On Thu, Apr 2, 2020 at 3:48 PM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: > > > From: Jagan Teki <jagan@amarulasolutions.com> > > Date: Thu, 2 Apr 2020 15:07:01 +0530 > > > > Hi Kever, > > > > On Thu, Apr 2, 2020 at 2:48 PM Kever Yang <kever.yang@rock-chips.com> wrote: > > > > > > Hi Jagan, > > > > > > On 2020/3/31 下午1:59, Jagan Teki wrote: > > > > On Tue, Mar 31, 2020 at 1:06 AM Mark Kettenis <mark.kettenis@xs4all.nl> wrote: > > > >>> From: Jagan Teki <jagan@amarulasolutions.com> > > > >>> Cc: sunil@amarulasolutions.com, u-boot@lists.denx.de, > > > >>> linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, > > > >>> Jagan Teki <jagan@amarulasolutions.com> > > > >>> Date: Mon, 30 Mar 2020 23:46:10 +0530 > > > >>> Content-Type: text/plain; charset=UTF-8 > > > >>> > > > >>> 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. > > > >> Deleting these properties isn't very helpful as it means the U-Boot > > > >> device tree can no longer be used by the kernel. Isn't it a better > > > >> idea to implement these clocks as stubs in the u-boot clock driver? > > > > I did try this before sorting out these changes, seems like it > > > > requires a bit more tweaking the clock wrt display code. I really > > > > didn't see any use case as of now for just to print u-boot log on > > > > display out, and more over this support has been broken since from > > > > releases. so bypassing these nodes can be a solutions for now. > > > > > > > > > I agree with Mark for not touch the dts first. I don't know the detail > > > of display driver but: > > > > > > - The rk3399 driver use to work without touch dts from kernel; > > > > > > - the clock driver have a rk3399_vop_set_clk() which does not depends on > > > dts. > > > > The existing video drivers are written based on the puma dts and those > > are not inline to Linux dts files, i.e. the reason the code is pushed > > I think. The rest of rk3399 dtsi files are now inline to Linux as and > > display out on these are broken from last 2 releases. so my idea is to > > resolve the things one-after-another like > > 1. Make existing video stuff work with all rk3399 (this series along > > with this patch) > > 2. Drop this patch change and make video drivers working w/o any > > explicit changes in dts like this patch does. > > > > Since step 2, would take time, and require close testing of all boards > > I would like to pick the existing stuff for the release. Mark my words > > to fix the things for the next release. > > Fair enough. I don't think fixing the issue is too difficult, but it > is better to do these things in small steps anyway. I have managed to fix this via clock driver(which seems more reasonable as per Kever), so this is dropped in v3. thanks for noticing. Jagan.
diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi index 8b857ccfc7..b846f9cde7 100644 --- a/arch/arm/dts/rk3399-u-boot.dtsi +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -99,9 +99,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; };