Home
last modified time | relevance | path

Searched +full:lpc3220 +full:- +full:clk (Results 1 – 19 of 19) sorted by relevance

/linux/Documentation/devicetree/bindings/clock/
H A Dnxp,lpc3220-usb-clk.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/clock/nxp,lpc3220-usb-clk.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Animesh Agarwal <animeshagarwal28@gmail.com>
14 const: nxp,lpc3220-usb-clk
19 '#clock-cells':
23 - compatible
24 - reg
25 - '#clock-cells'
[all …]
H A Dnxp,lpc3220-clk.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/clock/nxp,lpc3220-clk.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Animesh Agarwal <animeshagarwal28@gmail.com>
14 const: nxp,lpc3220-clk
19 '#clock-cells':
25 - description: External 32768 Hz oscillator.
26 - description: Optional high frequency oscillator.
28 clock-names:
[all …]
/linux/Documentation/devicetree/bindings/timer/
H A Dnxp,lpc3220-timer.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/timer/nxp,lpc3220-timer.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP LPC3220 timer
10 - Animesh Agarwal <animeshagarwal28@gmail.com>
13 The NXP LPC3220 timer is used on a wide range of NXP SoCs. This includes
18 const: nxp,lpc3220-timer
29 clock-names:
36 - compatible
[all …]
/linux/drivers/clocksource/
H A Dtimer-lpc32xx.c1 // SPDX-License-Identifier: GPL-2.0
8 * time-efm32 Copyright (C) 2013 Pengutronix
9 * mach-lpc32xx/timer.c Copyright (C) 2009 - 2010 NXP Semiconductors
14 #include <linux/clk.h>
75 writel_relaxed(LPC32XX_TIMER_TCR_CRST, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_next_event()
76 writel_relaxed(delta, ddata->base + LPC32XX_TIMER_MR0); in lpc32xx_clkevt_next_event()
77 writel_relaxed(LPC32XX_TIMER_TCR_CEN, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_next_event()
88 writel_relaxed(0, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_shutdown()
102 writel_relaxed(0, ddata->base + LPC32XX_TIMER_TCR); in lpc32xx_clkevt_oneshot()
106 LPC32XX_TIMER_MCR_MR0S, ddata->base + LPC32XX_TIMER_MCR); in lpc32xx_clkevt_oneshot()
[all …]
/linux/Documentation/devicetree/bindings/spi/
H A Dnxp,lpc3220-spi.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/spi/nxp,lpc3220-spi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP LPC3220 SPI controller
10 - Frank Li <Frank.Li@nxp.com>
15 - nxp,lpc3220-spi
24 - $ref: spi-controller.yaml#
29 - compatible
30 - reg
[all …]
/linux/Documentation/devicetree/bindings/input/touchscreen/
H A Dnxp,lpc3220-tsc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/touchscreen/nxp,lpc3220-tsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Frank Li <Frank.Li@nxp.com>
14 const: nxp,lpc3220-tsc
26 - compatible
27 - reg
28 - clocks
29 - interrupts
[all …]
/linux/Documentation/devicetree/bindings/rtc/
H A Dnxp,lpc3220-rtc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/rtc/nxp,lpc3220-rtc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP LPC32xx SoC Real-time Clock
10 - Frank Li <Frank.Li@nxp.com>
15 - nxp,lpc3220-rtc
26 start-year: true
29 - compatible
30 - reg
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dnxp,lpc3220-i2s.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/sound/nxp,lpc3220-i2s.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
13 - J.M.B. Downing <jonathan.downing@nautel.com>
14 - Piotr Wojtaszczyk <piotr.wojtaszczyk@timesys.com>
17 - $ref: dai-common.yaml#
22 - nxp,lpc3220-i2s
32 - description: input clock of the peripheral.
36 - description: RX DMA Channel
[all …]
/linux/drivers/pwm/
H A Dpwm-lpc32xx.c1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/clk.h>
18 struct clk *clk; member
37 c = clk_get_rate(lpc32xx->clk); in lpc32xx_pwm_config()
43 return -ERANGE; in lpc32xx_pwm_config()
48 duty_cycles = div64_u64((unsigned long long)(period_ns - duty_ns) * 256, in lpc32xx_pwm_config()
55 val = readl(lpc32xx->base); in lpc32xx_pwm_config()
58 writel(val, lpc32xx->base); in lpc32xx_pwm_config()
69 ret = clk_prepare_enable(lpc32xx->clk); in lpc32xx_pwm_enable()
73 val = readl(lpc32xx->base); in lpc32xx_pwm_enable()
[all …]
/linux/drivers/iio/adc/
H A Dlpc32xx_adc.c1 // SPDX-License-Identifier: GPL-2.0+
3 * lpc32xx_adc.c - Support for ADC in LPC32XX
5 * 3-channel, 10-bit ADC
10 #include <linux/clk.h>
46 #define LPC32XXAD_NAME "lpc32xx-adc"
50 struct clk *clk; member
70 mutex_lock(&st->lock); in lpc32xx_read_raw()
71 ret = clk_prepare_enable(st->clk); in lpc32xx_read_raw()
73 mutex_unlock(&st->lock); in lpc32xx_read_raw()
77 __raw_writel(LPC32XXAD_INTERNAL | (chan->address) | in lpc32xx_read_raw()
[all …]
/linux/drivers/input/keyboard/
H A Dlpc32xx-keys.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #include <linux/clk.h>
58 struct clk *clk; member
73 struct input_dev *input = kscandat->input; in lpc32xx_mod_states()
77 key = readl(LPC32XX_KS_DATA(kscandat->kscan_base, col)); in lpc32xx_mod_states()
78 changed = key ^ kscandat->lastkeystates[col]; in lpc32xx_mod_states()
79 kscandat->lastkeystates[col] = key; in lpc32xx_mod_states()
85 kscandat->row_shift); in lpc32xx_mod_states()
86 keycode = kscandat->keymap[scancode]; in lpc32xx_mod_states()
98 for (i = 0; i < kscandat->matrix_sz; i++) in lpc32xx_kscan_irq()
[all …]
/linux/drivers/input/touchscreen/
H A Dlpc32xx_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * LPC32xx built-in touchscreen driver
12 #include <linux/clk.h>
43 #define LPC32XX_TSC_ADCCON_X_SAMPLE_SIZE(s) ((10 - (s)) << 7)
44 #define LPC32XX_TSC_ADCCON_Y_SAMPLE_SIZE(s) ((10 - (s)) << 4)
57 #define MOD_NAME "ts-lpc32xx"
60 __raw_readl((dev)->tsc_base + (reg))
62 __raw_writel((val), (dev)->tsc_base + (reg))
68 struct clk *clk; member
83 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt()
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_of.c1 // SPDX-License-Identifier: GPL-2.0+
19 #include <linux/clk.h>
26 struct clk *clk; member
27 struct clk *bus_clk;
54 return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; in npcm_get_divisor()
59 port->get_divisor = npcm_get_divisor; in npcm_setup()
60 port->startup = npcm_startup; in npcm_setup()
73 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_platform_serial_clk_notifier_cb()
77 serial8250_update_uartclk(&port8250->port, ndata->new_rate); in of_platform_serial_clk_notifier_cb()
92 struct device *dev = &ofdev->dev; in of_platform_serial_setup()
[all …]
/linux/sound/soc/fsl/
H A Dlpc3xxx-i2s.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <linux/clk.h>
23 #include "lpc3xxx-i2s.h"
60 if (abs(trate - i2srate) < diff) { in __lpc3xxx_find_clkdiv()
61 diff = abs(trate - i2srate); in __lpc3xxx_find_clkdiv()
72 struct device *dev = i2s_info_p->dev; in lpc3xxx_i2s_startup()
76 guard(mutex)(&i2s_info_p->lock); in lpc3xxx_i2s_startup()
78 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in lpc3xxx_i2s_startup()
83 if (flag & i2s_info_p->streams_in_use) { in lpc3xxx_i2s_startup()
85 ret = -EBUSY; in lpc3xxx_i2s_startup()
[all …]
/linux/drivers/clk/nxp/
H A Dclk-lpc32xx.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 #include <linux/clk.h>
7 #include <linux/clk-provider.h>
12 #include <dt-bindings/clock/lpc32xx-clock.h>
164 static struct clk *clk[LPC32XX_CLK_MAX]; variable
166 .clks = clk,
170 static struct clk *usb_clk[LPC32XX_USB_CLK_MAX];
377 static inline u32 lpc32xx_usb_clk_read(struct lpc32xx_usb_clk *clk) in lpc32xx_usb_clk_read() argument
382 static inline void lpc32xx_usb_clk_write(struct lpc32xx_usb_clk *clk, u32 val) in lpc32xx_usb_clk_write() argument
389 struct lpc32xx_clk *clk = to_lpc32xx_clk(hw); in clk_mask_enable() local
[all …]
/linux/drivers/mtd/nand/raw/
H A Dlpc32xx_mlc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * - Read: Auto Decode
12 * - Write: Auto Encode
13 * - Tested Page Sizes: 2048, 4096
22 #include <linux/clk.h>
32 #include <linux/dma-mapping.h>
134 if (section >= nand_chip->ecc.steps) in lpc32xx_ooblayout_ecc()
135 return -ERANGE; in lpc32xx_ooblayout_ecc()
137 oobregion->offset = ((section + 1) * 16) - nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
138 oobregion->length = nand_chip->ecc.bytes; in lpc32xx_ooblayout_ecc()
[all …]
H A Dlpc32xx_slc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include <linux/clk.h>
24 #include <linux/dma-mapping.h>
30 #define LPC32XX_MODNAME "lpc32xx-nand"
86 #define SLCTAC_CLOCKS(c, n, s) (min_t(u32, DIV_ROUND_UP(c, n) - 1, 0xF) << s)
141 return -ERANGE; in lpc32xx_ooblayout_ecc()
143 oobregion->length = 6; in lpc32xx_ooblayout_ecc()
144 oobregion->offset = 10; in lpc32xx_ooblayout_ecc()
153 return -ERANGE; in lpc32xx_ooblayout_free()
156 oobregion->offset = 0; in lpc32xx_ooblayout_free()
[all …]
/linux/
H A DMAINTAINERS5 ---------------------------------------------------
21 W: *Web-page* with status/info
23 B: URI for where to file *bugs*. A web-page with detailed bug
28 patches to the given subsystem. This is either an in-tree file,
29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst
46 N: [^a-z]tegra all files whose path contains tegra
64 ----------------
83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS)
85 L: linux-scsi@vger.kernel.org
88 F: drivers/scsi/3w-*
[all …]
/linux/drivers/usb/gadget/udc/
H A Dlpc32xx_udc.c1 // SPDX-License-Identifier: GPL-2.0+
18 #include <linux/clk.h>
20 #include <linux/dma-mapping.h>
78 #define DATA_IN 1 /* Expect dev->host transfer */
79 #define DATA_OUT 2 /* Expect host->dev transfer */
137 struct clk *usb_slv_clk;
161 /* USB device peripheral - various */
188 dev_dbg(epp->udc->dev, "%s: " fmt, __func__, ## arg)
190 dev_err(epp->udc->dev, "%s: " fmt, __func__, ## arg)
192 dev_info(epp->udc->dev, "%s: " fmt, __func__, ## arg)
[all …]