Home
last modified time | relevance | path

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

/linux/Documentation/devicetree/bindings/timer/
H A 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
23 - const: fsl,imx7ulp-tpm
24 - items:
[all …]
/linux/Documentation/devicetree/bindings/pwm/
H A 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 - Shawn Guo <shawnguo@kernel.org>
11 - Sascha Hauer <s.hauer@pengutronix.de>
12 - Fabio Estevam <festevam@gmail.com>
15 The TPM counter and period counter are shared between multiple
19 - $ref: pwm.yaml#
[all …]
/linux/drivers/clocksource/
H A Dtimer-imx-tpm.c1 // SPDX-License-Identifier: GPL-2.0+
13 #include "timer-of.h"
107 return (now - prev) >= delta ? -ETIME : 0; in tpm_set_next_event()
130 evt->event_handler(evt); in tpm_timer_interrupt()
138 .name = "i.MX TPM Timer",
167 "imx-tpm", in tpm_clocksource_init()
179 GENMASK(counter_width - 1, in tpm_clockevent_init()
190 pr_err("tpm: failed to get ipg clk\n"); in tpm_timer_init()
191 return -ENODEV; in tpm_timer_init()
196 pr_err("tpm: ipg clock enable failed (%d)\n", ret); in tpm_timer_init()
[all …]
/linux/drivers/pwm/
H A 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,
50 * together as a 2-bit field here.
58 #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 …]