From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4B932C2BD09 for ; Wed, 3 Jul 2024 23:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Date:To:Cc:From:Subject: References:In-Reply-To:Content-Transfer-Encoding:MIME-Version:Content-Type: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FY5jwqCR7/PODBNTb54LqaxsblLBmifD3ymA0YYjjLU=; b=EjM4taXaDXCyNBXc9O5OQVkFES SbKYmkMPQGk5VOUen7NA+mC99+HQ+P1RNexI85lrdM0T0W53C/PIBeCu1jAO0ewwRueagUhcSswBI csY7ffWSD2KaCfaJJAlo3bxMi7/hY/ccjvjWUEs76Ar1XW/qKI56DIE4EEdIadJ9CJD8jNWUsTFWd u+SloqnQbENokFjtvv8iOW5/qXdkI7Gz2BwbhitaHcx89dNkk+bLBPww5F/uqlnPAvS5jFMVEVkAm m8L3m+Z/WLn8gIx8VNV6niBrSzX94c+QGJ1rOJvOJPGG/ZZtVm41+AbNv3hD/bhzFoHocmJAZCcNe Pa73b6FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP8zh-0000000BhEN-3oR4; Wed, 03 Jul 2024 23:02:33 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP8zU-0000000BhBB-3lYn for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 23:02:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 058E7CE315D; Wed, 3 Jul 2024 23:02:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39878C2BD10; Wed, 3 Jul 2024 23:02:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1720047737; bh=323AARVAbsuqgisnRvoVpG6coTMv5pU6DvWTb8N8kDs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=SyW7zLRQqEUsF3R7njKMze0tJN6sYAo2v3HfdCpIhTKysCzrL4GfENdHiWwE8dNMD wpI9kxWE9iFgKz74LTQQv7D4FaqQHsi9XbIOP6/SvmzrJxbL6ScbaC/cFT8AZIXFzq NRAaN3muBi4sVDM30qmdX4gdNcMH5MQQ9vo4a5XuvmGq6b5vQAjLjn0FAimCWjbvER 69/S9sZvWykTB6EsjfwWTB68SXYyXxQa8iBLQe1hNNiKRudLeYZ157U2Ln+nG6G3cH u8JU5G5yo196FznjoasDSsIaYmzbKEag9ARgW7RhGWQFr6QGxcpMizQw2I6aQDobfL 9HI9Mp+N/ewyA== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240703105454.41254-20-ryan@testtoast.com> References: <20240703105454.41254-1-ryan@testtoast.com> <20240703105454.41254-20-ryan@testtoast.com> Subject: Re: [PATCH v2 19/23] clk: sunxi-ng: ccu: add Display Engine 3.3 (DE33) support From: Stephen Boyd Cc: Andre Przywara , Chris Morgan , John Watts , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Ryan Walklin To: Chen-Yu Tsai , Conor Dooley , Daniel Vetter , David Airlie , Jernej Skrabec , Krzysztof Kozlowski , Maarten Lankhorst , Maxime Ripard , Michael Turquette , Rob Herring , Ryan Walklin , Samuel Holland , Thomas Zimmermann Date: Wed, 03 Jul 2024 16:02:15 -0700 User-Agent: alot/0.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_160221_129203_C527F19E X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Quoting Ryan Walklin (2024-07-03 03:51:09) > diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-de2.c b/drivers/clk/sunxi-ng/= ccu-sun8i-de2.c > index b0b8dba239aec..36b9eadb80bb5 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun8i-de2.c > +++ b/drivers/clk/sunxi-ng/ccu-sun8i-de2.c > @@ -7,6 +7,7 @@ > #include > #include > #include > +#include What is this include for? > #include > #include > =20 > @@ -290,6 +301,16 @@ static int sunxi_de2_clk_probe(struct platform_devic= e *pdev) > "Couldn't deassert reset control: %d\n", ret); > goto err_disable_mod_clk; > } > +=20 > + /* > + * The DE33 requires these additional (unknown) registers set > + * during initialisation. > + */ > + if (of_device_is_compatible(pdev->dev.of_node, > + "allwinner,sun50i-h616-de33-clk")) { > + writel(0, reg + 0x24); > + writel(0x0000A980, reg + 0x28); Lowercase hex please. Did the downstream driver have names for these register offsets by way of some sort of #define? > + } > =20 > ret =3D devm_sunxi_ccu_probe(&pdev->dev, reg, ccu_desc); > if (ret)