Skip to content

Commit 13b56cf

Browse files
MrVanShawn Guo
authored andcommitted
arm64: dts: imx952-evk: Enable TPM[3,6]
Enable TPM[3,6] for PWM. Signed-off-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 1f563af commit 13b56cf

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

arch/arm64/boot/dts/freescale/imx952-evk.dts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
22
/*
3-
* Copyright 2025 NXP
3+
* Copyright 2025-2026 NXP
44
*/
55

66
/dts-v1/;
77

8+
#include <dt-bindings/pwm/pwm.h>
89
#include <dt-bindings/usb/pd.h>
910
#include "imx952.dtsi"
1011

@@ -42,6 +43,13 @@
4243
reg = <0x0 0x80000000 0 0x80000000>;
4344
};
4445

46+
fan0: pwm-fan {
47+
compatible = "pwm-fan";
48+
#cooling-cells = <2>;
49+
pwms = <&tpm6 2 4000000 PWM_POLARITY_INVERTED>;
50+
cooling-levels = <64 128 192 255>;
51+
};
52+
4553
reserved-memory {
4654
#address-cells = <2>;
4755
#size-cells = <2>;
@@ -264,6 +272,18 @@
264272
status = "okay";
265273
};
266274

275+
&tpm3 {
276+
pinctrl-names = "default";
277+
pinctrl-0 = <&pinctrl_tpm3>;
278+
status = "okay";
279+
};
280+
281+
&tpm6 {
282+
pinctrl-names = "default";
283+
pinctrl-0 = <&pinctrl_tpm6>;
284+
status = "okay";
285+
};
286+
267287
&usb1 {
268288
dr_mode = "otg";
269289
hnp-disable;
@@ -394,6 +414,18 @@
394414
>;
395415
};
396416

417+
pinctrl_tpm3: tpm3grp {
418+
fsl,pins = <
419+
IMX952_PAD_GPIO_IO12__WAKEUPMIX_TOP_TPM3_CH2 0x51e
420+
>;
421+
};
422+
423+
pinctrl_tpm6: tpm6grp {
424+
fsl,pins = <
425+
IMX952_PAD_GPIO_IO19__WAKEUPMIX_TOP_TPM6_CH2 0x51e
426+
>;
427+
};
428+
397429
pinctrl_uart1: uart1grp {
398430
fsl,pins = <
399431
IMX952_PAD_UART1_RXD__AONMIX_TOP_LPUART1_RX 0x31e

0 commit comments

Comments
 (0)