From patchwork Thu Feb 8 23:24:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 198687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp520185dyd; Thu, 8 Feb 2024 15:40:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdxE4rIF1rNoAFxkZA2DR4G+ecWbIBwxTZij43HJvj/W/fGHd6QbtmTBEI7SBPDln2pKNaWTFWnq698lR2JEgIkq8Kvw== X-Google-Smtp-Source: AGHT+IGZUUimQc3n5+4/vPwmvaxZDgszCpdfc1I8zFrrOorC3IUYOa76Wxoi8qF9xER4jURLuyYW X-Received: by 2002:a05:620a:1030:b0:785:a7fe:c14f with SMTP id a16-20020a05620a103000b00785a7fec14fmr19663qkk.21.1707435623233; Thu, 08 Feb 2024 15:40:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707435623; cv=pass; d=google.com; s=arc-20160816; b=olAEGzpXuraN0jM2Hch5xaRoOYKtJZY7yIs8E+qdnq2xdeaEpiwJXzH2Dj8nQFWAn7 BUGx8fjUePePcNqilb1EHjPbgEh2TfVhVZ2b152NhSNcDLuHM1glQjgqc1Jxtsr8EuHH YjW7++tqmpp5VM+INI00fMLwjw6phOWFC3ZRwTtVESclEEP/kHw7RRiF8jgYWP8ykZm4 rbWH09VCD4a6lb0vrJ6x6+8ccV4vFWyyQAGvkAwj1NgyVsoN1Js2JqZOYOV9TEXdpjCY MvtjYHvHILR8lX4MVeMJ37S+99GtUPIrMY5bafOZ+HQBwnQm7w6B09bMDd7sHITyGCkS 0JDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=y/GqI8ieWYnXyZEKjCMrQ0iyYoj7E7rIOoJdDwxuHAQ=; fh=8X8/MSy0xc7P+68EnJvdt6bFUzF8drRSEdLZ9MYxgbg=; b=XAzh6QcIue4LG9VhRNwi6ZtUpFVYojSRiHyHrri4DsWGG6EbdG+UwTjKNDgXs8JI+U INlR8Hag5oTy8OOXJECig//9XwV/GwzpTzxoufN8Uz5NwcviqG1HItv5I9g1vG/KX+le teO6jsoeCys3u+oz9KQdbJV56mqkS7IvRF2/hhDuA/oAo/XnxrLEFQ3CEdKcT4vruxoN CwKsvmX4E1ws9us88hjHLxsNGxXXpH98bqEFy5qpOR0o6XaEGH1Um1+7QbEcwfy4JePs 8BU8MRZObDQsWOjofT92MEChiI2IHlDjzLggwLPLH6sC0sZxPWU76EtuUVKNdRPgjbOW 9mkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-58869-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58869-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com X-Forwarded-Encrypted: i=2; AJvYcCUPGQDAvnuzLcX4EYK3HsFFyCdVgnNu+3gYbOBFVYpYLvFNlxe7h48tf5GWEsLdcQfELyq5gaQ9FPLlnsFY+sLaw7x/Xg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d5-20020a05620a166500b007847b274ea0si712875qko.298.2024.02.08.15.40.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 15:40:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58869-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=renesas.com dmarc=pass fromdomain=renesas.com); spf=pass (google.com: domain of linux-kernel+bounces-58869-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58869-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DDDCF1C245A7 for ; Thu, 8 Feb 2024 23:40:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACB4B56452; Thu, 8 Feb 2024 23:25:14 +0000 (UTC) Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF98455E64; Thu, 8 Feb 2024 23:25:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707434713; cv=none; b=aCQO5pu6r6RYsOzB9unr+vvUdCaC+ohMIgUZm1d2Ir0YOoJriewC1HLOF4/sQ5yc5mgvwnBu3JGRF9iBdXDyhIALYC9yBAdpw6/Sav1Nqlu5JudNEQ/t6rnowl+MlM1aqO3rczzUxavSIH1CTkCnSsanQ/sNu0SySLweaWcv52s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707434713; c=relaxed/simple; bh=NuN1mxlRgAizqoNK4SmyoLdJd2EHPH4LHxe6CQ0ptu0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=u0HUWXKWIB0kfKqHzz95AOTqQD6nw99m5zH0FeGLSVcs17jVqMfpWu2gMFYWJ5dGlXjdSllzYTLqUzrvZJZFEbTK0ZC319Xx3iz9tauZW/jyaw4v/XeZFM/735DoOO6X+1IRbUxTyfEiSK+HrgmdvZXczefcG7SUE3q9ij2Kl3M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com X-IronPort-AV: E=Sophos;i="6.05,255,1701097200"; d="scan'208";a="193379754" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 09 Feb 2024 08:25:03 +0900 Received: from mulinux.home (unknown [10.226.92.227]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id DEA944007F23; Fri, 9 Feb 2024 08:24:59 +0900 (JST) From: Fabrizio Castro To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven Cc: Biju Das , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabrizio Castro Subject: [PATCH v6 3/4] arm64: dts: renesas: r9a09g011: Add pwm nodes Date: Thu, 8 Feb 2024 23:24:10 +0000 Message-Id: <20240208232411.316936-4-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208232411.316936-1-fabrizio.castro.jz@renesas.com> References: <20240208232411.316936-1-fabrizio.castro.jz@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790376015882290536 X-GMAIL-MSGID: 1790376015882290536 From: Biju Das Add device nodes for the pwm timer channels that are not assigned to the ISP. Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven --- v5->v6: * No change. v4->v5: * No change. v3->v4: * No change v2->v3: * Added Rb tag from Geert v1->v2: * Added resets property arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi index 50ed66d42a24..bb006772e31e 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi @@ -236,6 +236,104 @@ sys: system-controller@a3f03000 { reg = <0 0xa3f03000 0 0x400>; }; + pwm8: pwm@a4010400 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010400 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM8_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm9: pwm@a4010480 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010480 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM9_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm10: pwm@a4010500 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010500 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM10_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm11: pwm@a4010580 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010580 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM11_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm12: pwm@a4010600 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010600 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM12_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm13: pwm@a4010680 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010680 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM13_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + + pwm14: pwm@a4010700 { + compatible = "renesas,r9a09g011-pwm", + "renesas,rzv2m-pwm"; + reg = <0 0xa4010700 0 0x80>; + interrupts = ; + clocks = <&cpg CPG_MOD R9A09G011_CPERI_GRPF_PCLK>, + <&cpg CPG_MOD R9A09G011_PWM14_CLK>; + clock-names = "apb", "pwm"; + resets = <&cpg R9A09G011_PWM_GPF_PRESETN>; + power-domains = <&cpg>; + #pwm-cells = <2>; + status = "disabled"; + }; + csi0: spi@a4020000 { compatible = "renesas,rzv2m-csi"; reg = <0 0xa4020000 0 0x80>;