Skip to content

Add support for NXP LPC18xx family

Joachim Eastwood linux-arm-kernel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 0 repliesNew
  2. v37 patches 0 repliesSuperseded
  3. v27 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches0 repliesSuperseded

Changes in v4 from the cover letter

- simplify the time-lpc32xx Kconfig entry
- select CLKSRC_LPC32XX in platform Kconfig
- switch to new clocksource api in time-lpc32xx
- document timer setup in time-lpc32xx
- add short HW description to time-lpc32xx commit message

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ARM: lpc18xx: add basic support for NXP LPC18xx/43xx SoCsarch/arm/Kconfig arch/arm/Kconfig.debug arch/arm/Makefile +3 more+49 -12 replies
1/7ARM: lpc18xx: add basic support for NXP LPC18xx/43xx SoCs+0 -03 replies
2/7clocksource: add lpc32xx timer driverdrivers/clocksource/Kconfig drivers/clocksource/Makefile drivers/clocksource/time-lpc32xx.c+278 -04 replies
3/7doc: dt: add documentation for lpc3220-timerDocumentation/devicetree/bindings/timer/nxp,lpc3220-timer.txt+26 -01 reply
4/7ARM: dts: Add base DT for NXP LPC18xxarch/arm/boot/dts/lpc18xx.dtsi+114 -01 reply
5/7ARM: dts: Add DT for Embedded Artists LPC4357 Developers KitDocumentation/devicetree/bindings/vendor-prefixes.txt arch/arm/boot/dts/Makefile arch/arm/boot/dts/lpc4357-ea4357-devkit.dts +1 more+83 -00 replies
6/7ARM: dts: Add DT for Hitex LPC4350 Evaluation BoardDocumentation/devicetree/bindings/vendor-prefixes.txt arch/arm/boot/dts/Makefile arch/arm/boot/dts/lpc4350-hitex-eval.dts +1 more+86 -00 replies
7/7ARM: lpc18xx: add kernel configarch/arm/configs/lpc18xx_defconfig+151 -01 reply

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchEzequiel GarciaDaniel Lezcano
1/7R-b
1/7R-b
2/7R-b A-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/7] Add support for NXP LPC18xx family

This patch set adds minimal support for the LPC18xx/43xx family of Cortex-M3/4 MCUs from NXP.

Patch set is based on Linus master v4.1-rc1. I would be great if these patches could go into 4.1.

To keep the amount of dependencies down the PLL1 clock has been hard coded in the lpc18xx.dtsi file. The clock system of LPC18xx is quite advanced for a MCU and requires two clk drivers to work. A patch set with these drivers and update to the dtsi files will be posted separately.

Drivers for pinctrl, gpio and reset are already upstream now.

Drivers for ethernet, i2c, rtc and emc (external memories) are also coming for LPC18xx. Right now these can found on:
https://github.com/manabian/linux-lpc

Sucessfuly tested on Embedded Artist LPC4357 Developers Kit.

ARM SoC maintainers: How would like to pick this series up? Could you pick up the patches on the mail list or would you prefer a pull request?

This version address the comments by Daniel Lezcano.
See: http://www.spinics.net/lists/arm-kernel/msg417217.html

Changes since v3:
- simplify the time-lpc32xx Kconfig entry
- select CLKSRC_LPC32XX in platform Kconfig
- switch to new clocksource api in time-lpc32xx
- document timer setup in time-lpc32xx
- add short HW description to time-lpc32xx commit message

Changes since v2:
- use pr_fmt in time-lpc32xx.c
- use request_irq instead of setup_irq in time-lpc32xx.c
- remove default on DEBUG_UART_8250 in Kconfig.debug
- update defconfig slightly

Changes since v1:
- use generic soc match strings in board-dt
- remove armv7m reset in board-dt (this wasn't working and a proper reset driver is coming)
- move dt aliases to board files
- add support for Hitex LPC4350 eval board from Ariel D'Alessandro
- rename lpc3250-timer to lpc3220-timer to match lpc32xx.dtsi
- add ea (and hitex) to vendor-prefixes
- rename lpc4357-ea4357 to lpc4357-ea4357-devkit
- add lpc32xx_read_sched_clock from Ezequiel Garcia
- use named clk in lpc3220 clocksource driver
- rebase on 4.1-rc1

Ariel D'Alessandro (1):
ARM: dts: Add DT for Hitex LPC4350 Evaluation Board

Joachim Eastwood (6):
ARM: lpc18xx: add basic support for NXP LPC18xx/43xx SoCs
clocksource: add lpc32xx timer driver
doc: dt: add documentation for lpc3220-timer
ARM: dts: Add base DT for NXP LPC18xx
ARM: dts: Add DT for Embedded Artists LPC4357 Developers Kit
ARM: lpc18xx: add kernel config

 .../bindings/timer/nxp,lpc3220-timer.txt           |  26 ++
 .../devicetree/bindings/vendor-prefixes.txt        |   2 +
 arch/arm/Kconfig                                   |  20 ++
 arch/arm/Kconfig.debug                             |   3 +-
 arch/arm/Makefile                                  |   1 +
 arch/arm/boot/dts/Makefile                         |   3 +
 arch/arm/boot/dts/lpc18xx.dtsi                     | 114 +++++++++
 arch/arm/boot/dts/lpc4350-hitex-eval.dts           |  45 ++++
 arch/arm/boot/dts/lpc4350.dtsi                     |  39 +++
 arch/arm/boot/dts/lpc4357-ea4357-devkit.dts        |  41 ++++
 arch/arm/boot/dts/lpc4357.dtsi                     |  39 +++
 arch/arm/configs/lpc18xx_defconfig                 | 151 ++++++++++++
 arch/arm/mach-lpc18xx/Makefile                     |   1 +
 arch/arm/mach-lpc18xx/Makefile.boot                |   3 +
 arch/arm/mach-lpc18xx/board-dt.c                   |  22 ++
 drivers/clocksource/Kconfig                        |   5 +
 drivers/clocksource/Makefile                       |   1 +
 drivers/clocksource/time-lpc32xx.c                 | 272 +++++++++++++++++++++
 18 files changed, 787 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/timer/nxp,lpc3220-timer.txt
 create mode 100644 arch/arm/boot/dts/lpc18xx.dtsi
 create mode 100644 arch/arm/boot/dts/lpc4350-hitex-eval.dts
 create mode 100644 arch/arm/boot/dts/lpc4350.dtsi
 create mode 100644 arch/arm/boot/dts/lpc4357-ea4357-devkit.dts
 create mode 100644 arch/arm/boot/dts/lpc4357.dtsi
 create mode 100644 arch/arm/configs/lpc18xx_defconfig
 create mode 100644 arch/arm/mach-lpc18xx/Makefile
 create mode 100644 arch/arm/mach-lpc18xx/Makefile.boot
 create mode 100644 arch/arm/mach-lpc18xx/board-dt.c
 create mode 100644 drivers/clocksource/time-lpc32xx.c
Signature · 1 line
1.8.0