Re: [PATCH (v2) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-04 Thread Simon Arlott
On Thu, December 3, 2015 08:39, Philipp Zabel wrote: > Am Mittwoch, den 02.12.2015, 21:03 + schrieb Simon Arlott: >> +periph_soft_rst: reset-controller { >> +compatible = "brcm,bcm63168-reset", "brcm,bcm6345-reset"; >> +regmap = <_cntl>

Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 14:30, Rob Herring wrote: > On Mon, Nov 30, 2015 at 08:52:55PM +0000, Simon Arlott wrote: >> +periph_clk: periph_clk { >> +compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; >> +regmap = <_cntl>; > &

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 11:00, Mark Brown wrote: > On Thu, Dec 03, 2015 at 11:51:16PM +0000, Simon Arlott wrote: >> On 03/12/15 23:45, Mark Brown wrote: > >> > Are you *sure* these are regulators and not power domains? These names >> > look a lot like they could

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 11:00, Mark Brown wrote: > On Thu, Dec 03, 2015 at 11:51:16PM +0000, Simon Arlott wrote: >> On 03/12/15 23:45, Mark Brown wrote: > >> > Are you *sure* these are regulators and not power domains? These names >> > look a lot like they could

Re: [PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 16:04, Jonas Gorski wrote: > On Thu, Dec 3, 2015 at 12:41 AM, Simon Arlott <si...@fire.lp0.eu> wrote: >> + * "brcm,nand-bcm6368" >> + - compatible: should contain "brcm,nand-bcm", "brcm,nand-bcm6368" >> +

Re: [PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-12-04 Thread Simon Arlott
On Fri, December 4, 2015 14:30, Rob Herring wrote: > On Mon, Nov 30, 2015 at 08:52:55PM +0000, Simon Arlott wrote: >> +periph_clk: periph_clk { >> +compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; >> +regmap = <_cntl>; > &

Re: [PATCH (v2) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-04 Thread Simon Arlott
On Thu, December 3, 2015 08:39, Philipp Zabel wrote: > Am Mittwoch, den 02.12.2015, 21:03 + schrieb Simon Arlott: >> +periph_soft_rst: reset-controller { >> +compatible = "brcm,bcm63168-reset", "brcm,bcm6345-reset"; >> +regmap = <_cntl>

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 23:45, Mark Brown wrote: > On Thu, Dec 03, 2015 at 11:38:28PM +0000, Simon Arlott wrote: > >> #define MISC_IDDQ_CTRL_GMAC (1<<18) >> #define MISC_IDDQ_CTRL_WLAN_PADS(1<<13) >> #define MISC_IDDQ_CTRL_PCIE (1<<12) >

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 15:05, Mark Brown wrote: > On Thu, Dec 03, 2015 at 08:14:33AM +0000, Simon Arlott wrote: >> On 03/12/15 00:06, Mark Brown wrote: > >> > this it should know at least something about how to control the device >> > from the compatible string. If you're mak

[PATCH linux-next 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-03 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott --- drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++ 2 files changed, 146 insertions(+) create mode 100644 drivers/mtd/nand/brcmnand/bcm6368_nand.c

[PATCH linux-next 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-03 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott --- Removed ctrl->clk not NULL check. drivers/mtd/nand/brcmnand/brcmnand.c | 64 1 file changed, 50 inse

[PATCH linux-next 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-03 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott --- .../devicetree/bindings/mtd/brcm,brcmnand.txt

[PATCH linux-next 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-03 Thread Simon Arlott
The BCM6345 contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Clock gate bits are interleaved with other status bits and configurable clocks in the same register. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott --- Renamed

[PATCH linux-next 1/2] clk: Add brcm,bcm6345-gate-clk device tree binding

2015-12-03 Thread Simon Arlott
", "nand", + "tbus", "robosw250"; +}; + +timer_clk: timer_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm6345-gate-clk"; + regmap = <_cntl>; + offset = <0x4>; + + #clock-cells =

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 00:06, Mark Brown wrote: > On Wed, Dec 02, 2015 at 08:26:36PM +0000, Simon Arlott wrote: >> On 02/12/15 12:53, Mark Brown wrote: > >> > This is the sort of thing you can pick up from the SoC compatible >> > strings. As things stand there

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 00:06, Mark Brown wrote: > On Wed, Dec 02, 2015 at 08:26:36PM +0000, Simon Arlott wrote: >> On 02/12/15 12:53, Mark Brown wrote: > >> > This is the sort of thing you can pick up from the SoC compatible >> > strings. As things stand there

[PATCH linux-next 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-03 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- .../devicetree/bi

[PATCH linux-next 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-03 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Removed ctrl->clk not NULL check. drivers/mtd/nand/brcmnand/brcmnand.c | 64

[PATCH linux-next 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-03 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++ 2 files changed, 146 insertions(+) create mode 100644 drivers/mt

[PATCH linux-next 1/2] clk: Add brcm,bcm6345-gate-clk device tree binding

2015-12-03 Thread Simon Arlott
"phymips", "gmac", "nand", + "tbus", "robosw250"; +}; + +timer_clk: timer_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm6345-gate-clk"; + regmap = <_cntl>; + offset = <0x4>

[PATCH linux-next 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-03 Thread Simon Arlott
The BCM6345 contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Clock gate bits are interleaved with other status bits and configurable clocks in the same register. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott <

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 23:45, Mark Brown wrote: > On Thu, Dec 03, 2015 at 11:38:28PM +0000, Simon Arlott wrote: > >> #define MISC_IDDQ_CTRL_GMAC (1<<18) >> #define MISC_IDDQ_CTRL_WLAN_PADS(1<<13) >> #define MISC_IDDQ_CTRL_PCIE (1<<12) >

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-03 Thread Simon Arlott
On 03/12/15 15:05, Mark Brown wrote: > On Thu, Dec 03, 2015 at 08:14:33AM +0000, Simon Arlott wrote: >> On 03/12/15 00:06, Mark Brown wrote: > >> > this it should know at least something about how to control the device >> > from the compatible string. If you're mak

[PATCH 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-02 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott --- Renamed from BCM63268, moved clock to brcmnand. drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++ 2 files changed, 146 insertions(+) create mode

[PATCH 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-02 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott --- drivers/mtd/nand/brcmnand/brcmnand.c | 69 1 file changed, 54 insertions(+), 15 deletions(-) diff --git

[PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-02 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott --- Renamed from BCM63268, made clock a generic

Re: [PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-12-02 Thread Simon Arlott
the controller will still return an uncorrectable error if the page is erased but has 1 or more bit flips. -- Simon Arlott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH (v2) 2/2] reset: bcm6345: Add support for the BCM6345 soft-reset controller

2015-12-02 Thread Simon Arlott
The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott --- MAINTAINERS | 1 + drivers/reset/Kconfig | 1 + drivers/reset/Makefile| 17 +++--- drivers/reset/bcm

[PATCH (v2) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-02 Thread Simon Arlott
Add device tree binding for the BCM6345 soft reset controller. The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott --- Renamed to bcm6345, removed "mask" property. .../bindings/reset/brcm,bcm6345

Re: [PATCH 2/2] reset: bcm63xx: Add support for the BCM63xx soft-reset controller

2015-12-02 Thread Simon Arlott
On 02/12/15 18:03, Florian Fainelli wrote: > 2015-11-30 12:58 GMT-08:00 Simon Arlott : >> The BCM63xx contains a soft-reset controller activated by setting >> a bit (that must previously have cleared). >> >> Signed-off-by: Simon Arlott >> --- >> MAINTAINER

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 20:21, Brian Norris wrote: > Hi Simon, > > On Wed, Dec 02, 2015 at 08:12:32PM +0000, Simon Arlott wrote: >> On 02/12/15 20:00, Brian Norris wrote: >> > On Wed, Dec 02, 2015 at 07:41:07PM +, Simon Arlott wrote: >> >> I've created a bcm963268part

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 12:53, Mark Brown wrote: > On Wed, Dec 02, 2015 at 12:45:50PM -0000, Simon Arlott wrote: >> On Tue, December 1, 2015 22:16, Mark Brown wrote: > >> > Why are these in the DT, I would expect that if this is a driver for a >> > specific SoC all these propert

Re: [PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-12-02 Thread Simon Arlott
On 01/12/15 10:41, Jonas Gorski wrote: > On Sat, Nov 28, 2015 at 8:23 PM, Simon Arlott wrote: >> + >> + /* Go to start of buffer */ >> + buf -= FC_WORDS; >> + >> + /* Erased if all data bytes are 0xFF */ >> + buf_erased =

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 20:00, Brian Norris wrote: > Hi, > > On Wed, Dec 02, 2015 at 07:41:07PM +0000, Simon Arlott wrote: >> >> + nand0: nandcs@0 { >> >> + compatible = "brcm,nandcs"; >> >> + >> >> + #address-cells = <0>

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 19:38, Florian Fainelli wrote: > 2015-12-02 11:05 GMT-08:00 Brian Norris : >> + Broadcom list + Kamal >> >> On Tue, Nov 24, 2015 at 08:19:37PM -, Simon Arlott wrote: >>> Add device tree binding for NAND on the BCM63268. >>> >>

Re: [PATCH (v7) 2/2] mtd: brcmnand: Add support for the BCM63268

2015-12-02 Thread Simon Arlott
On 02/12/15 19:18, Brian Norris wrote: > + Broadcom list + Kamal > > Hi Simon, > > On Wed, Nov 25, 2015 at 07:49:13PM +0000, Simon Arlott wrote: >> The BCM63268 has a NAND interrupt register with combined status and enable >> registers. It also has a clock for the

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 19:05, Brian Norris wrote: > + Broadcom list + Kamal > > On Tue, Nov 24, 2015 at 08:19:37PM -0000, Simon Arlott wrote: >> Add device tree binding for NAND on the BCM63268. >> >> The BCM63268 has a NAND interrupt register with combined status and enable >

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-02 Thread Simon Arlott
On Tue, December 1, 2015 22:16, Mark Brown wrote: > On Mon, Nov 30, 2015 at 08:30:07PM +0000, Simon Arlott wrote: > >> +- offset: register offset >> +- mask: register enable mask >> +- startup-delay-us: startup time in microseconds > > Why are t

Re: [PATCH (v7) 2/2] mtd: brcmnand: Add support for the BCM63268

2015-12-02 Thread Simon Arlott
On 02/12/15 19:18, Brian Norris wrote: > + Broadcom list + Kamal > > Hi Simon, > > On Wed, Nov 25, 2015 at 07:49:13PM +0000, Simon Arlott wrote: >> The BCM63268 has a NAND interrupt register with combined status and enable >> registers. It also has a clock for the

Re: [PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-12-02 Thread Simon Arlott
On 01/12/15 10:41, Jonas Gorski wrote: > On Sat, Nov 28, 2015 at 8:23 PM, Simon Arlott <si...@fire.lp0.eu> wrote: >> + >> + /* Go to start of buffer */ >> + buf -= FC_WORDS; >> + >> + /* Erased if all data bytes are 0xFF */ >> +

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 19:05, Brian Norris wrote: > + Broadcom list + Kamal > > On Tue, Nov 24, 2015 at 08:19:37PM -0000, Simon Arlott wrote: >> Add device tree binding for NAND on the BCM63268. >> >> The BCM63268 has a NAND interrupt register with combined status and enable >

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 19:38, Florian Fainelli wrote: > 2015-12-02 11:05 GMT-08:00 Brian Norris <computersforpe...@gmail.com>: >> + Broadcom list + Kamal >> >> On Tue, Nov 24, 2015 at 08:19:37PM -, Simon Arlott wrote: >>> Add device tree binding for NAND on the BCM63

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 12:53, Mark Brown wrote: > On Wed, Dec 02, 2015 at 12:45:50PM -0000, Simon Arlott wrote: >> On Tue, December 1, 2015 22:16, Mark Brown wrote: > >> > Why are these in the DT, I would expect that if this is a driver for a >> > specific SoC all these propert

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 20:00, Brian Norris wrote: > Hi, > > On Wed, Dec 02, 2015 at 07:41:07PM +0000, Simon Arlott wrote: >> >> + nand0: nandcs@0 { >> >> + compatible = "brcm,nandcs"; >> >> + >> >> + #address-cells = <0>

Re: [PATCH (v6) 1/2] mtd: brcmnand: Add brcm,bcm63268-nand device tree binding

2015-12-02 Thread Simon Arlott
On 02/12/15 20:21, Brian Norris wrote: > Hi Simon, > > On Wed, Dec 02, 2015 at 08:12:32PM +0000, Simon Arlott wrote: >> On 02/12/15 20:00, Brian Norris wrote: >> > On Wed, Dec 02, 2015 at 07:41:07PM +, Simon Arlott wrote: >> >> I've created a bcm963268part

Re: [PATCH 2/2] reset: bcm63xx: Add support for the BCM63xx soft-reset controller

2015-12-02 Thread Simon Arlott
On 02/12/15 18:03, Florian Fainelli wrote: > 2015-11-30 12:58 GMT-08:00 Simon Arlott <si...@fire.lp0.eu>: >> The BCM63xx contains a soft-reset controller activated by setting >> a bit (that must previously have cleared). >> >> Signed-off-by: Simon Arlott <si...

[PATCH (v2) 1/2] reset: Add brcm,bcm6345-reset device tree binding

2015-12-02 Thread Simon Arlott
Add device tree binding for the BCM6345 soft reset controller. The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Renamed to bcm6345, removed "mask" property. .../bin

[PATCH (v2) 2/2] reset: bcm6345: Add support for the BCM6345 soft-reset controller

2015-12-02 Thread Simon Arlott
The BCM6345 contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- MAINTAINERS | 1 + drivers/reset/Kconfig | 1 + drivers/reset/Makefile

[PATCH 3/3] mtd: brcmnand: Add support for the BCM6368

2015-12-02 Thread Simon Arlott
, then handle the CTRL_READY interrupt. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Renamed from BCM63268, moved clock to brcmnand. drivers/mtd/nand/brcmnand/Makefile | 1 + drivers/mtd/nand/brcmnand/bcm6368_nand.c | 145 +++ 2 files change

[PATCH 1/3] mtd: brcmnand: Add brcm,bcm6368-nand device tree binding

2015-12-02 Thread Simon Arlott
Add device tree binding for NAND on the BCM6368. The BCM6368 has a NAND interrupt register with combined status and enable registers. It also requires a clock, so add an optional clock to the common brcmnand binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- Renamed from BCM63268

[PATCH 2/3] mtd: brcmnand: Request and enable the clock if present

2015-12-02 Thread Simon Arlott
Attempt to enable a clock named "nand" as some SoCs have a clock for the controller that needs to be enabled. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/mtd/nand/brcmnand/brcmnand.c | 69 1 file changed, 54 insertions(

Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-12-02 Thread Simon Arlott
On Tue, December 1, 2015 22:16, Mark Brown wrote: > On Mon, Nov 30, 2015 at 08:30:07PM +0000, Simon Arlott wrote: > >> +- offset: register offset >> +- mask: register enable mask >> +- startup-delay-us: startup time in microseconds > > Why are t

Re: [PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-12-02 Thread Simon Arlott
erased pages at all. I don't know if the controller will still return an uncorrectable error if the page is erased but has 1 or more bit flips. -- Simon Arlott -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ker

[PATCH 11/11] watchdog: bcm63xx_wdt: Use brcm,bcm6345-wdt device tree binding

2015-12-01 Thread Simon Arlott
Add of_match_table for "brcm,bcm6345-wdt". Use a NULL clock name when not on mach-bcm63xx so that the device tree clock name does not have to be "periph". Allow the watchdog to be selected on BMIPS_GENERIC and select the BCM6345 timer interrupt handler. Signed-off-by: Simon

[PATCH 10/11] watchdog: bcm63xx_wdt: Use bcm63xx_timer interrupt directly

2015-12-01 Thread Simon Arlott
with the watchdog if an interrupt occurs) and remove its exported functions. Use the timer interrupt directly in bcm63xx_wdt. Signed-off-by: Simon Arlott --- arch/mips/bcm63xx/dev-wdt.c| 7 + arch/mips/bcm63xx/timer.c | 181

[PATCH 09/11] watchdog: bcm63xx_wdt: Remove dependency on mach-bcm63xx functions/defines

2015-12-01 Thread Simon Arlott
machine types. Signed-off-by: Simon Arlott --- MAINTAINERS | 1 + arch/mips/bcm63xx/prom.c | 1 + arch/mips/bcm63xx/setup.c | 1 + arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h | 22

[PATCH 08/11] watchdog: bcm63xx_wdt: Warn if the watchdog is currently running

2015-12-01 Thread Simon Arlott
Warn when the device is registered if the hardware watchdog is currently running and report the remaining time left. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog

[PATCH 07/11] watchdog: bcm63xx_wdt: Add get_timeleft function

2015-12-01 Thread Simon Arlott
Return the remaining time from the hardware control register. Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index 0a19731..ab4a794 100644

[PATCH 06/11] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-12-01 Thread Simon Arlott
Instead of using a fixed clock HZ in the driver, obtain it from the "periph" clk that the watchdog timer uses. Signed-off-by: Simon Arlott Reviewed-by: Florian Fainelli --- drivers/watchdog/bcm63xx_wdt.c | 36 +++- 1 file changed, 31 insertions(+), 5

[PATCH 05/11] watchdog: bcm63xx_wdt: Use WATCHDOG_CORE

2015-12-01 Thread Simon Arlott
Convert bcm63xx_wdt to use WATCHDOG_CORE. The default and maximum time constants that are only used once have been moved to the initialisation of the struct watchdog_device. Signed-off-by: Simon Arlott --- drivers/watchdog/Kconfig | 1 + drivers/watchdog/bcm63xx_wdt.c | 259

[PATCH 04/11] watchdog: bcm63xx_wdt: Handle hardware interrupt and remove software timer

2015-12-01 Thread Simon Arlott
, reducing the maximum timeout from 256 seconds to 85 seconds (2^32 / WDT_HZ). Signed-off-by: Simon Arlott --- drivers/watchdog/bcm63xx_wdt.c | 125 - 1 file changed, 73 insertions(+), 52 deletions(-) diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog

[PATCH 03/11] watchdog: Add brcm,bcm6345-wdt device tree binding

2015-12-01 Thread Simon Arlott
Add device tree binding for the BCM6345 watchdog. This uses the BCM6345 timer for its warning interrupt. Signed-off-by: Simon Arlott Acked-by: Rob Herring --- .../bindings/watchdog/brcm,bcm6345-wdt.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644

[PATCH 02/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-12-01 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott --- drivers/irqchip/Kconfig| 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-bcm6345-l2-timer.c | 386 + 3 files changed, 392

[PATCH 01/11] clocksource: Add brcm,bcm6345-timer/brcm,bcm6318-timer device tree binding

2015-12-01 Thread Simon Arlott
Add device tree bindings for the BCM6345/BCM6318 timers. This is required for the BCM6345 watchdog which needs to respond to one of the timer interrupts. Signed-off-by: Simon Arlott Acked-by: Rob Herring --- .../bindings/timer/brcm,bcm6318-timer.txt | 44

[PATCH 07/11] watchdog: bcm63xx_wdt: Add get_timeleft function

2015-12-01 Thread Simon Arlott
Return the remaining time from the hardware control register. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/watchdog/bcm63xx_wdt.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index 0

[PATCH 11/11] watchdog: bcm63xx_wdt: Use brcm,bcm6345-wdt device tree binding

2015-12-01 Thread Simon Arlott
Add of_match_table for "brcm,bcm6345-wdt". Use a NULL clock name when not on mach-bcm63xx so that the device tree clock name does not have to be "periph". Allow the watchdog to be selected on BMIPS_GENERIC and select the BCM6345 timer interrupt handler. Signed-off-

[PATCH 05/11] watchdog: bcm63xx_wdt: Use WATCHDOG_CORE

2015-12-01 Thread Simon Arlott
Convert bcm63xx_wdt to use WATCHDOG_CORE. The default and maximum time constants that are only used once have been moved to the initialisation of the struct watchdog_device. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/watchdog/Kconfig | 1 + drivers/wa

[PATCH 06/11] watchdog: bcm63xx_wdt: Obtain watchdog clock HZ from "periph" clk

2015-12-01 Thread Simon Arlott
Instead of using a fixed clock HZ in the driver, obtain it from the "periph" clk that the watchdog timer uses. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> Reviewed-by: Florian Fainelli <f.faine...@gmail.com> --- drivers/watchdog/bcm63xx_wdt.c | 36 ++

[PATCH 03/11] watchdog: Add brcm,bcm6345-wdt device tree binding

2015-12-01 Thread Simon Arlott
Add device tree binding for the BCM6345 watchdog. This uses the BCM6345 timer for its warning interrupt. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/watchdog/brcm,bcm6345-wdt.txt | 35 ++ 1 file

[PATCH 08/11] watchdog: bcm63xx_wdt: Warn if the watchdog is currently running

2015-12-01 Thread Simon Arlott
Warn when the device is registered if the hardware watchdog is currently running and report the remaining time left. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/watchdog/bcm63xx_wdt.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff

[PATCH 10/11] watchdog: bcm63xx_wdt: Use bcm63xx_timer interrupt directly

2015-12-01 Thread Simon Arlott
with the watchdog if an interrupt occurs) and remove its exported functions. Use the timer interrupt directly in bcm63xx_wdt. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- arch/mips/bcm63xx/dev-wdt.c| 7 + arch/mips/bcm63xx/timer.c

[PATCH 09/11] watchdog: bcm63xx_wdt: Remove dependency on mach-bcm63xx functions/defines

2015-12-01 Thread Simon Arlott
machine types. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- MAINTAINERS | 1 + arch/mips/bcm63xx/prom.c | 1 + arch/mips/bcm63xx/setup.c | 1 + arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.

[PATCH 01/11] clocksource: Add brcm,bcm6345-timer/brcm,bcm6318-timer device tree binding

2015-12-01 Thread Simon Arlott
Add device tree bindings for the BCM6345/BCM6318 timers. This is required for the BCM6345 watchdog which needs to respond to one of the timer interrupts. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> Acked-by: Rob Herring <r...@kernel.org> --- .../bindings/timer/brcm,bcm63

[PATCH 02/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-12-01 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/irqchip/Kconfig| 5 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-bcm6345-l2-timer.c | 386 ++

[PATCH 04/11] watchdog: bcm63xx_wdt: Handle hardware interrupt and remove software timer

2015-12-01 Thread Simon Arlott
, reducing the maximum timeout from 256 seconds to 85 seconds (2^32 / WDT_HZ). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/watchdog/bcm63xx_wdt.c | 125 - 1 file changed, 73 insertions(+), 52 deletions(-) diff --git a/drivers/watchdog/bcm63xx_w

[PATCH 2/2] reset: bcm63xx: Add support for the BCM63xx soft-reset controller

2015-11-30 Thread Simon Arlott
The BCM63xx contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott --- MAINTAINERS | 1 + drivers/reset/Kconfig | 9 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-bcm63xx.c | 134

[PATCH 1/2] reset: Add brcm,bcm63xx-reset device tree binding

2015-11-30 Thread Simon Arlott
Add device tree binding for the BCM63xx soft reset controller. The BCM63xx contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott --- .../bindings/reset/brcm,bcm63xx-reset.txt | 37 ++ 1 file

[PATCH 2/2] clk: bcm63xx: Add BCM63xx gated clock support

2015-11-30 Thread Simon Arlott
The BCM63xx contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Clock gate bits are interleaved with other status bits and configurable clocks in the same register. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott

[PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-11-30 Thread Simon Arlott
;nand", + "tbus", "robosw250"; +}; + +timer_clk: timer_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; + regmap = <_cntl>; + offset = <0x4>; + + #clock-cells = <1>

[PATCH (v2) 2/2] regulator: bcm63xx: Add BCM63xx fixed regulator device

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott --- On 30/11/15 20:30, Simon Arlott wrote: > + /* Only status change is supported, regardless of DT init data */ > + ini

[PATCH 2/2] regulator: bcm63xx: Add BCM63xx fixed regulator device

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott --- MAINTAINERS | 1 + drivers/regulator/Kconfig | 9 +++ drivers/regulator/Makefile

[PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott --- .../bindings/regulator/brcm,bcm63xx-regulator.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644

[PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- .../bindings/regulator/brcm,bcm63xx-regulator.txt | 33 ++ 1 file changed, 33 inse

[PATCH 2/2] regulator: bcm63xx: Add BCM63xx fixed regulator device

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- MAINTAINERS | 1 + drivers/regulator/Kconfig | 9 +++ drivers/reg

[PATCH (v2) 2/2] regulator: bcm63xx: Add BCM63xx fixed regulator device

2015-11-30 Thread Simon Arlott
The BCM63xx has one or more registers with bits that act as regulators to enable/disable power to individual chip peripherals. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- On 30/11/15 20:30, Simon Arlott wrote: > + /* Only status change is supported, regardless of DT

[PATCH 1/2] clk: Add brcm,bcm63xx-gate-clk device tree binding

2015-11-30 Thread Simon Arlott
t;gmac", "nand", + "tbus", "robosw250"; +}; + +timer_clk: timer_clk { + compatible = "brcm,bcm63168-gate-clk", "brcm,bcm63xx-gate-clk"; + regmap = <_cntl>; + offset = <0x4>; + + #clock-ce

[PATCH 2/2] clk: bcm63xx: Add BCM63xx gated clock support

2015-11-30 Thread Simon Arlott
The BCM63xx contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Clock gate bits are interleaved with other status bits and configurable clocks in the same register. Enabled by default for BMIPS_GENERIC. Signed-off-by: Simon Arlott <

[PATCH 1/2] reset: Add brcm,bcm63xx-reset device tree binding

2015-11-30 Thread Simon Arlott
Add device tree binding for the BCM63xx soft reset controller. The BCM63xx contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- .../bindings/reset/brcm,bcm63xx-reset.txt

[PATCH 2/2] reset: bcm63xx: Add support for the BCM63xx soft-reset controller

2015-11-30 Thread Simon Arlott
The BCM63xx contains a soft-reset controller activated by setting a bit (that must previously have cleared). Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- MAINTAINERS | 1 + drivers/reset/Kconfig | 9 +++ drivers/reset/Makefile| 1 + drivers

[PATCH 2/2] regulator: fixed: Add support for regmap

2015-11-28 Thread Simon Arlott
return -ENODEV or -ENOSYS as errors and -EPROBE_DEFER doesn't make sense for a register, the specific error is never propagated. This is required for Broadcom BCM63xx SoCs that enable power to individual peripherals by clearing a bit in the miscIddqCtrl register. Signed-off-by: Simon Arlott

[PATCH 1/2] regulator: Add regmap support to regulator-fixed device tree binding

2015-11-28 Thread Simon Arlott
in the miscIddqCtrl register. Signed-off-by: Simon Arlott --- .../bindings/regulator/fixed-regulator.txt | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt b/Documentation/devicetree/bindings

[PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-11-28 Thread Simon Arlott
. Signed-off-by: Simon Arlott --- drivers/mtd/nand/brcmnand/brcmnand.c | 107 ++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c index 5f26b8a..0857af7 100644 --- a/drivers

[PATCH (v5) 3/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-11-28 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott --- On 27/11/15 08:37, Thomas Gleixner wrote: > Instead of having that pile of conditionals you could just define two > functions and have a function pointer in struct bcm6345_timer which

[PATCH (v5) 3/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-11-28 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- On 27/11/15 08:37, Thomas Gleixner wrote: > Instead of having that pile of conditionals you could just define two > functions and have a function pointer in struct b

[PATCH] mtd: brcmnand: Workaround false ECC uncorrectable errors

2015-11-28 Thread Simon Arlott
. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- drivers/mtd/nand/brcmnand/brcmnand.c | 107 ++- 1 file changed, 106 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c index 5f26b8a..0

[PATCH 1/2] regulator: Add regmap support to regulator-fixed device tree binding

2015-11-28 Thread Simon Arlott
in the miscIddqCtrl register. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- .../bindings/regulator/fixed-regulator.txt | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.txt b/Documen

[PATCH 2/2] regulator: fixed: Add support for regmap

2015-11-28 Thread Simon Arlott
return -ENODEV or -ENOSYS as errors and -EPROBE_DEFER doesn't make sense for a register, the specific error is never propagated. This is required for Broadcom BCM63xx SoCs that enable power to individual peripherals by clearing a bit in the miscIddqCtrl register. Signed-off-by: Simon Arlott <

[PATCH (v4) 2/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-11-26 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott --- On 24/11/15 22:36, Florian Fainelli wrote: > On 24/11/15 14:10, Simon Arlott wrote: >> +static inline u32 bcm6345_timer_read_int_status(struct bcm6345_timer *timer) >> +{ >>

[PATCH (v4) 2/11] MIPS: bmips: Add bcm6345-l2-timer interrupt controller

2015-11-26 Thread Simon Arlott
be added later if required without changing the device tree binding. Signed-off-by: Simon Arlott <si...@fire.lp0.eu> --- On 24/11/15 22:36, Florian Fainelli wrote: > On 24/11/15 14:10, Simon Arlott wrote: >> +static inline u32 bcm6345_timer_read_int_status(struct bcm63

[PATCH (v2) 11/11] watchdog: bcm63xx_wdt: Use brcm,bcm6345-wdt device tree binding

2015-11-25 Thread Simon Arlott
Add of_match_table for "brcm,bcm6345-wdt". Use a NULL clock name when not on mach-bcm63xx so that the device tree clock name does not have to be "periph". Allow the watchdog to be selected on BMIPS_GENERIC and select the BCM6345 timer interrupt handler. Signed-off-by: Simon

<    1   2   3   4   5   6   7   >