Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp656124ybz; Wed, 15 Apr 2020 16:04:18 -0700 (PDT) X-Google-Smtp-Source: APiQypI4SSNjS+Ah2gxmq/Jx+c4Vp6nQvwZqNPMLy+nY+2zP8q/fgloCzb4JvJQqE/CfUubBI3sg X-Received: by 2002:a17:906:4714:: with SMTP id y20mr3053297ejq.5.1586991858845; Wed, 15 Apr 2020 16:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586991858; cv=none; d=google.com; s=arc-20160816; b=FKgYrVcHHaM8I+jM+O3FIKIzXT7J30tkeTClNBaD4pPVWjr45Gxi9Kj83d6uEd6vna 8pjiuSiR5Qr78pOl9bPxeNPVFJlIeoorU525JvPsQ/GWQYK/ltiZvGjI3ywGuj71EAK8 xCpWMwULQJgeR+Q8Bnrb7uQfiYzjjHD2FrrAPAlEPhxlONxlbEXMRvNGV7cfBYwzQucm eYb8FVVh9DNUAY+JYcRPbqJu6YnjiudEAbbMBkidvSnwdkmJDkCw+JA7c7x3hNN58808 XMQd6DV87S3VQaylxezhrydNp6OPjer75+saDIfZudmYZMm3M9LuSpfjN8bZa5h38XBF U1Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=2FpKNaibElXZYZHQDpFMGSnFDOmOkb2/yGfjVn12bbs=; b=veBWGpWcWMAfGj1j1+S+W5Fn3Jqb9jz5feWcw/n+8g+6D6w7xZXnCrlOX63Ze7Nl9r H6QhxAeyQR9vNQeYBbLueXcpkYuSREWDPo/QySuVxTi6T8A70wP9QYEMn66x3ed2iFBb lNJo+y1iKNVgrKQSF9JGwJGR+xieQZuFrQhE4naQeJD22HZBTGhNcJWSq/V+eqW4/d0M Ru72rpvjBNa2nJyMsJPiRXBmo0nnI3txreQyJhXvkt9v3KlNsmO/CvuR58xWQJxY3xgY VW4nl6GerG+REq6uNNckYuQmgYTx/3prF6C/6eXRJ4QaJPkyhSK9pRRnVWXEUU2qe/fw OpyQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si11896460ejz.35.2020.04.15.16.03.55; Wed, 15 Apr 2020 16:04:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2409047AbgDOLn6 (ORCPT + 99 others); Wed, 15 Apr 2020 07:43:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:53278 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2897395AbgDOLlT (ORCPT ); Wed, 15 Apr 2020 07:41:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E7CA0AEE7; Wed, 15 Apr 2020 11:41:15 +0000 (UTC) Subject: Re: [PATCH v3 2/2] arm64: dts: realtek: Add RTD1319 SoC and Realtek PymParticle EVB To: James Tai Cc: linux-realtek-soc@lists.infradead.org, Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org References: <20200204145207.28622-1-james.tai@realtek.com> <20200204145207.28622-3-james.tai@realtek.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: <842e8a9d-cdd6-cb85-ce85-17f20ff7b626@suse.de> Date: Wed, 15 Apr 2020 13:41:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200204145207.28622-3-james.tai@realtek.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, A couple more nits to consider for v4: Am 04.02.20 um 15:52 schrieb James Tai: > diff --git a/arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts b/arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts > new file mode 100644 > index 000000000000..2a36d220fef6 > --- /dev/null > +++ b/arch/arm64/boot/dts/realtek/rtd1319-pymparticle.dts > @@ -0,0 +1,43 @@ > +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) > +/* > + * Copyright (c) 2019 Realtek Semiconductor Corp. 2019-2020? (also elsewhere) > + */ > + > +/dts-v1/; > + > +#include "rtd1319.dtsi" > + > +/ { > + compatible = "realtek,pymparticle", "realtek,rtd1319"; > + model = "Realtek PymParticle EVB"; > + > + memory@2e000 { > + device_type = "memory"; > + reg = <0x2e000 0x3ffd2000>; /* boot ROM to 1 GiB or 2 GiB */ > + }; > + > + chosen { > + stdout-path = "serial0:460800n8"; > + }; > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + serial2 = &uart2; > + }; > +}; > + > +/* debug console (J1) */ > +&uart0 { > + status = "okay"; > +}; > + > +/* M.2 slot (CON8) */ Also J14 and CON2 (unless the board is mislabeled?). /* J14 and M.2 slots (CON2, CON8) */ ? > +&uart1 { > + status = "disabled"; > +}; > + > +/* GPIO connector (T1) */ > +&uart2 { > + status = "disabled"; > +}; > diff --git a/arch/arm64/boot/dts/realtek/rtd1319.dtsi b/arch/arm64/boot/dts/realtek/rtd1319.dtsi > new file mode 100644 > index 000000000000..1dcee00009cd > --- /dev/null > +++ b/arch/arm64/boot/dts/realtek/rtd1319.dtsi > @@ -0,0 +1,12 @@ > +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) > +/* > + * Realtek RTD1319 SoC > + * > + * Copyright (c) 2019 Realtek Semiconductor Corp. > + */ > + > +#include "rtd13xx.dtsi" > + > +/ { > + compatible = "realtek,rtd1319"; > +}; > diff --git a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi > new file mode 100644 > index 000000000000..f6d73f18345d > --- /dev/null > +++ b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi > @@ -0,0 +1,213 @@ > +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) > +/* > + * Realtek RTD13xx SoC family > + * > + * Copyright (c) 2019 Realtek Semiconductor Corp. > + */ > + > +/memreserve/ 0x0000000000000000 0x000000000002e000; /* Boot ROM */ Can you check whether your U-Boot and LK respectively need this memreserve entry, here and for previous SoCs? Because for RTD16xx we don't seem to have any memreserve entries at all. We do have it in rtd139x.dtsi, rtd129x.dtsi and rtd1195.dtsi. Unrelated: Since we're carving out the 2e000 or so from /memory node and mapping ranges for /soc, I've been wondering whether we should represent the Boot ROM as node somehow. But since it's a ROM with (I assume) binary code only, I didn't see any need to have it accessible as mtd-rom device, so it's way down my to-do list to research how other mainline platforms might model their boot ROMs... (maybe your team has time, or someone reading happens to know?) https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/mtd/mtd-physmap.txt > +/memreserve/ 0x000000000002e000 0x0000000000100000; /* Boot loader */ Is this a) correctly sized (not 0xd2000?) and b) still needed? I thought the documented sub-0x100000 memory corruption were fixed in newer BSPs? > +/memreserve/ 0x000000000f400000 0x0000000000500000; /* Video FW */ > +/memreserve/ 0x000000000f900000 0x0000000000500000; /* Audio FW */ > +/memreserve/ 0x0000000010000000 0x0000000000014000; /* Audio FW RAM */ [snip] Are these needed for the bootloader not to overwrite preloaded firmware, or could these become /mem-reserve sub-nodes instead? Long-term I'm assuming we would move the responsibility for loading these to the new kernel drivers (so that the bootloader doesn't need to take care anymore) and ship the needed blobs in linux-firmware.git? Or is the video FW needed by the bootloader itself for HDMI/DP output? Thanks, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)