public inbox for linux-pwm@vger.kernel.org
 help / color / mirror / Atom feed
From: Fabien Parent <fparent@baylibre.com>
To: linux-mediatek@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-pwm@vger.kernel.org
Cc: matthias.bgg@gmail.com, robh+dt@kernel.org, lee.jones@linaro.org,
	u.kleine-koenig@pengutronix.de, thierry.reding@gmail.com,
	Fabien Parent <fparent@baylibre.com>
Subject: [PATCH 5/5] arm64: dts: mediatek: mt8183-evb: add PWM support
Date: Mon, 19 Oct 2020 16:07:05 +0200	[thread overview]
Message-ID: <20201019140705.1518822-6-fparent@baylibre.com> (raw)
In-Reply-To: <20201019140705.1518822-1-fparent@baylibre.com>

Enable the pwm driver and set the pinctrl for PWM A line.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
 arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
index ae405bd8f06b..c8e1d97e564f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts
@@ -333,6 +333,12 @@ pins_spi{
 			bias-disable;
 		};
 	};
+
+	pwm0_pin_default: pwm0 {
+		pwm {
+			pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
+		};
+	};
 };
 
 &spi0 {
@@ -381,3 +387,9 @@ &spi5 {
 &uart0 {
 	status = "okay";
 };
+
+&pwm0 {
+	status = "okay";
+	pinctrl-0 = <&pwm0_pin_default>;
+	pinctrl-names = "default";
+};
-- 
2.28.0


  parent reply	other threads:[~2020-10-19 14:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-19 14:07 [PATCH 0/5] Add PWM support for MT8183 EVB Fabien Parent
2020-10-19 14:07 ` [PATCH 1/5] dt-bindings: pwm: pwm-mediatek: Add documentation for MT8183 SoC Fabien Parent
2020-10-19 14:31   ` Matthias Brugger
2020-10-26 13:38   ` Rob Herring
2020-10-19 14:07 ` [PATCH 2/5] pwm: pwm-mediatek: always use bus clock Fabien Parent
2020-10-19 14:27   ` Matthias Brugger
2020-10-19 14:07 ` [PATCH 3/5] pwm: pwm-mediatek: Add MT8183 SoC support Fabien Parent
2020-10-19 14:30   ` Matthias Brugger
2020-10-19 14:07 ` [PATCH 4/5] arm64: dts: mediatek: mt8183: add pwm node Fabien Parent
2020-10-19 14:07 ` Fabien Parent [this message]
2020-11-11 20:27 ` [PATCH 0/5] Add PWM support for MT8183 EVB Thierry Reding

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=20201019140705.1518822-6-fparent@baylibre.com \
    --to=fparent@baylibre.com \
    --cc=devicetree@vger.kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=u.kleine-koenig@pengutronix.de \
    /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