Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp23716ybx; Tue, 29 Oct 2019 13:43:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcGpMW/RA3LNP0rX7CAHgygKdPiY1KNzmE33jxCc2sUYSP9f37M5lfzWwi4WD88YbhpdeL X-Received: by 2002:a17:906:d8b4:: with SMTP id qc20mr5315111ejb.305.1572381825822; Tue, 29 Oct 2019 13:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572381825; cv=none; d=google.com; s=arc-20160816; b=DA2MBo5uIq1NJW9oJ+Mqwxn2KmmcIBAaRlqoo/4Bx8SVcoyYWpbXPF1N/c4t1QLkwf LJawimCbOnGpe7TVB/ApWbA31vkwWUIa62/Hobv3VgBPGcN8rJPjhMgJXWJYrGZo6NBg 27zWSPPSgfrT8aC/HmvB4S8DS7v3Fe3mJJ68DlkupulltShInaEFyhdxTfQhBCkfwpRN BLDGd9nwUV+JEeLqcuNDMK+hkuk+K8r2nDfs/M/T2oz82Uh3WMP8viban/gg07+mScCh VwNQXNtsuezWzO541NaLoCC3P84m8OoRPWWQXlXrC5KQ6gG5DDQpSExdOdlDhWsdaojG Ankw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BoOhBeSZFkysKQMHt9LiP/r6wCpcN26a07M64Mo9AxQ=; b=dahCC9pL8Jv8eJAmHfyOqWJ1NhIRqBMXJyDrnxfsGXbNLUTFrLmTOyfVg7bwGtTSX5 PMkIcBksh9XhKsUmCNjhbEhbp3mS1pqRTbK5W2kqZgjQpsuUPHUhIMwL0uOkhR0h+e6U suyyEB7jDWw+tf/06/J2c2FRswF9EihEFcgCeVxwJrC0njPgZ+CuF7YswbKP1YJWnseG cmPkZ2yEfbZqLpVYVc6mimyQx1xznrn+bSvgLBjVAiPtW0s7LgNYuyKCcgynMW0aKhFd 70icoXnPHVCTawqpwRnlT4COHI3m08XoRe9TcvirUCgl8Cpgg1FUq1ILnM89/9rO89rn Lhlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uy+Xf+Iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si11190805edi.27.2019.10.29.13.43.20; Tue, 29 Oct 2019 13:43:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uy+Xf+Iq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727456AbfJ2Ukb (ORCPT + 99 others); Tue, 29 Oct 2019 16:40:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbfJ2Ukb (ORCPT ); Tue, 29 Oct 2019 16:40:31 -0400 Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC20A208E3; Tue, 29 Oct 2019 20:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572381630; bh=+ErzTvkm89mf/Yo1sKBo6GnZ+47nBen0ZswGPxY1Rsc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uy+Xf+IqaUTwAbgRHSBRNXrCnp68ZxhUaVEeBdva8YPx8Notmy/Z0/NvpKnRgRifT k4YifzN9W3JY4PQADxbYxAMkAlbFs7bofoZo1O0LcwlsLzcg3pvVIrzBg2rez+ikG6 cH3v0tyvYZ4nSCc+/EhZUE8AZJJqOJYntBdf0T9I= Received: by mail-qt1-f181.google.com with SMTP id e14so97456qto.1; Tue, 29 Oct 2019 13:40:29 -0700 (PDT) X-Gm-Message-State: APjAAAUOnYSoux58r8PV6NMfqGhAZ5Ga9gmSIObmgJWuqeC+eYcdHSfF drBBj7hwujE5et5ThuYV5yeRCxYPxkL/cExy1w== X-Received: by 2002:ac8:741a:: with SMTP id p26mr1190108qtq.143.1572381628943; Tue, 29 Oct 2019 13:40:28 -0700 (PDT) MIME-Version: 1.0 References: <20191021021035.7032-1-afaerber@suse.de> <20191021021035.7032-4-afaerber@suse.de> <20191029154129.GA24908@bogus> <6e6087af-6a62-f0ff-07af-48e4836c38e6@suse.de> In-Reply-To: <6e6087af-6a62-f0ff-07af-48e4836c38e6@suse.de> From: Rob Herring Date: Tue, 29 Oct 2019 15:40:17 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/3] ARM: dts: Prepare Realtek RTD1195 and MeLE X1000 To: =?UTF-8?Q?Andreas_F=C3=A4rber?= Cc: linux-realtek-soc@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Mark Rutland , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 29, 2019 at 10:52 AM Andreas F=C3=A4rber wro= te: > > Am 29.10.19 um 16:41 schrieb Rob Herring: > > On Mon, Oct 21, 2019 at 04:10:35AM +0200, Andreas F=C3=A4rber wrote: > >> Add Device Trees for Realtek RTD1195 SoC and MeLE X1000 TV box. > >> > >> Reuse the existing RTD1295 watchdog compatible for now. > >> > >> Signed-off-by: Andreas F=C3=A4rber > >> --- > >> arch/arm/boot/dts/Makefile | 2 + > >> arch/arm/boot/dts/rtd1195-mele-x1000.dts | 30 ++++++++ > >> arch/arm/boot/dts/rtd1195.dtsi | 128 ++++++++++++++++++++++= +++++++++ > >> 3 files changed, 160 insertions(+) > >> create mode 100644 arch/arm/boot/dts/rtd1195-mele-x1000.dts > >> create mode 100644 arch/arm/boot/dts/rtd1195.dtsi > >> > >> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > >> index 73d33611c372..89a951485da8 100644 > >> --- a/arch/arm/boot/dts/Makefile > >> +++ b/arch/arm/boot/dts/Makefile > >> @@ -858,6 +858,8 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D \ > >> dtb-$(CONFIG_ARCH_RDA) +=3D \ > >> rda8810pl-orangepi-2g-iot.dtb \ > >> rda8810pl-orangepi-i96.dtb > >> +dtb-$(CONFIG_ARCH_REALTEK) +=3D \ > >> + rtd1195-mele-x1000.dtb > >> dtb-$(CONFIG_ARCH_REALVIEW) +=3D \ > >> arm-realview-pb1176.dtb \ > >> arm-realview-pb11mp.dtb \ > >> diff --git a/arch/arm/boot/dts/rtd1195-mele-x1000.dts b/arch/arm/boot/= dts/rtd1195-mele-x1000.dts > >> new file mode 100644 > >> index 000000000000..ce9a255950d3 > >> --- /dev/null > >> +++ b/arch/arm/boot/dts/rtd1195-mele-x1000.dts > >> @@ -0,0 +1,30 @@ > >> +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) > >> +/* > >> + * Copyright (c) 2017 Andreas F=C3=A4rber > > > > 2019? > > Nope, I am flushing out old queues, and updating SPDX line does not > really warrant a copyright bump IMO. The changes below would though. > > >> + */ > >> + > >> +/dts-v1/; > >> + > >> +#include "rtd1195.dtsi" > >> + > >> +/ { > >> + compatible =3D "mele,x1000", "realtek,rtd1195"; > >> + model =3D "MeLE X1000"; > >> + > >> + aliases { > >> + serial0 =3D &uart0; > >> + }; > >> + > >> + chosen { > >> + stdout-path =3D "serial0:115200n8"; > >> + }; > >> + > >> + memory { > > > > memory@0 > > Will test. > > > > >> + device_type =3D "memory"; > >> + reg =3D <0x0 0x40000000>; > >> + }; > >> +}; > >> + > >> +&uart0 { > >> + status =3D "okay"; > >> +}; > >> diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd119= 5.dtsi > >> new file mode 100644 > >> index 000000000000..475740c67d26 > >> --- /dev/null > >> +++ b/arch/arm/boot/dts/rtd1195.dtsi > >> @@ -0,0 +1,128 @@ > >> +// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) > >> +/* > >> + * Copyright (c) 2017 Andreas F=C3=A4rber > >> + */ > >> + > >> +/memreserve/ 0x00000000 0x0000c000; /* boot code */ > >> +/memreserve/ 0x0000c000 0x000f4000; > >> +/memreserve/ 0x01b00000 0x00400000; /* audio */ > >> +/memreserve/ 0x01ffe000 0x00004000; /* rpc ringbuf */ > >> +/memreserve/ 0x10000000 0x00100000; /* secure */ > >> +/memreserve/ 0x17fff000 0x00001000; > >> +/memreserve/ 0x18000000 0x00100000; /* rbus */ > >> +/memreserve/ 0x18100000 0x01000000; /* nor */ > > > > You shouldn't have the same entries here and in /reserved-memory. There > > was a time before /reserved-memory was fully supported, but we should b= e > > well past that now. > > I am dealing with a v2012.07 based downstream U-Boot that I do not have > sources for, so I wouldn't be so sure there... It will only respect > memreserve I think, whereas reserved-memory below is for the kernel, no? Sigh... Well, that may be too old. :( I could be wrong too and no one ever added /reserved-memory support for u-boot. The intent was never that one was for u-boot and the other for the kernel. The kernel handles both. reserved-memory was to overcome the limitations of memreserve. > >> +#include > >> + > >> +/ { > >> + compatible =3D "realtek,rtd1195"; > >> + interrupt-parent =3D <&gic>; > >> + #address-cells =3D <1>; > >> + #size-cells =3D <1>; > >> + > >> + cpus { > >> + #address-cells =3D <1>; > >> + #size-cells =3D <0>; > >> + > >> + cpu0: cpu@0 { > >> + device_type =3D "cpu"; > >> + compatible =3D "arm,cortex-a7"; > >> + reg =3D <0x0>; > >> + clock-frequency =3D <1000000000>; > >> + }; > >> + > >> + cpu1: cpu@1 { > >> + device_type =3D "cpu"; > >> + compatible =3D "arm,cortex-a7"; > >> + reg =3D <0x1>; > >> + clock-frequency =3D <1000000000>; > >> + }; > >> + }; > >> + > >> + reserved-memory { > >> + #address-cells =3D <1>; > >> + #size-cells =3D <1>; > >> + ranges; > >> + > >> + secure@10000000 { > >> + reg =3D <0x10000000 0x100000>; > >> + no-map; > >> + }; > >> + > >> + rbus@18000000 { > >> + reg =3D <0x18000000 0x100000>; > >> + no-map; > > > > This doesn't look right as it overlaps the register space. > > Will try dropping it. James? > > >> + }; > >> + > >> + nor@18100000 { > >> + reg =3D <0x18100000 0x1000000>; > >> + no-map; > >> + }; > > Same issue here, I guess? Yes. Rob