]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx952-evk: Enable TPM[3,6]
authorPeng Fan <peng.fan@nxp.com>
Sun, 11 Jan 2026 12:40:14 +0000 (20:40 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 18 Jan 2026 01:55:28 +0000 (09:55 +0800)
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>
arch/arm64/boot/dts/freescale/imx952-evk.dts

index 24a3468b1817a673765a9a9cc378d5830d5afd97..21b951a2156414819dfb589e5e7e736e7b1fe48a 100644 (file)
@@ -1,10 +1,11 @@
 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 /*
- * Copyright 2025 NXP
+ * Copyright 2025-2026 NXP
  */
 
 /dts-v1/;
 
+#include <dt-bindings/pwm/pwm.h>
 #include <dt-bindings/usb/pd.h>
 #include "imx952.dtsi"
 
                reg = <0x0 0x80000000 0 0x80000000>;
        };
 
+       fan0: pwm-fan {
+               compatible = "pwm-fan";
+               #cooling-cells = <2>;
+               pwms = <&tpm6 2 4000000 PWM_POLARITY_INVERTED>;
+               cooling-levels = <64 128 192 255>;
+       };
+
        reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
        status = "okay";
 };
 
+&tpm3 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_tpm3>;
+       status = "okay";
+};
+
+&tpm6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_tpm6>;
+       status = "okay";
+};
+
 &usb1 {
        dr_mode = "otg";
        hnp-disable;
                >;
        };
 
+       pinctrl_tpm3: tpm3grp {
+               fsl,pins = <
+                       IMX952_PAD_GPIO_IO12__WAKEUPMIX_TOP_TPM3_CH2            0x51e
+               >;
+       };
+
+       pinctrl_tpm6: tpm6grp {
+               fsl,pins = <
+                       IMX952_PAD_GPIO_IO19__WAKEUPMIX_TOP_TPM6_CH2            0x51e
+               >;
+       };
+
        pinctrl_uart1: uart1grp {
                fsl,pins = <
                        IMX952_PAD_UART1_RXD__AONMIX_TOP_LPUART1_RX             0x31e