[PATCH v3 1/2] dt/bindings: Add bindings for PIC32 deadman timer peripheral

2016-02-26 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the deadman timer peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Acked-by: Rob Herring --- Note: Please merge this patch series

[PATCH v3 2/2] watchdog: pic32-dmt: Add PIC32 deadman timer driver

2016-02-26 Thread Joshua Henderson
an instruction fetch occurs until a count match occurs. Instructions are not fetched when the processor is in sleep mode. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Reviewed-by: Guenter Roeck --- Note: Please merge this patch series through the MIPS tree

[PATCH v3 2/2] watchdog: pic32-wdt: Add PIC32 watchdog driver

2016-02-26 Thread Joshua Henderson
Add support for the watchdog peripheral found on PIC32 class devices. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal Cc: Ralf Baechle --- Note: Please merge this patch series through the MIPS tree. Changes since v2: - Remove pr_fmt and replace pr_debug with

[PATCH v3 1/2] dt/bindings: Add bindings for PIC32 watchdog peripheral

2016-02-26 Thread Joshua Henderson
Document the devicetree bindings for the watchdog peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- Note: Please merge this patch series through the MIPS tree. Changes since v2: None Changes since v1: - Change the example node

Re: [PATCH v2 2/2] watchdog: pic32-dmt: Add PIC32 deadman timer driver

2016-02-26 Thread Joshua Henderson
On 02/26/2016 07:11 AM, Guenter Roeck wrote: > On 02/25/2016 10:30 AM, Joshua Henderson wrote: >> From: Purna Chandra Mandal >> >> Adds support for the deadman timer peripheral found on PIC32 class devices. >> >> The primary function of the deadman timer (DMT) is

Re: [PATCH v2 2/2] watchdog: pic32-wdt: Add PIC32 watchdog driver

2016-02-26 Thread Joshua Henderson
Guenter, On 02/26/2016 07:06 AM, Guenter Roeck wrote: > On 02/25/2016 10:27 AM, Joshua Henderson wrote: >> Add support for the watchdog peripheral found on PIC32 class >> devices. >> >> Signed-off-by: Joshua Henderson >> Signed-off-by: Purna Chandra Mandal &g

Re: [PATCH 42/50] pinctrl: pic32: Use devm_pinctrl_register() for pinctrl registration

2016-02-25 Thread Joshua Henderson
On 02/24/2016 06:16 AM, Laxman Dewangan wrote: > Use devm_pinctrl_register() for pin control registration. > > Signed-off-by: Laxman Dewangan Reviewed-by: Joshua Henderson Thanks, Josh > --- > drivers/pinctrl/pinctrl-pic32.c | 3 ++- > 1 file changed, 2 inserti

Re: [PATCH] clk: Get rid of HAVE_MACH_CLKDEV

2016-02-25 Thread Joshua Henderson
let's remove the config all > together. > > Cc: Ralf Baechle > Cc: > Signed-off-by: Stephen Boyd Reviewed-by: Joshua Henderson Thanks, Josh > --- > > I don't see a problem if this goes through the MIPS tree or the clk tree. > Let me know and I can

[PATCH v2 1/2] dt/bindings: Add bindings for PIC32 deadman timer peripheral

2016-02-25 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the deadman timer peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Acked-by: Rob Herring --- Note: Please merge this patch series

[PATCH v2 2/2] watchdog: pic32-dmt: Add PIC32 deadman timer driver

2016-02-25 Thread Joshua Henderson
an instruction fetch occurs until a count match occurs. Instructions are not fetched when the processor is in sleep mode. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- Note: Please merge this patch series through the MIPS tree. Changes since v1

[PATCH v2 2/2] watchdog: pic32-wdt: Add PIC32 watchdog driver

2016-02-25 Thread Joshua Henderson
Add support for the watchdog peripheral found on PIC32 class devices. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal Cc: Ralf Baechle --- Note: Please merge this patch series through the MIPS tree. Changes since v1: - Shorten commit description - Don&#

[PATCH v2 1/2] dt/bindings: Add bindings for PIC32 watchdog peripheral

2016-02-25 Thread Joshua Henderson
Document the devicetree bindings for the watchdog peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- Note: Please merge this patch series through the MIPS tree. Changes since v1: - Change the example node name to be standard

[PATCH v9 2/3] clk: clk-pic32: Add PIC32 clock driver

