This patch serie extend the PL08x driver to allow using it with
sound drivers. Sound drivers require the cyclic transfer mode and
that tx_status give reliable results.
* Patch 1 is a trivial fix
* Patch 2 implement the cyclic mode needed by sound drivers
* Patch 3 fix the tx_status implementation
To reliably get the current DMA position it is not possible to
just read the PL08x registers. As several reads are needed the values
are not consistent. To overcome this keep track of the position as
each LLI finish, this give a coarse but reliable value.
Signed-off-by: Alban Bedel
---
drivers
Signed-off-by: Alban Bedel
---
drivers/dma/amba-pl08x.c |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index d1cc579..fc8bedf 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -453,7 +453,8
Signed-off-by: Alban Bedel
---
drivers/dma/amba-pl08x.c | 184 ++
1 files changed, 138 insertions(+), 46 deletions(-)
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index fc8bedf..b097788 100644
--- a/drivers/dma/amba-pl08x.c
+++ b
Signed-off-by: Alban Bedel
---
.../bindings/video/backlight/pwm-backlight.txt |1 +
drivers/video/backlight/pwm_bl.c | 22 ++-
include/linux/pwm_backlight.h |1 +
3 files changed, 18 insertions(+), 6 deletions(-)
diff --git
a
Signed-off-by: Alban Bedel
---
drivers/pwm/pwm-lpc32xx.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index adb87f0..a2704b8 100644
--- a/drivers/pwm/pwm-lpc32xx.c
+++ b/drivers/pwm/pwm-lpc32xx.c
@@ -51,7
Signed-off-by: Alban Bedel
---
drivers/pwm/pwm-lpc32xx.c |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index f45ce2c..3e63689 100644
--- a/drivers/pwm/pwm-lpc32xx.c
+++ b/drivers/pwm/pwm-lpc32xx.c
@@ -121,6 +121,7
The duty cycles value goes from 1 (99% HIGH) to 256 (0% HIGH) but it
is stored modulo 256 in the register as it is only 8 bits wide.
Signed-off-by: Alban Bedel
---
drivers/pwm/pwm-lpc32xx.c | 17 -
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/drivers/pwm/pwm
A single clock is used for all PWMs meaning the clock ref count might
be between 0 and N when remove() is called. Instead of a single
clk_disable() call pwm_disable() on each PWM, that ensure that
clk_disable() is called for each PWM that were still enabled.
Signed-off-by: Alban Bedel
A few fixes for the LPC32 PWM driver:
* [PATCH 1/3] pwm: lpc32xx - Fix the PWM polarity
* [PATCH 2/3] pwm: lpc32xx - Properly disable the clock on device remove
* [PATCH 3/3] pwm: lpc32xx - Set the chip base for dynamic allocation
Alban
--
To unsubscribe from this list: send the line "unsubscribe
On Tue, 6 Nov 2012 07:47:22 -0200
Alexandre Pereira da Silva wrote:
> Can you test the 0 and 255 values on actual hardware and see the effective
> values?
0 -> 0%
1 -> 99%
128 -> 50%
255 -> 1%
So yes 0 mean 256.
> It may be handled as the RELOADV where 0 really means 256. If so, you
On Tue, 6 Nov 2012 07:44:06 +0100
Thierry Reding wrote:
> > --- a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
> > +++ b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
> > @@ -14,6 +14,7 @@ Required properties:
> > Optional properties:
> >- pwm-nam
levels are expected
to be in the range from 0 to 255, where 0 is 0% duty and 255 is 100% duty.
Signed-off-by: Alban Bedel
---
.../bindings/video/backlight/pwm-backlight.txt |8 ++---
drivers/video/backlight/pwm_bl.c | 28 +--
include/linux/pwm_backlight.h
Signed-off-by: Alban Bedel
---
drivers/pwm/pwm-lpc32xx.c |6 +-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b/drivers/pwm/pwm-lpc32xx.c
index adb87f0..0dc278d 100644
--- a/drivers/pwm/pwm-lpc32xx.c
+++ b/drivers/pwm/pwm-lpc32xx.c
@@ -51,7
On Thu, 08 Nov 2012 10:51:35 +0100
Roland Stigge wrote:
> On 07/11/12 16:25, Alban Bedel wrote:
> > Signed-off-by: Alban Bedel
> > ---
> > drivers/pwm/pwm-lpc32xx.c |6 +-
> > 1 files changed, 5 insertions(+), 1 deletions(-)
> >
> > diff --git a/
On Thu, 08 Nov 2012 11:44:48 +0100
Roland Stigge wrote:
> On 08/11/12 11:33, Alban Bedel wrote:
> > On Thu, 08 Nov 2012 10:51:35 +0100
> > Roland Stigge wrote:
> >
> >> On 07/11/12 16:25, Alban Bedel wrote:
> >>> Signed-off-by: Alban Bedel
> &g
The duty cycles value goes from 1 (99% HIGH) to 256 (0% HIGH) but it
is stored modulo 256 in the register as it is only 8 bits wide.
Signed-off-by: Alban Bedel
---
drivers/pwm/pwm-lpc32xx.c |4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/drivers/pwm/pwm-lpc32xx.c b
On Fri, 1 Jul 2016 13:55:44 +0200
Hans Verkuil wrote:
> On 05/11/2016 06:32 PM, Alban Bedel wrote:
> > On Wed, 11 May 2016 12:22:44 -0400
> > Javier Martinez Canillas wrote:
> >
> >> Hello Alban,
> >>
> >> On 05/11/2016 11:40 AM, Alban Bedel w
Implement the .set_eeprom callback to allow setting the MAC address
as well as a few other parameters. Note that the EEPROM must have a
correct PID/VID checksum set otherwise the SROM is used and reads
return the SROM content.
Signed-off-by: Alban Bedel
---
drivers/net/usb/ax88179_178a.c | 57
plug
these holes.
Signed-off-by: Alban Bedel
---
Changelog:
v2: * Added the missing unbind() calls as suggested by Javier.
---
drivers/media/v4l2-core/v4l2-async.c | 29 +
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/drivers/media/v4l2-core/v4l2
On Wed, 24 Aug 2016 16:30:39 +0200
Oliver Neukum wrote:
> On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote:
> > Implement the .set_eeprom callback to allow setting the MAC address
> > as well as a few other parameters. Note that the EEPROM must have a
> > correct
On Thu, 25 Aug 2016 11:16:36 +0200
Oliver Neukum wrote:
> On Wed, 2016-08-24 at 16:40 +0200, Alban Bedel wrote:
> > On Wed, 24 Aug 2016 16:30:39 +0200
> > Oliver Neukum wrote:
> >
> > > On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote:
>
Turn the ath79 driver into a true driver supporting multiple
instances. While at it also removed unneed includes and make use of
the BIT() macro.
Signed-off-by: Alban Bedel
---
This patch apply on top of my previous MIPS GPIO patches that are pending
for 4.3, so it might be better to take it
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/phy/phy-ath79-usb.txt | 18 ++
1 file changed, 18 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/phy-ath79-usb.txt
diff --git a/Documentation/devicetree/bindings/phy/phy-ath79-usb.txt
b
Hi,
this serie add a driver for the USB phy on the ATH79 SoCs and enable the
USB port on the TL-WR1043ND. The phy controller is really trivial as it
only use reset lines.
Alban
Alban Bedel (4):
devicetree: Add bindings for the ATH79 USB phy
phy: Add a driver for the ATH79 USB phy
MIPS
The ATH79 USB phy is very simple, it only have a reset. On some SoC a
second reset is used to force the phy in suspend mode regardless of the
USB controller status.
Signed-off-by: Alban Bedel
---
drivers/phy/Kconfig | 8 +++
drivers/phy/Makefile| 1 +
drivers/phy/phy-ath79
Signed-off-by: Alban Bedel
---
arch/mips/boot/dts/qca/ar9132.dtsi | 24
1 file changed, 24 insertions(+)
diff --git a/arch/mips/boot/dts/qca/ar9132.dtsi
b/arch/mips/boot/dts/qca/ar9132.dtsi
index fb7734e..665ee84 100644
--- a/arch/mips/boot/dts/qca/ar9132.dtsi
+++ b
Signed-off-by: Alban Bedel
---
arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 4
1 file changed, 4 insertions(+)
diff --git a/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
index 003015a..cd51199 100644
--- a/arch/mips/boot/dts/qca
an't be found. This is
because the error code returned by of_property_match_string() is just
passed down as an index to of_parse_phandle_with_args(), which then
returns -EINVAL.
To get a consistent return value with both code paths we must return
-ENOENT when of_property_match_string()
Somehow the wrong version of the patch to remove the use of custom
gpio.h on mips has been merged. This patch add the missing fixes for a
build error on jz4740 because linux/gpio.h doesn't provide any machine
specfics definitions anymore.
Signed-off-by: Alban Bedel
---
arch/mips/jz4740/
qualcom name.
Signed-off-by: Alban Bedel
---
MAINTAINERS | 8 +++
drivers/phy/qualcomm/Kconfig | 11 +++-
drivers/phy/qualcomm/Makefile| 1 +
drivers/phy/qualcomm/phy-ath79-usb.c | 108 +++
4 files changed, 127
option when the EHCI platform driver is enabled on the ATH79
platform.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig| 1 +
drivers/usb/host/Kconfig | 25 -
2 files changed, 1 insertion(+), 25 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index
that we can turn any kind of device in a nvmem provider.
While discouraged for new uses the old scheme is still supported for
backward compatibility.
Signed-off-by: Alban Bedel
---
Documentation/devicetree/bindings/nvmem/nvmem.txt | 55 ---
drivers/nvmem/core.c
binding or an nvmem cell.
To avoid this problem we update the nvmem cell binding to use a 'nvmem-cells'
subnode with compatible string to hold the list of nvmem cells. This new
binding make sure that any kind of device can be used as nvmem provider.
Alban Bedel (3):
nvmem: Update the
Allow drivers that use the nvmem API to read data stored on MTD devices.
For this the mtd devices are registered as read-only NVMEM providers.
On OF systems only devices that have the 'nvmem-provider' property
are registered, on non-OF system all MTD devices are registered.
Signed-off
Config data for drivers, like MAC addresses, is often stored in MTD.
Add a binding that define how such data storage can be represented in
device tree.
Signed-off-by: Alban Bedel
---
Changelog:
v2: * Added a "Required properties" section with the nvmem-provider
property
v3: * Fix
!= res == NULL
e = devm_ioremap(e1, res->start, e2);
Signed-off-by: Wei Yongjun
[al...@free.fr: Fixed patch to apply on current tree]
Signed-off-by: Alban Bedel
---
drivers/gpio/gpio-ath79.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath7
If no write callback is given the device should be marked as read-only.
While at it also move from a bit or to a logical or as that is a logical
expression.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/nvmem
of_nvmem_cell_get() should return -ENOENT when a cell isn't defined,
otherwise callers can't distinguish between a missing cell and other
errors.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme
Hi,
this series is mostly small bug fixes, but also add a new API
to make things simpler in drivers that need to request an optional cell.
Alban Bedel (8):
nvmem: core: Set the provider read-only when no write callback is
given
nvmem: core: Fix of_nvmem_cell_get() for optional cells
ement the reference count like it is done
in the DT path.
To fix this we replace the call to nvmem_find() with a call to
__nvmem_device_get() which does all the referencing and return a
proper ERR_PTR in case of error.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 2 +-
1 file chang
struct nvmem_cell the iteration
variable then contains an invalid value.
This is easily solved by using a variable to iterate over the list and
one to return the cell found.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions
properly implement
an optional connection. Return -ENOENT instead to let the caller know
that the connection doesn't exists.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/c
Add helper functions to make the driver code simpler when a cell is
optional. Using these functions just return NULL when the cell doesn't
exists or if nvmem is disabled.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 48 ++
include/linux/
: Alban Bedel
---
drivers/nvmem/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index 2fa97b373601..176fe72f4eb5 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -811,6 +811,7 @@ static struct nvmem_device *__nvmem_device_get
Once the correct cell has been found there is no need to continue
iterating, just stop there. While at it replace the goto used to leave
the loop with simple break statements.
Signed-off-by: Alban Bedel
---
drivers/nvmem/core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff
In the power on function the error path doesn't return the suspend
override to its proper state. It should should deassert this reset
line to enable the suspend override.
Signed-off-by: Alban Bedel
---
drivers/phy/qualcomm/phy-ath79-usb.c | 2 +-
1 file changed, 1 insertion(+), 1 del
In the power on function the error path doesn't return the suspend
override to its proper state. It should should deassert this reset
line to enable the suspend override.
Signed-off-by: Alban Bedel
---
drivers/phy/qualcomm/phy-ath79-usb.c | 2 +-
1 file changed, 1 insertion(+), 1 del
CONFIG_SERIAL_OF_PLATFORM is needed to get a working console on the OF
boards, enable it in the default config to get a working setup out of
the box.
Signed-off-by: Alban Bedel
---
arch/mips/configs/ath79_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/configs
g it. This patch fix the driver to match the new
binding.
Signed-off-by: Alban Bedel
---
drivers/phy/qualcomm/phy-ath79-usb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/qualcomm/phy-ath79-usb.c
b/drivers/phy/qualcomm/phy-ath79-usb.c
index f7d64f3910b4..09
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/mips/ath79-soc.txt | 21 +
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt
diff --git a/Documentation/devicetree/bindings/mips/ath79-soc.txt
b
use ePAPR names
* Fixed the qca9550 compatible string in the PLL bindings and driver
* Fixed the example in the GPIO controller binding
* Moved the new vendor entry to the correct place
Alban Bedel (12):
devicetree: Add bindings for the SoC of the ATH79 family
MIPS: ath79: Add
Add the bare minimum to load a device tree.
Signed-off-by: Alban Bedel
---
v3: * Removed the empty Builtin devicetree menu
---
arch/mips/Kconfig | 1 +
arch/mips/ath79/machtypes.h | 1 +
arch/mips/ath79/setup.c | 27 ++-
3 files changed, 28 insertions
Signed-off-by: Alban Bedel
---
v2: * Fixed the node names to respect ePAPR
* Removed the unneeded @0 on the node name
---
.../interrupt-controller/qca,ath79-cpu-intc.txt| 44 ++
1 file changed, 44 insertions(+)
create mode 100644
Documentation/devicetree/bindings
The DDR controller of the ARxxx and AR9xxx families provides an
interface to flush the FIFO between various devices and the DDR.
This is mainly used by the IRQ controller to flush the FIFO before
running the interrupt handler of such devices.
Signed-off-by: Alban Bedel
---
v2: * Fix the node
Signed-off-by: Alban Bedel
---
v2: * Fixed the node names to respect ePAPR
---
.../interrupt-controller/qca,ath79-misc-intc.txt | 30 ++
1 file changed, 30 insertions(+)
create mode 100644
Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt
Signed-off-by: Alban Bedel
---
v2: * Fixed the node names to respect ePAPR
* Fixed the missing 's' in 'fallbacks' and the 'clocks' property
v3: * Fix the compatible string for qca9550
---
.../devicetree/bindings/clock/qca,ath79-pll.txt| 33
Allow using the SoC clocks in the device tree.
---
v3: * Fix the compatible string for qca9550
---
arch/mips/ath79/clock.c | 63 ++---
1 file changed, 44 insertions(+), 19 deletions(-)
diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c
index
Replace the simple GPIO chip registration by a platform driver
and make ath79_gpio_init() just register the device.
Signed-off-by: Alban Bedel
---
v2: * Added an 'ngpios' property instead of the many matches
* Use a platform data struct to store the device config on
non-DT
Add OF support for the CPU and MISC interrupt controllers of most
supported ATH79 devices.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/irq.c | 87 ++-
1 file changed, 86 insertions(+), 1 deletion(-)
diff --git a/arch/mips/ath79/irq.c b/arch
These bindings support the GPIO controllers found on the Qualcomm
Atheros AR7xxx/AR9XXX SoC.
Signed-off-by: Alban Bedel
---
v2: * Add the ngpios property to have fewer fallbacks and simpler code
v3: * Fix missing 's' typo
* Fix the example to be valid with the binding
---
.../
Signed-off-by: Alban Bedel
---
v3: * Put the new entry at the right place
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
Add a DTS for TL-WR1043ND version 1 and allow to have it built in the
kernel to circumvent the broken u-boot found on these boards.
Currently only the UART, LEDs and buttons are supported.
Signed-off-by: Alban Bedel
---
v2: * Rebased for the new vendor directory structure
* Merged the 2
platform is moved to the generic clock framework.
Finally the last patch is to ensure that CS_HIGH chips using CS0 get the
proper CS level before the first transfer.
Alban
Alban Bedel (4):
devicetree: add binding documentation for the AR7100 SPI controller
spi: spi-ath79: Add device tree support
The internal chip select CS0 wasn't initialized properly to work with
CS HIGH chips.
Signed-off-by: Alban Bedel
---
drivers/spi/spi-ath79.c | 8
1 file changed, 8 insertions(+)
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c
index b37bedd..bf1f9b3 100644
--- a/dr
Clocks should be prepared and unprepared, fix this by using
clk_prepare_enable() and clk_disable_unprepare() instead of
clk_enable() and clk_disable().
Signed-off-by: Alban Bedel
---
drivers/spi/spi-ath79.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/spi
Set the OF node of the spi controller and use the generic GPIO based
chip select instead of the custom controller data. As the controller
data isn't used by any board just drop it.
Signed-off-by: Alban Bedel
---
.../mips/include/asm/mach-ath79/ath79_spi_platform.h | 4
drivers/sp
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/spi/spi-ath79.txt | 24 ++
1 file changed, 24 insertions(+)
create mode 100644 Documentation/devicetree/bindings/spi/spi-ath79.txt
diff --git a/Documentation/devicetree/bindings/spi/spi-ath79.txt
b
This first small serie allow using ZBOOT, fix a few errors in the
registers definitions and rework the DDR controller interface.
The DDR controller interface patch is mostly to simplify the IRQ
controller code before adding OF support.
Following this will a be serie that add the OF bindings and co
ZBOOT is working fine, so allow using it.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index a326c4c..cc7f262 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -128,6 +128,7 @@ config ATH79
: Alban Bedel
---
arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
index aa3800c..e2669a8 100644
--- a/arch/mips/include/asm/mach
This register is named PLL_FB and is not a divider but a multiplier.
To make things less confusing rename the AR_PLL_DIV_SHIFT and
AR_PLL_DIV_MASK macros to AR_PLL_FB_SHIFT and
AR_PLL_FB_MASK.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/clock.c| 6
The memory setup log is missing a new line.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index a73c93c..7fc8397 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips
ction and simply rely on a shared global
pointer.
Replace this by a simple API to setup the PCI memory windows and use
the write buffer flush independently of the SoC type. That remove the
need for the shared global pointer, simplify the IRQ handler code.
Signed-off-by: Alban Bedel
---
arch
This series add OF bindings and code support for the interrupt
controllers, clocks and GPIOs. However it was only tested on a
TL-WR1043ND with an AR9132, others SoCs are untested, and a few are
not supported at all.
Most code changes base on the previous bug fix series:
[PATH] MIPS: ath79: Various
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/mips/ath79-soc.txt | 21 +
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt
diff --git a/Documentation/devicetree/bindings/mips/ath79-soc.txt
b
Signed-off-by: Alban Bedel
---
.../interrupt-controller/qca,ath79-cpu-intc.txt| 45 ++
1 file changed, 45 insertions(+)
create mode 100644
Documentation/devicetree/bindings/interrupt-controller/qca,ath79-cpu-intc.txt
diff --git
a/Documentation/devicetree/bindings
Replace the simple GPIO chip registration by a platform driver
and make ath79_gpio_init() just register the device.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/dev-common.c | 13
arch/mips/ath79/gpio.c | 73 +---
2 files changed, 81
Allow using the SoC clocks in the device tree.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/clock.c | 63 ++---
1 file changed, 44 insertions(+), 19 deletions(-)
diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c
index 1fcb691..682bf61
Make the code simpler and open the way for device tree clocks.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
arch/mips/ath79/clock.c | 29 ++---
2 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index
Add the bare minimum to load a device tree.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
arch/mips/ath79/Kconfig | 10 ++
arch/mips/ath79/machtypes.h | 1 +
arch/mips/ath79/setup.c | 27 ++-
4 files changed, 38 insertions(+), 1
The DDR controller of the ARxxx and AR9xxx famillies provides an
interface to flush the FIFO between various devices and the DDR.
This is mainly used by the IRQ controller to flush the FIFO before
running the interrupt handler of such devices.
Signed-off-by: Alban Bedel
---
.../memory
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/clock/qca,ath79-pll.txt| 33 ++
1 file changed, 33 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/qca,ath79-pll.txt
diff --git a/Documentation/devicetree/bindings/clock/qca,ath79-pll.txt
b
Signed-off-by: Alban Bedel
---
.../interrupt-controller/qca,ath79-misc-intc.txt | 30 ++
1 file changed, 30 insertions(+)
create mode 100644
Documentation/devicetree/bindings/interrupt-controller/qca,ath79-misc-intc.txt
diff --git
a/Documentation/devicetree/bindings
These bindings support the GPIO controllers found on the Qualcomm
Atheros AR7xxx/AR9XXX SoC.
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/gpio/gpio-ath79.txt| 40 ++
1 file changed, 40 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio
Add OF support for the CPU and MISC interrupt controllers of most
supported ATH79 devices.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/irq.c | 87 ++-
1 file changed, 86 insertions(+), 1 deletion(-)
diff --git a/arch/mips/ath79/irq.c b/arch
A basic dtsi for the AR9132 with support for the DDR controller, CPU
and MISC interrupt controller, GPIO controller, the UART and the
watchdog.
Signed-off-by: Alban Bedel
---
arch/mips/boot/dts/ar9132.dtsi | 119 +
1 file changed, 119 insertions
Add a DTS for TL-WR1043ND version 1 and allow to have it built in the
kernel to circumvent the broken u-boot found on these boards.
Currently only the UART, LEDs and buttons are supported.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/Kconfig | 5 ++
arch/mips/boot/dts
Signed-off-by: Alban Bedel
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index b13aa55..9e965b6 100644
--- a
First re-run of this serie of misc fix and preparation for OF support on ATH79.
* Dropped the bad PCI patch
* Moved the patch to use the common clk API out of the OF support serie
into this one.
Alban Bedel (5):
MIPS: ath79: Enable ZBOOT support
MIPS: ath79: Add a missing new line in
ZBOOT is working fine, so allow using it.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index f501665..9075147 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -131,6 +131,7 @@ config ATH79
Make the code simpler and open the way for device tree clocks.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
arch/mips/ath79/clock.c | 29 ++---
2 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index
This register is named PLL_FB and is not a divider but a multiplier.
To make things less confusing rename the AR_PLL_DIV_SHIFT and
AR_PLL_DIV_MASK macros to AR_PLL_FB_SHIFT and
AR_PLL_FB_MASK.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/clock.c| 6
ction and simply rely on a shared global
pointer.
Replace this by a simple API to setup the PCI memory windows and use
the write buffer flush independently of the SoC type. That remove the
need for the shared global pointer, simplify the IRQ handler code.
Signed-off-by: Alban Bedel
---
v2: * Up
The memory setup log is missing a new line.
Signed-off-by: Alban Bedel
---
arch/mips/ath79/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c
index a73c93c..7fc8397 100644
--- a/arch/mips/ath79/setup.c
+++ b/arch/mips
overkill.
* Moved the patch to use the common clk API to the bug fix serie to keep
this one cleaner.
Alban Bedel (12):
devicetree: Add bindings for the SoC of the ATH79 familly
MIPS: ath79: Add basic device tree support
devicetree: Add bindings for the ATH79 DDR controllers
devicetree
Add the bare minimum to load a device tree.
Signed-off-by: Alban Bedel
---
arch/mips/Kconfig | 1 +
arch/mips/ath79/Kconfig | 10 ++
arch/mips/ath79/machtypes.h | 1 +
arch/mips/ath79/setup.c | 27 ++-
4 files changed, 38 insertions(+), 1
Signed-off-by: Alban Bedel
---
v2: * Fixed the node names to respect ePAPR
* Removed the unneeded @0 on the node name
---
.../interrupt-controller/qca,ath79-cpu-intc.txt| 44 ++
1 file changed, 44 insertions(+)
create mode 100644
Documentation/devicetree/bindings
Signed-off-by: Alban Bedel
---
.../devicetree/bindings/mips/ath79-soc.txt | 21 +
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mips/ath79-soc.txt
diff --git a/Documentation/devicetree/bindings/mips/ath79-soc.txt
b
The DDR controller of the ARxxx and AR9xxx famillies provides an
interface to flush the FIFO between various devices and the DDR.
This is mainly used by the IRQ controller to flush the FIFO before
running the interrupt handler of such devices.
Signed-off-by: Alban Bedel
---
v2: * Fix the node
1 - 100 of 262 matches
Mail list logo