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 E33C3C77B7C for ; Mon, 17 Apr 2023 17:34:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BC9E186029; Mon, 17 Apr 2023 19:33:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=mailbox.org header.i=@mailbox.org header.b="Ri0PJYy2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AAB5686003; Mon, 17 Apr 2023 19:33:15 +0200 (CEST) Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D768686013 for ; Mon, 17 Apr 2023 19:33:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.vasut@mailbox.org Received: from smtp2.mailbox.org (unknown [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Q0Yzp6tc0z9t65; Mon, 17 Apr 2023 19:33:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1681752790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8LQJbjx3K+YBQszWr7DDwTDnlqyR5bKQzU+ZQBHkTWw=; b=Ri0PJYy2pBYTb4jT3sKIriqP2liSMUblPlK9mrMCmSKwUhLMLM0qQyQKBNlcJ1Sga79wDG v6lgMu4S1a2ZEDncEp9jvxukiMAvpcVvFyMMZjMfOftrhRSH/mJhvZ0suRXeZMx6y4fEqy VVPyJOY0D8jRX8k+bejZDI+EvHPtAaDHHmHqzmZcndC3rIVrgB6aW55Vn21eD380jSAqsb y3REF0IO8/O8dV8UjMTzPmpAhi+wnIeRBFlFKzdV7R2QBmPWTRnq6ZzqxmctKk8+PXpNJt L+IVOPhMMCPN+DwgwyR3suTsXnilnlAvxSVygWF4S0gTUuyW5fWlTiyRkTUjZA== Message-ID: Date: Mon, 17 Apr 2023 19:12:31 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v4 06/10] dts: basic devicetree for Renesas RZ/N1 SoC Content-Language: en-US To: Ralph Siemsen , u-boot@lists.denx.de References: <20230308202653.1926303-1-ralph.siemsen@linaro.org> <20230308202653.1926303-7-ralph.siemsen@linaro.org> From: Marek Vasut In-Reply-To: <20230308202653.1926303-7-ralph.siemsen@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-META: 9o6hsn991o7g7pu7kbsaiewfii67ftoa X-MBO-RS-ID: 7b495411597492b1a1e 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.8 at phobos.denx.de X-Virus-Status: Clean On 3/8/23 21:26, Ralph Siemsen wrote: > This is taken from Linux kernel 5.17, and contains just bare minimum > functionality: CPU, UART and system timer. Why Linux 5.17 and not e.g. 6.2 or 6.1 LTS ? > Additional functionality (from newer kernel versions) will be added > later. Note that the Linux side is under active development. > > Signed-off-by: Ralph Siemsen > --- > The following changes were made, compared with Linux 5.17: > > 1) Add node for system controller registers. > Declare it as syscon to provide a regmap interface. > > 2) In the clock controller node (renesas,r9a06g032-sysctrl), > replace regs with regmap. > > 3) Add syscon-reset node, making use of the syscon regmap. > > 4) Add syscon phandle to ddrctrl. Used for checking h/w version. > > 5) Simplify the compatible string for all the UARTS, as per > doc/device-tree-bindings/serial/snps-dw-apb-uart.txt > > I could not find a way to avoid 1) and 2). Putting "syscon" in the > compatible string for the clock controller leads to a catch-22, > where the driver fails to initialize, and then boot hangs. Can you extract all the changes to arch/arm/dts/r9a06g032-u-boot.dtsi and include that u-boot dtsi in your board DT, so the arch/arm/dts/r9a06g032.dtsi can be synchronized with Linux with ease due to no changes in it ?