2016-02-25 Thread Joshua Henderson
From: Purna Chandra Mandal This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note

[PATCH v9 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-02-25 Thread Joshua Henderson
From: Purna Chandra Mandal - now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc

[PATCH v9 0/3] PIC32MZDA Clock Driver

2016-02-25 Thread Joshua Henderson
Clock bindings got acked and then essentially unacked, while the clock driver never made it upstream. In the meantime, the initial DTS file made it upstream. This latest patch series includes a patch to go back and correct the DTS files to reflect the new clock bindings in this patch series. Purna

[PATCH v9 1/3] dt/bindings: Add PIC32 clock binding documentation

2016-02-25 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd Acked-by: Rob Herring Acked-by: Michael

[PATCH v3 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-25 Thread Joshua Henderson
This driver adds support for the PIC32 real time clock and calendar peripheral: - reading and setting time - alarms provided by dedicated IRQ Signed-off-by: Joshua Henderson --- Changes since v2: - Fix rework bug causing unecessary retries for gettime. - Word

[PATCH v3 1/2] dt/bindings: Add bindings for the PIC32 real time clock

2016-02-25 Thread Joshua Henderson
Document the devicetree bindings for the real time clock found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson Acked-by: Rob Herring -- Changes since v2: None Changes since v1: None --- .../bindings/rtc/microchip,pic32-rtc.txt | 21 1 file

Re: [PATCH v2 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-25 Thread Joshua Henderson
On 02/24/2016 03:25 PM, Alexandre Belloni wrote: > Hi, > > On 19/02/2016 at 11:09:45 -0700, Joshua Henderson wrote : >> +static int pic32_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) >> +{ >> +struct pic32_rtc_dev *pdata = dev_get_drvdata(dev); >>

[PATCH v8 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-02-24 Thread Joshua Henderson
From: Purna Chandra Mandal - now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc

[PATCH v8 2/3] clk: clk-pic32: Add PIC32 clock driver

2016-02-24 Thread Joshua Henderson
From: Purna Chandra Mandal This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note

[PATCH v8 0/3] PIC32MZDA Clock Driver

2016-02-24 Thread Joshua Henderson
Clock bindings got acked and then essentially unacked, while the clock driver never made it upstream. In the meantime, the initial DTS file made it upstream. This latest patch series includes a patch to go back and correct the DTS files to reflect the new clock bindings in this patch series. This

[PATCH v8 1/3] dt/bindings: Add PIC32 clock binding documentation

2016-02-24 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd Acked-by: Rob Herring --- Note: Please pull

Re: [PATCH v2 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-23 Thread Joshua Henderson
Alexandre, On 02/19/2016 11:17 AM, Alexandre Belloni wrote: > Hi, > > On 19/02/2016 at 11:09:45 -0700, Joshua Henderson wrote : >> This driver adds support for the PIC32 real time clock and calendar >> peripheral: >> - reading and setting time >>

[PATCH v2 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-19 Thread Joshua Henderson
This driver adds support for the PIC32 real time clock and calendar peripheral: - reading and setting time - alarms when connected to an IRQ Signed-off-by: Joshua Henderson --- Changes since v1: - Fix checkpatch.pl --strict issues. - Fix alpabetical makefile

[PATCH v2 1/2] dt/bindings: Add bindings for the PIC32 real time clock

2016-02-19 Thread Joshua Henderson
Document the devicetree bindings for the real time clock found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson Acked-by: Rob Herring -- Changes since v1: None --- .../bindings/rtc/microchip,pic32-rtc.txt | 21 1 file changed, 21 insertions

Re: [PATCH 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-19 Thread Joshua Henderson
Alexandre, On 02/16/2016 04:02 PM, Alexandre Belloni wrote: > Hi, > > On 01/02/2016 at 15:43:22 -0700, Joshua Henderson wrote : >> This drivers adds support for the PIC32 real time clock and calendar >> peripheral: >> - reading and setting time >>

Re: [PATCH v2 1/2] dt/bindings: Add bindings for the PIC32 random number generator

2016-02-19 Thread Joshua Henderson
On 02/16/2016 01:21 PM, Herbert Xu wrote: > On Mon, Feb 08, 2016 at 02:17:52PM -0700, Joshua Henderson wrote: >> Document the devicetree bindings for the random number generator found >> on Microchip PIC32 class devices. >> >> Signed-off-by: Joshua Henderson >>

[PATCH v4 1/2] usb: musb: Fix DMA for host mode

2016-02-19 Thread Joshua Henderson
mmediately after receiving an endpoint RX interrupt without waiting for the DMA transfer to complete. As a consequence when the dma complete interrupt arrives the in_qh member of hw_ep is already null an the musb_host_rx() exits on !urb error case. Signed-off-by: Cristian Birsan Signed-off-

[PATCH v4 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-19 Thread Joshua Henderson
instead be assigned the actual mode value. This results in the value of channel->desired_mode not being correct. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson Tested-by: Ladislav Michl Acked-by: Sergei Shtylyov --- Changes since v3: None Changes since v2: - Fix word

[PATCH v7 3/3] MIPS: dts: pic32: Update dts to reflect new PIC32MZDA clk binding

2016-02-19 Thread Joshua Henderson
From: Purna Chandra Mandal - now clock nodes definition is merged with core .dtsi file - only one rootclk is now part of DT - clock clients also updated based on new binding doc Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc

[PATCH v7 0/3] PIC32MZDA Clock Driver

2016-02-19 Thread Joshua Henderson
Clock bindings got acked and then essentially unacked, while the clock driver never made it upstream. In the meantime, the initial DTS file made it upstream. This latest patch series includes a patch to go back and correct the DTS files to reflect the new clock bindings in this patch series. Purna

[PATCH v7 2/3] clk: clk-pic32: Add PIC32 clock driver

2016-02-19 Thread Joshua Henderson
From: Purna Chandra Mandal This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note

[PATCH v7 1/3] dt/bindings: Add PIC32 clock binding documentation

2016-02-19 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd --- Note: Please pull this complete series

[PATCH v3 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-11 Thread Joshua Henderson
instead be assigned the actual mode value. This results in the value of channel->desired_mode not being correct. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson --- Changes since v2: - Fix wording in commit message. Changes since v1: - Fix commit comment citing the

[PATCH v3 1/2] usb: musb: Fix DMA for host mode

2016-02-11 Thread Joshua Henderson
mmediately after receiving an endpoint RX interrupt without waiting for the DMA transfer to complete. As a consequence when the dma complete interrupt arrives the in_qh member of hw_ep is already null an the musb_host_rx() exits on !urb error case. Signed-off-by: Cristian Birsan Signed-off-

[PATCH v2 1/2] usb: musb: Fix DMA for host mode

2016-02-08 Thread Joshua Henderson
mmediately after receiving an endpoint rx interrupt without waiting for the dma transfer to complete. As a consequence when the dma complete interrupt arrives the in_qh member of hw_ep is already null an the musb_host_rx() exits on !urb error case. Signed-off-by: Cristian Birsan Signed-off-

[PATCH v2 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-08 Thread Joshua Henderson
should be assigned the actual mode value. This results in the value of channel->desired_mode not being correct. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson --- Changes since v1: - Fix commit comment citing the cause of the regression. --- drivers/usb/musb/musb_host.c

[PATCH v6 2/2] clk: clk-pic32: Add PIC32 clock driver

2016-02-08 Thread Joshua Henderson
From: Purna Chandra Mandal This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Michael Turquette Cc: Stephen Boyd

[PATCH v6 1/2] dt/bindings: Add PIC32 clock binding documentation

2016-02-08 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Acked-by: Rob Herring Cc: Michael Turquette Cc: Stephen Boyd --- Changes since v5

[PATCH v2 1/2] dt/bindings: Add bindings for the PIC32 random number generator

2016-02-08 Thread Joshua Henderson
Document the devicetree bindings for the random number generator found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson Acked-by: Rob Herring --- .../bindings/rng/microchip,pic32-rng.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644

[PATCH v2 2/2] rng: pic32-rng: Add PIC32 RNG hardware driver

2016-02-08 Thread Joshua Henderson
Add support for the hardware true random number generator peripheral found on PIC32. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- Changes since v1: - Reorder includes to be alphabetic. - Drop use of PRNG and only use TRNG. - Fix dangling clock

Re: [PATCH v6 2/2] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2016-02-08 Thread Joshua Henderson
On 02/05/2016 03:57 PM, Linus Walleij wrote: > On Mon, Feb 1, 2016 at 11:48 PM, Joshua Henderson > wrote: > >> Add a driver for the pin controller present on the Microchip PIC32 >> including the specific variant PIC32MZDA. This driver provides pinmux >> and pinconfig

Re: [PATCH 2/2] watchdog: pic32-dmt: Add PIC32 deadman timer driver support

2016-02-04 Thread Joshua Henderson
Guenter, On 02/01/2016 08:04 PM, Guenter Roeck wrote: > On 02/01/2016 04:02 PM, Joshua Henderson wrote: >> From: Purna Chandra Mandal >> >> The primary function of the deadman timer (DMT) is to reset the processor >> in the event of a software malfunction

Re: [PATCH 2/2] watchdog: pic32-wdt: Add PIC32 watchdog driver

2016-02-04 Thread Joshua Henderson
Guenter, On 02/01/2016 08:27 PM, Guenter Roeck wrote: > On 02/01/2016 04:02 PM, Joshua Henderson wrote: >> When enabled, the watchdog peripheral can be used to reset the device if the >> WDT is not cleared periodically in software. > > Commit description is a bit long. Ack.

Re: [PATCH 2/2] rng: pic32-rng: Add PIC32 RNG hardware driver

2016-02-04 Thread Joshua Henderson
Daniel, On 02/03/2016 04:22 AM, Daniel Thompson wrote: > On 01/02/16 22:41, Joshua Henderson wrote: >> Add support for the hardware pseudo and true random number generator >> peripheral found on PIC32. >> >> Signed-off-by: Joshua Henderson >> Si

Re: [PATCH 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-02 Thread Joshua Henderson
Sergei, On 02/02/2016 06:32 AM, Sergei Shtylyov wrote: > On 2/2/2016 3:37 AM, Joshua Henderson wrote: > >> From: Cristian Birsan >> >> Commit 6b6e97107f12f3a9f7 (USB: musb: fix isochronous TXDMA (take 2)) >> introduces > >Again, wrong commit style

[PATCH 1/2] usb: musb: Fix DMA for host mode

2016-02-01 Thread Joshua Henderson
after receiving an endpoint rx interrupt without waiting for the dma transfer to complete. As a consequence when the dma complete interrupt arrives the in_qh member of hw_ep is already null an the musb_host_rx() exits on !urb error case. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson

[PATCH 2/2] usb: musb: Fix DMA desired mode for Mentor DMA engine

2016-02-01 Thread Joshua Henderson
assigned the actual mode value. This results in the value of channel->desired_mode not being correct. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson --- drivers/usb/musb/musb_host.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_hos

[PATCH 2/2] watchdog: pic32-wdt: Add PIC32 watchdog driver

2016-02-01 Thread Joshua Henderson
When enabled, the watchdog peripheral can be used to reset the device if the WDT is not cleared periodically in software. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal Cc: Ralf Baechle Cc: --- Note: Please merge this patch series through the MIPS tree. --- drivers

[PATCH 1/2] dt/bindings: Add bindings for PIC32 watchdog peripheral

2016-02-01 Thread Joshua Henderson
Document the devicetree bindings for the watchdog peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: --- Note: Please merge this patch series through the MIPS tree. --- .../bindings/watchdog/microchip,pic32-wdt.txt | 18

[PATCH 1/2] dt/bindings: Add bindings for PIC32 deadman timer peripheral

2016-02-01 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the deadman timer peripheral found on Microchip PIC32 SoC class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: --- Note: Please merge this patch series through the MIPS tree

[PATCH 2/2] watchdog: pic32-dmt: Add PIC32 deadman timer driver support

2016-02-01 Thread Joshua Henderson
fetched when the processor is in sleep mode. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: --- Note: Please merge this patch series through the MIPS tree. --- drivers/watchdog/Kconfig | 14 ++ drivers/watchdog/Makefile|1 + drivers

[PATCH v6 2/2] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2016-02-01 Thread Joshua Henderson
Add a driver for the pin controller present on the Microchip PIC32 including the specific variant PIC32MZDA. This driver provides pinmux and pinconfig operations as well as GPIO and IRQ chips for the GPIO banks. Signed-off-by: Joshua Henderson Cc: Ralf Baechle Cc: Linus Walleij --- Changes

[PATCH v6 1/2] dt/bindings: Add bindings for PIC32 pin control and GPIO

2016-02-01 Thread Joshua Henderson
Document the devicetree bindings for PINCTRL and GPIO found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson Cc: Ralf Baechle Acked-by: Rob Herring Cc: Linus Walleij --- Changes since v5: None Changes since v4: None Changes since v3: None Changes since v2: None Changes since

[PATCH 2/2] spi: spi-pic32: Add PIC32 SPI master driver

2016-02-01 Thread Joshua Henderson
board dts file. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson --- drivers/spi/Kconfig |7 + drivers/spi/Makefile|1 + drivers/spi/spi-pic32.c | 1212 +++ 3 files changed, 1220 insertions(+) create mode 100644 drive

[PATCH 1/2] dt/bindings: Add bindings for the PIC32 SPI peripheral

2016-02-01 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson --- .../bindings/spi/microchip,spi-pic32.txt | 44 1 file changed

[PATCH 1/2] dt/bindings: Add bindings for the PIC32 real time clock

2016-02-01 Thread Joshua Henderson
Document the devicetree bindings for the real time clock found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson --- .../bindings/rtc/microchip,pic32-rtc.txt | 21 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 2/2] rtc: rtc-pic32: Add PIC32 real time clock driver

2016-02-01 Thread Joshua Henderson
This drivers adds support for the PIC32 real time clock and calendar peripheral: - reading and setting time - alarms when connected to an IRQ Signed-off-by: Joshua Henderson --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile|1 + drivers/rtc/rtc-pic32.c | 450

[PATCH 2/2] rng: pic32-rng: Add PIC32 RNG hardware driver

2016-02-01 Thread Joshua Henderson
Add support for the hardware pseudo and true random number generator peripheral found on PIC32. Signed-off-by: Joshua Henderson Signed-off-by: Purna Chandra Mandal --- drivers/char/hw_random/Kconfig | 13 +++ drivers/char/hw_random/Makefile|1 + drivers/char/hw_random/pic32-rng.c

[PATCH 1/2] dt/bindings: Add bindings for the PIC32 random number generator

2016-02-01 Thread Joshua Henderson
Document the devicetree bindings for the random number generator found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson --- .../bindings/rng/microchip,pic32-rng.txt | 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentation

[PATCH] spi: Fix incomplete handling of SPI_MASTER_MUST_RX/_MUST_TX

2016-02-01 Thread Joshua Henderson
at .rx_buf as legitimate ptr. This will result into memory corruption due to usage of free'd ptr. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson --- drivers/spi/spi.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.

Re: [PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

2016-01-29 Thread Joshua Henderson
_platform_default_populate(NULL, pic32_auxdata_lookup, NULL)) > panic("Failed to populate DT"); > > return 0; I'll one-up just compile-testing for this. Tested-by: Joshua Henderson [...]

Re: [PATCH v5 08/14] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2016-01-27 Thread Joshua Henderson
Linus, On 01/27/2016 06:49 AM, Linus Walleij wrote: > On Thu, Jan 14, 2016 at 2:15 AM, Joshua Henderson > wrote: > >> Add a driver for the pin controller present on the Microchip PIC32 >> including the specific variant PIC32MZDA. This driver provides pinmux >> and p

Re: [PATCH v5 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-27 Thread Joshua Henderson
On 01/26/2016 10:33 AM, Greg Kroah-Hartman wrote: > On Tue, Jan 26, 2016 at 10:04:41AM -0700, Joshua Henderson wrote: >> Hi Greg and Jiri, >> >> Ping! Need an ack for this or pull it upstream. > > The merge window _just_ ended, please give us a chance to catch up

Re: [PATCH v5 12/14] mmc: sdhci-pic32: Add PIC32 SDHCI host controller driver

2016-01-26 Thread Joshua Henderson
Hi Ulf, Ping! Need an ack for this or pull it upstream. On 01/13/2016 06:15 PM, Joshua Henderson wrote: > From: Andrei Pistirica > > This driver supports the SDHCI host controller found on a PIC32. > > Signed-off-by: Andrei Pistirica > Signed-off-by: Joshua Henderson

Re: [PATCH v5 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-26 Thread Joshua Henderson
Hi Greg and Jiri, Ping! Need an ack for this or pull it upstream. On 01/13/2016 06:15 PM, Joshua Henderson wrote: > From: Andrei Pistirica > > This adds UART and a serial console driver for Microchip PIC32 class > devices. > > Signed-off-by: Andrei Pistirica >

Re: [PATCH v5 08/14] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2016-01-26 Thread Joshua Henderson
Hi Linus, Ping! Need an ack for this or pull it upstream. On 01/13/2016 06:15 PM, Joshua Henderson wrote: > Add a driver for the pin controller present on the Microchip PIC32 > including the specific variant PIC32MZDA. This driver provides pinmux > and pinconfig operations as well as

Re: [PATCH v5 04/14] clk: clk-pic32: Add PIC32 clock driver

2016-01-26 Thread Joshua Henderson
Hi Michael and Stephen, Ping! Need an ack for this or pull it upstream. DT bindings have long been acked. On 01/13/2016 06:15 PM, Joshua Henderson wrote: > From: Purna Chandra Mandal > > This clock driver implements PIC32 specific clock-tree. clock-tree > entities can only b

Re: [PATCH v2 02/14] irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller

2016-01-05 Thread Joshua Henderson
Marc, On 12/15/2015 10:00 AM, Marc Zyngier wrote: > On 14/12/15 22:42, Joshua Henderson wrote: >> From: Cristian Birsan >> >> This adds support for the interrupt controller present on PIC32 class >> devices. >> >> The following features are supported: >&

[PATCH v2 01/14] DEVICETREE: Add bindings for PIC32 interrupt controller

2015-12-14 Thread Joshua Henderson
From: Cristian Birsan Document the devicetree bindings for the interrupt controller on Microchip PIC32 class devices. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../interrupt-controller/microchip,pic32-evic.txt | 58 1 file

[PATCH v2 08/14] pinctrl: pinctrl-pic32: Add PIC32 pin control driver

2015-12-14 Thread Joshua Henderson
Add a driver for the pin controller present on the Microchip PIC32 including the specific variant PIC32MZDA. This driver provides pinmux and pinconfig operations as well as GPIO and IRQ chips for the GPIO banks. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- drivers/pinctrl/Kconfig

[PATCH v2 14/14] MIPS: pic32mzda: Add initial PIC32MZDA Starter Kit defconfig

2015-12-14 Thread Joshua Henderson
This adds an initial default config that enables all available PIC32 drivers and is enough for booting a PIC32MZDA Starter Kit. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- arch/mips/configs/pic32mzda_defconfig | 88 + 1 file changed, 88 insertions

[PATCH v2 13/14] MIPS: dts: Add initial DTS for the PIC32MZDA Starter Kit

2015-12-14 Thread Joshua Henderson
This adds basic DTS configuration for the PIC32MZDA chip and in turn the PIC32MZDA Starter Kit. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- arch/mips/boot/dts/Makefile |1 + arch/mips/boot/dts/pic32/Makefile | 12 ++ arch/mips/boot/dts/pic32/pic32mzda

[PATCH v2 12/14] mmc: sdhci-pic32: Add PIC32 SDHCI host controller driver

2015-12-14 Thread Joshua Henderson
From: Andrei Pistirica This driver supports the SDHCI host controller found on a PIC32. Signed-off-by: Andrei Pistirica Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- drivers/mmc/host/Kconfig | 11 ++ drivers/mmc/host/Makefile |1 + drivers/mmc/host/sdhci-pic32.c

[PATCH v2 09/14] DEVICETREE: Add bindings for PIC32 UART driver

2015-12-14 Thread Joshua Henderson
From: Andrei Pistirica Document the devicetree bindings for the UART peripheral found on Microchip PIC32 class devices. Signed-off-by: Andrei Pistirica Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../bindings/serial/microchip,pic32-uart.txt | 29 1 file

[PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver

2015-12-14 Thread Joshua Henderson
From: Andrei Pistirica This adds UART and a serial console driver for Microchip PIC32 class devices. Signed-off-by: Andrei Pistirica Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- drivers/tty/serial/Kconfig | 21 + drivers/tty/serial/Makefile |1 + drivers/tty/serial

[PATCH v2 04/14] clk: clk-pic32: Add PIC32 clock driver

2015-12-14 Thread Joshua Henderson
From: Purna Chandra Mandal This clock driver implements PIC32 specific clock-tree. clock-tree entities can only be configured through device-tree file (OF). Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- drivers/clk/Kconfig |3 + drivers/clk

[PATCH v2 07/14] DEVICETREE: Add bindings for PIC32 pin control and GPIO

2015-12-14 Thread Joshua Henderson
Document the devicetree bindings for PINCTRL and GPIO found on Microchip PIC32 class devices. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../bindings/gpio/microchip,pic32-gpio.txt | 49 .../bindings/pinctrl/microchip,pic32-pinctrl.txt | 60

[PATCH v2 11/14] DEVICETREE: Add bindings for PIC32 SDHCI host controller

2015-12-14 Thread Joshua Henderson
From: Andrei Pistirica Document the devicetree bindings for the SDHCI peripheral found on Microchip PIC32 class devices. Signed-off-by: Andrei Pistirica Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../bindings/mmc/microchip,sdhci-pic32.txt | 29 1

[PATCH v2 06/14] MIPS: Add support for PIC32MZDA platform

2015-12-14 Thread Joshua Henderson
interface is provided to synchronize access to registers shared across several peripherals. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- arch/mips/Kbuild.platforms |1 + arch/mips/Kconfig |9 + .../include/asm/mach-pic32/cpu

[PATCH v2 02/14] irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller

2015-12-14 Thread Joshua Henderson
: Cristian Birsan Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- drivers/irqchip/Makefile |1 + drivers/irqchip/irq-pic32-evic.c | 321 include/linux/irqchip/pic32-evic.h | 19 +++ 3 files changed, 341 insertions(+) create mode 100644

[PATCH v2 03/14] DEVICETREE: Add PIC32 clock binding documentation

2015-12-14 Thread Joshua Henderson
From: Purna Chandra Mandal Document the devicetree bindings for the clock driver found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../devicetree/bindings/clock/microchip,pic32.txt | 256 1

[PATCH v2 05/14] DEVICETREE: Add bindings for PIC32/MZDA platforms

2015-12-14 Thread Joshua Henderson
This adds support for the Microchip PIC32 platform along with the specific variant PIC32MZDA on a PIC32MZDA Starter Kit. Signed-off-by: Joshua Henderson Cc: Ralf Baechle --- .../bindings/mips/pic32/microchip,pic32mzda.txt| 33 1 file changed, 33 insertions(+) create

[PATCH v2 00/14] Initial Microchip PIC32MZDA Support

2015-12-14 Thread Joshua Henderson
is available at [0]. [0] https://github.com/joshua-henderson/linux/tree/pic32-upstream-v2 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

Re: [PATCH 09/14] DEVICETREE: Add bindings for PIC32 usart driver

2015-12-11 Thread Joshua Henderson
Rob, On 11/22/2015 02:56 PM, Rob Herring wrote: > On Fri, Nov 20, 2015 at 05:17:21PM -0700, Joshua Henderson wrote: >> From: Andrei Pistirica >> >> Document the devicetree bindings for the USART peripheral found on >> Microchip PIC32 class devices. >> &

Re: [PATCH 08/14] pinctrl: Add PIC32 pin control driver

2015-12-08 Thread Joshua Henderson
Linus, On 11/30/2015 06:41 AM, Linus Walleij wrote: > On Sat, Nov 21, 2015 at 1:17 AM, Joshua Henderson > wrote: > >> From: Andrei Pistirica >> >> Add a driver for the pin controller present on the Microchip PIC32 >> including the specific variant PIC32MZDA. T

Re: [PATCH 07/14] DEVICETREE: Add bindings for PIC32 pin control and GPIO

2015-12-08 Thread Joshua Henderson
Hi Rob, On 11/22/2015 02:47 PM, Rob Herring wrote: > On Fri, Nov 20, 2015 at 05:17:19PM -0700, Joshua Henderson wrote: >> From: Andrei Pistirica >> >> Document the devicetree bindings for PINCTRL and GPIO found on Microchip >> PIC32 class devices. This also adds a h

Re: [PATCH 03/14] DEVICETREE: Add PIC32 clock binding documentation

2015-12-03 Thread Joshua Henderson
Rob, On 11/30/2015 02:43 PM, Rob Herring wrote: > On Wed, Nov 25, 2015 at 10:36:55PM -0700, Joshua Henderson wrote: >> Hi Rob, >> >> On 11/22/2015 2:31 PM, Rob Herring wrote: >>> On Fri, Nov 20, 2015 at 05:17:15PM -0700, Joshua Henderson wrote: >>>> From

Re: [PATCH 03/14] DEVICETREE: Add PIC32 clock binding documentation

2015-11-25 Thread Joshua Henderson
Hi Rob, On 11/22/2015 2:31 PM, Rob Herring wrote: > On Fri, Nov 20, 2015 at 05:17:15PM -0700, Joshua Henderson wrote: >> From: Purna Chandra Mandal >> >> Document the devicetree bindings for the clock driver found on Microchip >> PIC32 class devices. >> >&

Re: [PATCH 12/14] DEVICETREE: Add bindings for PIC32 SDHC host controller

2015-11-25 Thread Joshua Henderson
Hi Rob, On 11/22/2015 2:57 PM, Rob Herring wrote: > On Fri, Nov 20, 2015 at 05:17:24PM -0700, Joshua Henderson wrote: >> From: Andrei Pistirica >> >> Document the devicetree bindings for the SDHC peripheral found on >> Microchip PIC32 class devices. >> &

Re: [PATCH 01/14] DEVICETREE: Add bindings for PIC32 interrupt controller

2015-11-25 Thread Joshua Henderson
Hi Rob, On 11/22/2015 2:14 PM, Rob Herring wrote: > On Fri, Nov 20, 2015 at 05:17:13PM -0700, Joshua Henderson wrote: >> From: Cristian Birsan >> >> Document the devicetree bindings for the interrupt controller on Microchip >> PIC32 class devices. This also adds a

Re: [PATCH 12/14] DEVICETREE: Add bindings for PIC32 SDHC host controller

2015-11-25 Thread Joshua Henderson
Hi Sergei, On 11/21/2015 8:19 AM, Sergei Shtylyov wrote: > Hello. > > On 11/21/2015 3:17 AM, Joshua Henderson wrote: > >> From: Andrei Pistirica >> >> Document the devicetree bindings for the SDHC peripheral found on >> Microchip PIC32 class devices. &

Re: [PATCH 03/14] DEVICETREE: Add PIC32 clock binding documentation

2015-11-25 Thread Joshua Henderson
Hi Arnd, On 11/21/2015 1:49 PM, Arnd Bergmann wrote: > On Friday 20 November 2015 17:17:15 Joshua Henderson wrote: >> +/* PIC32 specific clks */ >> +pic32_clktree { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + re

Re: [PATCH 01/14] DEVICETREE: Add bindings for PIC32 interrupt controller

2015-11-25 Thread Joshua Henderson
On 11/21/2015 1:47 PM, Arnd Bergmann wrote: > On Friday 20 November 2015 17:17:13 Joshua Henderson wrote: > >> +Example >> +--- >> + >> +evic: interrupt-controller@1f81 { >> +compatible = "microchip,evic-v2"; >> +int

Re: [PATCH 02/14] irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller

2015-11-25 Thread Joshua Henderson
On 11/22/2015 4:45 AM, Marc Zyngier wrote: > On Fri, 20 Nov 2015 17:17:14 -0700 > Joshua Henderson wrote: > > Joshua, Cristian, > >> From: Cristian Birsan >> >> This adds support for the EVIC present on a PIC32MZDA. >> >> The following features ar

Re: [PATCH 06/14] MIPS: Add support for PIC32MZDA platform

2015-11-22 Thread Joshua Henderson
On 11/21/2015 04:37 AM, Alban wrote: > On Fri, 20 Nov 2015 17:17:18 -0700 > Joshua Henderson wrote: > >> This adds support for the Microchip PIC32 MIPS microcontroller with >> the specific variant PIC32MZDA. PIC32MZDA is based on the MIPS m14KEc >> core and boots us

[PATCH 01/14] DEVICETREE: Add bindings for PIC32 interrupt controller

2015-11-20 Thread Joshua Henderson
From: Cristian Birsan Document the devicetree bindings for the interrupt controller on Microchip PIC32 class devices. This also adds a header defining associated interrupts and related settings. Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson --- .../microchip,pic32mz-evic.txt

[PATCH 06/14] MIPS: Add support for PIC32MZDA platform

2015-11-20 Thread Joshua Henderson
interface is provided to synchronize access to registers shared across several peripherals. Signed-off-by: Joshua Henderson --- arch/mips/Kbuild.platforms |1 + arch/mips/Kconfig |9 + .../include/asm/mach-pic32/cpu-feature-overrides.h

[PATCH 02/14] irqchip: irq-pic32-evic: Add support for PIC32 interrupt controller

2015-11-20 Thread Joshua Henderson
interrupt line - irqdomain support Signed-off-by: Cristian Birsan Signed-off-by: Joshua Henderson --- drivers/irqchip/Makefile |1 + drivers/irqchip/irq-pic32-evic.c | 309 include/linux/irqchip/pic32-evic.h | 19 +++ 3 files changed, 329

  1   2   >