* Tony Lindgren <tony@xxxxxxxxxxx> [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