[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1452734299-460-1-git-send-email-joshua.henderson@microchip.com>
Date: Wed, 13 Jan 2016 18:15:33 -0700
From: Joshua Henderson <joshua.henderson@...rochip.com>
To: <linux-kernel@...r.kernel.org>
CC: <linux-mips@...ux-mips.org>, <ralf@...ux-mips.org>,
Joshua Henderson <joshua.henderson@...rochip.com>,
Andrei Pistirica <andrei.pistirica@...rochip.com>,
Andrew Bresticker <abrestic@...omium.org>,
Andy Green <andy.green@...aro.org>,
Ben Hutchings <ben@...adent.org.uk>,
Chaotian Jing <chaotian.jing@...iatek.com>,
Corneliu Doban <cdoban@...adcom.com>,
<devicetree@...r.kernel.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Haojian Zhuang <haojian.zhuang@...il.com>,
Jean Delvare <jdelvare@...e.de>,
Kevin Hao <haokexin@...il.com>, <linux-api@...r.kernel.org>,
<linux-clk@...r.kernel.org>, <linux-gpio@...r.kernel.org>,
<linux-mmc@...r.kernel.org>, <linux-serial@...r.kernel.org>,
Lokesh Vutla <lokeshvutla@...com>,
"ludovic.desroches@...el.com" <ludovic.desroches@...el.com>,
Luis de Bethencourt <luisbg@....samsung.com>,
Paul Burton <paul.burton@...tec.com>,
Purna Chandra Mandal <purna.mandal@...rochip.com>,
Rob Herring <robh@...nel.org>,
Scott Branden <sbranden@...adcom.com>,
Shawn Lin <shawn.lin@...k-chips.com>,
Stephen Boyd <sboyd@...eaurora.org>,
Ulf Hansson <ulf.hansson@...aro.org>,
Vincent Yang <vincent.yang.fujitsu@...il.com>,
Weijun Yang <Weijun.Yang@....com>,
yangbo lu <yangbo.lu@...escale.com>
Subject: [PATCH v5 00/14] Initial Microchip PIC32MZDA Support
This patch series adds support for the Microchip PIC32MZDA MIPS platform.
All drivers required to boot from a MMC uSD card are included. Clock,
external interrupt controller, serial, SDHCI, and pinctrl/gpio drivers
are included. This has been tested on a PIC32MZDA Starter Kit. A tree
with these changes is available at [0].
[0] https://github.com/joshua-henderson/linux/tree/pic32-upstream-v5
Changes since v4 (https://lkml.org/lkml/2016/1/8/964
https://lkml.org/lkml/2016/1/8/965):
+ Add soc node for core timer interrupt to DTS
+ Add external IRQ property to DTS
+ Clean up irq alloc on failure
+ Fix rework regression with handling failure in probe
+ Select config PIC32_EVIC for PIC32MZDA
+ Implement get_c0_compare_int() in platform using DTS
+ Rearchitect (rewrite) to use generic chip
+ Be consistent with naming of functions, use pic32_ prefix
+ Move get_c0_compare_int() to platform where it belongs
+ Drop obsolete header
+ Add comments about the handler flow of the different interrupt types
+ Prevent external interrupts from being requested as level flow type
+ Simplify/optimize register access
+ Configure external interrupts from DT
+ Simplify plat_irq_dispatch() implementation
+ Change irq chip names to evic-*
+ Add EVIC_PIC32 config option and have platform select it
+ Support to configure core timer interrupt from DT
+ Use proper code comment formatting
+ Add new microchip,external-interrupts property
+ Provide a better description of some of the features
+ Clean up formatting
Changes since v3 (https://lkml.org/lkml/2016/1/7/760):
+ Remove broken URL and use full manual name for boot protocol
+ Formatting and comment location
+ Move functions to remove need for forward declaration
Changes since v2 (https://lkml.org/lkml/2015/12/14/818):
+ Prefer dt/bindings: prefix for subject
+ Remove redundant irq_chip functions in interrupt driver
+ Use 'sdhci_pltfm_*' instead of 'sdhci_*_host' and other cleanup
+ Use dynamic major/minor and ttyPIC* instead of ttyS*
+ Follow device-tree node naming convention for clocks
+ Remove pinctrl pins that are not port pins
+ Force lowercase in PIC32 clock binding documentation
+ Replace __clk_debug with pr_debug
+ Add of_clk_parent_fill usage in PIC32 clock driver
+ UART: Remove unused header files
+ UART: Refactor register read/write functions
+ UART: Reorder arguments to readl/writel functions
+ UART: Add missing initializations to termios
+ UART: Fix clk enable/disable mismatch
Changes since v1 (https://lkml.org/lkml/2015/11/20/848):
+ Rename all DT compatible properties to be chip specific.
+ Remove hardware interrupt priorities from interrupt controller DT
bindings.
+ Remove all dependencies on include headers used by PIC32 DTS
files.
+ Remove arch/mips/include/asm/mach-pic32/gpio.h
+ Drop usage of the following, mostly non-standard, properties in
DT bindings:
device_type
piomode
no-1-8-v
uart-has-rtscts
clock-frequency => assigned-clock-rate
+ Remove PIC32 memory PLL support from DT.
+ Replace empty 'ranges' with populated one for clock tree node.
+ Rename all instances of "USART" to "UART".
+ Remove 'interrupts' property from FSCM of PIC32 clock tree node.
+ Add default REFCLK rate initialization required for SDHCI in DTS.
+ Remove default frequency setup for REFOSC clocks in -clk DTS.
+ Address missing static on local functions and other sparse
warnings in several drivers.
+ Update pinctrl driver to address major binding and architectural
issues.
+ Remove redundant probing 'pb7_clk' to find CPU clock.
+ Remove unused PIC32 MPLL support.
+ Remove support for initializing default parent/rate for REFOSC
clocks.
+ Be consistent and use only "SDHCI" when referring to SD host
controller
+ Remove unnecessary PIC32 sdhci_ops min clock function.
+ Make platform PIC32[_CLR|_SET|_INV] register macros safer.
Andrei Pistirica (4):
dt/bindings: Add bindings for PIC32 UART driver
serial: pic32_uart: Add PIC32 UART driver
dt/bindings: Add bindings for PIC32 SDHCI host controller
mmc: sdhci-pic32: Add PIC32 SDHCI host controller driver
Cristian Birsan (2):
dt/bindings: Add bindings for PIC32 interrupt controller
irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller
Joshua Henderson (6):
dt/bindings: Add bindings for PIC32/MZDA platforms
MIPS: Add support for PIC32MZDA platform
dt/bindings: Add bindings for PIC32 pin control and GPIO
pinctrl: pinctrl-pic32: Add PIC32 pin control driver
MIPS: dts: Add initial DTS for the PIC32MZDA Starter Kit
MIPS: pic32mzda: Add initial PIC32MZDA Starter Kit defconfig
Purna Chandra Mandal (2):
dt/bindings: Add PIC32 clock binding documentation
clk: clk-pic32: Add PIC32 clock driver
.../devicetree/bindings/clock/microchip,pic32.txt | 257 +++
.../bindings/gpio/microchip,pic32-gpio.txt | 49 +
.../interrupt-controller/microchip,pic32-evic.txt | 67 +
.../bindings/mips/pic32/microchip,pic32mzda.txt | 31 +
.../bindings/mmc/microchip,sdhci-pic32.txt | 29 +
.../bindings/pinctrl/microchip,pic32-pinctrl.txt | 60 +
.../bindings/serial/microchip,pic32-uart.txt | 29 +
arch/mips/Kbuild.platforms | 1 +
arch/mips/Kconfig | 9 +
arch/mips/boot/dts/Makefile | 1 +
arch/mips/boot/dts/pic32/Makefile | 12 +
arch/mips/boot/dts/pic32/pic32mzda-clk.dtsi | 236 ++
arch/mips/boot/dts/pic32/pic32mzda.dtsi | 281 +++
arch/mips/boot/dts/pic32/pic32mzda_sk.dts | 151 ++
arch/mips/configs/pic32mzda_defconfig | 89 +
.../include/asm/mach-pic32/cpu-feature-overrides.h | 32 +
arch/mips/include/asm/mach-pic32/irq.h | 22 +
arch/mips/include/asm/mach-pic32/pic32.h | 44 +
arch/mips/include/asm/mach-pic32/spaces.h | 24 +
arch/mips/pic32/Kconfig | 51 +
arch/mips/pic32/Makefile | 6 +
arch/mips/pic32/Platform | 7 +
arch/mips/pic32/common/Makefile | 5 +
arch/mips/pic32/common/irq.c | 21 +
arch/mips/pic32/common/reset.c | 62 +
arch/mips/pic32/pic32mzda/Makefile | 9 +
arch/mips/pic32/pic32mzda/config.c | 126 ++
arch/mips/pic32/pic32mzda/early_clk.c | 106 +
arch/mips/pic32/pic32mzda/early_console.c | 171 ++
arch/mips/pic32/pic32mzda/early_pin.c | 275 +++
arch/mips/pic32/pic32mzda/early_pin.h | 241 ++
arch/mips/pic32/pic32mzda/init.c | 156 ++
arch/mips/pic32/pic32mzda/pic32mzda.h | 29 +
arch/mips/pic32/pic32mzda/time.c | 73 +
drivers/clk/Kconfig | 3 +
drivers/clk/Makefile | 1 +
drivers/clk/clk-pic32.c | 1801 +++++++++++++++
drivers/irqchip/Kconfig | 5 +
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-pic32-evic.c | 324 +++
drivers/mmc/host/Kconfig | 11 +
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/sdhci-pic32.c | 257 +++
drivers/pinctrl/Kconfig | 17 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-pic32.c | 2339 ++++++++++++++++++++
drivers/pinctrl/pinctrl-pic32.h | 141 ++
drivers/tty/serial/Kconfig | 21 +
drivers/tty/serial/Makefile | 1 +
drivers/tty/serial/pic32_uart.c | 960 ++++++++
drivers/tty/serial/pic32_uart.h | 126 ++
include/linux/platform_data/sdhci-pic32.h | 22 +
include/uapi/linux/serial_core.h | 3 +
53 files changed, 8797 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/microchip,pic32.txt
create mode 100644 Documentation/devicetree/bindings/gpio/microchip,pic32-gpio.txt
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/microchip,pic32-evic.txt
create mode 100644 Documentation/devicetree/bindings/mips/pic32/microchip,pic32mzda.txt
create mode 100644 Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.txt
create mode 100644 Documentation/devicetree/bindings/pinctrl/microchip,pic32-pinctrl.txt
create mode 100644 Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt
create mode 100644 arch/mips/boot/dts/pic32/Makefile
create mode 100644 arch/mips/boot/dts/pic32/pic32mzda-clk.dtsi
create mode 100644 arch/mips/boot/dts/pic32/pic32mzda.dtsi
create mode 100644 arch/mips/boot/dts/pic32/pic32mzda_sk.dts
create mode 100644 arch/mips/configs/pic32mzda_defconfig
create mode 100644 arch/mips/include/asm/mach-pic32/cpu-feature-overrides.h
create mode 100644 arch/mips/include/asm/mach-pic32/irq.h
create mode 100644 arch/mips/include/asm/mach-pic32/pic32.h
create mode 100644 arch/mips/include/asm/mach-pic32/spaces.h
create mode 100644 arch/mips/pic32/Kconfig
create mode 100644 arch/mips/pic32/Makefile
create mode 100644 arch/mips/pic32/Platform
create mode 100644 arch/mips/pic32/common/Makefile
create mode 100644 arch/mips/pic32/common/irq.c
create mode 100644 arch/mips/pic32/common/reset.c
create mode 100644 arch/mips/pic32/pic32mzda/Makefile
create mode 100644 arch/mips/pic32/pic32mzda/config.c
create mode 100644 arch/mips/pic32/pic32mzda/early_clk.c
create mode 100644 arch/mips/pic32/pic32mzda/early_console.c
create mode 100644 arch/mips/pic32/pic32mzda/early_pin.c
create mode 100644 arch/mips/pic32/pic32mzda/early_pin.h
create mode 100644 arch/mips/pic32/pic32mzda/init.c
create mode 100644 arch/mips/pic32/pic32mzda/pic32mzda.h
create mode 100644 arch/mips/pic32/pic32mzda/time.c
create mode 100644 drivers/clk/clk-pic32.c
create mode 100644 drivers/irqchip/irq-pic32-evic.c
create mode 100644 drivers/mmc/host/sdhci-pic32.c
create mode 100644 drivers/pinctrl/pinctrl-pic32.c
create mode 100644 drivers/pinctrl/pinctrl-pic32.h
create mode 100644 drivers/tty/serial/pic32_uart.c
create mode 100644 drivers/tty/serial/pic32_uart.h
create mode 100644 include/linux/platform_data/sdhci-pic32.h
--
1.7.9.5
Powered by blists - more mailing lists