Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22385C433FE for ; Thu, 3 Nov 2022 16:59:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5D3F4851D8; Thu, 3 Nov 2022 17:57:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="RzFAbGC7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BF6EE851D4; Thu, 3 Nov 2022 17:57:44 +0100 (CET) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2C030851D2 for ; Thu, 3 Nov 2022 17:57:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x834.google.com with SMTP id c15so1602178qtw.8 for ; Thu, 03 Nov 2022 09:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QOUwO4x3EcIActf4hypXGsYBlbkDf1BXb1SWkKYomrI=; b=RzFAbGC78wk3xdJruBPPeEfx+1z3j90mnfBAzffwkZDs2KKCL1DZwxtpPmjjHufLL5 fXFE87SLFh+HdNVSrvEJC2eEYQQ9sKadAYuG4tD3ZSBMxP8aE05EvYLO0R8i9SPrbF7X vFSLMSz3qqhK2sxHgxRa9xVTVZv76c03W+VSg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QOUwO4x3EcIActf4hypXGsYBlbkDf1BXb1SWkKYomrI=; b=2/q/gkumY4cAnDi6ua5/0l+F50wvh1hrIMAgjGi3qbuVvMLGQUpeL/fsOChyHZcGWG Pgs1g8f9ztiux/MH9w8eE90+tb88smdaUXx/9DTW3ec8IBDfirbki26R1olDj7FBsrTk jCqM7ztEOdFSCvgCxZWYX5JjfMTjTa3NHr1GVrgAEdkGDNIteXFsYq0n54cy35gFQ0rK bSc3NrsNgYxOun694EkzF9uVUqgE3OsEoAREzgGkLrIjlVQ/3kr3Nj2pqUri7/E6LuO3 ybtaJY47ELpp9SZXlbDv15H3lmHWq410uURZSoeQ1syNonPBDI17jQ1zB1rhSxB6ljbU 0fPA== X-Gm-Message-State: ACrzQf3XcgzDk+EU08dhHroTqydRRcYLdlPO/FU1T6YWuZgaaYmjdasx QeGdAyxdzinz1j4MpMJCwdGwaA== X-Google-Smtp-Source: AMsMyM7YEWODlmzFtvCG/chXzbrqJI0hyG1OCb27RHuWYYLDDgIeZHKtP4/uonuaOILPKeoxrdYvHA== X-Received: by 2002:ac8:7e84:0:b0:39d:fd1:5a1d with SMTP id w4-20020ac87e84000000b0039d0fd15a1dmr25633582qtj.169.1667494659757; Thu, 03 Nov 2022 09:57:39 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-994c-dfba-30d0-8ee5.res6.spectrum.com. [2603:6081:7b00:6400:994c:dfba:30d0:8ee5]) by smtp.gmail.com with ESMTPSA id y19-20020a05620a44d300b006fa2dde9db8sm1072102qkp.95.2022.11.03.09.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 09:57:39 -0700 (PDT) Date: Thu, 3 Nov 2022 12:57:37 -0400 From: Tom Rini To: Andre Przywara Cc: Simon Glass , u-boot@lists.denx.de Subject: Re: [PATCH 2/3] highbank: scan into hb_sregs DT subnodes Message-ID: <20221103165737.GG2116612@bill-the-cat> References: <20221020221025.2473281-1-andre.przywara@arm.com> <20221020221025.2473281-3-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XZq0mbLCR4KNTYFe" Content-Disposition: inline In-Reply-To: <20221020221025.2473281-3-andre.przywara@arm.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean --XZq0mbLCR4KNTYFe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 20, 2022 at 11:10:24PM +0100, Andre Przywara wrote: > The DT used for Calxeda Highbank and Midway systems exposes a "system > registers" block, modeled as a DT subnode. > This includes several clocks, including the two fixed clocks for the > main oscillator and timer. >=20 > So far U-Boot was ignorant of this special construct (a "clocks" node > within the "hb-sregs" node), as it didn't need the PLL clocks in there. > But that also meant we lost the fixed clocks, which form the base for > the UART baudrate generator and also the SP804 timer. >=20 > To allow the generic PL011 and SP804 driver to read the clock rate, > add a simple bus driver, which triggers the DT node discovery inside this > special node. As we only care about the fixed clocks (we don't have > drivers for the PLLs anyway), just ignore the address translation (for > now). >=20 > The binding is described in bindings/arm/calxeda/hb-sregs.yaml, the DT > snippet in question looks like: >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > sregs@fff3c000 { > compatible =3D "calxeda,hb-sregs"; > reg =3D <0xfff3c000 0x1000>; >=20 > clocks { > #address-cells =3D <1>; > #size-cells =3D <0>; >=20 > osc: oscillator { > #clock-cells =3D <0>; > compatible =3D "fixed-clock"; > clock-frequency =3D <33333000>; > }; > .... > }; > }; > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 > Signed-off-by: Andre Przywara Applied to u-boot/master, thanks! --=20 Tom --XZq0mbLCR4KNTYFe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmNj8wEACgkQFHw5/5Y0 tywsNAv9Fmo4WmJv2aVbYLi2PiNTlTMY9IkRA1v+4XAUuGwkHekxqTIH/s7r/Xra udgDyZfgPNWcFe/bKlCnvfelScMZESurTr+m9JB0tGhNaA62hmISRDf2dS78zQ9V 5+p91pUfDB4X+qnn7KDUT7Dtv9e97IMER48P1uMjAfzPedTfTOPnN+FkPH67FKoI 6zl7PbwW8AJVqVxjPKRX+d5Yk6MkZozx9ZwAEDCMCnkbRkKySLG9PoDVQXpVeT2b mvlcq+rMK7ORbWGhwQfpwRIgZfZoTjGsx59X1SFfugBLdvlx6W2EoHNise/mWoEL gMnjEMzLDM22Txo/J0MAprOXKw5pZiwHtTTQOn7G33JfcmEm/XeW7xleOARZIRd0 J6b+InQZG2EfOK1obJPQTKEBjc9XT41MJKiX6skeIbpRlRjDfG5IcTe512orogLt zQ9S/jaB/XfOeEu15+NIecFi5BfO3GsDYIZaG5cao+ulYNeLN6wGqMLZHlkO8LLH 10cJI+9n =JTp4 -----END PGP SIGNATURE----- --XZq0mbLCR4KNTYFe--