Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5281751pxv; Wed, 28 Jul 2021 07:20:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeM3FtitlRWn099PydnpLPO9lRPd9Havq8ID+7NcigLejCtiRALQByjo0X3wv5o+IsHqyO X-Received: by 2002:a92:d8cf:: with SMTP id l15mr56621ilo.227.1627482004479; Wed, 28 Jul 2021 07:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627482004; cv=none; d=google.com; s=arc-20160816; b=znkgR5nQ7IEa8teQ/sR/X83Xn1B1xEFPxNkLTAVGBvvLicwscSML1Rl/QgLs0GfM+v R6bgpB3tfe2TCgfudnpwwhxJjNOio1QOA11KaGQjJHANHR1rup0vj7qays6cq8q2qrVv IN/WM/d3I5GboLiKDqwvGCv1zcnMP2Eojwwuy5cC0ZCSWAmUC4+a7D72jG+TCUHAfhAV V2lApCuP1iSSkhuTwW1dl2fnd/IVEulJfop4SOK2VjbROvOkSvE8Qrp57VIeRV4guQmT 8hFBAHUQTIBnJR5NxfqjOstTJ0XhZ8frC5sIzlN5E123cdgcWx0KcZir9CNF4nzcKTi/ aXzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ejXULwDzPXwJ/LTVaK86AHBcOGDiYvQDKdZvKfGyr+E=; b=HTyjKhrinXLZtjlZbgOhS6OwEJI0zH9J1L4Krj304ArzDOXTfLNbosaVnu3/Evoq47 sX4GecYh9kcOT6sQ+ndqjmG5+F0zBlvy3bPMuWuNTdGoHiMKgvTcP4giXAemnsq0Z8GL NDzFVBS7JnHmSee37ZF/0rtwRNf6qFFGi2BhNeH9CpIMbFMiD/YSjYJ3EWC5Qma7W215 PsJ4mw4wE+Yohw5yHvj1fGwrhnZqKDQxr4L/Mb+1ip59eB7cmyPmR882TAWe6s9Xjg77 /qqh3lz2T1Cz7xKZrxuYisNMmkxHCS1tJVjYwXJRO0JARJqzmixEOcDijEJrE6RO+h7t 3MTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=izLih9JX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si37566ion.84.2021.07.28.07.19.52; Wed, 28 Jul 2021 07:20:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=izLih9JX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236686AbhG1OTF (ORCPT + 99 others); Wed, 28 Jul 2021 10:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236619AbhG1OTE (ORCPT ); Wed, 28 Jul 2021 10:19:04 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E478C061764; Wed, 28 Jul 2021 07:19:03 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id g76so4231550ybf.4; Wed, 28 Jul 2021 07:19:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ejXULwDzPXwJ/LTVaK86AHBcOGDiYvQDKdZvKfGyr+E=; b=izLih9JXIZe8uv9f2Y5f/dBmFONzdLNBX3NwBX8w15sMRi8/cSqjpYVpa7WPKvKmb0 YVeN4seCnkjHpYV1oC6tmJDU3mZiehtap5QguPxcxHLBLD8Ki993awTH38hIi9mFB9Yc cbOL/VtgQCEQsKgtMylpl+gZftgiDw8jaEMXp463BpIbSnFURa+wj8OatcJMBWMvqo3K vb7rXPy9/j+oseSpdi1cxsRVIHyZNLJPkpTm58hwkgdJpl+7x7FjkwEzcbEiH/5Fdb+B sqmxgMRqluJgNLeHvg4ueTvoxpNW6YpitOnPKeA7gpKu12Vb0YjPZRKK6iEIstxIHpCN P4CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ejXULwDzPXwJ/LTVaK86AHBcOGDiYvQDKdZvKfGyr+E=; b=WtX8zBESWKjXiMLLsGI3TbmqPYq7Bewardxk6hGDTUnhknMEEAsWNOKyZlQoZ3OMNq 3xh+UZsv99s5GTqJcgGj8GCVZ/ZwX93C1S9EloON2b3WspT5fm0+6Hs1hvUn9tKKEuqZ +N4HAQ9drv9sWH3xZXDQDCnx42HcUlk9ZIki8ZicTQb28obHiZF7ZmR/nEAub8Fn1JoM NiZ2X6zbt8XDsCjMknC2Cw+ocClVhU4MWbW8PQUC3KTdJZ7fFV0bKyp0ugE7dkiglwcc /dEYgsjFeueOQJ7qf6/O//muQDADtfkji7SOWelbe29FGLbVsLKEodbOxMYuGpXDuc8W fGeQ== X-Gm-Message-State: AOAM531mvJIHe4yvoZOCMPqii/BlF1bQF+F/n8K6oZCK88fyOpbhGEui ddF+9RXVUN/F0ms+6AYGz/AnAsYN6UBRBBahkzw= X-Received: by 2002:a25:3c5:: with SMTP id 188mr8800245ybd.437.1627481942356; Wed, 28 Jul 2021 07:19:02 -0700 (PDT) MIME-Version: 1.0 References: <20210728135534.703028-1-pgwipeout@gmail.com> <20210728135534.703028-7-pgwipeout@gmail.com> <13247009.uLZWGnKmhe@diego> In-Reply-To: <13247009.uLZWGnKmhe@diego> From: Peter Geis Date: Wed, 28 Jul 2021 10:18:49 -0400 Message-ID: Subject: Re: [PATCH 6/9] arm64: dts: rockchip: add missing rk3568 cru phandles To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , "open list:GPIO SUBSYSTEM" , devicetree@vger.kernel.org, arm-mail-list , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 28, 2021 at 10:06 AM Heiko St=C3=BCbner wrote= : > > Hi Peter, > > Am Mittwoch, 28. Juli 2021, 15:55:31 CEST schrieb Peter Geis: > > The grf and pmugrf phandles are necessary for the pmucru and cru to > > modify clocks. Add these phandles to permit adjusting the clock rates > > and muxes. > > > > Signed-off-by: Peter Geis > > --- > > arch/arm64/boot/dts/rockchip/rk356x.dtsi | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot= /dts/rockchip/rk356x.dtsi > > index 0905fac0726a..8ba0516eedd8 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi > > @@ -218,6 +218,8 @@ grf: syscon@fdc60000 { > > pmucru: clock-controller@fdd00000 { > > compatible =3D "rockchip,rk3568-pmucru"; > > reg =3D <0x0 0xfdd00000 0x0 0x1000>; > > + rockchip,grf =3D <&grf>; > > + rockchip,pmugrf =3D <&pmugrf>; > > I don't think the pmucru needs both and in fact the mainline > clock driver should just reference its specific grf at all, i.e. > pmucru -> pmugrf (via the rockchip,grf handle) > cru -> grf > > I've not seen anything breaking this scope so far. I thought the same thing as well, but for some reason the driver refuses to apply assigned-clocks to the plls unless these are all present. If the driver can get these assignments automatically eventually, perhaps it's a loading order issue? Thinking about it, it's probably the grf and pmugrf haven't probed when the driver is attempting to assign these, and tying them together forces the probe to happen first. > > > Heiko > > > #clock-cells =3D <1>; > > #reset-cells =3D <1>; > > }; > > @@ -225,6 +227,7 @@ pmucru: clock-controller@fdd00000 { > > cru: clock-controller@fdd20000 { > > compatible =3D "rockchip,rk3568-cru"; > > reg =3D <0x0 0xfdd20000 0x0 0x1000>; > > + rockchip,grf =3D <&grf>; > > #clock-cells =3D <1>; > > #reset-cells =3D <1>; > > }; > > > > > >