From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 466FDC6FD1D for ; Mon, 20 Mar 2023 16:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Df8oZN4IqCLrvwLIr14DmCsicOjqORzOdj2q+OwYN9s=; b=mfWJCk0EX+pqfH 1/L5JyElK2yogiMImvRcHItoi2knOHbClRkPsC8fAPOPwssrGOlsK1alAf8TVtOPl7/bqwsQtKArx OPxWW0f8EiSNUwLwqPHr0M4R+WeVAKps8sRi5WhcdBCLEhLQQxI3VmgMjTL27OK2d+SRpvfW1Ex+J JGjvZPG3TKTPkC0z285CPnGzNZ09Bj2iqztPIi6ldh392VH0sAkMGlMwS7iaa1upsjclwjkrDJ0I1 qKU9UOFOeBlZJoXGiUukO8qab4pdB6R6qbfOjcf4CVDNBIvCdepEq5f5lKUopORs/uHRsL1EnKZJ6 L1s8kaj22Nq5J0ExjEaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peIfn-009s1w-21; Mon, 20 Mar 2023 16:47:51 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peIfk-009s13-2F for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 16:47:50 +0000 Received: from ramsan.of.borg ([84.195.187.55]) by michel.telenet-ops.be with bizsmtp id agnm2900G1C8whw06gnmKg; Mon, 20 Mar 2023 17:47:46 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1peIf3-00E2yh-BK; Mon, 20 Mar 2023 17:47:46 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1peIfi-007Shz-4Z; Mon, 20 Mar 2023 17:47:46 +0100 From: Geert Uytterhoeven To: Magnus Damm , Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH] ARM: dts: r8a7790: Add TPU device node Date: Mon, 20 Mar 2023 17:47:44 +0100 Message-Id: <75da1e63135a3fc8a3aaafbff7139bd5d7509be3.1679330727.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_094748_871675_FBDBAFB1 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for the 4 PWM channels provided by the 16-bit Timer Pulse Unit on R-Car H2, by adding a device node describing the TPU. Signed-off-by: Geert Uytterhoeven --- Tested with PWM sysfs and a logic analyzer on the Lager development board using DT overlays available from [1]. To be queued in renesas-devel-for-v6.4. [1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/renesas-overlays arch/arm/boot/dts/r8a7790.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 2f2e483a2c2ac7f1..7211a5bb18a3b3df 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -376,6 +376,17 @@ pfc: pinctrl@e6060000 { reg = <0 0xe6060000 0 0x250>; }; + tpu: pwm@e60f0000 { + compatible = "renesas,tpu-r8a7790", "renesas,tpu"; + reg = <0 0xe60f0000 0 0x148>; + interrupts = ; + clocks = <&cpg CPG_MOD 304>; + power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; + resets = <&cpg 304>; + #pwm-cells = <3>; + status = "disabled"; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a7790-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel