devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Wunderlich <linux@fw-web.de>
To: linux-mediatek@lists.infradead.org
Cc: Frank Wunderlich <frank-w@public-files.de>,
	Jonathan Cameron <jic23@kernel.org>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	AngeloGioacchino Del Regno 
	<angelogioacchino.delregno@collabora.com>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	"Hui.Liu" <hui.liu@mediatek.com>,
	Zhiyong Tao <zhiyong.tao@mediatek.com>,
	Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
	Lala Lin <lala.lin@mediatek.com>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Daniel Golle <daniel@makrotopia.org>
Subject: [PATCH v1 4/7] arm64: dts: mt7986: add PWM
Date: Fri, 21 Apr 2023 15:20:44 +0200	[thread overview]
Message-ID: <20230421132047.42166-5-linux@fw-web.de> (raw)
In-Reply-To: <20230421132047.42166-1-linux@fw-web.de>

From: Daniel Golle <daniel@makrotopia.org>

This adds pwm node to mt7986.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
index a38965e23825..a409d5e845c2 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
@@ -240,6 +240,20 @@ crypto: crypto@10320000 {
 			status = "disabled";
 		};
 
+		pwm: pwm@10048000 {
+			compatible = "mediatek,mt7986-pwm";
+			reg = <0 0x10048000 0 0x1000>;
+			#clock-cells = <1>;
+			#pwm-cells = <2>;
+			interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&topckgen CLK_TOP_PWM_SEL>,
+				 <&infracfg CLK_INFRA_PWM_STA>,
+				 <&infracfg CLK_INFRA_PWM1_CK>,
+				 <&infracfg CLK_INFRA_PWM2_CK>;
+			clock-names = "top", "main", "pwm1", "pwm2";
+			status = "disabled";
+		};
+
 		uart0: serial@11002000 {
 			compatible = "mediatek,mt7986-uart",
 				     "mediatek,mt6577-uart";
-- 
2.34.1


  parent reply	other threads:[~2023-04-21 13:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-21 13:20 Subject: [PATCH v1 0/7] Add mt7986 thermal and pwm Frank Wunderlich
2023-04-21 13:20 ` [PATCH v1 1/7] dt-bindings: nvmem: mediatek: efuse: add support for mt7986 Frank Wunderlich
2023-04-25 18:06   ` Rob Herring
2023-05-17 13:34   ` Aw: " Frank Wunderlich
2023-05-29 15:57   ` Matthias Brugger
2023-04-21 13:20 ` [PATCH v1 2/7] dt-bindings: iio: adc: Add support for MT7986 Frank Wunderlich
2023-04-23 13:02   ` Jonathan Cameron
2023-05-08 15:53     ` Aw: " Frank Wunderlich
2023-05-13 17:10       ` Jonathan Cameron
2023-04-21 13:20 ` [PATCH v1 3/7] arm64: dts: mt7986: add thermal and efuse Frank Wunderlich
2023-04-21 13:20 ` Frank Wunderlich [this message]
2023-05-29 15:58   ` [PATCH v1 4/7] arm64: dts: mt7986: add PWM Matthias Brugger
2023-04-21 13:20 ` [PATCH v1 5/7] arm64: dts: mt7986: add PWM to BPI-R3 Frank Wunderlich
2023-05-29 15:58   ` Matthias Brugger
2023-04-21 13:20 ` [PATCH v1 6/7] arm64: dts: mt7986: add thermal-zones Frank Wunderlich
2023-05-29 16:02   ` Matthias Brugger
2023-04-21 13:20 ` [PATCH v1 7/7] arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts Frank Wunderlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230421132047.42166-5-linux@fw-web.de \
    --to=linux@fw-web.de \
    --cc=andrew-ct.chen@mediatek.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=daniel@makrotopia.org \
    --cc=devicetree@vger.kernel.org \
    --cc=frank-w@public-files.de \
    --cc=hui.liu@mediatek.com \
    --cc=jic23@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lala.lin@mediatek.com \
    --cc=lars@metafoo.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=zhiyong.tao@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).