From patchwork Thu Jul 25 19:49:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742130 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 D598F1CD32 for ; Thu, 25 Jul 2024 19:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936971; cv=none; b=cYjii/PI1HFKBcCheq6o6hZaGBmy/K/xsGf5Si1r6+jZ8+ePU74x05G96tUFMrg4hVKdLS3FXhPaX4PJv4dDPSKlAzTt8oc8i6mEw5XLiiF4zVh+S+z3KwLbWBWsOHCG8DiyXyvslMURu3nSjtn9a/0maDq8TY4M6j94e+Wu2OE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936971; c=relaxed/simple; bh=itWJCIlgkEUJLQ3KZeBnoKj+1gEWsdqds/HRYWyC1/U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aSY8qUmHCOBQ9ICaVvAhNobITV9GbOfAnwum3qZWRI8ebOdbaQfCQK61hOGEkDSj7NIbsRCBZuh5ECWJO1SlR4YETozBdglMkRhuaP6bLdxjm9eXSOLSWQ9Axr7fFfWL8+uUhOPLxtQ6BSpc5IcrvfPfT1MRlieFAV7Oygg7EAk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=HmJqUW5Y; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="HmJqUW5Y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=0PHhg+naDGjTaOblPkFrw2AP79kNdGp0IZrvwD97kWo=; b=HmJqUW 5Ypkk51r9TkP/gGzdrc5pOxY/diiSIAYrIhiwX9hlc458rwGVeRuXIMer2sK1jfz EeWGCH4jONYlmjJrhTbbSEa/RGzO6shu9rNzzZYT4UnUFfyguwgk1VVaFHBmG7O2 E8gEbQj/eK1IVigk4dZz3g8Y209bIohjTsn+MZrmZq6vG6Rad420kdJ+GtdDHiLh boJjagqagG07dhAwdSvZjwYDULAw2KW2Te/glmC2jold7sD/pFQTmC6MYFCfqbwY LZD84SHRDs6xAEwQbr6k8A/gDaJXPQ+keiZjmMHXrw7a/InQBzOpNgGMLkcTClk9 d6HtaLgXhPtYa83A== Received: (qmail 3088288 invoked from network); 25 Jul 2024 21:49:27 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:27 +0200 X-UD-Smtp-Session: l3s3148p1@FrBHsRcelIgujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Cong Dang , Wolfram Sang Subject: [PATCH RFT 1/6] clk: renesas: r8a779h0: Add PWM clock Date: Thu, 25 Jul 2024 21:49:08 +0200 Message-ID: <20240725194906.14644-9-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Cong Dang Add the module clock used by the PWM timers on the Renesas R-Car V4M (R8A779H0) SoC. Signed-off-by: Cong Dang [wsa: rebased] Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- drivers/clk/renesas/r8a779h0-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r8a779h0-cpg-mssr.c b/drivers/clk/renesas/r8a779h0-cpg-mssr.c index 16a2e26abcc7..a9614d0c51ae 100644 --- a/drivers/clk/renesas/r8a779h0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779h0-cpg-mssr.c @@ -195,6 +195,7 @@ static const struct mssr_mod_clk r8a779h0_mod_clks[] = { DEF_MOD("msi3", 621, R8A779H0_CLK_MSO), DEF_MOD("msi4", 622, R8A779H0_CLK_MSO), DEF_MOD("msi5", 623, R8A779H0_CLK_MSO), + DEF_MOD("pwm", 628, R8A779H0_CLK_SASYNCPERD4), DEF_MOD("rpc-if", 629, R8A779H0_CLK_RPCD2), DEF_MOD("scif0", 702, R8A779H0_CLK_SASYNCPERD4), DEF_MOD("scif1", 703, R8A779H0_CLK_SASYNCPERD4), From patchwork Thu Jul 25 19:49:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742131 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 582D149654 for ; Thu, 25 Jul 2024 19:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936972; cv=none; b=snnPShQa54ewnBeTYQ8POETg0sRm3OrdqOsWbu3wMRB9uqHsH5NAbLPOkCJERycxp4Yae2MZ6c5xWCizfjbqpB+eGWdzwriFHh+v4jXUXdz8CBbIydUJwB2mLGpKeEk0qGX84MPxITzQwSojuVykYwfqQlC5QYTCyi82fY7+Ce0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936972; c=relaxed/simple; bh=dGvu/lzg9W4Ezj1kinEkBRpId06wazDtq8LOym9mDhk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sSswyOKoYQ5nzA1Bw6SbaZvwoBqv1q42DGNj2qDKgoe0nCSb4gsHmR7gyUPpWjXlKQR4c+hgxXDTL8kkp0YEQ5UBbS0Ehwrvg592nE8+frMgWUYf30T98YOwwvsq17ycOMJVJ4bzBR3N8Qh01PtdQWmj+WeBz61cURpaFAhDvq4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=eQeqUQqB; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="eQeqUQqB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=15WlEkMYnXsmWgFeIYtC8h73hwVQtv7LQENIW2/+GPE=; b=eQeqUQ qBWa3XZSl2zF8oSWLdBfNZUjohy456JR+U7Ut2jGya3rimfcEeXsphQwh6wRsW13 57BykSwXe+8ia5/Ug7EKb8Zhr2FqTvHNBOMiFIZHomzOw61GhOJ0XHsvqcVmk2hn 3lrySzGjhdicSwLr0Sw5z9sfhkui/LmV/hnKeTF7srzHQozHWZkXeAm1+mLDIgcI Ib3y4vSyTfSC4K6VPdKVdcPqCAn9BZ6KbQ692sUjYT8NBR9wNhKIM3c0RcXTdP8c 3hSjGllx45Q+MbMCYYkMwNN+atNnPJpVydlvPY/WgHLvyW6UBDikerZ6DAbRtqKo kfMiRSGIuN9TJQyg== Received: (qmail 3088312 invoked from network); 25 Jul 2024 21:49:28 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:28 +0200 X-UD-Smtp-Session: l3s3148p1@GXBPsRceoIgujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Cong Dang , Wolfram Sang Subject: [PATCH RFT 2/6] clk: renesas: r8a779h0: Add TPU clock Date: Thu, 25 Jul 2024 21:49:09 +0200 Message-ID: <20240725194906.14644-10-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Cong Dang Add the module clock used by the 16-Bit Timer Pulse Unit (TPU) on the Renesas R-Car V4M (R8A779H0) SoC. Signed-off-by: Cong Dang [wsa: rebased] Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven --- drivers/clk/renesas/r8a779h0-cpg-mssr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/renesas/r8a779h0-cpg-mssr.c b/drivers/clk/renesas/r8a779h0-cpg-mssr.c index a9614d0c51ae..1f311206506d 100644 --- a/drivers/clk/renesas/r8a779h0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779h0-cpg-mssr.c @@ -209,6 +209,7 @@ static const struct mssr_mod_clk r8a779h0_mod_clks[] = { DEF_MOD("tmu2", 715, R8A779H0_CLK_SASYNCPERD2), DEF_MOD("tmu3", 716, R8A779H0_CLK_SASYNCPERD2), DEF_MOD("tmu4", 717, R8A779H0_CLK_SASYNCPERD2), + DEF_MOD("tpu0", 718, R8A779H0_CLK_SASYNCPERD4), DEF_MOD("vin00", 730, R8A779H0_CLK_S0D4_VIO), DEF_MOD("vin01", 731, R8A779H0_CLK_S0D4_VIO), DEF_MOD("vin02", 800, R8A779H0_CLK_S0D4_VIO), From patchwork Thu Jul 25 19:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742132 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 AF2F64D8CB for ; Thu, 25 Jul 2024 19:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936972; cv=none; b=FNOE3/c+IEBeqayBsT6B5Ko+GAoDkOzjLVXwU6XXZpKccWFZcuC8hpDeWpxBzMVmIxr+7ft1CjRZngqZ41wvATK+n6XDkHSvkN4XqhexMCBBXqbdUHXEF4IrUpI4yuMrQa+RjDKr5fO5jqNKW/584A0DLZAPzubKaGR/wlzWwpM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936972; c=relaxed/simple; bh=YMtCYT6ECddCr+hRLtPKFJNhWU2AOPNdcuzcuXaHQhY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UDLqq/F44sCOwArzHe6bvFhrbQ42cZyYsd2hzJXAppVItgt0nIR/VLuVs7B1k/Hln5ADuCUauHnXQpfvmDtXRJ4IHt7087GrepzdtIBc8KtJZFsnoglkP+ZluJTH9KbDJu9mNMSMxNbKYRJ5ZRq5TYi8yK4pbvOBzO/j26XkK2U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=gAZozDvp; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="gAZozDvp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=6pLIssl6f0AQDJ56js/PcWkGNoDzsML07G7rrFNxDqM=; b=gAZozD vpuf9xOgjG4IXxJxOztbBw19HzHZIKo0m0LJnjJJXp+HHwlYKOCnibl/qwuwMi/e PD+kRnxoPKhhfkWPwYDtKGMN/LpZBbkbUV5Hu4xKOv/2z3cAKvNu2zbcR2xXDWYS iZDwxUAmsICntVkr39/A0jcTNq94HdH3ub7rw+roThhmqBdp0JhXluXktxYEhW5d VWsRWeb2/vBRtefIhEvptpubocdZvDiKgTrVE+gfMfOGf/l21GpdbSkJLV4Z8Ggc VC7w6BcSTXW2+7QtzwMVDKfAUhqH9pjwDVs5CmhSQGudhw9ycEPItnq6eidAlEvU DuZAfJ9VPu+shVwQ== Received: (qmail 3088337 invoked from network); 25 Jul 2024 21:49:28 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:28 +0200 X-UD-Smtp-Session: l3s3148p1@j8RWsRceRrwujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Khanh Le , Wolfram Sang Subject: [PATCH RFT 3/6] arm64: dts: renesas: r8a779h0: Add PWM device node Date: Thu, 25 Jul 2024 21:49:10 +0200 Message-ID: <20240725194906.14644-11-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Khanh Le This patch adds device tree support for PWM/TPU on R-Car V4M (R8A779H0). Signed-off-by: Khanh Le [wsa: rebased, dropped TPU part to be upstreamed seperately] Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi index a03ab2b6a859..000ea93d65e5 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -781,6 +781,56 @@ avb2: ethernet@e6820000 { status = "disabled"; }; + pwm0: pwm@e6e30000 { + compatible = "renesas,pwm-r8a779h0", "renesas,pwm-rcar"; + reg = <0 0xe6e30000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm1: pwm@e6e31000 { + compatible = "renesas,pwm-r8a779h0", "renesas,pwm-rcar"; + reg = <0 0xe6e31000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm2: pwm@e6e32000 { + compatible = "renesas,pwm-r8a779h0", "renesas,pwm-rcar"; + reg = <0 0xe6e32000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm3: pwm@e6e33000 { + compatible = "renesas,pwm-r8a779h0", "renesas,pwm-rcar"; + reg = <0 0xe6e33000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + + pwm4: pwm@e6e34000 { + compatible = "renesas,pwm-r8a779h0", "renesas,pwm-rcar"; + reg = <0 0xe6e34000 0 0x10>; + #pwm-cells = <2>; + clocks = <&cpg CPG_MOD 628>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 628>; + status = "disabled"; + }; + scif0: serial@e6e60000 { compatible = "renesas,scif-r8a779h0", "renesas,rcar-gen4-scif", "renesas,scif"; From patchwork Thu Jul 25 19:49:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742134 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 A26103FBB2 for ; Thu, 25 Jul 2024 19:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936973; cv=none; b=M2lLoryYq4xRBrFeyHIPxW/zufL+LZhnuUBOQ4esATOSZipyqSHrlTLt8gQzdn+M0dmamqpEFh5iqP9fU/Oa2kyaNmgRYZMFK+F+zL2Oh43p0DB3OefbkNsWjPwIjeSQYmSAVoldKDyV5hVH/9yp0VY0FPA4t2hvwksv6/jWxlM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936973; c=relaxed/simple; bh=gTOUylpY1RKRApF1zXhgCothHhPOinq7S/oV5Yhc5OM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Et6XrujuRNnjWe2k2w9+V0rKSAvNtvCWjbUuuBZQ9ulbF9bL5gd8TXE2LTflcawSG5f6knkuYRme3YWoXmRvPUeNxbwN5MvLIO61TOYxfHzz70f8p0PpP9DdtnHPQQw7c7brzOZC0duz/D4rD+EmHEu1BGp11lRI8rkWdzrCP30= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=WJhbHbk0; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="WJhbHbk0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=6uqMhEM9nmOHC37lFgmLD2a+qCxhZw6dubdxheQE+6s=; b=WJhbHb k0195XGLuaCsz6lG4QruUH2Jt9xpwsvrceA4nU3eMowBzDfGY7PjkglOtxmgf1xu BOWr4ML/qxGOaKBScikXcJEdQMhxiGKlq4c/EyUdEOWCJYphEGMKy+Ke1W3HsPzJ qg4GKw4JaCYA5ZQNiFQ+ntHuhC4O38z/eAJFSUb4o31s8w+C0KyCS9CBWP/mVixu KH9OV7ijXrFj6xgIm6BFRldpQaFPsCrnW98PaT91nb25jq52CCucxlrfNsKHxAud HoCn38Qn8BCqhszIOON5bpdBuJhkQnlErLsunn0gZ/OOdHXx0bLfNStFpLgm/yOM q6Qt620TJI6MY4dQ== Received: (qmail 3088368 invoked from network); 25 Jul 2024 21:49:29 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:29 +0200 X-UD-Smtp-Session: l3s3148p1@3D9esRceTLwujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Wolfram Sang Subject: [PATCH RFT 4/6] arm64: dts: renesas: r8a779h0: Add TPU device node Date: Thu, 25 Jul 2024 21:49:11 +0200 Message-ID: <20240725194906.14644-12-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a device node for the 16-Bit Timer Pulse Unit (TPU) on the Renesas R-Car V4H (R8A779G0) SoC. Signed-off-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi index 000ea93d65e5..e12935eafff3 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779h0.dtsi @@ -1023,6 +1023,17 @@ vin00isp0: endpoint@0 { }; }; + tpu: pwm@e6e80000 { + compatible = "renesas,tpu-r8a779h0", "renesas,tpu"; + reg = <0 0xe6e80000 0 0x148>; + interrupts = ; + clocks = <&cpg CPG_MOD 718>; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 718>; + #pwm-cells = <3>; + status = "disabled"; + }; + vin01: video@e6ef1000 { compatible = "renesas,vin-r8a779h0"; reg = <0 0xe6ef1000 0 0x1000>; From patchwork Thu Jul 25 19:49:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742133 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 A2652446D2 for ; Thu, 25 Jul 2024 19:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936973; cv=none; b=X+Vt90/Jt8nWSFfHWtYccM/gqucXP1DhGMHjKekM272P9DiuLGUL9HoGS31qg1u6LRLhS10x5eJXfox6Ij8IbCVWGvS5ppZa22k3b8tzB1csJgURxFPZaoLugRqO+sDvJ61wW6Ugp5fTQnUmQHNZACe7o1GdMhGSKe3u5i16F3g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936973; c=relaxed/simple; bh=Mh80z6Au2093wRvnVn4P7n22QplJp3pdTRLFF8EV8Ww=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vt3LiUBiJXQpdyzlFN59smZ5LfjS518FlQIXGrwauD9yEaRifrMgTMXRtqg3y5P7ruKGaPkZrcB97D0xmWtp7eV+aS6UidaJwGvD/kL6vHgxbiWJm4vyz8R9H8H6dxNjc6z7gkAIsuH1mOGll6i+eIGB3WBwDsQ9yNNNFdAOmVM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=im8ZLeVa; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="im8ZLeVa" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=5zY16sVeUW2lOtEEgqEdeM2qT3w/I2PARW5SMMpSz/4=; b=im8ZLe Va5tNT+ihF5WXjy1NFFtV+8hRdIeNQ66/gZo0H+XCkxedVEzZ2LPokBVXpBwMJlA 2kd7QeMdfSFI0QXVhafpfik7yp9x728UQBt0umuxP44ipa08XClYhTldcQSJG/IZ DJfxolh+AOfPxhEym+oEM6MOgH+8CmEr7ddAJErECCvvVGCqahtRcr9J57DmIVpm IYuVjqKau5c7owqW3aI+tTWkf9TrnJ3yzQ9qTQ/qE2J7agqBrBvcBIvd8olEqG4k Xz7XRapEsfXzbyUF7mZtU00f5Cs6Ov+YaUkafdnQJ+Ub0yJ3heBPsTSvo90fNNnL I6YYYTfkhqQ9v6fg== Received: (qmail 3088388 invoked from network); 25 Jul 2024 21:49:29 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:29 +0200 X-UD-Smtp-Session: l3s3148p1@1IxlsRceVLwujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Wolfram Sang Subject: [PATCH RFT 5/6] arm64: dts: r8a779h0-gray-hawk-single: Add PWM support Date: Thu, 25 Jul 2024 21:49:12 +0200 Message-ID: <20240725194906.14644-13-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch enables PWM channels 1+2 on the GrayHawk board. Only for testing, not for upstream. Signed-off-by: Wolfram Sang Tested-by: Geert Uytterhoeven --- .../dts/renesas/r8a779h0-gray-hawk-single.dts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts index 2b9a19bb1c5d..62878120673d 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts @@ -199,6 +199,16 @@ mmc_pins: mmc { power-source = <1800>; }; + pwm1_pins: pwm1 { + groups = "pwm1_a"; + function = "pwm1"; + }; + + pwm2_pins: pwm2 { + groups = "pwm2_a"; + function = "pwm2"; + }; + qspi0_pins: qspi0 { groups = "qspi0_ctrl", "qspi0_data4"; function = "qspi0"; @@ -215,6 +225,20 @@ scif_clk2_pins: scif-clk2 { }; }; +&pwm1 { + pinctrl-0 = <&pwm1_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pwm2 { + pinctrl-0 = <&pwm2_pins>; + pinctrl-names = "default"; + + status = "okay"; +}; + &rpc { pinctrl-0 = <&qspi0_pins>; pinctrl-names = "default"; From patchwork Thu Jul 25 19:49:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13742135 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 4413C558BC for ; Thu, 25 Jul 2024 19:49:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936974; cv=none; b=ImYcNPMGWNf+iYJv8Y7QA4yshhqdIR+fG7LM5Jt1LbUJKKJnT3a5UI4OUNXSawArCyWh22OBWz16F+PJRTLHpkm5qKGEQrLLT7W1sTZ08MW5YLNbZlh8Gu3QpL/t11KazJyxTCjBCc4bHmgBs5b7WAOhctNJBs5Es+lGSX6EJFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721936974; c=relaxed/simple; bh=qUe8Q9uzTUssR5+/Vri6Gn/b05GCaP/zSvz6po8dzzA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o2TFAq6Tg+xsYugiqx2bNkhulL9F6s+Rev2dYm17LkbvZEB3WHV+eHlDGa6/0+Z86MDBxfaRrJbotnenocYkXZbImQQ5L1WnGwKZW0yuO1Bz6KHDWD4c/p5xk71gTQtN/jujKnLMIQe63LFAfGYhmClU1M4m3pv4GaznlSyk0UE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=LZAxx8TJ; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="LZAxx8TJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=/qFAdYMfABu5NIW3z1miq7nx3nFg2quz9kfo1ogUfLk=; b=LZAxx8 TJvyvXOFqpXmqvZFEVOrTdKAt7eN7QM/1g2cTa8if0WLbydIbBkHDSfW7eovxhhQ ZqusBm7eTWhvp28raoPVoguWtDKl7z0wn25/ss2tgb1h5se9Knz1d/w7Z3k74pWX jqDhyL1KrB+qMADmNbXo+5yHucGzEMpdukIoRsiZ3pZZw6DuixTfAT86G61ptt6e qtAwO3YNFYFcgkcSkQJcpuH8v70T9Slm7cmr+xKpjCiHcKCMUfnUlzIJNCJcIQ7W beaKWTqMswEIwDo9/Z2bdGFCksbVQ0XlcuS7C3UJfUDW96997PhLWSFdS5Cc/6ex ZO+wCUvVRMaNFnDw== Received: (qmail 3088410 invoked from network); 25 Jul 2024 21:49:30 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 25 Jul 2024 21:49:30 +0200 X-UD-Smtp-Session: l3s3148p1@XBNtsRceXLwujnsv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Wolfram Sang Subject: [PATCH RFT 6/6] arm64: dts: r8a779h0-gray-hawk-single: Add TPU support Date: Thu, 25 Jul 2024 21:49:13 +0200 Message-ID: <20240725194906.14644-14-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> References: <20240725194906.14644-8-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch enables TPU channel 1 for the GrayHawk board. Only for testing, not for upstream. Signed-off-by: Wolfram Sang --- .../boot/dts/renesas/r8a779h0-gray-hawk-single.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts index 62878120673d..86d17950c017 100644 --- a/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +++ b/arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts @@ -223,6 +223,11 @@ scif_clk2_pins: scif-clk2 { groups = "scif_clk2"; function = "scif_clk2"; }; + + tpu_pin: tpu { + groups = "tpu_to1"; + function = "tpu"; + }; }; &pwm1 { @@ -279,3 +284,10 @@ &scif_clk { &scif_clk2 { clock-frequency = <24000000>; }; + +&tpu { + pinctrl-0 = <&tpu_pin>; + pinctrl-names = "default"; + + status = "okay"; +};