From: Tony Lindgren <tony@atomide.com>
To: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, Keerthy <j-keerthy@ti.com>,
Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>
Subject: Re: [PATCH v2 0/2] Configure dmtimers for am65
Date: Tue, 30 Aug 2022 10:22:47 +0300 [thread overview]
Message-ID: <Yw26x4AGfGC7xExu@atomide.com> (raw)
In-Reply-To: <20220830070750.30640-1-tony@atomide.com>
* Tony Lindgren <tony@atomide.com> [220830 07:08]:
> Here's v2 series for adding the dmtimers for am65. The device tree binding
> and related driver related changes have been already merged.
FYI, something like the patch below can be used to configure the main
timer0 for PWM. It uses TIMERIO0 for output, and muxes TIMERIO0 pad to
a k3-am654-base-board header pin.
Just for reference only, not for merging, as the k3-am654-base-board header
usage may vary.
Regards,
Tony
diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -86,6 +86,14 @@ switch-6 {
};
};
+ main_pwm0: dmtimer-main-pwm-0 {
+ pinctrl-0 = <&main_timer0_outsel_pins_default>, <&main_timer0_pins_default>;
+ pinctrl-names = "default";
+ compatible = "ti,omap-dmtimer-pwm";
+ #pwm-cells = <3>;
+ ti,timers = <&main_timer0>;
+ };
+
evm_12v0: fixedregulator-evm12v0 {
/* main supply */
compatible = "regulator-fixed";
@@ -119,6 +127,13 @@ vdd_mmc1_sd: fixedregulator-sd {
};
};
+&main_timerio_output {
+ main_timer0_outsel_pins_default: main-timer0-outsel-pins-default {
+ /* CTRLMMR_TIMERIO0_CTRL 0x00104280 OUT_SEL.TIMERIO0 */
+ pinctrl-single,pins = <0 0>;
+ };
+};
+
&wkup_pmx0 {
wkup_i2c0_pins_default: wkup-i2c0-pins-default {
pinctrl-single,pins = <
@@ -264,6 +279,13 @@ ecap0_pins_default: ecap0-pins-default {
AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
>;
};
+
+ main_timer0_pins_default: main-timer0-pins-default {
+ pinctrl-single,pins = <
+ /* CTRLMMR_PADCONFIG192 0x0011c300 TIMER_IO0 */
+ AM65X_IOPAD(0x0018, PIN_OUTPUT, 0)
+ >;
+ };
};
&wkup_uart0 {
--
2.37.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Tony Lindgren <tony@atomide.com>
To: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, Keerthy <j-keerthy@ti.com>,
Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>
Subject: Re: [PATCH v2 0/2] Configure dmtimers for am65
Date: Tue, 30 Aug 2022 10:22:47 +0300 [thread overview]
Message-ID: <Yw26x4AGfGC7xExu@atomide.com> (raw)
In-Reply-To: <20220830070750.30640-1-tony@atomide.com>
* Tony Lindgren <tony@atomide.com> [220830 07:08]:
> Here's v2 series for adding the dmtimers for am65. The device tree binding
> and related driver related changes have been already merged.
FYI, something like the patch below can be used to configure the main
timer0 for PWM. It uses TIMERIO0 for output, and muxes TIMERIO0 pad to
a k3-am654-base-board header pin.
Just for reference only, not for merging, as the k3-am654-base-board header
usage may vary.
Regards,
Tony
diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
--- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts
@@ -86,6 +86,14 @@ switch-6 {
};
};
+ main_pwm0: dmtimer-main-pwm-0 {
+ pinctrl-0 = <&main_timer0_outsel_pins_default>, <&main_timer0_pins_default>;
+ pinctrl-names = "default";
+ compatible = "ti,omap-dmtimer-pwm";
+ #pwm-cells = <3>;
+ ti,timers = <&main_timer0>;
+ };
+
evm_12v0: fixedregulator-evm12v0 {
/* main supply */
compatible = "regulator-fixed";
@@ -119,6 +127,13 @@ vdd_mmc1_sd: fixedregulator-sd {
};
};
+&main_timerio_output {
+ main_timer0_outsel_pins_default: main-timer0-outsel-pins-default {
+ /* CTRLMMR_TIMERIO0_CTRL 0x00104280 OUT_SEL.TIMERIO0 */
+ pinctrl-single,pins = <0 0>;
+ };
+};
+
&wkup_pmx0 {
wkup_i2c0_pins_default: wkup-i2c0-pins-default {
pinctrl-single,pins = <
@@ -264,6 +279,13 @@ ecap0_pins_default: ecap0-pins-default {
AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */
>;
};
+
+ main_timer0_pins_default: main-timer0-pins-default {
+ pinctrl-single,pins = <
+ /* CTRLMMR_PADCONFIG192 0x0011c300 TIMER_IO0 */
+ AM65X_IOPAD(0x0018, PIN_OUTPUT, 0)
+ >;
+ };
};
&wkup_uart0 {
--
2.37.1
next prev parent reply other threads:[~2022-08-30 7:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 7:07 [PATCH v2 0/2] Configure dmtimers for am65 Tony Lindgren
2022-08-30 7:07 ` Tony Lindgren
2022-08-30 7:07 ` [PATCH v2 1/2] arm64: dts: ti: k3-am65: Configure pinctrl for timer IO pads Tony Lindgren
2022-08-30 7:07 ` Tony Lindgren
2022-08-30 7:07 ` [PATCH v2 2/2] arm64: dts: ti: k3-am65: Add general purpose timers for am65 Tony Lindgren
2022-08-30 7:07 ` Tony Lindgren
2022-08-31 5:05 ` Tony Lindgren
2022-08-31 5:05 ` Tony Lindgren
2022-09-01 10:37 ` Vignesh Raghavendra
2022-09-01 10:37 ` Vignesh Raghavendra
2022-08-30 7:22 ` Tony Lindgren [this message]
2022-08-30 7:22 ` [PATCH v2 0/2] Configure dmtimers " Tony Lindgren
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=Yw26x4AGfGC7xExu@atomide.com \
--to=tony@atomide.com \
--cc=devicetree@vger.kernel.org \
--cc=j-keerthy@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=nm@ti.com \
--cc=vigneshr@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.