Home
last modified time | relevance | path

Searched +full:imx7ulp +full:- +full:tpm (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/Documentation/devicetree/bindings/timer/
Dnxp,tpm-timer.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP Low Power Timer/Pulse Width Modulation Module (TPM)
10 - Dong Aisheng <aisheng.dong@nxp.com>
13 The Timer/PWM Module (TPM) supports input capture, output compare,
17 power modes. TPM can support global counter bus where one TPM drives
22 const: fsl,imx7ulp-tpm
32 - description: SoC TPM ipg clock
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/pwm/
Dimx-tpm-pwm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pwm/imx-tpm-pwm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale i.MX TPM PWM controller
10 - Anson Huang <anson.huang@nxp.com>
13 The TPM counter and period counter are shared between multiple
17 "#pwm-cells":
22 - fsl,imx7ulp-pwm
27 assigned-clocks:
[all …]
/Linux-v5.10/drivers/clocksource/
Dtimer-imx-tpm.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include "timer-of.h"
99 return (int)(next - now) <= 0 ? -ETIME : 0; in tpm_set_next_event()
122 evt->event_handler(evt); in tpm_timer_interrupt()
130 .name = "i.MX7ULP TPM Timer",
159 "imx-tpm", in tpm_clocksource_init()
171 GENMASK(counter_width - 1, in tpm_clockevent_init()
182 pr_err("tpm: failed to get ipg clk\n"); in tpm_timer_init()
183 return -ENODEV; in tpm_timer_init()
188 pr_err("tpm: ipg clock enable failed (%d)\n", ret); in tpm_timer_init()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Dimx7ulp.dtsi1 // SPDX-License-Identifier: GPL-2.0+
4 * Copyright 2017-2018 NXP
8 #include <dt-bindings/clock/imx7ulp-clock.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include "imx7ulp-pinfunc.h"
15 interrupt-parent = <&intc>;
17 #address-cells = <1>;
18 #size-cells = <1>;
37 #address-cells = <1>;
[all …]
/Linux-v5.10/drivers/pwm/
Dpwm-imx-tpm.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018-2019 NXP.
6 * - The TPM counter and period counter are shared between
9 * - Changes to polarity cannot be latched at the time of the
11 * - Changing period and duty cycle together isn't atomic,
49 * together as a 2-bit field here.
57 #define PWM_IMX_TPM_MOD_MOD GENMASK(PWM_IMX_TPM_MOD_WIDTH - 1, 0)
92 struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip); in pwm_imx_tpm_round_state() local
96 rate = clk_get_rate(tpm->clk); in pwm_imx_tpm_round_state()
97 tmp = (u64)state->period * rate; in pwm_imx_tpm_round_state()
[all …]