Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1537790rwo; Sat, 22 Jul 2023 16:18:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlERV+yhY00A0p7eccXa4K6+xIzpHkq8DXwhogxL911VXoLkURPZwGteslBkJE4lmSpjq2nN X-Received: by 2002:a17:903:2282:b0:1b8:c8bc:c81b with SMTP id b2-20020a170903228200b001b8c8bcc81bmr6999668plh.21.1690067888800; Sat, 22 Jul 2023 16:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690067888; cv=none; d=google.com; s=arc-20160816; b=w1zhfkAptYWbeOL6F6F55mRRoo87qRUNCItpoPbOVjq7zDbGRn0JhXsiWI0mGg6Gp8 j60v0OIm0EvAqQvK0s1N8jx+KiBVL8i6pfQ35xUCjDFzUsZ2J9iRlrRAXPIbpIYVVbeC zcop2XGRajZ8BOvRYaG7MVOOF06+cvIJIfdVkbS1pKrZ08T9RAQxQWEZku7Ilv2kE5Xt Z5eha67jqIdx8lIjWQO9f5wrvs+8wL9xKeJk3+ReU7IokwAf+eZ+QEfPVjH3hKs7z8/8 nNUXv9RYyYkKRc4pNLjGH6Q/2QGyCHJnVLbi73cxEbku4CjcMAyVIRhtZafh7skD+Dro Mz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=W9XN6KIhR7edcFn2VHLQTZsmEOmHApBZlU0exfrhIlo=; fh=CnzabNx7rHgcNaLNbtlG4zX6OdwY4l2jvU/Lp+2+QEo=; b=MRS/YFi2dMplZKfw3foKNdHCJ6ue2VE75jW82OgEZ/vxskbShZYZBEAZHRqHaiq7Td qH5jlY2Tu63B0hakd5t8+bMw3tP8R9bTZ+YKQ2+1hKJjDMm2u9ob6GjUtufU2IW1X876 9JjniCK/bdD2APqmqPb7G+ZmAOVIW/sivscL4FzzWlS6kWM7e8bHbYX0wCpsWGiwLDNz zjYfT2whHVb8XG6lI0+VVO4KESv20SGcsdoQMm7afEsuKlOHeGvOp9cAP2K51jjb0YES T5vgwHYQqzup1AP6wqanVFDooQG+N2axViBWP26G76/KrM2ooUmFYa9X995UVvIb7pO3 gd7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MM/VZcc9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a170902f1d300b001b1a2bf5275si5580155plc.74.2023.07.22.16.17.52; Sat, 22 Jul 2023 16:18:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MM/VZcc9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229552AbjGVXET (ORCPT + 99 others); Sat, 22 Jul 2023 19:04:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjGVXES (ORCPT ); Sat, 22 Jul 2023 19:04:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6751A7; Sat, 22 Jul 2023 16:04:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1FF6F60BD4; Sat, 22 Jul 2023 23:04:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85FBBC433CD; Sat, 22 Jul 2023 23:04:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690067054; bh=jHDurJCKvh+0DW2iz6/hNYVkG/b77t0wwifyBKWDoQ0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MM/VZcc9SSBG8sY3FioZUC8DvEhQpaWmbfjX+U0MDN/20a0ucLWbu2BhVQGCEwiiA JDTVGSHOaULmhXZUQvN5C6TiiZ4LhyNlGwROSFaEG6nVfv3WYUjYM4at2hxF+mzr2V Gd2Vgrzl0ASWzX/d4PaPkzEuV5h4gmcphEiigE5EsHLFiHK68BMNUAM1HdSxARiRjf jGAA++1lFJXoTaf8PfWHsNWDj7dNRHKregqHxVYAQ+QuBCOnC4ExInEhI5IiddAg/Y MQlPREmH+Brr7r8j3e/m+bi/S2CprY/5g0CNTFIud1kKXaJkW6GcXtgPGmVbUNDd6q CPCTmRz4yzebg== Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-98e39784a85so895333766b.1; Sat, 22 Jul 2023 16:04:14 -0700 (PDT) X-Gm-Message-State: ABy/qLbOeihBBMPRv3qzfoGR3R69hZoIbNV0LO8d9PNhANfpcPxm1wsN +R6P56b6UmzQE1gw5lTc9DYkTEb4JNQZMuWf3WA= X-Received: by 2002:a17:906:5a53:b0:994:5457:269e with SMTP id my19-20020a1709065a5300b009945457269emr6034479ejc.0.1690067052821; Sat, 22 Jul 2023 16:04:12 -0700 (PDT) MIME-Version: 1.0 References: <20230722-upstream-beaglev-ahead-dts-v1-0-ccda511357f4@baylibre.com> <20230722-upstream-beaglev-ahead-dts-v1-1-ccda511357f4@baylibre.com> In-Reply-To: <20230722-upstream-beaglev-ahead-dts-v1-1-ccda511357f4@baylibre.com> From: Guo Ren Date: Sun, 23 Jul 2023 07:04:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] riscv: dts: thead: add BeagleV Ahead board device tree To: Drew Fustini Cc: Jisheng Zhang , Fu Wei , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Robert Nelson , Jason Kridner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Guo Ren On Sun, Jul 23, 2023 at 5:56=E2=80=AFAM Drew Fustini wrote: > > The BeagleV Ahead single board computer uses the T-Head TH1520 SoC. > Add a minimal device tree to support basic uart/gpio/dmac drivers so > that a user can boot to a basic shell. > > Link: https://beagleboard.org/beaglev-ahead > Signed-off-by: Drew Fustini > --- > arch/riscv/boot/dts/thead/Makefile | 2 +- > arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 61 ++++++++++++++++= ++++++ > 2 files changed, 62 insertions(+), 1 deletion(-) > > diff --git a/arch/riscv/boot/dts/thead/Makefile b/arch/riscv/boot/dts/the= ad/Makefile > index e311fc9a5939..b55a17127c2b 100644 > --- a/arch/riscv/boot/dts/thead/Makefile > +++ b/arch/riscv/boot/dts/thead/Makefile > @@ -1,2 +1,2 @@ > # SPDX-License-Identifier: GPL-2.0 > -dtb-$(CONFIG_ARCH_THEAD) +=3D th1520-lichee-pi-4a.dtb > +dtb-$(CONFIG_ARCH_THEAD) +=3D th1520-lichee-pi-4a.dtb th1520-beaglev-ahe= ad.dtb > diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/ri= scv/boot/dts/thead/th1520-beaglev-ahead.dts > new file mode 100644 > index 000000000000..c315e5bd3d2d > --- /dev/null > +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts > @@ -0,0 +1,61 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2023 Jisheng Zhang > + * Copyright (C) 2023 Drew Fustini > + */ > + > +/dts-v1/; > + > +#include "th1520.dtsi" > + > +/ { > + model =3D "BeagleV Ahead"; > + compatible =3D "beagle,beaglev-ahead", "thead,th1520"; > + > + aliases { > + gpio0 =3D &gpio0; > + gpio1 =3D &gpio1; > + gpio2 =3D &gpio2; > + gpio3 =3D &gpio3; > + serial0 =3D &uart0; > + serial1 =3D &uart1; > + serial2 =3D &uart2; > + serial3 =3D &uart3; > + serial4 =3D &uart4; > + serial5 =3D &uart5; > + }; > + > + chosen { > + stdout-path =3D "serial0:115200n8"; > + }; > + > + memory@0 { > + device_type =3D "memory"; > + reg =3D <0x0 0x00000000 0x1 0x00000000>; > + > + }; > +}; > + > +&osc { > + clock-frequency =3D <24000000>; > +}; > + > +&osc_32k { > + clock-frequency =3D <32768>; > +}; > + > +&apb_clk { > + clock-frequency =3D <62500000>; > +}; > + > +&uart_sclk { > + clock-frequency =3D <100000000>; > +}; > + > +&dmac0 { > + status =3D "okay"; > +}; > + > +&uart0 { > + status =3D "okay"; > +}; > > -- > 2.34.1 > --=20 Best Regards Guo Ren