Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3950103rdb; Thu, 28 Dec 2023 05:37:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcZ4B+lBTLM/jdFuHo9hQQo0CM6+8u5At6z1Nnyxqyg+Mv4mXnuYdzAAgG5InCR0+Ladns X-Received: by 2002:a50:bb64:0:b0:551:7f2d:3e43 with SMTP id y91-20020a50bb64000000b005517f2d3e43mr8257423ede.33.1703770640431; Thu, 28 Dec 2023 05:37:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703770640; cv=none; d=google.com; s=arc-20160816; b=R9sbvi8UupkXVuxw6vF5DEaIFucmDrQhJ7bwtdpd4Yd8fAKRlpaxoiOpyos+fuV5p1 /8430v8kuYfBrbWw1ZgwMbc3VEhSKQ/USgRpD7QNRXB14L+2fVMnrbvAUh/8S4oniN9n 4nfR3jq8Wi8TwW592zxygLjO4hM0xwfykYogv+mbvAQexws2BG9H27coF42tTmgskAzI O+XmrlyYaKovqfu/6GyyzE3XCJeEZbBQ68kIxcA21GFM+HXqFU8fIXN9bBDAREygK0s9 UqoJCtvW7hjUJX/jJNzIgsEbkca+eUkA6YbALLtA061wrOUPiZDMdk6D4uJ+VPP6XxX3 bx1A== ARC-Message-Signature: i=1; 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=E+9ibbi4G348ctDIeGJXSK8MTSsMFPENhOYMjZlDDAo=; fh=pg4xo/m0JFA/w4gHzjspg5uANkqKkxEOjIeOHY0SC3c=; b=nlaq3fO91K7G7boSAtqiKWPZ0Fd0YZGAu3qGAXjuKrCMz3MRy1BP7LQWy0jqppLDhQ iUgbXjKji3tJ4jhLt1MkVxbDsBOFIXln4lzvHuPmQZBs0Otfv1DokI8kERQuMnEpdEJ0 85Fo5QzpJiZwmfs1+UQg+BQgRMA4dFnKoE2Bl0Pbll0gFTG7Pk8uIzlV99dhnul4sS86 Ho0vemY8/x6QkDKERy/89gFxUnOl3uGOGzXKLzShaLaBbv1DCJ/bvPA0AG2pN+le7Zl9 OFZp6qAojEMxalslUlmkeY++Zbc+A0KUTmZkHvMkjz4OvOLL0zMf/GVHZq0zwmwmBxPj CbmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jPXC8vsA; spf=pass (google.com: domain of linux-kernel+bounces-12684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e7-20020a50d4c7000000b00554375d4f20si6563637edj.471.2023.12.28.05.37.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 05:37:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jPXC8vsA; spf=pass (google.com: domain of linux-kernel+bounces-12684-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12684-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D07C1F239D3 for ; Thu, 28 Dec 2023 13:36:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9BA9E882E; Thu, 28 Dec 2023 13:36:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jPXC8vsA" X-Original-To: linux-kernel@vger.kernel.org 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 BCA0A8485; Thu, 28 Dec 2023 13:36:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3977C433C7; Thu, 28 Dec 2023 13:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703770567; bh=bFpxYHW+l52Yon/qnLqsK7by+x6JrUkDWpOTaKXGCuQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jPXC8vsA4C2uEmnk6veULjxQjJ5cBGEFMRtQM3NaK5BnN9GzktRORK+VB0UMuZWJA ruk1McP+5Zjei1gfrZv7E0/cBH6M+C5+EYMv4jxP3NEiKkVWxAb7AyF0eTjZyPmS3L YXh5PmNJV2CA7VFA14KitatLEhlJ7yTTel1v0ICnYPbcfFKtiQJIwthOwy1svDaLTo L053ziUbt703sWy4MZbHl5ErQk6Vvun6VF9F1SJQMD91zIZTh4vfcLdoRuKbqTaLIE XJ+WhHTL4Qa0M598ffFH7gIP1AeUMOUPy5MYbye3EpdHYbDJwzx/JI7Uyxs+xV+EPy wNsA48b/r7BNA== Date: Thu, 28 Dec 2023 13:36:02 +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] riscv: dts: sophgo: add timer dt node for CV1800 Message-ID: <20231228-distill-heave-ebda9ee53576@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="PedUr4prEc/4tkOE" Content-Disposition: inline In-Reply-To: --PedUr4prEc/4tkOE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 28, 2023 at 09:06:54PM +0800, AnnanLiu wrote: > Add the timer device tree node to CV1800 SoC. > 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/ FYI, this stuff should be under the --- line. If there's nothing else wrong with this commit, I can fix this while applying. Cheers, Conor. >=20 > Signed-off-by: AnnanLiu > --- > arch/riscv/boot/dts/sophgo/cv1800b.dtsi | 72 +++++++++++++++++++++++++ > 1 file changed, 72 insertions(+) >=20 > diff --git a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi b/arch/riscv/boot/dt= s/sophgo/cv1800b.dtsi > index aec6401a467b..34a1647cc51b 100644 > --- a/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > +++ b/arch/riscv/boot/dts/sophgo/cv1800b.dtsi > @@ -113,6 +113,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 "disabled"; > + }; > + > + timer1: timer@030a0014 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0014 0x14>; > + interrupts =3D <80 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER1>; > + status =3D "disabled"; > + }; > + > + timer2: timer@030a0028 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0028 0x14>; > + interrupts =3D <81 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER2>; > + status =3D "disabled"; > + }; > + > + timer3: timer@030a003c { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a003c 0x14>; > + interrupts =3D <82 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER3>; > + status =3D "disabled"; > + }; > + > + timer4: timer@030a0050 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0050 0x14>; > + interrupts =3D <83 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER4>; > + status =3D "disabled"; > + }; > + > + timer5: timer@30a0064 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0064 0x14>; > + interrupts =3D <84 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER5>; > + status =3D "disabled"; > + }; > + > + timer6: timer@030a0078 { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a0078 0x14>; > + interrupts =3D <85 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER6>; > + status =3D "disabled"; > + }; > + > + timer7: timer@030a008c { > + compatible =3D "snps,dw-apb-timer"; > + reg =3D <0x030a008c 0x14>; > + interrupts =3D <86 IRQ_TYPE_LEVEL_HIGH>; > + clocks =3D <&osc>; > + resets =3D <&rst RST_TIMER7>; > + status =3D "disabled"; > + }; > + > clint: timer@74000000 { > compatible =3D "sophgo,cv1800b-clint", "thead,c900-clint"; > reg =3D <0x74000000 0x10000>; > --=20 > 2.34.1 >=20 --PedUr4prEc/4tkOE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZY15vgAKCRB4tDGHoIJi 0mo0AQCGttIjbdlNdLMJ5uVxoE+C9lVMfy8EQmXeaQrdch+F9QEAzVg8Yq6JN7Qd 0qJbqKr0Sqd+51fwghslIbPvgoKSYgo= =45y3 -----END PGP SIGNATURE----- --PedUr4prEc/4tkOE--