/linux/arch/arm/boot/dts/nxp/lpc/ |
H A D | lpc32xx.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2015-2019 Vladimir Zapolskiy <vz@mleia.com> 9 #include <dt-bindings/clock/lpc32xx-clock.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 13 #address-cells = <1>; 14 #size-cells = <1>; 15 compatible = "nxp,lpc3220"; 16 interrupt-parent = <&mic>; 19 #address-cells = <1>; 20 #size-cells = <0>; [all …]
|
H A D | lpc18xx.dtsi | 9 * Released under the terms of 3-clause BSD License 14 #include "../../armv7-m.dtsi" 16 #include "dt-bindings/clock/lpc18xx-cgu.h" 17 #include "dt-bindings/clock/lpc18xx-ccu.h" 23 #address-cells = <1>; 24 #size-cells = <1>; 27 #address-cells = <1>; 28 #size-cells = <0>; 31 compatible = "arm,cortex-m3"; 40 compatible = "fixed-clock"; [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | nxp,lpc3220-usb-clk.yaml | 1 # 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 D | nxp,lpc3220-clk.yaml | 1 # 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 D | nxp,lpc3220-timer.yaml | 1 # 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 D | timer-lpc32xx.c | 1 // 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/sound/ |
H A D | nxp,lpc3220-i2s.yaml | 1 # 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/Documentation/devicetree/bindings/input/ |
H A D | lpc32xx-key.txt | 3 This binding is based on the matrix-keymap binding with the following 7 - compatible: Should be "nxp,lpc3220-key" 8 - reg: Physical base address of the controller and length of memory mapped 10 - interrupts: The interrupt number to the cpu. 11 - clocks: phandle to clock controller plus clock-specifier pair 12 - nxp,debounce-delay-ms: Debounce delay in ms 13 - nxp,scan-delay-ms: Repeated scan period in ms 14 - linux,keymap: the key-code to be reported when the key is pressed 16 Documentation/devicetree/bindings/input/matrix-keymap.txt 18 Note: keypad,num-rows and keypad,num-columns are required, and must be equal [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-lpc32xx.c | 1 // 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 D | lpc32xx_adc.c | 1 // 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 D | lpc32xx-keys.c | 1 // 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/tty/serial/8250/ |
H A D | 8250_of.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 #include <linux/clk.h> 26 struct clk *clk; member 53 return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; in npcm_get_divisor() 58 port->get_divisor = npcm_get_divisor; in npcm_setup() 59 port->startup = npcm_startup; in npcm_setup() 72 struct uart_8250_port *port8250 = serial8250_get_port(info->line); in of_platform_serial_clk_notifier_cb() 76 serial8250_update_uartclk(&port8250->port, ndata->new_rate); in of_platform_serial_clk_notifier_cb() 91 struct device *dev = &ofdev->dev; in of_platform_serial_setup() 92 struct device_node *np = dev->of_node; in of_platform_serial_setup() [all …]
|
H A D | 8250_port.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Base port operations for 8250/16550-type serial ports 203 .name = "LPC3220", 244 * tx_loadsz is set to 63-bytes instead of 64-bytes to implement 245 * workaround of errata A-008006 which states that tx_loadsz should 257 .name = "Palmchip BK-3103", 344 offset = offset << p->regshift; in hub6_serial_in() 345 outb(p->hub6 - 1 + offset, p->iobase); in hub6_serial_in() 346 return inb(p->iobase + 1); in hub6_serial_in() 351 offset = offset << p->regshift; in hub6_serial_out() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | lpc32xx_ts.c | 1 // 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/sound/soc/fsl/ |
H A D | lpc3xxx-i2s.c | 1 // 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 D | clk-lpc32xx.c | 1 // 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> 165 static struct clk *clk[LPC32XX_CLK_MAX]; variable 167 .clks = clk, 171 static struct clk *usb_clk[LPC32XX_USB_CLK_MAX]; 378 static inline u32 lpc32xx_usb_clk_read(struct lpc32xx_usb_clk *clk) in lpc32xx_usb_clk_read() argument 383 static inline void lpc32xx_usb_clk_write(struct lpc32xx_usb_clk *clk, u32 val) in lpc32xx_usb_clk_write() argument 390 struct lpc32xx_clk *clk = to_lpc32xx_clk(hw); in clk_mask_enable() local [all …]
|
/linux/drivers/mtd/nand/raw/ |
H A D | lpc32xx_mlc.c | 1 // 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 D | lpc32xx_slc.c | 1 // 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 D | MAINTAINERS | 5 --------------------------------------------------- 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 …]
|