Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp109506rdb; Thu, 25 Jan 2024 09:33:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbKwz/AS5T641fI7xqY1CKc2seOV4j3RkESpwUK4BS6nCEWveBxCiy/XV1LYX+yrNXuyvQ X-Received: by 2002:a05:6a20:430c:b0:19c:7bc4:6b0 with SMTP id h12-20020a056a20430c00b0019c7bc406b0mr605239pzk.42.1706204019001; Thu, 25 Jan 2024 09:33:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706204018; cv=pass; d=google.com; s=arc-20160816; b=W+Dl7RtirNOaKbnxt+MhaLfKI56fo5kUzmspprCs2kLO5/j3QEyHIwA8Y512lZn9mZ IddJyizoro0SzBvckaUopXrf22BBiqo2rDkdLIUvwOMqkOvkWl6sswUJA2lFvVEGgSTq ihWCAJAcTGtIxg9palLsCJ3io6tN6ET581J4ISXRYOlMlv30gTTILGDWJLa35CdePaaM H9n0xSlco6fVwgCe+BnEEvo8SPh7vMbGWluRedWZuLmdKtXs8WN8Q+tHSGqODq3R1/am KqTCP/0HMsZmAlONUNoSQEwYZGDdPSNwx18x6eVPCjkLxiwPrYu2fEjBqUicQIrgrKLv QZTg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g3+7VoFHj1L4/K3XeufCByoQP9+m9UzsvvXIPte1ULA=; fh=pg4xo/m0JFA/w4gHzjspg5uANkqKkxEOjIeOHY0SC3c=; b=RyPC12KOSlQqHxXK1MiwkyryUr/HgkStw53qLSZlwt7huM3qypRQxQFu0Xkxve2Q2L up0Sf5j58bYE5CkZv0CafsSiOvd7EkbzTDIbvuPvvg9hJma801RbXVEkRpjyWTXR53pV zR9Wdv1tPDfJSa/rsT8HwUrPRGVT3X8pHoSqJLk4e16HApkbtf0JVCbfz582mqEvFrlL /FFRfYIt4aW7EHAZP0AcBqX2/IouN0Nhod3qNXGb10k5qxbVAUM38WKxEK90gUNE2Hz9 zmgWdWELXPFBkcqxZxc06aRW8xEtfOnnqmXNOwv2rSDKW1W0xSKVIVpJZyomtNZbLV/o ywhg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ffDXEQ6x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r26-20020aa7845a000000b006ddc846296dsi1474109pfn.319.2024.01.25.09.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 09:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ffDXEQ6x; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-39016-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CD0A4B25B9C for ; Thu, 25 Jan 2024 17:17:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6FD2136665; Thu, 25 Jan 2024 17:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ffDXEQ6x" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED358131723; Thu, 25 Jan 2024 17:12:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202780; cv=none; b=YoN+9+4y6yDjNETBMUSL6axeU3AT3Rc7St/P1Y/njhYgF4X3nUgh1SFeE8P2QZnT0saLnTiGCr7QLEDkvBPo++nzPn4xJbahntsopYaWHqAxlkZZcKyO0afCOCwsnM7uvfngagm0ykIm8SbwCC70psY+y5Emij7z6IRvxNB+Hqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706202780; c=relaxed/simple; bh=P8twLiBk8195NVVkVBNtmDPSljomu/5qIfayjD6vnKg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vGvlR5j/3IurDou94xphbNSBpnyelrjjgYe4GJlXWE5dw4+B5qtEatmYDOHxamZTLCpEa2kgW9he0epXZFDKKOE26YYq0jWCMdDN2y/GMT7dLPFKdM8Q60Iwi4AYrT0HSAVZqVbrtsjabY2pDH8osdZ942xK/ZRYuSEtWhY7Ewc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ffDXEQ6x; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 020FAC433F1; Thu, 25 Jan 2024 17:12:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706202779; bh=P8twLiBk8195NVVkVBNtmDPSljomu/5qIfayjD6vnKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ffDXEQ6xe5Oc09Q0Ks5MWZFNjI/ryOga9U0VvRre4UlZEsa4bu1C1FXVa6Kf3v4qP P8E/TALOBWSYRQd5NsV2L5zUqy4jO7BVVip0OWlmeyLMgqtw55dnQGKSOpNFTFMqqR Fp8KqNxBzSziJSwDZdZEx7JJUL12SiHu9misY+GkRJBqdgG1zwLfsSeOWHkTeFNexM Ahi5B3AJZf0vRBV3NRRn4YuJ5SB+VZqA0fRwsWGfJVi2hH8UJ7JFTSwvnye1xjr+BO yg5sTt5RbpjbV9x6hUkNkW1WDlzfJIZqyudzyT/UtsrbgL+5xT0If1FURMZAkirwTy Pc9SwmnCEFYtA== Date: Thu, 25 Jan 2024 17:12:54 +0000 From: Conor Dooley To: AnnanLiu Cc: chao.wei@sophgo.com, unicorn_wang@outlook.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] riscv: dts: sophgo: add timer dt node for CV1800 Message-ID: <20240125-rosy-folk-976dd297e32f@spud> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="U7ZAB6TpsVs6HOXN" Content-Disposition: inline In-Reply-To: --U7ZAB6TpsVs6HOXN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 05:46:23PM +0800, AnnanLiu wrote: > Add the timer device tree node to CV1800 SoC. >=20 > Signed-off-by: AnnanLiu > --- > This patch depends on the clk driver and reset driver. > Clk driver link: > https://lore.kernel.org/all/IA1PR20MB49539CDAD9A268CBF6CA184BBB9FA@IA1PR2= 0MB4953.namprd20.prod.outlook.com/ > Reset driver link: > https://lore.kernel.org/all/20231113005503.2423-1-jszhang@kernel.org/ >=20 > Changes since v1: > - Change the status of the timer from disabled to okay. > v1 link: > https://lore.kernel.org/all/DM6PR20MB23167E08FCA546D6C1899CB1AB9EA@DM6PR2= 0MB2316.namprd20.prod.outlook.com/ >=20 > arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 73 +++++++++++++++++++++++++ > 1 file changed, 73 insertions(+) >=20 > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dt= s/sophgo/cv1800b.dtsi > index aec6401a467b..aef7970af2b8 100644 > --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > @@ -1,6 +1,7 @@ > // SPDX-License-Identifier: (GPL-2.0 OR MIT) > /* > * Copyright (C) 2023 Jisheng Zhang > + * Copyright (C) 2024 Annan Liu > */ > =20 > #include > @@ -113,6 +114,78 @@ plic: interrupt-controller@70000000 { > riscv,ndev =3D <101>; > }; > =20 > + timer0: timer@030a0000 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0000 0x14>; > + interrupts =3D <79 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER0>; > + status =3D "okay"; Do these really have no interface clock? I'd expect something that is almost certainly sitting on a apb (or similar) interface to have one. Thanks, Conor. --U7ZAB6TpsVs6HOXN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbKWlgAKCRB4tDGHoIJi 0vpGAP9NN4LPvUxivpiccMxrAPRFKuRn7nj+iQE9H6tZd0YdzAEAjWezQmZEkdEt fL6gE5liQ4NsH5TG4cdJc7SJ9zAU2gk= =yJSK -----END PGP SIGNATURE----- --U7ZAB6TpsVs6HOXN--