Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1556121

Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU

From Heiko Stuebner <heiko@sntech.de>
Newsgroups linux.kernel
Subject Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU
Date 2017-01-11 02:20 +0100
Message-ID <sYfK1-ig-1@gated-at.bofh.it> (permalink)
References <sXXWO-6eM-3@gated-at.bofh.it> <sY9EC-4Q2-9@gated-at.bofh.it> <sYfAm-fa-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Mittwoch, 11. Januar 2017, 09:04:24 CET schrieb Xing Zheng:
> Hi Doug,
> 
> On 2017年01月11日 02:45, Doug Anderson wrote:
> > Hi,
> > 
> > On Mon, Jan 9, 2017 at 10:15 PM, Xing Zheng <zhengxing@rock-chips.com> 
wrote:
> >> The structure rockchip_clk_provider needs to refer the GRF regmap
> >> in somewhere, if the CRU node has not "rockchip,grf" property,
> >> calling syscon_regmap_lookup_by_phandle will return an invalid GRF
> >> regmap, and the MUXGRF type clock will be not supported.
> >> 
> >> Therefore, we need to add them.
> >> 
> >> Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
> >> ---
> >> 
> >> Changes in v4:
> >> - separte the binding patch
> >> 
> >> Changes in v3:
> >> - add optional roperty rockchip,grf in rockchip,rk3399-cru.txt
> >> 
> >> Changes in v2:
> >> - referring pmugrf for PMUGRU
> >> - fix the typo "invaild" in COMMIT message
> >> 
> >>   arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++
> >>   1 file changed, 2 insertions(+)
> > 
> > This seems fine to me, so:
> > 
> > Reviewed-by: Douglas Anderson <dianders@chromium.org>
> > 
> > ...but I will say that before you actually add any real "MUXGRF"
> > clocks on rk3399 you _might_ need to rework the code to make things
> > truly "optional".  If it turns out that any existing clocks that
> > already exist today already go through one of these muxes in the GRF
> > and we've always been assuming one setting of the mux, we'll need to
> > make sure we keep assuming that setting of the mux even if the "grf"
> > isn't specified.
> > 
> > As I understand it, your motivation for this patch is to eventually be
> > able to model the EDP reference clock which can either be xin24 or
> > "edp osc".  Presumably the eDP "reference clock" isn't related to any
> > of the pre-existing eDP clocks so that one should be safe.
> 
> Hmm... I had intended to use this patch for EDP reference clock, but we
> don't need to change the parent
> clock (see the BUG: 61664).

Yep that sounds ok. As I said in my replies, we don't support the edp in the 
mainline kernel yet, so nothing old can break here :-)


> I just woud like to add this patch to avoid getting some unavailable
> MUXGRF clock and need to debug it again,
> if we support it one day in future.

could you just check, if we have any other grf-based muxes that we may need in 
the future. Right now I only see pclkin_isp1_wrapper describing such a mux, 
but it would be cool if you could check again.


Thanks
Heiko

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/2] Add support rockchip,grf property for RK3399 PMU/GRU Xing Zheng <zhengxing@rock-chips.com> - 2017-01-10 07:20 +0100
  [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU Xing Zheng <zhengxing@rock-chips.com> - 2017-01-10 07:20 +0100
    Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property  for RK3399 PMUCRU/CRU Doug Anderson <dianders@google.com> - 2017-01-10 19:50 +0100
      Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU Heiko Stübner <heiko@sntech.de> - 2017-01-10 20:50 +0100
        Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU Heiko Stübner <heiko@sntech.de> - 2017-01-10 21:00 +0100
          Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property  for RK3399 PMUCRU/CRU Doug Anderson <dianders@google.com> - 2017-01-12 02:00 +0100
            Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU Heiko Stuebner <heiko@sntech.de> - 2017-01-12 02:30 +0100
      Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property  for RK3399 PMUCRU/CRU Xing Zheng <zhengxing@rock-chips.com> - 2017-01-11 02:10 +0100
        Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property for RK3399 PMUCRU/CRU Heiko Stuebner <heiko@sntech.de> - 2017-01-11 02:20 +0100
          Re: [PATCH v4 1/2] arm64: dts: rockchip: add "rockchip, grf" property  for RK3399 PMUCRU/CRU Xing Zheng <zhengxing@rock-chips.com> - 2017-01-11 03:10 +0100
  [PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for RK3399 Xing Zheng <zhengxing@rock-chips.com> - 2017-01-10 07:20 +0100
    Re: [PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for RK3399 Doug Anderson <dianders@google.com> - 2017-01-10 19:40 +0100
    Re: [PATCH v4 2/2] dt-bindings: clk: add rockchip,grf property for  RK3399 Rob Herring <robh@kernel.org> - 2017-01-13 17:50 +0100
  Re: [PATCH v4 0/2] Add support rockchip,grf property for RK3399 PMU/GRU Heiko Stuebner <heiko@sntech.de> - 2017-01-13 20:20 +0100

csiph-web